From 240e214236a693fbe091d9a40b7ddb43976dcfd4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 5 Jul 2009 16:07:09 -0700 Subject: SPARC: Fix the parenthesis in inUserMode. --- src/arch/sparc/utility.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch') 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) { -- cgit v1.2.3