From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpWJn-0001TI-KD for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpWJi-0001Ox-U9 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:13 -0400 Received: from [199.232.76.173] (port=53018 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpWJi-0001Op-Q1 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:10 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47444) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpWJh-0003u4-SC for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:10 -0400 From: Glauber Costa Date: Mon, 13 Oct 2008 22:51:44 -0200 Message-Id: <1223945508-22241-4-git-send-email-glommer@redhat.com> In-Reply-To: <1223945508-22241-1-git-send-email-glommer@redhat.com> References: <1223945508-22241-1-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH 3/7] use break_loop accel Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, aliguori@us.ibm.com, jes@sgi.com, avi@qumranet.com, dmitry.baryshkov@siemens.com in cpu_exec.c, use the already available accelerator to get rid of kqemu reference. Signed-off-by: Glauber Costa --- cpu-exec.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index 8637e2a..75ace9c 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -36,6 +36,7 @@ #include #include #endif +#include "accel.h" #if defined(__sparc__) && !defined(HOST_SOLARIS) // Work around ugly bugs in glibc that mangle global register contents @@ -653,13 +654,7 @@ int cpu_exec(CPUState *env1) } /* reset soft MMU for next block (it can currently only be set by a memory fault) */ -#if defined(USE_KQEMU) -#define MIN_CYCLE_BEFORE_SWITCH (100 * 1000) - if (kqemu_is_ok(env) && - (cpu_get_time_fast() - env->last_io_time) >= MIN_CYCLE_BEFORE_SWITCH) { - cpu_loop_exit(); - } -#endif + accel_break_loop(env); } /* for(;;) */ } else { env_to_regs(); -- 1.5.5.1