]>
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 */ |
6a4955a8 AL |
16 | static inline int cpu_has_work(CPUState *env1) |
17 | { | |
18 | return (env1->interrupt_request & CPU_INTERRUPT_HARD) && | |
5210977a | 19 | cpu_interrupts_enabled(env1); |
6a4955a8 AL |
20 | } |
21 | ||
22 | ||
10eb0cc0 PB |
23 | static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) |
24 | { | |
25 | env->pc = tb->pc; | |
26 | env->npc = tb->cs_base; | |
27 | } | |
28 | ||
7a3f1944 | 29 | #endif |