summaryrefslogtreecommitdiff
path: root/src/arch/sparc/utility.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-07-05 16:07:09 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-07-05 16:07:09 -0700
commit240e214236a693fbe091d9a40b7ddb43976dcfd4 (patch)
treeda05277df51229ecdd37f052f7d3017604fbb67f /src/arch/sparc/utility.hh
parent5ae983f8daf36684821c444925cbf49e99a958f6 (diff)
downloadgem5-240e214236a693fbe091d9a40b7ddb43976dcfd4.tar.xz
SPARC: Fix the parenthesis in inUserMode.
Diffstat (limited to 'src/arch/sparc/utility.hh')
-rw-r--r--src/arch/sparc/utility.hh4
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) {