From: Gabe Black Date: Wed, 14 Jul 2010 05:41:47 +0000 (-0700) Subject: ARM: Adjust the FP_Base_DepTag to be larger than the largest int reg index. X-Git-Tag: stable_2012_02_02~995 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e3183cb1e5d4081fa7688bf89f8c776c52ec393;p=gem5.git ARM: Adjust the FP_Base_DepTag to be larger than the largest int reg index. --- diff --git a/src/arch/arm/registers.hh b/src/arch/arm/registers.hh index ac95f4091..670b4b841 100644 --- a/src/arch/arm/registers.hh +++ b/src/arch/arm/registers.hh @@ -83,7 +83,7 @@ const int SyscallPseudoReturnReg = ReturnValueReg; const int SyscallSuccessReg = ReturnValueReg; // These help enumerate all the registers for dependence tracking. -const int FP_Base_DepTag = NumIntRegs; +const int FP_Base_DepTag = NumIntRegs * (MODE_MAXMODE + 1); const int Ctrl_Base_DepTag = FP_Base_DepTag + NumFloatRegs; typedef union { diff --git a/src/arch/arm/types.hh b/src/arch/arm/types.hh index dd6b7e610..78c9790f6 100644 --- a/src/arch/arm/types.hh +++ b/src/arch/arm/types.hh @@ -241,7 +241,8 @@ namespace ArmISA MODE_MON = 22, MODE_ABORT = 23, MODE_UNDEFINED = 27, - MODE_SYSTEM = 31 + MODE_SYSTEM = 31, + MODE_MAXMODE = MODE_SYSTEM }; static inline bool