diff options
author | Min Kyu Jeong <minkyu.jeong@arm.com> | 2010-08-25 19:10:43 -0500 |
---|---|---|
committer | Min Kyu Jeong <minkyu.jeong@arm.com> | 2010-08-25 19:10:43 -0500 |
commit | e1168e72ca8ae370a1989220a202347980c6a4d2 (patch) | |
tree | 2d8b3766e7ad5261d13aa7d1a0becbf6aee2f7eb /src/arch/mips/registers.hh | |
parent | edca5f7da6bad677dfc1ea69fff904554181cc17 (diff) | |
download | gem5-e1168e72ca8ae370a1989220a202347980c6a4d2.tar.xz |
ARM: Fixed register flattening logic (FP_Base_DepTag was set too low)
When decoding a srs instruction, invalid mode encoding returns invalid instruction.
This can happen when garbage instructions are fetched from mispredicted path
Diffstat (limited to 'src/arch/mips/registers.hh')
-rw-r--r-- | src/arch/mips/registers.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/mips/registers.hh b/src/arch/mips/registers.hh index 5cf76634d..dce7858bf 100644 --- a/src/arch/mips/registers.hh +++ b/src/arch/mips/registers.hh @@ -283,6 +283,7 @@ enum MiscRegIndex{ const int TotalDataRegs = NumIntRegs + NumFloatRegs; const int NumMiscRegs = MISCREG_NUMREGS; +const int Max_DepTag = Ctrl_Base_DepTag + NumMiscRegs; const int TotalNumRegs = NumIntRegs + NumFloatRegs + NumMiscRegs; |