Revision 6a4955a8 target-mips/exec.h
b/target-mips/exec.h | ||
---|---|---|
33 | 33 |
{ |
34 | 34 |
} |
35 | 35 |
|
36 |
static inline int cpu_has_work(CPUState *env) |
|
37 |
{ |
|
38 |
return (env->interrupt_request & |
|
39 |
(CPU_INTERRUPT_HARD | CPU_INTERRUPT_TIMER)); |
|
40 |
} |
|
41 |
|
|
42 |
|
|
36 | 43 |
static inline int cpu_halted(CPUState *env) |
37 | 44 |
{ |
38 | 45 |
if (!env->halted) |
39 | 46 |
return 0; |
40 |
if (env->interrupt_request & |
|
41 |
(CPU_INTERRUPT_HARD | CPU_INTERRUPT_TIMER)) { |
|
47 |
if (cpu_has_work(env)) { |
|
42 | 48 |
env->halted = 0; |
43 | 49 |
return 0; |
44 | 50 |
} |
Also available in: Unified diff