Commit 0bbd4a0ddb9f867dfcd1b59e9a84187706f400c3

Authored by blueswir1
1 parent be24bb4f

Fix compiler warning (Jan Kiszka)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4781 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
target-sparc/cpu.h
@@ -366,13 +366,14 @@ static inline int cpu_cwp_dec(CPUSPARCState *env1, int cwp) @@ -366,13 +366,14 @@ static inline int cpu_cwp_dec(CPUSPARCState *env1, int cwp)
366 } while (0) 366 } while (0)
367 #define GET_CWP64(env) (env->nwindows - 1 - (env)->cwp) 367 #define GET_CWP64(env) (env->nwindows - 1 - (env)->cwp)
368 368
  369 +#ifndef NO_CPU_IO_DEFS
369 static inline void PUT_CWP64(CPUSPARCState *env1, int cwp) 370 static inline void PUT_CWP64(CPUSPARCState *env1, int cwp)
370 { 371 {
371 if (unlikely(cwp >= env1->nwindows || cwp < 0)) 372 if (unlikely(cwp >= env1->nwindows || cwp < 0))
372 cwp = 0; 373 cwp = 0;
373 cpu_set_cwp(env1, env1->nwindows - 1 - cwp); 374 cpu_set_cwp(env1, env1->nwindows - 1 - cwp);
374 } 375 }
375 - 376 +#endif
376 #endif 377 #endif
377 378
378 int cpu_sparc_signal_handler(int host_signum, void *pinfo, void *puc); 379 int cpu_sparc_signal_handler(int host_signum, void *pinfo, void *puc);