get rid of CWP bounds warning...

--HG--
extra : convert_revision : 74df09341c091c2d6ca9b46c6a3521f22b48acf4
This commit is contained in:
Ali Saidi 2007-03-29 15:57:11 -04:00
parent 370b712360
commit 8ca218cab5

View 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: