projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae983f
)
SPARC: Fix the parenthesis in inUserMode.
author
Gabe Black
<gblack@eecs.umich.edu>
Sun, 5 Jul 2009 23:07:09 +0000
(16:07 -0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Sun, 5 Jul 2009 23:07:09 +0000
(16:07 -0700)
src/arch/sparc/utility.hh
patch
|
blob
|
history
diff --git
a/src/arch/sparc/utility.hh
b/src/arch/sparc/utility.hh
index 9a84a82b33da5a352de1f18537296ef2edaab93c..4ad8950b16420ff9e5d94625ad25c604b7f05e16 100644
(file)
--- 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) {