]> git.proxmox.com Git - qemu.git/blob - target-sparc/exec.h
Reset CFI01 flash wcycle after erase confirm (Thomas Petazzoni).
[qemu.git] / target-sparc / exec.h
1 #ifndef EXEC_SPARC_H
2 #define EXEC_SPARC_H 1
3 #include "config.h"
4 #include "dyngen-exec.h"
5
6 register struct CPUSPARCState *env asm(AREG0);
7
8 #define DT0 (env->dt0)
9 #define DT1 (env->dt1)
10 #define QT0 (env->qt0)
11 #define QT1 (env->qt1)
12
13 #include "cpu.h"
14 #include "exec-all.h"
15
16 static inline void env_to_regs(void)
17 {
18 }
19
20 static inline void regs_to_env(void)
21 {
22 }
23
24 /* op_helper.c */
25 void do_interrupt(CPUState *env);
26
27 /* cpu-exec.c */
28 void cpu_loop_exit(void);
29
30 static inline int cpu_halted(CPUState *env1) {
31 if (!env1->halted)
32 return 0;
33 if ((env1->interrupt_request & CPU_INTERRUPT_HARD) && (env1->psret != 0)) {
34 env1->halted = 0;
35 return 0;
36 }
37 return EXCP_HALTED;
38 }
39
40 #endif