]> git.proxmox.com Git - qemu.git/blobdiff - cpu-exec.c
target-i386: Fix addr32 prefix in gen_lea_modrm
[qemu.git] / cpu-exec.c
index 14af2edab6318d5614b7ad9ae408dc5b3c034fba..30cfa2a63a68bc0eeddca36257946c89fe6f5ec5 100644 (file)
@@ -209,7 +209,7 @@ int cpu_exec(CPUArchState *env)
     int ret, interrupt_request;
     TranslationBlock *tb;
     uint8_t *tc_ptr;
-    tcg_target_ulong next_tb;
+    uintptr_t next_tb;
 
     if (cpu->halted) {
         if (!cpu_has_work(cpu)) {
@@ -681,6 +681,10 @@ int cpu_exec(CPUArchState *env)
              * local variables as longjmp is marked 'noreturn'. */
             cpu = current_cpu;
             env = cpu->env_ptr;
+#if !(defined(CONFIG_USER_ONLY) && \
+      (defined(TARGET_M68K) || defined(TARGET_PPC) || defined(TARGET_S390X)))
+            cc = CPU_GET_CLASS(cpu);
+#endif
         }
     } /* for(;;) */