[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH qom-cpu v2 01/42] cpu: Introduce vaddr type

From: Andreas Färber
Subject: [Qemu-devel] [PATCH qom-cpu v2 01/42] cpu: Introduce vaddr type
Date: Sun, 7 Jul 2013 20:25:50 +0200

vaddr is to target_ulong what uintmax_t is to unsigned int.

Its purpose is to allow turning per-target functions with target_ulong
arguments into CPUClass hooks.

Suggested-by: Peter Maydell <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
 include/qom/cpu.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index 147c256..4fd12a0 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -29,6 +29,14 @@
 typedef int (*WriteCoreDumpFunction)(void *buf, size_t size, void *opaque);
+typedef uint64_t vaddr;
+#define VADDR_PRId PRId64
+#define VADDR_PRIu PRIu64
+#define VADDR_PRIo PRIo64
+#define VADDR_PRIx PRIx64
+#define VADDR_PRIX PRIX64
  * SECTION:cpu
  * @section_id: QEMU-cpu

reply via email to

[Prev in Thread] Current Thread [Next in Thread]