hw/hw.h: Add include of qemu-log.h
[qemu/pbrook.git] / targphys.h
blob50911fd12fe08dee87a02a9af648e68a97a64ce9
1 /* Define target_phys_addr_t if it exists. */
3 #ifndef TARGPHYS_H
4 #define TARGPHYS_H
6 #ifndef CONFIG_USER_ONLY
8 #define TARGET_PHYS_ADDR_BITS 64
9 /* target_phys_addr_t is the type of a physical address (its size can
10 be different from 'target_ulong'). */
12 typedef uint64_t target_phys_addr_t;
13 #define TARGET_PHYS_ADDR_MAX UINT64_MAX
14 #define TARGET_FMT_plx "%016" PRIx64
15 #define TARGET_PRIdPHYS PRId64
16 #define TARGET_PRIiPHYS PRIi64
17 #define TARGET_PRIoPHYS PRIo64
18 #define TARGET_PRIuPHYS PRIu64
19 #define TARGET_PRIxPHYS PRIx64
20 #define TARGET_PRIXPHYS PRIX64
22 #endif
24 #endif