summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-03-08 00:55:16 -0500
committerGabe Black <gblack@eecs.umich.edu>2007-03-08 00:55:16 -0500
commitc40d95e4c470ba585316d85cb67d36f5ca9e0bd0 (patch)
treef5f74e1eeb8174e6e17e79f4be29cc64918354ef /src
parent46051c5f651c8a95dde7bb7eb80e86a48749af45 (diff)
downloadgem5-c40d95e4c470ba585316d85cb67d36f5ca9e0bd0.tar.xz
Fixed an off-by-one error.
--HG-- extra : convert_revision : 498fef18cf339cabc2c00e4758bc8a0da857daca
Diffstat (limited to 'src')
-rw-r--r--src/arch/sparc/intregfile.hh2
1 files changed, 1 insertions, 1 deletions
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: