get rid of CWP bounds warning...
--HG-- extra : convert_revision : 74df09341c091c2d6ca9b46c6a3521f22b48acf4
This commit is contained in:
parent
370b712360
commit
8ca218cab5
1 changed files with 2 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue