From: blueswir1 Date: Sat, 20 Oct 2007 07:09:08 +0000 (+0000) Subject: Avoid gcc warnings X-Git-Tag: release_0_9_1~485 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20b749f6079ba1f9a2959c88f22525d0fa49c1ac;p=thirdparty%2Fqemu.git Avoid gcc warnings git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3412 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 460ede24987..7b1b08e4301 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 */