From: Palle Lyckegaard Date: Mon, 16 Nov 2015 10:58:39 +0000 (-0600) Subject: sparc: Make remote debugging with gdb work X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a95e8ab8879a39b5d4a9c284ca4aaa15c81a46a0;p=gem5.git 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 --- 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 };