ppc fixes - gcc 3.4 compile fix (initial patch by Jocelyn Mayer)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1273 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-02-08 21:24:36 +00:00
parent 68016c627b
commit 18fba28c95
5 changed files with 34 additions and 52 deletions

View file

@ -655,16 +655,21 @@ void _store_msr (CPUState *env, uint32_t value)
msr_dr = (value >> MSR_DR) & 0x01;
msr_ri = (value >> MSR_RI) & 0x01;
msr_le = (value >> MSR_LE) & 0x01;
/* XXX: should enter PM state if msr_pow has been set */
}
#if defined (CONFIG_USER_ONLY)
void do_interrupt (CPUState *env)
{
#if defined (CONFIG_USER_ONLY)
env->exception_index |= 0x100;
env->exception_index = -1;
}
#else
void do_interrupt (CPUState *env)
{
uint32_t msr;
int excp = env->exception_index;
int excp;
excp = env->exception_index;
msr = _load_msr(env);
#if defined (DEBUG_EXCEPTIONS)
if ((excp == EXCP_PROGRAM || excp == EXCP_DSI) && msr_pr == 1)
@ -905,7 +910,7 @@ void do_interrupt (CPUState *env)
tmp_T0 = 0;
#else
T0 = 0;
#endif
#endif
env->exception_index = -1;
}
#endif /* !CONFIG_USER_ONLY */