diff options
Diffstat (limited to 'gdb/m32r-rom.c')
-rw-r--r-- | gdb/m32r-rom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c index 4e690c0..efed449 100644 --- a/gdb/m32r-rom.c +++ b/gdb/m32r-rom.c @@ -276,9 +276,11 @@ m32r_supply_register (struct regcache *regcache, char *regname, stackmode = psw & 0x80; if (regno == SPI_REGNUM && !stackmode) /* SP == SPI */ - monitor_supply_register (regcache, SP_REGNUM, val); + monitor_supply_register (regcache, + gdbarch_sp_regnum (current_gdbarch), val); else if (regno == SPU_REGNUM && stackmode) /* SP == SPU */ - monitor_supply_register (regcache, SP_REGNUM, val); + monitor_supply_register (regcache, + gdbarch_sp_regnum (current_gdbarch), val); } } } |