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 e5f2ed3 commit fc35cd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions librz/arch/isa/pic/pic18_il.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 0 additions & 2 deletions librz/arch/isa/pic/pic_pic18.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down

0 comments on commit fc35cd1

Please sign in to comment.