SPARC: Fix the parenthesis in inUserMode.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 5 Jul 2009 23:07:09 +0000 (16:07 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 5 Jul 2009 23:07:09 +0000 (16:07 -0700)
src/arch/sparc/utility.hh

index 9a84a82b33da5a352de1f18537296ef2edaab93c..4ad8950b16420ff9e5d94625ad25c604b7f05e16 100644 (file)
@@ -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) {