Skip to content

Commit

Permalink
[skip ci] PIC: fix pic18_reg_bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Apr 28, 2024
1 parent fc35cd1 commit d1735f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions librz/arch/isa/pic/pic18_il.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ static RzILOpPure *varg_mm(const HtSU *mm, const char *v) {
if (RZ_STR_EQ(v, "tblptr")) {
return APPEND(varg_mm(mm, "tblptru"), APPEND(varg_mm(mm, "tblptrh"), varg_mm(mm, "tblptrl")));
}
rz_warn_if_reached();
return NULL;
return VARG(v);
}

static RzILOpEffect *setg_mm(const HtSU *mm, const char *v, RzILOpPure *x) {
Expand All @@ -47,8 +46,7 @@ static RzILOpEffect *setg_mm(const HtSU *mm, const char *v, RzILOpPure *x) {
setg_mm(mm, "tblptrh", UNSIGNED(8, SHIFTR0(VARL("__tblptr"), U8(8)))),
setg_mm(mm, "tblptru", UNSIGNED(8, SHIFTR0(VARL("__tblptr"), U8(16)))));
}
rz_warn_if_reached();
return NULL;
return SETG(v, x);
}

#undef VARG
Expand Down

0 comments on commit d1735f7

Please sign in to comment.