mirror of
https://github.com/qemu/qemu.git
synced 2025-08-07 14:43:53 +00:00
CRIS: NMI wakes up the core.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6201 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
213fb478f8
commit
69b5cae1c0
@ -46,7 +46,10 @@ void helper_movec(CPUCRISState *env, int reg, uint32_t val);
|
|||||||
static inline int cpu_halted(CPUState *env) {
|
static inline int cpu_halted(CPUState *env) {
|
||||||
if (!env->halted)
|
if (!env->halted)
|
||||||
return 0;
|
return 0;
|
||||||
if (env->interrupt_request & CPU_INTERRUPT_HARD) {
|
|
||||||
|
/* IRQ, NMI and GURU execeptions wakes us up. */
|
||||||
|
if (env->interrupt_request
|
||||||
|
& (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
|
||||||
env->halted = 0;
|
env->halted = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user