diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2023-02-20 10:56:12 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-03-01 16:59:50 -0800 |
commit | b7fa70e2afa6c784f21f749572ce78f6467666fd (patch) | |
tree | 1249ce7c9ad96c60fe98cb434c0754444e2d2ffe | |
parent | ae9c326fb6f9b580b18de9bce1438229bfaa5215 (diff) | |
download | qemu-b7fa70e2afa6c784f21f749572ce78f6467666fd.zip qemu-b7fa70e2afa6c784f21f749572ce78f6467666fd.tar.gz qemu-b7fa70e2afa6c784f21f749572ce78f6467666fd.tar.bz2 |
RISC-V: XTheadMemPair: Remove register restrictions for store-pair
The XTheadMemPair does not define any restrictions for store-pair
instructions (th.sdd or th.swd). However, the current code enforces
the restrictions that are required for load-pair instructions.
Let's fix this by removing this code.
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Message-ID: <20230220095612.1529031-1-christoph.muellner@vrull.eu>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
-rw-r--r-- | target/riscv/insn_trans/trans_xthead.c.inc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/target/riscv/insn_trans/trans_xthead.c.inc b/target/riscv/insn_trans/trans_xthead.c.inc index be87c34..cf1731b 100644 --- a/target/riscv/insn_trans/trans_xthead.c.inc +++ b/target/riscv/insn_trans/trans_xthead.c.inc @@ -980,10 +980,6 @@ static bool trans_th_lwud(DisasContext *ctx, arg_th_pair *a) static bool gen_storepair_tl(DisasContext *ctx, arg_th_pair *a, MemOp memop, int shamt) { - if (a->rs == a->rd1 || a->rs == a->rd2 || a->rd1 == a->rd2) { - return false; - } - TCGv data1 = get_gpr(ctx, a->rd1, EXT_NONE); TCGv data2 = get_gpr(ctx, a->rd2, EXT_NONE); TCGv addr1 = tcg_temp_new(); |