提交 ba13c432 编写于 作者: J j_mayer

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
上级 744e0915
...@@ -62,8 +62,10 @@ typedef uint64_t target_ulong; ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册