mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
include/exec: Change vaddr to uintptr_t
Since we no longer support 64-bit guests on 32-bit hosts, we can use a 32-bit type on a 32-bit host. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a630055df3
commit
a70af12add
1 changed files with 9 additions and 7 deletions
|
@ -6,13 +6,15 @@
|
||||||
/**
|
/**
|
||||||
* vaddr:
|
* vaddr:
|
||||||
* Type wide enough to contain any #target_ulong virtual address.
|
* Type wide enough to contain any #target_ulong virtual address.
|
||||||
|
* We do not support 64-bit guest on 32-host and detect at configure time.
|
||||||
|
* Therefore, a host pointer width will always fit a guest pointer.
|
||||||
*/
|
*/
|
||||||
typedef uint64_t vaddr;
|
typedef uintptr_t vaddr;
|
||||||
#define VADDR_PRId PRId64
|
#define VADDR_PRId PRIdPTR
|
||||||
#define VADDR_PRIu PRIu64
|
#define VADDR_PRIu PRIuPTR
|
||||||
#define VADDR_PRIo PRIo64
|
#define VADDR_PRIo PRIoPTR
|
||||||
#define VADDR_PRIx PRIx64
|
#define VADDR_PRIx PRIxPTR
|
||||||
#define VADDR_PRIX PRIX64
|
#define VADDR_PRIX PRIXPTR
|
||||||
#define VADDR_MAX UINT64_MAX
|
#define VADDR_MAX UINTPTR_MAX
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue