Commit 20b749f6079ba1f9a2959c88f22525d0fa49c1ac
1 parent
1e64e78d
Avoid gcc warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3412 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
target-sparc/op_helper.c
... | ... | @@ -806,7 +806,7 @@ void helper_ld_asi(int asi, int size, int sign) |
806 | 806 | uint64_t ret = 0; |
807 | 807 | |
808 | 808 | if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0) |
809 | - || (asi >= 0x30 && asi < 0x80) && !(env->hpstate & HS_PRIV)) | |
809 | + || (asi >= 0x30 && asi < 0x80 && !(env->hpstate & HS_PRIV))) | |
810 | 810 | raise_exception(TT_PRIV_ACT); |
811 | 811 | |
812 | 812 | switch (asi) { |
... | ... | @@ -1023,7 +1023,7 @@ void helper_ld_asi(int asi, int size, int sign) |
1023 | 1023 | void helper_st_asi(int asi, int size) |
1024 | 1024 | { |
1025 | 1025 | if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0) |
1026 | - || (asi >= 0x30 && asi < 0x80) && !(env->hpstate & HS_PRIV)) | |
1026 | + || (asi >= 0x30 && asi < 0x80 && !(env->hpstate & HS_PRIV))) | |
1027 | 1027 | raise_exception(TT_PRIV_ACT); |
1028 | 1028 | |
1029 | 1029 | /* Convert to little endian */ | ... | ... |