summaryrefslogtreecommitdiff
path: root/src/arch/sparc/remote_gdb.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-11-11 02:03:58 -0800
committerGabe Black <gblack@eecs.umich.edu>2010-11-11 02:03:58 -0800
commitcdc585e0e8ceb305de83053c488ba041367b7cd6 (patch)
treeea3342231f3fdcbe52e3603294bfc46f072aaef7 /src/arch/sparc/remote_gdb.hh
parent0b7967d606cdda184df8df1446852e4aac93331d (diff)
downloadgem5-cdc585e0e8ceb305de83053c488ba041367b7cd6.tar.xz
SPARC: Clean up some historical style issues.
Diffstat (limited to 'src/arch/sparc/remote_gdb.hh')
-rw-r--r--src/arch/sparc/remote_gdb.hh46
1 files changed, 24 insertions, 22 deletions
diff --git a/src/arch/sparc/remote_gdb.hh b/src/arch/sparc/remote_gdb.hh
index 47e29ac02..06f6b3896 100644
--- a/src/arch/sparc/remote_gdb.hh
+++ b/src/arch/sparc/remote_gdb.hh
@@ -44,34 +44,36 @@ class PhysicalMemory;
namespace SparcISA
{
- class RemoteGDB : public BaseRemoteGDB
+
+class RemoteGDB : public BaseRemoteGDB
+{
+ protected:
+ enum RegisterConstants
{
- protected:
- enum RegisterConstants
- {
- RegG0 = 0, RegO0 = 8, RegL0 = 16, RegI0 = 24,
- 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,
- NumGDBRegs
- };
+ RegG0 = 0, RegO0 = 8, RegL0 = 16, RegI0 = 24,
+ 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,
+ NumGDBRegs
+ };
- public:
- RemoteGDB(System *system, ThreadContext *context);
+ public:
+ RemoteGDB(System *system, ThreadContext *context);
- bool acc(Addr addr, size_t len);
+ bool acc(Addr addr, size_t len);
- protected:
- void getregs();
- void setregs();
+ protected:
+ void getregs();
+ void setregs();
- void clearSingleStep();
- void setSingleStep();
+ void clearSingleStep();
+ void setSingleStep();
+
+ Addr nextBkpt;
+};
- Addr nextBkpt;
- };
}
#endif /* __ARCH_SPARC_REMOTE_GDB_H__ */