diff options
author | Palle Lyckegaard <palle@lyckegaard.dk> | 2015-11-16 04:58:39 -0600 |
---|---|---|
committer | Palle Lyckegaard <palle@lyckegaard.dk> | 2015-11-16 04:58:39 -0600 |
commit | a95e8ab8879a39b5d4a9c284ca4aaa15c81a46a0 (patch) | |
tree | f448e38ef6f53cc0acacf6517e336a1629ae95ac /src/arch | |
parent | e1385784f2cd059727d60ce88cf76ea0f9bec282 (diff) | |
download | gem5-a95e8ab8879a39b5d4a9c284ca4aaa15c81a46a0.tar.xz |
sparc: Make remote debugging with gdb work
Remove sparc V8 TBR register from list of registers since it is not part of
sparc V9. This brings the number of registers in sync with what gdb expects
Without this patch gdb complains about receoved packet too long.
with this patch gdb is able to work properly with gem5 for remote debugging.
Note: gdb is version 7.8
Note: gdb is configured with --target=sparc64-sun-solaris2.8
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/sparc/remote_gdb.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/sparc/remote_gdb.hh b/src/arch/sparc/remote_gdb.hh index 46aa03a93..6531e0f61 100644 --- a/src/arch/sparc/remote_gdb.hh +++ b/src/arch/sparc/remote_gdb.hh @@ -53,8 +53,7 @@ class RemoteGDB : public BaseRemoteGDB RegF0 = 32, RegPc = 64, RegNpc, RegState, RegFsr, RegFprs, RegY, /*RegState contains data in same format as tstate */ - Reg32Y = 64, Reg32Psr = 65, Reg32Tbr = 66, Reg32Pc = 67, - Reg32Npc = 68, Reg32Fsr = 69, Reg32Csr = 70, + Reg32Y = 64, Reg32Psr, Reg32Pc, Reg32Npc, Reg32Fsr, Reg32Csr, NumGDBRegs }; |