Revision eda48c34 target-arm/exec.h
b/target-arm/exec.h | ||
---|---|---|
32 | 32 |
(CPU_INTERRUPT_FIQ | CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB)); |
33 | 33 |
} |
34 | 34 |
|
35 |
static inline int cpu_halted(CPUState *env) { |
|
36 |
if (!env->halted) |
|
37 |
return 0; |
|
38 |
/* An interrupt wakes the CPU even if the I and F CPSR bits are |
|
39 |
set. We use EXITTB to silently wake CPU without causing an |
|
40 |
actual interrupt. */ |
|
41 |
if (cpu_has_work(env)) { |
|
42 |
env->halted = 0; |
|
43 |
return 0; |
|
44 |
} |
|
45 |
return EXCP_HALTED; |
|
46 |
} |
|
47 |
|
|
48 | 35 |
#if !defined(CONFIG_USER_ONLY) |
49 | 36 |
#include "softmmu_exec.h" |
50 | 37 |
#endif |
Also available in: Unified diff