Statistics
| Branch: | Revision:

root / targphys.h @ a74cdab4

History | View | Annotate | Download (538 Bytes)

1 c227f099 Anthony Liguori
/* Define target_phys_addr_t if it exists.  */
2 1ad2134f Paul Brook
3 1ad2134f Paul Brook
#ifndef TARGPHYS_H
4 1ad2134f Paul Brook
#define TARGPHYS_H
5 1ad2134f Paul Brook
6 1ad2134f Paul Brook
#ifdef TARGET_PHYS_ADDR_BITS
7 c227f099 Anthony Liguori
/* target_phys_addr_t is the type of a physical address (its size can
8 355b1943 Paul Brook
   be different from 'target_ulong').  */
9 1ad2134f Paul Brook
10 1ad2134f Paul Brook
#if TARGET_PHYS_ADDR_BITS == 32
11 c227f099 Anthony Liguori
typedef uint32_t target_phys_addr_t;
12 9fa06385 Jan Kiszka
#define TARGET_PHYS_ADDR_MAX UINT32_MAX
13 1ad2134f Paul Brook
#define TARGET_FMT_plx "%08x"
14 1ad2134f Paul Brook
#elif TARGET_PHYS_ADDR_BITS == 64
15 c227f099 Anthony Liguori
typedef uint64_t target_phys_addr_t;
16 9fa06385 Jan Kiszka
#define TARGET_PHYS_ADDR_MAX UINT64_MAX
17 1ad2134f Paul Brook
#define TARGET_FMT_plx "%016" PRIx64
18 1ad2134f Paul Brook
#endif
19 1ad2134f Paul Brook
#endif
20 1ad2134f Paul Brook
21 1ad2134f Paul Brook
#endif