diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/sparc/utility.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/sparc/utility.hh b/src/arch/sparc/utility.hh index 9a84a82b3..4ad8950b1 100644 --- a/src/arch/sparc/utility.hh +++ b/src/arch/sparc/utility.hh @@ -47,8 +47,8 @@ namespace SparcISA static inline bool inUserMode(ThreadContext *tc) { - return !(tc->readMiscRegNoEffect(MISCREG_PSTATE & (1 << 2)) || - tc->readMiscRegNoEffect(MISCREG_HPSTATE & (1 << 2))); + return !((tc->readMiscRegNoEffect(MISCREG_PSTATE) & (1 << 2)) || + (tc->readMiscRegNoEffect(MISCREG_HPSTATE) & (1 << 2))); } inline bool isCallerSaveIntegerRegister(unsigned int reg) { |