From: j_mayer Date: Sat, 14 Apr 2007 12:15:36 +0000 (+0000) Subject: Add TARGET_FMT_plx to properly display target_phys_addr_t variables. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ba13c4327e19c083dd76d69805c5bf3dd44ca46c;p=qemu.git 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 --- 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