Skip to content

Commit

Permalink
fix: tricore il
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Nov 2, 2024
1 parent 1a9d436 commit 8972dfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions librz/arch/isa/tricore/tricore_il.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ static RzAnalysisLiftedILOp ld_sc(RzAsmTriCoreContext *ctx, ut8 B, RzILOpPure *(
}
static RzAnalysisLiftedILOp st_sc(RzAsmTriCoreContext *ctx, ut8 B) {
TriCoreMem m = M(0);
return STOREW(ADD(VARG(m.reg), U32((unsigned long long)(B / 8) * m.disp)), UNSIGNED(B, VARG(R(1))));
return STOREW(ADD(VARG(m.reg), U32((ut64)B / 8 * m.disp)), UNSIGNED(B, VARG(R(1))));
}

static RzAnalysisLiftedILOp ld_slr(RzAsmTriCoreContext *ctx, ut8 B, RzILOpPure *(*f)(RzILOpPure *, ut32)) {
Expand Down Expand Up @@ -1158,7 +1158,7 @@ static RzAnalysisLiftedILOp st_sro(RzAsmTriCoreContext *ctx, ut8 B) {
TriCoreMem m = M(0);
const char *b = m.reg;
unsigned const4 = m.disp;
return STOREW(ADD(VARG(b), U32(B / 8 * const4)), UNSIGNED(B, VARG("a15")));
return STOREW(ADD(VARG(b), U32((ut64)B / 8 * const4)), UNSIGNED(B, VARG("a15")));
}

static RzAnalysisLiftedILOp st_ssr(RzAsmTriCoreContext *ctx, ut8 B) {
Expand All @@ -1175,7 +1175,7 @@ static RzAnalysisLiftedILOp st_ssr_post_incr(RzAsmTriCoreContext *ctx, ut8 B) {
}
static RzAnalysisLiftedILOp st_ssro(RzAsmTriCoreContext *ctx, ut8 B) {
TriCoreMem m = M(0);
return STOREW(ADD(VARG(m.reg), U32(B / 8 * m.disp)), UNSIGNED(B, VARG(R(1))));
return STOREW(ADD(VARG(m.reg), U32((ut64)B / 8 * m.disp)), UNSIGNED(B, VARG(R(1))));
}

static RzAnalysisLiftedILOp load_lower_context() {
Expand Down

0 comments on commit 8972dfc

Please sign in to comment.