changeset 94c016415053 in /z/repo/m5-stable
details: http://repo.m5sim.org/m5-stable?cmd=changeset;node=94c016415053
summary: SPARC: Fix the parenthesis in inUserMode.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/arch/sparc/utility.hh | 4 ++--
diffs (14 lines):
diff -r eae881827513 -r 94c016415053 src/arch/sparc/utility.hh
--- a/src/arch/sparc/utility.hh Sat Jul 04 21:46:23 2009 -0700
+++ b/src/arch/sparc/utility.hh Sun Jul 05 16:07:09 2009 -0700
@@ -47,8 +47,8 @@
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) {
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev