Revision 2df6c2d0 target-sparc/exec.h
b/target-sparc/exec.h | ||
---|---|---|
24 | 24 |
/* op_helper.c */ |
25 | 25 |
void do_interrupt(CPUState *env); |
26 | 26 |
|
27 |
static inline int cpu_interrupts_enabled(CPUState *env1) |
|
28 |
{ |
|
29 |
#if !defined (TARGET_SPARC64) |
|
30 |
if (env1->psret != 0) |
|
31 |
return 1; |
|
32 |
#else |
|
33 |
if (env1->pstate & PS_IE) |
|
34 |
return 1; |
|
35 |
#endif |
|
36 |
|
|
37 |
return 0; |
|
38 |
} |
|
39 |
|
|
40 | 27 |
static inline int cpu_has_work(CPUState *env1) |
41 | 28 |
{ |
42 | 29 |
return (env1->interrupt_request & CPU_INTERRUPT_HARD) && |
Also available in: Unified diff