summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-09-03 02:02:56 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-09-03 02:02:56 -0400
commit14cc9baba59a7f93187933efd15f9cd1b94c25ed (patch)
treeac0cd1d3cb19b06a949070916040f806d12ba639 /src/cpu
parentfa0fca32273444fb2451397c255b0a8e0763147a (diff)
downloadgem5-14cc9baba59a7f93187933efd15f9cd1b94c25ed.tar.xz
A quick fix to isolate the tracing code to SPARC
--HG-- extra : convert_revision : 90c77f4d01101cad55f60d528b2a8be92d2f9aba
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/exetrace.cc26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/cpu/exetrace.cc b/src/cpu/exetrace.cc
index ad802eba2..8b1e60aea 100644
--- a/src/cpu/exetrace.cc
+++ b/src/cpu/exetrace.cc
@@ -42,6 +42,9 @@
#include "sim/param.hh"
#include "sim/system.hh"
+//XXX This is temporary
+#include "arch/isa_specific.hh"
+
using namespace std;
using namespace TheISA;
@@ -54,18 +57,20 @@ using namespace TheISA;
void
Trace::InstRecord::dump(ostream &outs)
{
- static uint64_t regs[32] = {
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0};
- static uint64_t ccr = 0;
- static uint64_t y = 0;
- static uint64_t floats[32];
- uint64_t newVal;
- static const char * prefixes[4] = {"G", "O", "L", "I"};
if (flags[PRINT_REG_DELTA])
{
+#if THE_ISA == SPARC_ISA
+ static uint64_t regs[32] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0};
+ static uint64_t ccr = 0;
+ static uint64_t y = 0;
+ static uint64_t floats[32];
+ uint64_t newVal;
+ static const char * prefixes[4] = {"G", "O", "L", "I"};
+
char buf[256];
sprintf(buf, "PC = 0x%016llx", thread->readNextPC());
outs << buf;
@@ -110,6 +115,7 @@ Trace::InstRecord::dump(ostream &outs)
}
}
outs << endl;
+#endif
}
else if (flags[INTEL_FORMAT]) {
#if FULL_SYSTEM