]> git.proxmox.com Git - qemu.git/blobdiff - target-unicore32/cpu.h
Move cpu_has_work and cpu_pc_from_tb to cpu.h
[qemu.git] / target-unicore32 / cpu.h
index 1e10049f890f0d44ce54b58daf9228d07809a690..981760734f2f52e8e561e277df48df5e2f20b285 100644 (file)
@@ -179,4 +179,10 @@ void uc32_translate_init(void);
 void do_interrupt(CPUState *);
 void switch_mode(CPUState_UniCore32 *, int);
 
+static inline bool cpu_has_work(CPUState *env)
+{
+    return env->interrupt_request &
+        (CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB);
+}
+
 #endif /* __CPU_UC32_H__ */