Re: [PATCH v2 2/8] target/riscv: add support for Zca and Zcf extensions

2022-11-14 Thread weiwei
On 2022/11/14 05:40, Richard Henderson wrote: On 11/13/22 12:32, Weiwei Li wrote: +    } else if ((get_xl_max(ctx) == MXL_RV32) && +    !ctx->cfg_ptr->ext_zcf && +    (((opcode & 0xe003) == 0x6000) || + ((opcode & 0xe003) == 0x6002) || + ((opcode & 0

Re: [PATCH v2 2/8] target/riscv: add support for Zca and Zcf extensions

2022-11-13 Thread Richard Henderson
On 11/13/22 12:32, Weiwei Li wrote: +} else if ((get_xl_max(ctx) == MXL_RV32) && +!ctx->cfg_ptr->ext_zcf && +(((opcode & 0xe003) == 0x6000) || + ((opcode & 0xe003) == 0x6002) || + ((opcode & 0xe003) == 0xe000) || + ((opcode & 0xe

[PATCH v2 2/8] target/riscv: add support for Zca and Zcf extensions

2022-11-12 Thread Weiwei Li
Add check for Zca and Zcf extensions Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang --- target/riscv/insn_trans/trans_rvi.c.inc | 4 ++-- target/riscv/translate.c| 16 ++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/target/riscv/insn_tran