Skip to contentSkip to conversation

[4781] Fix compiler warning (Jan Kiszka)

Qemu-devel Blue Swirl 1 participant 1 message Jun 23, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 4781

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4781
Author:   blueswir1
Date:     2008-06-23 16:58:04 +0000 (Mon, 23 Jun 2008)

Log Message:
-----------
Fix compiler warning (Jan Kiszka)

Modified Paths:
--------------
trunk/target-sparc/cpu.h

Modified: trunk/target-sparc/cpu.h
===================================================================

target-sparc/cpu.h +2 -1
@@ -366,14 +366,15 @@
     } 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);
 void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,