projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
370b712
)
get rid of CWP bounds warning...
author
Ali Saidi
<saidi@eecs.umich.edu>
Thu, 29 Mar 2007 19:57:11 +0000
(15:57 -0400)
committer
Ali 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
patch
|
blob
|
history
diff --git
a/src/arch/sparc/miscregfile.cc
b/src/arch/sparc/miscregfile.cc
index 5bd572d38740db6a7ad2ff47d4f97b96cbd6f237..f511ef45458e1ce8347585135c5790111838edc4 100644
(file)
--- a/
src/arch/sparc/miscregfile.cc
+++ b/
src/arch/sparc/miscregfile.cc
@@
-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: