summaryrefslogtreecommitdiff
path: root/src/arch/power/registers.hh
diff options
context:
space:
mode:
authorMin Kyu Jeong <minkyu.jeong@arm.com>2010-08-25 19:10:43 -0500
committerMin Kyu Jeong <minkyu.jeong@arm.com>2010-08-25 19:10:43 -0500
commite1168e72ca8ae370a1989220a202347980c6a4d2 (patch)
tree2d8b3766e7ad5261d13aa7d1a0becbf6aee2f7eb /src/arch/power/registers.hh
parentedca5f7da6bad677dfc1ea69fff904554181cc17 (diff)
downloadgem5-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/power/registers.hh')
-rw-r--r--src/arch/power/registers.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/power/registers.hh b/src/arch/power/registers.hh
index 5bcca3641..59816a599 100644
--- a/src/arch/power/registers.hh
+++ b/src/arch/power/registers.hh
@@ -82,6 +82,7 @@ const int SyscallSuccessReg = 3;
// These help enumerate all the registers for dependence tracking.
const int FP_Base_DepTag = NumIntRegs;
const int Ctrl_Base_DepTag = FP_Base_DepTag + NumFloatRegs;
+const int Max_DepTag = Ctrl_Base_DepTag + NumMiscRegs;
typedef union {
IntReg intreg;