aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-16 11:54:37 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-16 11:54:37 +0000
commitb11ebf64b696952e83f3dfbee8c42a5b6cb4a389 (patch)
tree1e0673e4291cd8df858f4bb4ceecb257b0ff71d8 /target-ppc
parent90e189ece147115c66c9864fd832524543a50530 (diff)
Replace REGX with PRIx64
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/cpu.h2
-rw-r--r--target-ppc/helper.c5
-rw-r--r--target-ppc/translate.c2
3 files changed, 4 insertions, 5 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index 1c6c0601a7..420ea869a0 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -56,8 +56,6 @@
#include "cpu-defs.h"
-#define REGX "%016" PRIx64
-
#include <setjmp.h>
#include "softfloat.h"
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index e049dabccb..5c85c6120a 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -2031,8 +2031,9 @@ void ppc_hw_interrupt (CPUState *env)
#else /* defined (CONFIG_USER_ONLY) */
static inline void dump_syscall(CPUState *env)
{
- qemu_log_mask(CPU_LOG_INT, "syscall r0=" REGX " r3=" REGX " r4=" REGX
- " r5=" REGX " r6=" REGX " nip=" TARGET_FMT_lx "\n",
+ qemu_log_mask(CPU_LOG_INT, "syscall r0=%016" PRIx64 " r3=%016" PRIx64
+ " r4=%016" PRIx64 " r5=%016" PRIx64 " r6=%016" PRIx64
+ " nip=" TARGET_FMT_lx "\n",
ppc_dump_gpr(env, 0), ppc_dump_gpr(env, 3),
ppc_dump_gpr(env, 4), ppc_dump_gpr(env, 5),
ppc_dump_gpr(env, 6), env->nip);
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index dcd0537268..1c54fa7d85 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -8860,7 +8860,7 @@ void cpu_dump_state (CPUState *env, FILE *f,
for (i = 0; i < 32; i++) {
if ((i & (RGPL - 1)) == 0)
cpu_fprintf(f, "GPR%02d", i);
- cpu_fprintf(f, " " REGX, ppc_dump_gpr(env, i));
+ cpu_fprintf(f, " %016" PRIx64, ppc_dump_gpr(env, i));
if ((i & (RGPL - 1)) == (RGPL - 1))
cpu_fprintf(f, "\n");
}