mirror of https://github.com/xemu-project/xemu.git
Fix compiler warning (Jan Kiszka)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4781 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
be24bb4f30
commit
0bbd4a0ddb
|
@ -366,13 +366,14 @@ static inline int cpu_cwp_dec(CPUSPARCState *env1, int cwp)
|
||||||
} while (0)
|
} while (0)
|
||||||
#define GET_CWP64(env) (env->nwindows - 1 - (env)->cwp)
|
#define GET_CWP64(env) (env->nwindows - 1 - (env)->cwp)
|
||||||
|
|
||||||
|
#ifndef NO_CPU_IO_DEFS
|
||||||
static inline void PUT_CWP64(CPUSPARCState *env1, int cwp)
|
static inline void PUT_CWP64(CPUSPARCState *env1, int cwp)
|
||||||
{
|
{
|
||||||
if (unlikely(cwp >= env1->nwindows || cwp < 0))
|
if (unlikely(cwp >= env1->nwindows || cwp < 0))
|
||||||
cwp = 0;
|
cwp = 0;
|
||||||
cpu_set_cwp(env1, env1->nwindows - 1 - cwp);
|
cpu_set_cwp(env1, env1->nwindows - 1 - cwp);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int cpu_sparc_signal_handler(int host_signum, void *pinfo, void *puc);
|
int cpu_sparc_signal_handler(int host_signum, void *pinfo, void *puc);
|
||||||
|
|
Loading…
Reference in New Issue