Fix corner case in chardev udp: parameter
[qemu.git] / target-sparc / exec.h
blob70df828d234f3934a7c0d44a8a8878bd8e054b8a
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 /* op_helper.c */
17 void do_interrupt(CPUState *env);
19 static inline int cpu_has_work(CPUState *env1)
21 return (env1->interrupt_request & CPU_INTERRUPT_HARD) &&
22 cpu_interrupts_enabled(env1);
26 static inline int cpu_halted(CPUState *env1) {
27 if (!env1->halted)
28 return 0;
29 if (cpu_has_work(env1)) {
30 env1->halted = 0;
31 return 0;
33 return EXCP_HALTED;
36 #endif