diff options
-rw-r--r-- | sim/rl78/ChangeLog | 5 | ||||
-rw-r--r-- | sim/rl78/cpu.c | 2 | ||||
-rw-r--r-- | sim/rl78/cpu.h | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/sim/rl78/ChangeLog b/sim/rl78/ChangeLog index 8944ad4..ec31614 100644 --- a/sim/rl78/ChangeLog +++ b/sim/rl78/ChangeLog @@ -1,5 +1,10 @@ 2021-01-11 Mike Frysinger <vapier@gentoo.org> + * cpu.h (pc): Change to an extern. + * cpu.c (pc): Define. + +2021-01-11 Mike Frysinger <vapier@gentoo.org> + * config.in, configure: Regenerate. 2021-01-09 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/rl78/cpu.c b/sim/rl78/cpu.c index a1b8543..a38d6f6 100644 --- a/sim/rl78/cpu.c +++ b/sim/rl78/cpu.c @@ -36,6 +36,8 @@ int rl78_g10_mode = 0; int g13_multiply = 0; int g14_multiply = 0; +SI pc; + #define REGISTER_ADDRESS 0xffee0 typedef struct { diff --git a/sim/rl78/cpu.h b/sim/rl78/cpu.h index 4629e0b..a21de32 100644 --- a/sim/rl78/cpu.h +++ b/sim/rl78/cpu.h @@ -39,7 +39,7 @@ extern int rl78_in_gdb; SI get_reg (RL78_Register); SI set_reg (RL78_Register, SI); -SI pc; +extern SI pc; extern const char * const reg_names[]; |