aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-vxsparc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-vxsparc.c')
-rw-r--r--gdb/remote-vxsparc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote-vxsparc.c b/gdb/remote-vxsparc.c
index 014f1d4..294e940 100644
--- a/gdb/remote-vxsparc.c
+++ b/gdb/remote-vxsparc.c
@@ -102,7 +102,7 @@ vx_read_register (int regno)
(FRAME_FIND_SAVED_REGS, in particular, depends on this). */
sp = extract_address (&registers[REGISTER_BYTE (SP_REGNUM)],
- REGISTER_RAW_SIZE (CORE_ADDR));
+ REGISTER_RAW_SIZE (SP_REGNUM));
write_memory (sp, &registers[REGISTER_BYTE (L0_REGNUM)],
16 * REGISTER_RAW_SIZE (L0_REGNUM));
@@ -173,7 +173,7 @@ vx_write_register (int regno)
if (regno < 0 || (L0_REGNUM <= regno && regno <= I7_REGNUM))
{
sp = extract_address (&registers[REGISTER_BYTE (SP_REGNUM)],
- REGISTER_RAW_SIZE (CORE_ADDR));
+ REGISTER_RAW_SIZE (SP_REGNUM));
write_memory (sp, &registers[REGISTER_BYTE (L0_REGNUM)],
16 * REGISTER_RAW_SIZE (L0_REGNUM));
}