|
From: | Richard Henderson |
Subject: | Re: [PATCH v10 03/16] target/riscv: clwz must ignore high bits (use shift-left & changed logic) |
Date: | Fri, 10 Sep 2021 15:57:47 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 9/10/21 3:47 PM, Philipp Tomsich wrote:
Just wondering regarding the UXL-comment: the clzw instruction will be an illegal encoding for RV32 (the w-form instructions are present on RV64 only), so it should never be encountered in a RV32 instruction stream.
Correct.
Did you mean that clz (the instruction operating on xlen-registers) would have ctx->w set for RV32 executing on RV64 ... or am I missing something fundamental?
Yes.Or, as some test patches I was planning to post this weekend, replacing "w" as boolean with an "operation length" (ol) as an enum of MXL_RV*, so that we can represent "d" operations on RV128 with the same mechanism.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |