Skip to content

Commit

Permalink
Add TARGET_FMT_plx to properly display target_phys_addr_t variables.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2660 c046a42c-6fe2-441c-8c8c-71466251a162
j_mayer committed Apr 14, 2007
1 parent 744e091 commit ba13c43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpu-defs.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ba13c43

Please sign in to comment.