Revision 6a4955a8 target-ppc/exec.h
b/target-ppc/exec.h | ||
---|---|---|
44 | 44 |
{ |
45 | 45 |
} |
46 | 46 |
|
47 |
static always_inline int cpu_has_work(CPUState *env) |
|
48 |
{ |
|
49 |
return (msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD)); |
|
50 |
} |
|
51 |
|
|
52 |
|
|
47 | 53 |
static always_inline int cpu_halted (CPUState *env) |
48 | 54 |
{ |
49 | 55 |
if (!env->halted) |
50 | 56 |
return 0; |
51 |
if (msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD)) {
|
|
57 |
if (cpu_has_work(env)) {
|
|
52 | 58 |
env->halted = 0; |
53 | 59 |
return 0; |
54 | 60 |
} |
Also available in: Unified diff