root / target-sparc / exec.h @ ed23fbd9
History | View | Annotate | Download (1.2 kB)
1 | 7a3f1944 | bellard | #ifndef EXEC_SPARC_H
|
---|---|---|---|
2 | 7a3f1944 | bellard | #define EXEC_SPARC_H 1 |
3 | 3475187d | bellard | #include "config.h" |
4 | 8294eba1 | ths | #include "dyngen-exec.h" |
5 | 7a3f1944 | bellard | |
6 | 7a3f1944 | bellard | register struct CPUSPARCState *env asm(AREG0); |
7 | 3475187d | bellard | |
8 | e8af50a3 | bellard | #define FT0 (env->ft0)
|
9 | e8af50a3 | bellard | #define FT1 (env->ft1)
|
10 | e8af50a3 | bellard | #define DT0 (env->dt0)
|
11 | e8af50a3 | bellard | #define DT1 (env->dt1)
|
12 | 1f587329 | blueswir1 | #define QT0 (env->qt0)
|
13 | 1f587329 | blueswir1 | #define QT1 (env->qt1)
|
14 | 7a3f1944 | bellard | |
15 | 7a3f1944 | bellard | #include "cpu.h" |
16 | 7a3f1944 | bellard | #include "exec-all.h" |
17 | 7a3f1944 | bellard | |
18 | 0d1a29f9 | bellard | static inline void env_to_regs(void) |
19 | 0d1a29f9 | bellard | { |
20 | 0d1a29f9 | bellard | } |
21 | 0d1a29f9 | bellard | |
22 | 0d1a29f9 | bellard | static inline void regs_to_env(void) |
23 | 0d1a29f9 | bellard | { |
24 | 0d1a29f9 | bellard | } |
25 | 0d1a29f9 | bellard | |
26 | 91736d37 | blueswir1 | /* helper.c */
|
27 | 91736d37 | blueswir1 | void cpu_lock(void); |
28 | 91736d37 | blueswir1 | void cpu_unlock(void); |
29 | 22548760 | blueswir1 | int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw, |
30 | 6ebbf390 | j_mayer | int mmu_idx, int is_softmmu); |
31 | 91736d37 | blueswir1 | target_ulong mmu_probe(CPUState *env, target_ulong address, int mmulev);
|
32 | 91736d37 | blueswir1 | void dump_mmu(CPUState *env);
|
33 | 91736d37 | blueswir1 | void memcpy32(target_ulong *dst, const target_ulong *src); |
34 | 91736d37 | blueswir1 | |
35 | 91736d37 | blueswir1 | /* op_helper.c */
|
36 | f2bc7e7f | blueswir1 | void do_interrupt(CPUState *env);
|
37 | 9d893301 | bellard | |
38 | 91736d37 | blueswir1 | /* cpu-exec.c */
|
39 | 91736d37 | blueswir1 | void cpu_loop_exit(void); |
40 | 91736d37 | blueswir1 | int cpu_sparc_signal_handler(int host_signum, void *pinfo, void *puc); |
41 | 91736d37 | blueswir1 | |
42 | 91736d37 | blueswir1 | /* sun4m.c */
|
43 | 91736d37 | blueswir1 | void cpu_check_irqs(CPUSPARCState *env);
|
44 | 91736d37 | blueswir1 | |
45 | 22548760 | blueswir1 | static inline int cpu_halted(CPUState *env1) { |
46 | 22548760 | blueswir1 | if (!env1->halted)
|
47 | bfed01fc | ths | return 0; |
48 | 22548760 | blueswir1 | if ((env1->interrupt_request & CPU_INTERRUPT_HARD) && (env1->psret != 0)) { |
49 | 22548760 | blueswir1 | env1->halted = 0;
|
50 | bfed01fc | ths | return 0; |
51 | bfed01fc | ths | } |
52 | bfed01fc | ths | return EXCP_HALTED;
|
53 | bfed01fc | ths | } |
54 | bfed01fc | ths | |
55 | 7a3f1944 | bellard | #endif |