aboutsummaryrefslogtreecommitdiff
path: root/include/exec/vaddr.h
blob: 28bec632fbbf6195efacb661fc8f452b5f0e4658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Define vaddr.  */

#ifndef VADDR_H
#define VADDR_H

/**
 * vaddr:
 * 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 uintptr_t vaddr;
#define VADDR_PRId PRIdPTR
#define VADDR_PRIu PRIuPTR
#define VADDR_PRIo PRIoPTR
#define VADDR_PRIx PRIxPTR
#define VADDR_PRIX PRIXPTR
#define VADDR_MAX UINTPTR_MAX

#endif