Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpWJj-0001PL-7A for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpWJh-0001O6-Dr for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:10 -0400 Received: from [199.232.76.173] (port=53016 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpWJh-0001Np-8E for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:09 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47440) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpWJg-0003tc-EW for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:08 -0400 From: Glauber Costa Date: Mon, 13 Oct 2008 22:51:43 -0200 Message-Id: <1223945508-22241-3-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 2/7] use accel_trace_io in calling sites. 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 softmmu_template.h does an explicit reference to kqemu to perform an operation for which an accel is available. Use it. Signed-off-by: Glauber Costa --- softmmu_template.h | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/softmmu_template.h b/softmmu_template.h index 98dd378..4945352 100644 --- a/softmmu_template.h +++ b/softmmu_template.h @@ -47,6 +47,8 @@ #define ADDR_READ addr_read #endif +#include "accel.h" + static DATA_TYPE glue(glue(slow_ld, SUFFIX), MMUSUFFIX)(target_ulong addr, int mmu_idx, void *retaddr); @@ -75,9 +77,7 @@ static inline DATA_TYPE glue(io_read, SUFFIX)(target_phys_addr_t physaddr, res |= (uint64_t)io_mem_read[index][2](io_mem_opaque[index], physaddr + 4) << 32; #endif #endif /* SHIFT > 2 */ -#ifdef USE_KQEMU - env->last_io_time = cpu_get_time_fast(); -#endif + accel_trace_io(env); return res; } @@ -220,9 +220,7 @@ static inline void glue(io_write, SUFFIX)(target_phys_addr_t physaddr, io_mem_write[index][2](io_mem_opaque[index], physaddr + 4, val >> 32); #endif #endif /* SHIFT > 2 */ -#ifdef USE_KQEMU - env->last_io_time = cpu_get_time_fast(); -#endif + accel_trace_io(env); } void REGPARM glue(glue(__st, SUFFIX), MMUSUFFIX)(target_ulong addr, -- 1.5.5.1