Skip to content

Commit 26be46b

Browse files
committed
fix: zero-extend tricore ld.bu pre-increment
Signed-off-by: Jvle <keke.oerv@isrc.iscas.ac.cn>
1 parent e04c16c commit 26be46b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qemu/target/tricore/translate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5293,7 +5293,7 @@ static void decode_bo_addrmode_ld_post_pre_base(DisasContext *ctx)
52935293
tcg_gen_addi_tl(tcg_ctx, tcg_ctx->cpu_gpr_a[r2], tcg_ctx->cpu_gpr_a[r2], off10);
52945294
break;
52955295
case OPC2_32_BO_LD_BU_PREINC:
5296-
gen_ld_preincr(ctx, tcg_ctx->cpu_gpr_d[r1], tcg_ctx->cpu_gpr_a[r2], off10, MO_SB);
5296+
gen_ld_preincr(ctx, tcg_ctx->cpu_gpr_d[r1], tcg_ctx->cpu_gpr_a[r2], off10, MO_UB);
52975297
break;
52985298
case OPC2_32_BO_LD_D_SHORTOFF:
52995299
CHECK_REG_PAIR(r1);

0 commit comments

Comments
 (0)