]> git.proxmox.com Git - qemu.git/blame - target-sparc/exec.h
Merge remote-tracking branch 'kraxel/CVE-2011-1751' into staging
[qemu.git] / target-sparc / exec.h
CommitLineData
7a3f1944
FB
1#ifndef EXEC_SPARC_H
2#define EXEC_SPARC_H 1
3475187d 3#include "config.h"
8294eba1 4#include "dyngen-exec.h"
7a3f1944
FB
5
6register struct CPUSPARCState *env asm(AREG0);
3475187d 7
7a3f1944
FB
8#include "cpu.h"
9#include "exec-all.h"
10
2065061e
IK
11#if !defined(CONFIG_USER_ONLY)
12#include "softmmu_exec.h"
13#endif /* !defined(CONFIG_USER_ONLY) */
14
91736d37 15/* op_helper.c */
f2bc7e7f 16void do_interrupt(CPUState *env);
9d893301 17
6a4955a8
AL
18static inline int cpu_has_work(CPUState *env1)
19{
20 return (env1->interrupt_request & CPU_INTERRUPT_HARD) &&
5210977a 21 cpu_interrupts_enabled(env1);
6a4955a8
AL
22}
23
24
10eb0cc0
PB
25static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
26{
27 env->pc = tb->pc;
28 env->npc = tb->cs_base;
29}
30
7a3f1944 31#endif