qcow2: Change default cluster size to 64k
[qemu.git] / target-sparc / exec.h
blobf37c8ad994f81852eb19f39b0fbec9bf46e6d679
1 #ifndef EXEC_SPARC_H
2 #define EXEC_SPARC_H 1
3 #include "config.h"
4 #include "dyngen-exec.h"
6 register struct CPUSPARCState *env asm(AREG0);
8 #define DT0 (env->dt0)
9 #define DT1 (env->dt1)
10 #define QT0 (env->qt0)
11 #define QT1 (env->qt1)
13 #include "cpu.h"
14 #include "exec-all.h"
16 static inline void env_to_regs(void)
20 static inline void regs_to_env(void)
24 /* op_helper.c */
25 void do_interrupt(CPUState *env);
27 static inline int cpu_has_work(CPUState *env1)
29 return (env1->interrupt_request & CPU_INTERRUPT_HARD) &&
30 (env1->psret != 0);
34 static inline int cpu_halted(CPUState *env1) {
35 if (!env1->halted)
36 return 0;
37 if (cpu_has_work(env1)) {
38 env1->halted = 0;
39 return 0;
41 return EXCP_HALTED;
44 #endif