From e1168e72ca8ae370a1989220a202347980c6a4d2 Mon Sep 17 00:00:00 2001 From: Min Kyu Jeong Date: Wed, 25 Aug 2010 19:10:43 -0500 Subject: 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 --- src/arch/mips/registers.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/arch/mips/registers.hh') 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; -- cgit v1.2.3