]>
Commit | Line | Data |
---|---|---|
7a3f1944 FB |
1 | #ifndef EXEC_SPARC_H |
2 | #define EXEC_SPARC_H 1 | |
3475187d | 3 | #include "config.h" |
8294eba1 | 4 | #include "dyngen-exec.h" |
7a3f1944 FB |
5 | |
6 | register struct CPUSPARCState *env asm(AREG0); | |
3475187d | 7 | |
7a3f1944 FB |
8 | #include "cpu.h" |
9 | #include "exec-all.h" | |
10 | ||
2065061e IK |
11 | #if !defined(CONFIG_USER_ONLY) |
12 | #include "softmmu_exec.h" | |
13 | #endif /* !defined(CONFIG_USER_ONLY) */ | |
14 | ||
91736d37 | 15 | /* op_helper.c */ |
f2bc7e7f | 16 | void do_interrupt(CPUState *env); |
9d893301 | 17 | |
6a4955a8 AL |
18 | static inline int cpu_has_work(CPUState *env1) |
19 | { | |
20 | return (env1->interrupt_request & CPU_INTERRUPT_HARD) && | |
5210977a | 21 | cpu_interrupts_enabled(env1); |
6a4955a8 AL |
22 | } |
23 | ||
24 | ||
22548760 BS |
25 | static inline int cpu_halted(CPUState *env1) { |
26 | if (!env1->halted) | |
bfed01fc | 27 | return 0; |
6a4955a8 | 28 | if (cpu_has_work(env1)) { |
22548760 | 29 | env1->halted = 0; |
bfed01fc TS |
30 | return 0; |
31 | } | |
32 | return EXCP_HALTED; | |
33 | } | |
34 | ||
7a3f1944 | 35 | #endif |