From: Ali Saidi Date: Thu, 29 Mar 2007 19:57:11 +0000 (-0400) Subject: get rid of CWP bounds warning... X-Git-Tag: m5_2.0_beta3~58^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ca218cab5e7cd4584af9144859da64517f5e303;p=gem5.git get rid of CWP bounds warning... --HG-- extra : convert_revision : 74df09341c091c2d6ca9b46c6a3521f22b48acf4 --- 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: