aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-20 07:09:08 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-20 07:09:08 +0000
commit20b749f6079ba1f9a2959c88f22525d0fa49c1ac (patch)
treea9c21c6bde7b3cc5afa9461dc62cce409271d512
parent1e64e78d0c8861580a70c99f42d92e28b9a87af0 (diff)
Avoid gcc warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3412 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--target-sparc/op_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index 460ede2498..7b1b08e430 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 */