From d1735f7a813d9d00e9f907fd13004fded88c5133 Mon Sep 17 00:00:00 2001 From: billow Date: Sun, 28 Apr 2024 09:01:29 +0800 Subject: [PATCH] [skip ci] PIC: fix pic18_reg_bindings --- librz/arch/isa/pic/pic18_il.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/librz/arch/isa/pic/pic18_il.inc b/librz/arch/isa/pic/pic18_il.inc index 0a668046250..e7fd0a1fd21 100644 --- a/librz/arch/isa/pic/pic18_il.inc +++ b/librz/arch/isa/pic/pic18_il.inc @@ -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) { @@ -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