diff --git a/src/arch/arm/insts/static_inst.hh b/src/arch/arm/insts/static_inst.hh index 82bf61d0fb..8610f996fd 100644 --- a/src/arch/arm/insts/static_inst.hh +++ b/src/arch/arm/insts/static_inst.hh @@ -257,7 +257,7 @@ class ArmStaticInst : public StaticInst validModeChange = false; // There is no Hyp mode ('11010') in Secure state, so that // is UNPREDICTABLE - if (scr.ns == '0' && newMode == MODE_HYP) + if (scr.ns == 0 && newMode == MODE_HYP) validModeChange = false; // Cannot move into Hyp mode directly from a Non-secure // PL1 mode