aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-19 05:46:03 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-19 05:46:03 +0000
commit71c8b8fd7bdf6165e32cc9c9ed6d701d0ad6b3e0 (patch)
tree8778bf6e4bc72d38831bbeb5fcd40221ced1efdd /cpu-defs.h
parentCode provision for PowerPC BookE MMU model support. (diff)
downloadqemu-kvm-71c8b8fd7bdf6165e32cc9c9ed6d701d0ad6b3e0.tar.gz
qemu-kvm-71c8b8fd7bdf6165e32cc9c9ed6d701d0ad6b3e0.tar.bz2
qemu-kvm-71c8b8fd7bdf6165e32cc9c9ed6d701d0ad6b3e0.zip
TARGET_FMT_lu may also be useful.
Fix compilation warnings. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3190 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-defs.h')
-rw-r--r--cpu-defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu-defs.h b/cpu-defs.h
index e474152d5..915877617 100644
--- a/cpu-defs.h
+++ b/cpu-defs.h
@@ -45,11 +45,13 @@ typedef int32_t target_long;
typedef uint32_t target_ulong;
#define TARGET_FMT_lx "%08x"
#define TARGET_FMT_ld "%d"
+#define TARGET_FMT_lu "%u"
#elif TARGET_LONG_SIZE == 8
typedef int64_t target_long;
typedef uint64_t target_ulong;
#define TARGET_FMT_lx "%016" PRIx64
#define TARGET_FMT_ld "%" PRId64
+#define TARGET_FMT_lu "%" PRIu64
#else
#error TARGET_LONG_SIZE undefined
#endif