summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-02-25 10:21:33 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-02-25 10:21:33 -0800
commit88ee7d4c32854608a9887ecbd60139dc20ab1974 (patch)
tree8c188b9c7a72fe16caa59b61c81542606a97c811 /src
parent7aa875f4f3598c8ca6e3ba8946cf6eb3697a7696 (diff)
downloadgem5-88ee7d4c32854608a9887ecbd60139dc20ab1974.tar.xz
SPARC: Add a traceflag for register windows.
Diffstat (limited to 'src')
-rw-r--r--src/arch/sparc/SConscript1
-rw-r--r--src/arch/sparc/intregfile.cc6
-rw-r--r--src/arch/sparc/regfile.cc4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/arch/sparc/SConscript b/src/arch/sparc/SConscript
index 148277358..940cf2076 100644
--- a/src/arch/sparc/SConscript
+++ b/src/arch/sparc/SConscript
@@ -45,6 +45,7 @@ if env['TARGET_ISA'] == 'sparc':
SimObject('SparcTLB.py')
TraceFlag('Sparc', "Generic SPARC ISA stuff")
+ TraceFlag('RegisterWindows', "Register window manipulation")
if env['FULL_SYSTEM']:
SimObject('SparcSystem.py')
diff --git a/src/arch/sparc/intregfile.cc b/src/arch/sparc/intregfile.cc
index 39a613a0d..6419f0f93 100644
--- a/src/arch/sparc/intregfile.cc
+++ b/src/arch/sparc/intregfile.cc
@@ -55,7 +55,7 @@ int IntRegFile::flattenIndex(int reg)
{
int flatIndex = offset[reg >> FrameOffsetBits]
| (reg & FrameOffsetMask);
- DPRINTF(Sparc, "Flattened index %d into %d.\n", reg, flatIndex);
+ DPRINTF(RegisterWindows, "Flattened index %d into %d.\n", reg, flatIndex);
return flatIndex;
}
@@ -135,12 +135,12 @@ void IntRegFile::setCWP(int cwp)
regView[Locals] = regSegments[index+1];
regView[Inputs] = regSegments[(index+2) % (NWindows * 2)];
- DPRINTF(Sparc, "Changed the CWP value to %d\n", cwp);
+ DPRINTF(RegisterWindows, "Changed the CWP value to %d\n", cwp);
}
void IntRegFile::setGlobals(int gl)
{
- DPRINTF(Sparc, "Now using %d globals\n", gl);
+ DPRINTF(RegisterWindows, "Now using %d globals\n", gl);
regView[Globals] = regGlobals[gl];
offset[Globals] = RegGlobalOffset + gl * RegsPerFrame;
diff --git a/src/arch/sparc/regfile.cc b/src/arch/sparc/regfile.cc
index f390be508..1c172a4d5 100644
--- a/src/arch/sparc/regfile.cc
+++ b/src/arch/sparc/regfile.cc
@@ -155,7 +155,7 @@ int SparcISA::flattenIntIndex(ThreadContext * tc, int reg)
{
int gl = tc->readMiscRegNoEffect(MISCREG_GL);
int cwp = tc->readMiscRegNoEffect(MISCREG_CWP);
- //DPRINTF(Sparc, "Global Level = %d, Current Window Pointer = %d\n", gl, cwp);
+ //DPRINTF(RegisterWindows, "Global Level = %d, Current Window Pointer = %d\n", gl, cwp);
int newReg;
//The total number of global registers
int numGlobals = (MaxGL + 1) * 8;
@@ -214,7 +214,7 @@ int SparcISA::flattenIntIndex(ThreadContext * tc, int reg)
}
else
panic("Tried to flatten invalid register index %d!\n", reg);
- DPRINTF(Sparc, "Flattened register %d to %d.\n", reg, newReg);
+ DPRINTF(RegisterWindows, "Flattened register %d to %d.\n", reg, newReg);
return newReg;
//return intRegFile.flattenIndex(reg);
}