diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-14 12:15:36 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-14 12:15:36 +0000 |
commit | ba13c4327e19c083dd76d69805c5bf3dd44ca46c (patch) | |
tree | a6a8870ef106fd90489cbe661f1ad16b2b86c32d | |
parent | 744e0915969881c86074b2365dec3c5f839b8331 (diff) | |
download | hqemu-ba13c4327e19c083dd76d69805c5bf3dd44ca46c.zip hqemu-ba13c4327e19c083dd76d69805c5bf3dd44ca46c.tar.gz |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |