Commit ba13c4327e19c083dd76d69805c5bf3dd44ca46c

Authored by j_mayer
1 parent 744e0915

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
Showing 1 changed file with 2 additions and 0 deletions
cpu-defs.h
@@ -62,8 +62,10 @@ typedef uint64_t target_ulong; @@ -62,8 +62,10 @@ typedef uint64_t target_ulong;
62 62
63 #if TARGET_PHYS_ADDR_BITS == 32 63 #if TARGET_PHYS_ADDR_BITS == 32
64 typedef uint32_t target_phys_addr_t; 64 typedef uint32_t target_phys_addr_t;
  65 +#define TARGET_FMT_plx "%08x"
65 #elif TARGET_PHYS_ADDR_BITS == 64 66 #elif TARGET_PHYS_ADDR_BITS == 64
66 typedef uint64_t target_phys_addr_t; 67 typedef uint64_t target_phys_addr_t;
  68 +#define TARGET_FMT_plx "%016" PRIx64
67 #else 69 #else
68 #error TARGET_PHYS_ADDR_BITS undefined 70 #error TARGET_PHYS_ADDR_BITS undefined
69 #endif 71 #endif