diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-03-02 22:53:11 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-03-02 22:53:11 -0800 |
commit | 9d2650792fa41155773b22771acbabdb4fbb164a (patch) | |
tree | e5beba639942c7c2bd32fe7e9166b543a796a662 /util/statetrace/arch | |
parent | 3bcd77ddef91c204b6fceceaf6bd5c9362bf1f98 (diff) | |
download | gem5-9d2650792fa41155773b22771acbabdb4fbb164a.tar.xz |
Statetrace: Rename i386 to i686.
--HG--
rename : util/statetrace/arch/i386/tracechild.cc => util/statetrace/arch/i686/tracechild.cc
rename : util/statetrace/arch/i386/tracechild.hh => util/statetrace/arch/i686/tracechild.hh
Diffstat (limited to 'util/statetrace/arch')
-rw-r--r-- | util/statetrace/arch/i686/tracechild.cc (renamed from util/statetrace/arch/i386/tracechild.cc) | 14 | ||||
-rw-r--r-- | util/statetrace/arch/i686/tracechild.hh (renamed from util/statetrace/arch/i386/tracechild.hh) | 10 |
2 files changed, 12 insertions, 12 deletions
diff --git a/util/statetrace/arch/i386/tracechild.cc b/util/statetrace/arch/i686/tracechild.cc index 67223666c..0ac977b4a 100644 --- a/util/statetrace/arch/i386/tracechild.cc +++ b/util/statetrace/arch/i686/tracechild.cc @@ -33,12 +33,12 @@ #include <sys/ptrace.h> #include <stdint.h> -#include "arch/i386/tracechild.hh" +#include "arch/i686/tracechild.hh" using namespace std; int64_t -I386TraceChild::getRegs(user_regs_struct & myregs, int num) +I686TraceChild::getRegs(user_regs_struct & myregs, int num) { assert(num < numregs && num >= 0); switch (num) { @@ -69,7 +69,7 @@ I386TraceChild::getRegs(user_regs_struct & myregs, int num) } bool -I386TraceChild::update(int pid) +I686TraceChild::update(int pid) { oldregs = regs; if (ptrace(PTRACE_GETREGS, pid, 0, ®s) != 0) @@ -79,20 +79,20 @@ I386TraceChild::update(int pid) } } -I386TraceChild::I386TraceChild() +I686TraceChild::I686TraceChild() { for (unsigned int x = 0; x < numregs; x++) regDiffSinceUpdate[x] = false; } int64_t -I386TraceChild::getRegVal(int num) +I686TraceChild::getRegVal(int num) { return getRegs(regs, num); } int64_t -I386TraceChild::getOldRegVal(int num) +I686TraceChild::getOldRegVal(int num) { return getRegs(oldregs, num); } @@ -100,5 +100,5 @@ I386TraceChild::getOldRegVal(int num) TraceChild * genTraceChild() { - return new I386TraceChild; + return new I686TraceChild; } diff --git a/util/statetrace/arch/i386/tracechild.hh b/util/statetrace/arch/i686/tracechild.hh index 30c75afec..c21955506 100644 --- a/util/statetrace/arch/i386/tracechild.hh +++ b/util/statetrace/arch/i686/tracechild.hh @@ -28,8 +28,8 @@ * Authors: Gabe Black */ -#ifndef REGSTATE_I386_HH -#define REGSTATE_I386_HH +#ifndef REGSTATE_I686_HH +#define REGSTATE_I686_HH #include <sys/user.h> #include <sys/types.h> @@ -39,7 +39,7 @@ #include "base/tracechild.hh" -class I386TraceChild : public TraceChild +class I686TraceChild : public TraceChild { public: enum RegNum @@ -67,7 +67,7 @@ class I386TraceChild : public TraceChild public: - I386TraceChild(); + I686TraceChild(); int64_t getRegVal(int num); int64_t getOldRegVal(int num); @@ -76,7 +76,7 @@ class I386TraceChild : public TraceChild std::ostream & outputStartState(std::ostream & output) { - output << "Printing i386 initial state not yet implemented" + output << "Printing i686 initial state not yet implemented" << std::endl; return output; } |