From: SeokYeon Hwang Date: Tue, 10 Nov 2015 13:21:41 +0000 (+0900) Subject: hax: remove redundant comparison X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~174 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4c75d37f2795547a3a380a522aa8a048bf15844;p=sdk%2Femulator%2Fqemu.git hax: remove redundant comparison "(hax_enabled() && hax_ug_platform())" is always false when tcg is enabled. Change-Id: I1fed39c6e4e45b915792130882d5a3971583b3ed Signed-off-by: SeokYeon Hwang --- diff --git a/cpus.c b/cpus.c index b4c53491ff..5389f24356 100644 --- a/cpus.c +++ b/cpus.c @@ -1184,12 +1184,7 @@ static void qemu_cpu_kick_thread(CPUState *cpu) void qemu_cpu_kick(CPUState *cpu) { qemu_cond_broadcast(cpu->halt_cond); -#ifdef CONFIG_HAX - if (((hax_enabled() && hax_ug_platform()) || - !tcg_enabled()) && !cpu->thread_kicked) { -#else if (!tcg_enabled() && !cpu->thread_kicked) { -#endif qemu_cpu_kick_thread(cpu); cpu->thread_kicked = true; } @@ -1233,9 +1228,6 @@ void qemu_mutex_lock_iothread(void) * TCG code execution. */ if (!tcg_enabled() || qemu_in_vcpu_thread() || -#ifdef CONFIG_HAX - (hax_enabled() && hax_ug_platform()) || -#endif !first_cpu || !first_cpu->created) { qemu_mutex_lock(&qemu_global_mutex); atomic_dec(&iothread_requesting_mutex);