From: Gabe Black Date: Thu, 8 Mar 2007 05:55:16 +0000 (-0500) Subject: Fixed an off-by-one error. X-Git-Tag: m5_2.0_beta3~125 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c40d95e4c470ba585316d85cb67d36f5ca9e0bd0;p=gem5.git Fixed an off-by-one error. --HG-- extra : convert_revision : 498fef18cf339cabc2c00e4758bc8a0da857daca --- 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: