SPARC: Fix the parenthesis in inUserMode.

This commit is contained in:
Gabe Black 2009-07-05 16:07:09 -07:00
parent 5ae983f8da
commit 240e214236

View 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) {