summaryrefslogtreecommitdiffstats
path: root/gdb/dbug-rom.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dbug-rom.c')
-rw-r--r--gdb/dbug-rom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dbug-rom.c b/gdb/dbug-rom.c
index 298a28b55f..c37fbf3d37 100644
--- a/gdb/dbug-rom.c
+++ b/gdb/dbug-rom.c
@@ -51,12 +51,12 @@ dbug_supply_register (struct regcache *regcache, char *regname,
case 'S':
if (regname[1] != 'R')
return;
- regno = PS_REGNUM;
+ regno = gdbarch_ps_regnum (current_gdbarch);
break;
case 'P':
if (regname[1] != 'C')
return;
- regno = PC_REGNUM;
+ regno = gdbarch_pc_regnum (current_gdbarch);
break;
case 'D':
if (regname[1] < '0' || regname[1] > '7')
OpenPOWER on IntegriCloud