Revision 2df6c2d0
b/target-sparc/cpu.h | ||
---|---|---|
564 | 564 |
#endif |
565 | 565 |
} |
566 | 566 |
|
567 |
static inline int cpu_interrupts_enabled(CPUState *env1) |
|
568 |
{ |
|
569 |
#if !defined (TARGET_SPARC64) |
|
570 |
if (env1->psret != 0) |
|
571 |
return 1; |
|
572 |
#else |
|
573 |
if (env1->pstate & PS_IE) |
|
574 |
return 1; |
|
575 |
#endif |
|
576 |
|
|
577 |
return 0; |
|
578 |
} |
|
579 |
|
|
567 | 580 |
static inline int cpu_fpu_enabled(CPUState *env1) |
568 | 581 |
{ |
569 | 582 |
#if defined(CONFIG_USER_ONLY) |
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