From 804b11a3ed37dd429de2e4ecf3a8892843d57e12 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 2 Mar 2015 04:00:27 -0500 Subject: arm: Correctly access the stack pointer in GDB We curently use INTREG_X31 instead of INTREG_SPX when accessing the stack pointer in GDB. gem5 normally uses INTREG_SPX to access the stack pointer, which gets mapped to the stack pointer corresponding (INTREG_SPn) to the current exception level. This changeset updates the GDB interface to use SPX instead of X31 (which is always zero) when transfering CPU state to gdb. --- src/arch/arm/remote_gdb.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/arch/arm/remote_gdb.hh') diff --git a/src/arch/arm/remote_gdb.hh b/src/arch/arm/remote_gdb.hh index 80a0bf1b1..56a50a133 100644 --- a/src/arch/arm/remote_gdb.hh +++ b/src/arch/arm/remote_gdb.hh @@ -68,6 +68,7 @@ enum { // AArch64 registers enum { GDB64_X0 = 0, + GDB64_SPX = 31, GDB64_PC = 32, GDB64_CPSR = 33, GDB64_V0 = 34, -- cgit v1.2.3