From fc35cd15087d9ff5c9a5ca6f47283f74b9639fc4 Mon Sep 17 00:00:00 2001 From: billow Date: Sun, 28 Apr 2024 09:00:34 +0800 Subject: [PATCH] [skip ci] PIC: fix pic18_reg_bindings --- librz/arch/isa/pic/pic18_il.inc | 6 ++++++ librz/arch/isa/pic/pic_pic18.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/librz/arch/isa/pic/pic18_il.inc b/librz/arch/isa/pic/pic18_il.inc index dbce1ed3794..0a668046250 100644 --- a/librz/arch/isa/pic/pic18_il.inc +++ b/librz/arch/isa/pic/pic18_il.inc @@ -454,8 +454,14 @@ static RzILOpEffect *pic18_il(Pic18ILContext *ctx) { #undef RS #undef VRS +static const char *pic18_reg_bindings[] = { + "_sram", + "_stack" +}; + static RzAnalysisILConfig *pic18_il_config( RZ_NONNULL RzAnalysis *analysis) { RzAnalysisILConfig *cfg = rz_analysis_il_config_new(32, false, 16); + cfg->reg_bindings = pic18_reg_bindings; return cfg; } diff --git a/librz/arch/isa/pic/pic_pic18.c b/librz/arch/isa/pic/pic_pic18.c index d4927c886cd..c70a9087571 100644 --- a/librz/arch/isa/pic/pic_pic18.c +++ b/librz/arch/isa/pic/pic_pic18.c @@ -229,8 +229,6 @@ static const char *pic18_SFRs[] = { [0xF82 - 0xF80] = "portc", [0xF81 - 0xF80] = "portb", [0xF80 - 0xF80] = "porta", - "_sram", - "_stack" }; static const char *pic18_GPRs[] = {