From 20b749f6079ba1f9a2959c88f22525d0fa49c1ac Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sat, 20 Oct 2007 07:09:08 +0000 Subject: [PATCH] Avoid gcc warnings git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3412 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sparc/op_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 460ede24..7b1b08e4 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -806,7 +806,7 @@ void helper_ld_asi(int asi, int size, int sign) uint64_t ret = 0; if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0) - || (asi >= 0x30 && asi < 0x80) && !(env->hpstate & HS_PRIV)) + || (asi >= 0x30 && asi < 0x80 && !(env->hpstate & HS_PRIV))) raise_exception(TT_PRIV_ACT); switch (asi) { @@ -1023,7 +1023,7 @@ void helper_ld_asi(int asi, int size, int sign) void helper_st_asi(int asi, int size) { if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0) - || (asi >= 0x30 && asi < 0x80) && !(env->hpstate & HS_PRIV)) + || (asi >= 0x30 && asi < 0x80 && !(env->hpstate & HS_PRIV))) raise_exception(TT_PRIV_ACT); /* Convert to little endian */ -- 2.39.5