]> git.proxmox.com Git - qemu.git/blob - target-sparc/exec.h
inline cpu_halted into sole caller
[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 #include "cpu.h"
9 #include "exec-all.h"
10
11 #if !defined(CONFIG_USER_ONLY)
12 #include "softmmu_exec.h"
13 #endif /* !defined(CONFIG_USER_ONLY) */
14
15 /* op_helper.c */
16 void do_interrupt(CPUState *env);
17
18 static inline int cpu_has_work(CPUState *env1)
19 {
20 return (env1->interrupt_request & CPU_INTERRUPT_HARD) &&
21 cpu_interrupts_enabled(env1);
22 }
23
24
25 static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
26 {
27 env->pc = tb->pc;
28 env->npc = tb->cs_base;
29 }
30
31 #endif