]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Avoid gcc warnings
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 20 Oct 2007 07:09:08 +0000 (07:09 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 20 Oct 2007 07:09:08 +0000 (07:09 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3412 c046a42c-6fe2-441c-8c8c-71466251a162

target-sparc/op_helper.c

index 460ede2498762275c959c8000659c8232a6004ba..7b1b08e43017880c6a2919093f1adf45d3dbb39f 100644 (file)
@@ -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 */