From: Gabe Black Date: Sun, 5 Jul 2009 23:07:09 +0000 (-0700) Subject: SPARC: Fix the parenthesis in inUserMode. X-Git-Tag: Calvin_Submission~226^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=240e214236a693fbe091d9a40b7ddb43976dcfd4;p=gem5.git SPARC: Fix the parenthesis in inUserMode. --- 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) {