summaryrefslogtreecommitdiff
path: root/src/arch/sparc/intregfile.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/sparc/intregfile.hh')
-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 716d45a65..665c7aa31 100644
--- a/src/arch/sparc/intregfile.hh
+++ b/src/arch/sparc/intregfile.hh
@@ -48,7 +48,7 @@ namespace SparcISA
std::string getIntRegName(RegIndex);
const int NumIntArchRegs = 32;
- const int NumIntRegs = MaxGL * 8 + NWindows * 16 + NumMicroIntRegs;
+ const int NumIntRegs = (MaxGL + 1) * 8 + NWindows * 16 + NumMicroIntRegs;
class IntRegFile
{