diff options
author | Korey Sewell <ksewell@umich.edu> | 2009-04-18 10:42:28 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2009-04-18 10:42:28 -0400 |
commit | cc9e834e931ff70b683b8a7010269d32c0de20fd (patch) | |
tree | b0330e7099d3df3cf0708b00c45d89b9ffaf26e8 /src/arch/mips | |
parent | 14808ecac9de9fe04eb58a4ca9393e3b4f0a60ae (diff) | |
download | gem5-cc9e834e931ff70b683b8a7010269d32c0de20fd.tar.xz |
mips-shadowsets: fix calcuations. \n Remove Shadowsets from Int & Arch. Reg Calculations
Diffstat (limited to 'src/arch/mips')
-rw-r--r-- | src/arch/mips/isa_traits.hh | 6 | ||||
-rw-r--r-- | src/arch/mips/regfile/int_regfile.hh | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/arch/mips/isa_traits.hh b/src/arch/mips/isa_traits.hh index 12c887132..59c2c00a2 100644 --- a/src/arch/mips/isa_traits.hh +++ b/src/arch/mips/isa_traits.hh @@ -177,12 +177,10 @@ namespace MipsISA const int NumFloatArchRegs = 32; const int NumFloatSpecialRegs = 5; - const int NumShadowRegSets = 16; // Maximum number of shadow register sets - const int NumIntRegs = NumIntArchRegs*NumShadowRegSets + NumIntSpecialRegs; //HI & LO Regs + const int MaxShadowRegSets = 16; // Maximum number of shadow register sets + const int NumIntRegs = NumIntArchRegs + NumIntSpecialRegs; //HI & LO Regs const int NumFloatRegs = NumFloatArchRegs + NumFloatSpecialRegs;// - const int TotalArchRegs = NumIntArchRegs * NumShadowRegSets; - // Static instruction parameters const int MaxInstSrcRegs = 10; const int MaxInstDestRegs = 8; diff --git a/src/arch/mips/regfile/int_regfile.hh b/src/arch/mips/regfile/int_regfile.hh index c5a6bb345..3c7c8c64c 100644 --- a/src/arch/mips/regfile/int_regfile.hh +++ b/src/arch/mips/regfile/int_regfile.hh @@ -60,6 +60,11 @@ namespace MipsISA DSPHi0 = HI }; + //@TODO: Implementing ShadowSets needs to + //edit this value such that: + //TotalArchRegs = NumIntArchRegs * ShadowSets + const int TotalArchRegs = NumIntArchRegs; + class IntRegFile { protected: |