From c40d95e4c470ba585316d85cb67d36f5ca9e0bd0 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 8 Mar 2007 00:55:16 -0500 Subject: [PATCH] Fixed an off-by-one error. --HG-- extra : convert_revision : 498fef18cf339cabc2c00e4758bc8a0da857daca --- src/arch/sparc/intregfile.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/sparc/intregfile.hh b/src/arch/sparc/intregfile.hh index 665c7aa31..83ef1d17b 100644 --- a/src/arch/sparc/intregfile.hh +++ b/src/arch/sparc/intregfile.hh @@ -82,7 +82,7 @@ namespace SparcISA IntReg * regView[NumFrames]; static const int RegGlobalOffset = 0; - static const int FrameOffset = MaxGL * RegsPerFrame; + static const int FrameOffset = (MaxGL + 1) * RegsPerFrame; int offset[NumFrames]; public: -- 2.30.2