Fix pointer masking functionality for RISC-V
cover Fix pointer masking functionality for RISC-V
From: Alexey Baturo <[email protected]>
Hi,
This patch fixes a typo which leads to broken pointer masking functionality for RISC-V. Thanks.
Alexey Baturo (1):
target/riscv: Fix typo and restore Pointer Masking functionality for
RISC-V
target/riscv/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.30.2
PATCH 1/1 target/riscv: Fix typo and restore Pointer Masking functionality for RISC-V
From: Alexey Baturo <[email protected]>
Signed-off-by Alexey Baturo <[email protected]>
--- target/riscv/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/translate.c +1 -1
@@ -544,7 +544,7 @@ static TCGv get_address(DisasContext *ctx, int rs1, int imm)tcg_gen_addi_tl (addr, src1, imm);if (ctx->pm_mask_enabled) { -tcg_gen_and_tl (addr, addr, pm_mask); +tcg_gen_andc_tl (addr, addr, pm_mask); }else if (get_xl (ctx) ==MXL_RV32 ) {tcg_gen_ext32u_tl (addr, addr); }
Signature · 1 line
2.30.2
Re: [PATCH 1/1] target/riscv: Fix typo and restore Pointer Masking functionality for RISC-V
Quoted 4 lines · Alexey Baturo
From: Alexey Baturo <[email protected]>
Signed-off-by Alexey Baturo <[email protected]>
Fixes 4302bef9e178 ("target/riscv: Calculate address according to XLEN")
Reviewed-by Alistair Francis <[email protected]>
Alistair
Quoted 21 lines
--- target/riscv/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/riscv/translate.c +1
-2@@ -544,7 +544,7 @@ static TCGv get_address(DisasContext *ctx, int rs1, int imm)tcg_gen_addi_tl (addr, src1, imm);if (ctx->pm_mask_enabled) { -tcg_gen_and_tl (addr, addr, pm_mask); +tcg_gen_andc_tl (addr, addr, pm_mask); }else if (get_xl (ctx) ==MXL_RV32 ) {tcg_gen_ext32u_tl (addr, addr); } --2.30.2
Alistair Francis
AppliedRe: [PATCH 1/1] target/riscv: Fix typo and restore Pointer Masking functionality for RISC-V
In reply to Alexey BaturoQuoted 4 lines · Alexey Baturo
From: Alexey Baturo <[email protected]>
Signed-off-by Alexey Baturo <[email protected]>
Thanks!
Applied to riscv-to-apply.next
Alistair
Quoted 21 lines
--- target/riscv/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/riscv/translate.c +1
-2@@ -544,7 +544,7 @@ static TCGv get_address(DisasContext *ctx, int rs1, int imm)tcg_gen_addi_tl (addr, src1, imm);if (ctx->pm_mask_enabled) { -tcg_gen_and_tl (addr, addr, pm_mask); +tcg_gen_andc_tl (addr, addr, pm_mask); }else if (get_xl (ctx) ==MXL_RV32 ) {tcg_gen_ext32u_tl (addr, addr); } --2.30.2