diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-07-05 16:07:09 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-07-05 16:07:09 -0700 |
commit | 240e214236a693fbe091d9a40b7ddb43976dcfd4 (patch) | |
tree | da05277df51229ecdd37f052f7d3017604fbb67f /src/arch/sparc/utility.hh | |
parent | 5ae983f8daf36684821c444925cbf49e99a958f6 (diff) | |
download | gem5-240e214236a693fbe091d9a40b7ddb43976dcfd4.tar.xz |
SPARC: Fix the parenthesis in inUserMode.
Diffstat (limited to 'src/arch/sparc/utility.hh')
-rw-r--r-- | src/arch/sparc/utility.hh | 4 |
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) { |