]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cpu-exec.c
ivshmem: Fix 64 bit memory bar configuration
[mirror_qemu.git] / cpu-exec.c
index b840e1d2dd419f291ffe513c4627bb7b4187ae39..5d9710a1eaf2b06913eb469d918f722b61764652 100644 (file)
@@ -608,17 +608,16 @@ int cpu_exec(CPUState *cpu)
     init_delay_params(&sc, cpu);
 
     for(;;) {
-        TranslationBlock *tb, *last_tb;
-        int tb_exit = 0;
-
         /* prepare setjmp context for exception handling */
         if (sigsetjmp(cpu->jmp_env, 0) == 0) {
+            TranslationBlock *tb, *last_tb = NULL;
+            int tb_exit = 0;
+
             /* if an exception is pending, we execute it here */
             if (cpu_handle_exception(cpu, &ret)) {
                 break;
             }
 
-            last_tb = NULL; /* forget the last executed TB after exception */
             cpu->tb_flushed = false; /* reset before first TB lookup */
             for(;;) {
                 cpu_handle_interrupt(cpu, &last_tb);