Commit 577f42c0 authored by Andreas Färber's avatar Andreas Färber

cpu: Introduce vaddr type

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: default avatarPeter Maydell <>
Signed-off-by: default avatarAndreas Färber <>
parent 52f34623
......@@ -29,6 +29,18 @@
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
* @section_id: QEMU-cpu
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment