aboutsummaryrefslogtreecommitdiff
path: root/targphys.h
diff options
context:
space:
mode:
Diffstat (limited to 'targphys.h')
-rw-r--r--targphys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/targphys.h b/targphys.h
index 81a9c37335..99ab23c7a7 100644
--- a/targphys.h
+++ b/targphys.h
@@ -12,9 +12,11 @@
#if TARGET_PHYS_ADDR_BITS == 32
typedef uint32_t target_phys_addr_t;
+#define TARGET_PHYS_ADDR_MAX UINT32_MAX
#define TARGET_FMT_plx "%08x"
#elif TARGET_PHYS_ADDR_BITS == 64
typedef uint64_t target_phys_addr_t;
+#define TARGET_PHYS_ADDR_MAX UINT64_MAX
#define TARGET_FMT_plx "%016" PRIx64
#endif
#endif