]> git.proxmox.com Git - qemu.git/blobdiff - target-ppc/cpu.h
Store VNC auth scheme per-client as well as per-server
[qemu.git] / target-ppc / cpu.h
index 46d86be4d7ec27813f9721388a05c6d764948df3..d90336634dfc8a6950c89a2bf7bcee8de3d96c1e 100644 (file)
@@ -75,8 +75,6 @@
 
 #include "cpu-defs.h"
 
-#include <setjmp.h>
-
 #include "softfloat.h"
 
 #define TARGET_HAS_ICE 1
@@ -2018,4 +2016,16 @@ static inline ppcmas_tlb_t *booke206_get_tlbm(CPUState *env, const int tlbn,
 
 extern void (*cpu_ppc_hypercall)(CPUState *);
 
+static inline bool cpu_has_work(CPUState *env)
+{
+    return msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD);
+}
+
+#include "exec-all.h"
+
+static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
+{
+    env->nip = tb->pc;
+}
+
 #endif /* !defined (__CPU_PPC_H__) */