From a95e8ab8879a39b5d4a9c284ca4aaa15c81a46a0 Mon Sep 17 00:00:00 2001 From: Palle Lyckegaard Date: Mon, 16 Nov 2015 04:58:39 -0600 Subject: [PATCH] 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 --- src/arch/sparc/remote_gdb.hh | 3 +-- 1 file changed, 1 insertion(+), 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 }; -- 2.30.2