summaryrefslogtreecommitdiff
path: root/util/statetrace/arch/tracechild_amd64.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-03-02 22:53:10 -0800
committerGabe Black <gblack@eecs.umich.edu>2011-03-02 22:53:10 -0800
commit43eda1f28516ca9534057691adf22df7c2911e44 (patch)
treeef07aa55ac460c50f1235dc4e17616e4426ac5f2 /util/statetrace/arch/tracechild_amd64.hh
parent3c19e45a68db15dc450f07a77cf0083aa40270cd (diff)
downloadgem5-43eda1f28516ca9534057691adf22df7c2911e44.tar.xz
Statetrace: Get rid of explicit register name handling.
Diffstat (limited to 'util/statetrace/arch/tracechild_amd64.hh')
-rw-r--r--util/statetrace/arch/tracechild_amd64.hh24
1 files changed, 0 insertions, 24 deletions
diff --git a/util/statetrace/arch/tracechild_amd64.hh b/util/statetrace/arch/tracechild_amd64.hh
index 6ed90d292..256be5766 100644
--- a/util/statetrace/arch/tracechild_amd64.hh
+++ b/util/statetrace/arch/tracechild_amd64.hh
@@ -87,8 +87,6 @@ class AMD64TraceChild : public TraceChild
numregs
};
private:
- char printBuffer [256];
- static const char * regNames[numregs];
int64_t getRegs(user_regs_struct & myregs,
user_fpregs_struct &myfpregs,int num);
user_regs_struct regs;
@@ -108,34 +106,12 @@ class AMD64TraceChild : public TraceChild
bool sendState(int socket);
- int
- getNumRegs()
- {
- return numregs;
- }
-
- bool
- diffSinceUpdate(int num)
- {
- assert(num < numregs && num >= 0);
- return regDiffSinceUpdate[num];
- }
-
- std::string
- getRegName(int num)
- {
- assert(num < numregs && num >= 0);
- return regNames[num];
- }
-
int64_t getRegVal(int num);
int64_t getOldRegVal(int num);
uint64_t getPC() {return getRegVal(RIP);}
uint64_t getSP() {return getRegVal(RSP);}
std::ostream & outputStartState(std::ostream & output);
- char * printReg(int num);
-
bool step();
};