summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorPalle Lyckegaard <palle@lyckegaard.dk>2015-11-16 04:58:39 -0600
committerPalle Lyckegaard <palle@lyckegaard.dk>2015-11-16 04:58:39 -0600
commita95e8ab8879a39b5d4a9c284ca4aaa15c81a46a0 (patch)
treef448e38ef6f53cc0acacf6517e336a1629ae95ac /src/arch
parente1385784f2cd059727d60ce88cf76ea0f9bec282 (diff)
downloadgem5-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.hh3
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
};