mirror of
https://github.com/mii443/qemu.git
synced 2025-08-24 16:09:37 +00:00
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
This commit is contained in:
@ -62,8 +62,10 @@ typedef uint64_t target_ulong;
|
|||||||
|
|
||||||
#if TARGET_PHYS_ADDR_BITS == 32
|
#if TARGET_PHYS_ADDR_BITS == 32
|
||||||
typedef uint32_t target_phys_addr_t;
|
typedef uint32_t target_phys_addr_t;
|
||||||
|
#define TARGET_FMT_plx "%08x"
|
||||||
#elif TARGET_PHYS_ADDR_BITS == 64
|
#elif TARGET_PHYS_ADDR_BITS == 64
|
||||||
typedef uint64_t target_phys_addr_t;
|
typedef uint64_t target_phys_addr_t;
|
||||||
|
#define TARGET_FMT_plx "%016" PRIx64
|
||||||
#else
|
#else
|
||||||
#error TARGET_PHYS_ADDR_BITS undefined
|
#error TARGET_PHYS_ADDR_BITS undefined
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user