]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-ppc/cpu.h
Add instruction counter.
[mirror_qemu.git] / target-ppc / cpu.h
index d08bbba99597b89929c4d4b206295e0406a536e9..d9dcf58ef3fe1d5054f656825368acf6f6336791 100644 (file)
@@ -697,6 +697,7 @@ struct mmu_ctx_t {
 
 /*****************************************************************************/
 CPUPPCState *cpu_ppc_init (const char *cpu_model);
+void ppc_translate_init(void);
 int cpu_ppc_exec (CPUPPCState *s);
 void cpu_ppc_close (CPUPPCState *s);
 /* you can call this signal handler from your SIGBUS and SIGSEGV
@@ -833,6 +834,8 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
 }
 #endif
 
+#define CPU_PC_FROM_TB(env, tb) env->nip = tb->pc
+
 #include "cpu-all.h"
 
 /*****************************************************************************/