qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: weiwei
Subject: Re: [PATCH v2 2/8] target/riscv: add support for Zca and Zcf extensions
Date: Mon, 14 Nov 2022 11:17:27 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2


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 & 0xe003) == 0xe000) ||
+             ((opcode & 0xe003) == 0xe002))) {
              gen_exception_illegal(ctx);

Why aren't you using the same c_flw solution that you do for Zcd?
Yeah, it's OK for zcf intructions to use the c_flw solution.

I tried to remain the original logic for Zcf and Zcd instructions, However, this way is not suitable for Zcd instructions

since zcmp/zcmt instructions will overlap their encodings(but not the same).  So I changed the way of Zcd instructions.

Regards,

Weiwei Li



r~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]