]> git.proxmox.com Git - mirror_qemu.git/commit - target/riscv/insn32.decode
target/riscv: Add support for Zicond extension
authorWeiwei Li <liweiwei@iscas.ac.cn>
Tue, 21 Feb 2023 09:10:09 +0000 (17:10 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Mar 2023 01:07:59 +0000 (17:07 -0800)
commitb8e1f32cda7805236c2bd497106a9356431c2d60
tree9371f41a7a6c5c75c37b9998024eb8c32d7ef7e2
parentb7fa70e2afa6c784f21f749572ce78f6467666fd
target/riscv: Add support for Zicond extension

The spec can be found in https://github.com/riscv/riscv-zicond.
Two instructions are added:
 - czero.eqz: Moves zero to a register rd, if the condition rs2 is
   equal to zero, otherwise moves rs1 to rd.
 - czero.nez: Moves zero to a register rd, if the condition rs2 is
   nonzero, otherwise moves rs1 to rd.

Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn>
Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Message-ID: <20230221091009.36545-1-liweiwei@iscas.ac.cn>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
target/riscv/cpu.c
target/riscv/cpu.h
target/riscv/insn32.decode
target/riscv/insn_trans/trans_rvzicond.c.inc [new file with mode: 0644]
target/riscv/translate.c