mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 14:08:32 +00:00
halt state support for ppc
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1657 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
10
cpu-exec.c
10
cpu-exec.c
@@ -262,6 +262,16 @@ int cpu_exec(CPUState *env1)
|
||||
return EXCP_HALTED;
|
||||
}
|
||||
}
|
||||
#elif defined(TARGET_PPC)
|
||||
if (env1->msr[MSR_POW]) {
|
||||
if (env1->msr[MSR_EE] &&
|
||||
(env1->interrupt_request &
|
||||
(CPU_INTERRUPT_HARD | CPU_INTERRUPT_TIMER))) {
|
||||
env1->msr[MSR_POW] = 0;
|
||||
} else {
|
||||
return EXCP_HALTED;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
cpu_single_env = env1;
|
||||
|
||||
Reference in New Issue
Block a user