Tweaked debug output.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 10 Nov 2006 20:25:03 +0000 (15:25 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 10 Nov 2006 20:25:03 +0000 (15:25 -0500)
--HG--
extra : convert_revision : cd33b7c1ebdbefd42f18c1435b2519d06d9914a6

src/arch/sparc/intregfile.cc

index 0e313dc94b776b55963d257f4247ba217ac87d8c..358368e5f5142cdf5b6ad183956e617b69721dd8 100644 (file)
@@ -83,7 +83,7 @@ IntReg IntRegFile::readReg(int intReg)
     else if((intReg -= NumRegularIntRegs) < NumMicroIntRegs)
         val = microRegs[intReg];
     else
-        panic("Tried to read non-existant integer register\n");
+        panic("Tried to read non-existant integer register %d, %d\n", NumRegularIntRegs + NumMicroIntRegs + intReg, intReg);
 
     DPRINTF(Sparc, "Read register %d = 0x%x\n", intReg, val);
     return val;
@@ -123,7 +123,7 @@ void IntRegFile::setCWP(int cwp)
 
 void IntRegFile::setGlobals(int gl)
 {
-    DPRINTF(Sparc, "Now using %d globals", gl);
+    DPRINTF(Sparc, "Now using %d globals\n", gl);
 
     regView[Globals] = regGlobals[gl];
     offset[Globals] = RegGlobalOffset + gl * RegsPerFrame;