diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-23 16:58:04 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-23 16:58:04 +0000 |
commit | 0bbd4a0ddb9f867dfcd1b59e9a84187706f400c3 (patch) | |
tree | 8f6b6bf7c5bee88bf2a1c35e4a5d41487711871c /target-sparc/cpu.h | |
parent | be24bb4f3007c3e07cbf1934f7e781493d876ab7 (diff) |
Fix compiler warning (Jan Kiszka)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4781 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/cpu.h')
-rw-r--r-- | target-sparc/cpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index f30a606c96..b56dc91ff5 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -366,13 +366,14 @@ static inline int cpu_cwp_dec(CPUSPARCState *env1, int cwp) } while (0) #define GET_CWP64(env) (env->nwindows - 1 - (env)->cwp) +#ifndef NO_CPU_IO_DEFS static inline void PUT_CWP64(CPUSPARCState *env1, int cwp) { if (unlikely(cwp >= env1->nwindows || cwp < 0)) cwp = 0; cpu_set_cwp(env1, env1->nwindows - 1 - cwp); } - +#endif #endif int cpu_sparc_signal_handler(int host_signum, void *pinfo, void *puc); |