diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-23 17:33:12 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-23 17:33:12 +0000 |
commit | 9b605b9eaee7845353f32aed23e8b9085bfa44ee (patch) | |
tree | e4150ea6372a563393d2ef2ca0df258190288feb /target-ppc/helper.c | |
parent | 493ae1f01cad47c3b4143059e986ba76e4d5202e (diff) | |
download | hqemu-9b605b9eaee7845353f32aed23e8b9085bfa44ee.zip hqemu-9b605b9eaee7845353f32aed23e8b9085bfa44ee.tar.gz |
Fix ppc32 register dumps on 64-bit hosts.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3723 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r-- | target-ppc/helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c index cb9b778..149f6cb 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -2169,8 +2169,9 @@ static always_inline void dump_syscall (CPUState *env) { fprintf(logfile, "syscall r0=0x" REGX " r3=0x" REGX " r4=0x" REGX " r5=0x" REGX " r6=0x" REGX " nip=0x" ADDRX "\n", - env->gpr[0], env->gpr[3], env->gpr[4], - env->gpr[5], env->gpr[6], env->nip); + (target_ulong)env->gpr[0], (target_ulong)env->gpr[3], + (target_ulong)env->gpr[4], (target_ulong)env->gpr[5], + (target_ulong)env->gpr[6], env->nip); } /* Note that this function should be greatly optimized |