]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-m68k/cpu.h
Move cpu_has_work and cpu_pc_from_tb to cpu.h
[mirror_qemu.git] / target-m68k / cpu.h
index 4d8ba287b1dc110bd7da86a1f6d409cb7bfe8199..e0f9b3201476476d01ecb54a84613e495f3c6a06 100644 (file)
@@ -255,4 +255,16 @@ static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc,
             | ((env->macsr >> 4) & 0xf);        /* Bits 0-3 */
 }
 
+static inline bool cpu_has_work(CPUState *env)
+{
+    return env->interrupt_request & CPU_INTERRUPT_HARD;
+}
+
+#include "exec-all.h"
+
+static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
+{
+    env->pc = tb->pc;
+}
+
 #endif