[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/12] target/tricore: Fix OPC2_32_BO_LD_BU_PREINC
From: |
Bastian Koppelmann |
Subject: |
[PULL 09/12] target/tricore: Fix OPC2_32_BO_LD_BU_PREINC |
Date: |
Wed, 8 Feb 2023 10:14:19 +0100 |
we were sign extending the result of the load, while the instruction
clearly states that the result should be unsigned.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <20230202120432.1268-10-kbastian@mail.uni-paderborn.de>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
---
target/tricore/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index 8bf78b46d0..ab386cef50 100644
--- a/target/tricore/translate.c
+++ b/target/tricore/translate.c
@@ -4964,7 +4964,7 @@ static void
decode_bo_addrmode_ld_post_pre_base(DisasContext *ctx)
tcg_gen_addi_tl(cpu_gpr_a[r2], cpu_gpr_a[r2], off10);
break;
case OPC2_32_BO_LD_BU_PREINC:
- gen_ld_preincr(ctx, cpu_gpr_d[r1], cpu_gpr_a[r2], off10, MO_SB);
+ gen_ld_preincr(ctx, cpu_gpr_d[r1], cpu_gpr_a[r2], off10, MO_UB);
break;
case OPC2_32_BO_LD_D_SHORTOFF:
CHECK_REG_PAIR(r1);
--
2.39.1
- [PULL 00/12] tricore queue, Bastian Koppelmann, 2023/02/08
- [PULL 01/12] target/tricore: Fix OPC2_32_RCRW_IMASK translation, Bastian Koppelmann, 2023/02/08
- [PULL 02/12] tests/tcg/tricore: Add test for OPC2_32_RCRW_IMASK, Bastian Koppelmann, 2023/02/08
- [PULL 04/12] tests/tcg/tricore: Add test for OPC2_32_RCRW_INSERT, Bastian Koppelmann, 2023/02/08
- [PULL 03/12] target/tricore: Fix OPC2_32_RCRW_INSERT translation, Bastian Koppelmann, 2023/02/08
- [PULL 05/12] target/tricore: Fix RRPW_DEXTR, Bastian Koppelmann, 2023/02/08
- [PULL 06/12] tests/tcg/tricore: Add tests for RRPW_DEXTR, Bastian Koppelmann, 2023/02/08
- [PULL 07/12] target/tricore: Fix OPC2_32_RRRR_DEXTR, Bastian Koppelmann, 2023/02/08
- [PULL 08/12] tests/tcg/tricore: Add OPC2_32_RRRR_DEXTR tests, Bastian Koppelmann, 2023/02/08
- [PULL 10/12] tests/tcg/tricore: Add LD.BU tests, Bastian Koppelmann, 2023/02/08
- [PULL 09/12] target/tricore: Fix OPC2_32_BO_LD_BU_PREINC,
Bastian Koppelmann <=
- [PULL 11/12] target/tricore: Fix OPC1_16_SRO_LD_H translation, Bastian Koppelmann, 2023/02/08
- [PULL 12/12] tests/tcg/tricore: Add test for ld.h, Bastian Koppelmann, 2023/02/08
- Re: [PULL 00/12] tricore queue, Peter Maydell, 2023/02/09