]> git.proxmox.com Git - qemu.git/blobdiff - include/qom/cpu.h
cpu: Introduce vaddr type
[qemu.git] / include / qom / cpu.h
index dfd81a1d2f65158dc2eb710c6c75ed8cad0a30ee..829fd4554f8980f4d1ce1f272f76118ddb1a944c 100644 (file)
 
 typedef int (*WriteCoreDumpFunction)(void *buf, size_t size, void *opaque);
 
+/**
+ * vaddr:
+ * Type wide enough to contain any #target_ulong virtual address.
+ */
+typedef uint64_t vaddr;
+#define VADDR_PRId PRId64
+#define VADDR_PRIu PRIu64
+#define VADDR_PRIo PRIo64
+#define VADDR_PRIx PRIx64
+#define VADDR_PRIX PRIX64
+#define VADDR_MAX UINT64_MAX
+
 /**
  * SECTION:cpu
  * @section_id: QEMU-cpu