get rid of CWP bounds warning...
authorAli Saidi <saidi@eecs.umich.edu>
Thu, 29 Mar 2007 19:57:11 +0000 (15:57 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Thu, 29 Mar 2007 19:57:11 +0000 (15:57 -0400)
--HG--
extra : convert_revision : 74df09341c091c2d6ca9b46c6a3521f22b48acf4

src/arch/sparc/miscregfile.cc

index 5bd572d38740db6a7ad2ff47d4f97b96cbd6f237..f511ef45458e1ce8347585135c5790111838edc4 100644 (file)
@@ -647,11 +647,9 @@ void MiscRegFile::setReg(int miscReg,
         return;
       case MISCREG_CWP:
         new_val = val >= NWindows ? NWindows - 1 : val;
-        if (val >= NWindows) {
+        if (val >= NWindows)
             new_val = NWindows - 1;
-            warn("Attempted to set the CWP to %d with NWindows = %d\n",
-                    val, NWindows);
-        }
+
         tc->changeRegFileContext(CONTEXT_CWP, new_val);
         break;
       case MISCREG_GL: