diff options
author | Korey Sewell <ksewell@umich.edu> | 2008-10-06 02:07:04 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2008-10-06 02:07:04 -0400 |
commit | 6c046a28dc6624f57655e5106568721972cbae1e (patch) | |
tree | db4595c0b996ce080acd4d78afccc58c3e0460d3 /src/arch/mips/regfile/int_regfile.hh | |
parent | b25755993bbc04be0235975e2967533995a493f0 (diff) | |
download | gem5-6c046a28dc6624f57655e5106568721972cbae1e.tar.xz |
fix shadow set bugs in MIPS code that caused out of bounds access...
panic rdpgpr/wrpgpr instructions until a better impl.
of MIPS shadow sets is available.
Diffstat (limited to 'src/arch/mips/regfile/int_regfile.hh')
-rw-r--r-- | src/arch/mips/regfile/int_regfile.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/mips/regfile/int_regfile.hh b/src/arch/mips/regfile/int_regfile.hh index 8ddd276e6..0f453a382 100644 --- a/src/arch/mips/regfile/int_regfile.hh +++ b/src/arch/mips/regfile/int_regfile.hh @@ -48,7 +48,7 @@ namespace MipsISA } enum MiscIntRegNums { - LO = NumIntArchRegs*NumShadowRegSets, + LO = NumIntArchRegs, HI, DSPACX0, DSPLo1, @@ -72,6 +72,7 @@ namespace MipsISA int currShadowSet; public: void clear(); + int readShadowSet(); void setShadowSet(int css); IntReg readReg(int intReg); Fault setReg(int intReg, const IntReg &val); |