]> git.proxmox.com Git - qemu.git/blobdiff - target-microblaze/cpu.h
guest agent: add --enable-guest-agent config option
[qemu.git] / target-microblaze / cpu.h
index 78fe14ff35d4aacac183560d7bd34ec26a256e41..76f4fc4a7a40145318fc3375a6b271ef2aa5772b 100644 (file)
@@ -347,7 +347,20 @@ static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc,
 }
 
 #if !defined(CONFIG_USER_ONLY)
-void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
-                          int is_asi, int size);
+void cpu_unassigned_access(CPUState *env1, target_phys_addr_t addr,
+                           int is_write, int is_exec, int is_asi, int size);
 #endif
+
+static inline bool cpu_has_work(CPUState *env)
+{
+    return env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI);
+}
+
+#include "exec-all.h"
+
+static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
+{
+    env->sregs[SR_PC] = tb->pc;
+}
+
 #endif