[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/7] use accel_trace_io in calling sites.
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH 2/7] use accel_trace_io in calling sites. |
Date: |
Mon, 13 Oct 2008 22:51:43 -0200 |
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 <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/7] Update qemu accel, Glauber Costa, 2008/10/13
- [Qemu-devel] [PATCH 1/7] protect accel.h from multiple inclusion, Glauber Costa, 2008/10/13
- [Qemu-devel] [PATCH 2/7] use accel_trace_io in calling sites.,
Glauber Costa <=
- [Qemu-devel] [PATCH 4/7] give noaccel a name, Glauber Costa, 2008/10/13
- [Qemu-devel] [PATCH 3/7] use break_loop accel, Glauber Costa, 2008/10/13
- [Qemu-devel] [PATCH 5/7] check wether kqemu is enabled in open code, Glauber Costa, 2008/10/13
- [Qemu-devel] [PATCH 6/7] provide an opaque for accelerator in cpu state, Glauber Costa, 2008/10/13
- [Qemu-devel] [PATCH 7/7] Revert "don't allocate ram before accel starts", Glauber Costa, 2008/10/13
- [Qemu-devel] Re: [PATCH 0/7] Update qemu accel, Anthony Liguori, 2008/10/14