]> git.proxmox.com Git - qemu.git/commitdiff
Add TARGET_FMT_plx to properly display target_phys_addr_t variables.
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 14 Apr 2007 12:15:36 +0000 (12:15 +0000)
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 14 Apr 2007 12:15:36 +0000 (12:15 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2660 c046a42c-6fe2-441c-8c8c-71466251a162

cpu-defs.h

index 202eaee2e989837cecdd083b36c206a6ad722bd8..a19fef72d9af87b8fddd12d6e63a9ba839af3f8b 100644 (file)
@@ -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