hax: fix routines for non-UG
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 30 Nov 2016 04:33:02 +0000 (13:33 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 30 Nov 2016 05:10:54 +0000 (14:10 +0900)
Change-Id: Idad6e573e9f50199a4e57ba50429edac3095d057
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
cpu-exec.c

index b7d0c69..f48ded4 100644 (file)
@@ -621,8 +621,9 @@ int cpu_exec(CPUState *cpu)
             }
 
 #ifdef CONFIG_HAX
-            if (hax_enabled() && !hax_vcpu_exec(cpu))
-                longjmp(cpu->jmp_env, 1);
+            if (hax_enabled() && !hax_vcpu_exec(cpu)) {
+                break;
+            }
 #endif
 
             cpu->tb_flushed = false; /* reset before first TB lookup */