From d4dcb59384ab4433702f015fdddda1eff8e3927f Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Wed, 30 Nov 2016 13:33:02 +0900 Subject: [PATCH] hax: fix routines for non-UG Change-Id: Idad6e573e9f50199a4e57ba50429edac3095d057 Signed-off-by: SeokYeon Hwang --- cpu-exec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index b7d0c6990d..f48ded416a 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -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 */ -- 2.34.1