Revision 6a80e088 target-alpha/exec.h
b/target-alpha/exec.h | ||
---|---|---|
39 | 39 |
|
40 | 40 |
static inline int cpu_has_work(CPUState *env) |
41 | 41 |
{ |
42 |
return (env->interrupt_request & CPU_INTERRUPT_HARD); |
|
42 |
/* Here we are checking to see if the CPU should wake up from HALT. |
|
43 |
We will have gotten into this state only for WTINT from PALmode. */ |
|
44 |
/* ??? I'm not sure how the IPL state works with WTINT to keep a CPU |
|
45 |
asleep even if (some) interrupts have been asserted. For now, |
|
46 |
assume that if a CPU really wants to stay asleep, it will mask |
|
47 |
interrupts at the chipset level, which will prevent these bits |
|
48 |
from being set in the first place. */ |
|
49 |
return env->interrupt_request & (CPU_INTERRUPT_HARD |
|
50 |
| CPU_INTERRUPT_TIMER |
|
51 |
| CPU_INTERRUPT_SMP |
|
52 |
| CPU_INTERRUPT_MCHK); |
|
43 | 53 |
} |
44 | 54 |
|
45 | 55 |
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) |
Also available in: Unified diff