summaryrefslogtreecommitdiff
path: root/src/arch/sparc/nativetrace.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-07-25 15:14:00 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-07-25 15:14:00 -0700
commitef4e8b04a657fe113d01b0bd3cac8871848a185d (patch)
treefe938e90445ac39710b810a89d65bef893a5305f /src/arch/sparc/nativetrace.cc
parent44f80e7ca5dd404628f07d00a01aaf2f0c604276 (diff)
downloadgem5-ef4e8b04a657fe113d01b0bd3cac8871848a185d.tar.xz
SPARC: Fix a minor compile bug in native trace on gcc > 4.1.
Diffstat (limited to 'src/arch/sparc/nativetrace.cc')
-rw-r--r--src/arch/sparc/nativetrace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/sparc/nativetrace.cc b/src/arch/sparc/nativetrace.cc
index 6e894e8df..02d4f4dbf 100644
--- a/src/arch/sparc/nativetrace.cc
+++ b/src/arch/sparc/nativetrace.cc
@@ -36,7 +36,7 @@
namespace Trace {
-static char *intRegNames[SparcISA::NumIntArchRegs] = {
+static const char *intRegNames[SparcISA::NumIntArchRegs] = {
//Global registers
"g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7",
//Output registers
@@ -58,7 +58,7 @@ Trace::SparcNativeTrace::check(NativeTraceRecord *record)
// I doubt a real SPARC will describe more integer registers than this.
assert(SparcISA::NumIntArchRegs == 32);
- char **regName = intRegNames;
+ const char **regName = intRegNames;
for (int i = 0; i < SparcISA::NumIntArchRegs; i++) {
regVal = tc->readIntReg(i);
read(&realRegVal, sizeof(realRegVal));