4 #include "dyngen-exec.h"
6 register struct CPUSPARCState
*env
asm(AREG0
);
10 #define QT0 (env->qt0)
11 #define QT1 (env->qt1)
16 static inline void env_to_regs(void)
20 static inline void regs_to_env(void)
25 void do_interrupt(CPUState
*env
);
27 static inline int cpu_interrupts_enabled(CPUState
*env1
)
29 #if !defined (TARGET_SPARC64)
33 if (env1
->pstate
& PS_IE
)
40 static inline int cpu_has_work(CPUState
*env1
)
42 return (env1
->interrupt_request
& CPU_INTERRUPT_HARD
) &&
43 cpu_interrupts_enabled(env1
);
47 static inline int cpu_halted(CPUState
*env1
) {
50 if (cpu_has_work(env1
)) {