aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-14 12:15:36 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-14 12:15:36 +0000
commitba13c4327e19c083dd76d69805c5bf3dd44ca46c (patch)
treea6a8870ef106fd90489cbe661f1ad16b2b86c32d
parent744e0915969881c86074b2365dec3c5f839b8331 (diff)
Add TARGET_FMT_plx to properly display target_phys_addr_t variables.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2660 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--cpu-defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu-defs.h b/cpu-defs.h
index 202eaee2e9..a19fef72d9 100644
--- a/cpu-defs.h
+++ b/cpu-defs.h
@@ -62,8 +62,10 @@ typedef uint64_t target_ulong;
#if TARGET_PHYS_ADDR_BITS == 32
typedef uint32_t target_phys_addr_t;
+#define TARGET_FMT_plx "%08x"
#elif TARGET_PHYS_ADDR_BITS == 64
typedef uint64_t target_phys_addr_t;
+#define TARGET_FMT_plx "%016" PRIx64
#else
#error TARGET_PHYS_ADDR_BITS undefined
#endif