x86: use caller supplied CPUState for interrupt related stuff
[qemu/mdroth.git] / target-sparc / exec.h
blobbecdaf5bf3e5ecee7fad5ea8fd284ae3b12717fd
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 #include "cpu.h"
9 #include "exec-all.h"
11 #if !defined(CONFIG_USER_ONLY)
12 #include "softmmu_exec.h"
13 #endif /* !defined(CONFIG_USER_ONLY) */
15 /* op_helper.c */
16 static inline int cpu_has_work(CPUState *env1)
18 return (env1->interrupt_request & CPU_INTERRUPT_HARD) &&
19 cpu_interrupts_enabled(env1);
23 static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
25 env->pc = tb->pc;
26 env->npc = tb->cs_base;
29 #endif