]>
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 | |
e8af50a3 FB |
8 | #define FT0 (env->ft0) |
9 | #define FT1 (env->ft1) | |
e8af50a3 FB |
10 | #define DT0 (env->dt0) |
11 | #define DT1 (env->dt1) | |
1f587329 BS |
12 | #define QT0 (env->qt0) |
13 | #define QT1 (env->qt1) | |
7a3f1944 FB |
14 | |
15 | #include "cpu.h" | |
16 | #include "exec-all.h" | |
17 | ||
0d1a29f9 FB |
18 | static inline void env_to_regs(void) |
19 | { | |
20 | } | |
21 | ||
22 | static inline void regs_to_env(void) | |
23 | { | |
24 | } | |
25 | ||
22548760 | 26 | int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw, |
6ebbf390 | 27 | int mmu_idx, int is_softmmu); |
f2bc7e7f | 28 | void do_interrupt(CPUState *env); |
9d893301 | 29 | |
22548760 BS |
30 | static inline int cpu_halted(CPUState *env1) { |
31 | if (!env1->halted) | |
bfed01fc | 32 | return 0; |
22548760 BS |
33 | if ((env1->interrupt_request & CPU_INTERRUPT_HARD) && (env1->psret != 0)) { |
34 | env1->halted = 0; | |
bfed01fc TS |
35 | return 0; |
36 | } | |
37 | return EXCP_HALTED; | |
38 | } | |
39 | ||
7a3f1944 | 40 | #endif |