From 8ca218cab5e7cd4584af9144859da64517f5e303 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 29 Mar 2007 15:57:11 -0400 Subject: [PATCH] get rid of CWP bounds warning... --HG-- extra : convert_revision : 74df09341c091c2d6ca9b46c6a3521f22b48acf4 --- src/arch/sparc/miscregfile.cc | 6 ++---- 1 file 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: -- 2.30.2