diff options
Diffstat (limited to 'sim/mcore/interp.c')
-rw-r--r-- | sim/mcore/interp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c index 5807f5de4ec..003f6976f92 100644 --- a/sim/mcore/interp.c +++ b/sim/mcore/interp.c @@ -118,8 +118,8 @@ union word asints [1]; /* but accessed larger... */ } cpu; -#define LAST_VALID_CREG 12 /* only 0..12 implemented */ -#define NUM_MCORE_REGS (16 + 16 + LAST_VALID_CREG) +#define LAST_VALID_CREG 32 /* only 0..12 implemented */ +#define NUM_MCORE_REGS (16 + 16 + LAST_VALID_CREG + 1) int memcycles = 1; @@ -840,6 +840,7 @@ sim_resume (sd, step, siggnal) { case 0x0: /* bkpt */ cpu.asregs.exception = SIGTRAP; + pc -= 2; break; case 0x1: /* sync */ |