summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-03-29 15:57:11 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-03-29 15:57:11 -0400
commit8ca218cab5e7cd4584af9144859da64517f5e303 (patch)
tree0ed0bf0717b15dcf2ec1b5fae519d71dd7067d6f /src/arch
parent370b712360309cd7cd97f2583c98d6338a7d8c8a (diff)
downloadgem5-8ca218cab5e7cd4584af9144859da64517f5e303.tar.xz
get rid of CWP bounds warning...
--HG-- extra : convert_revision : 74df09341c091c2d6ca9b46c6a3521f22b48acf4
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/sparc/miscregfile.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/arch/sparc/miscregfile.cc b/src/arch/sparc/miscregfile.cc
index 5bd572d38..f511ef454 100644
--- 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: