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 <peter.mayd...@linaro.org> Signed-off-by: Andreas Färber <afaer...@suse.de> --- 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 +#define VADDR_MAX UINT64_MAX + /** * SECTION:cpu * @section_id: QEMU-cpu -- 1.8.1.4