diff options
Diffstat (limited to 'libkvm/libkvm-powerpc.c')
-rw-r--r-- | libkvm/libkvm-powerpc.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libkvm/libkvm-powerpc.c b/libkvm/libkvm-powerpc.c index e51303ac..53a24788 100644 --- a/libkvm/libkvm-powerpc.c +++ b/libkvm/libkvm-powerpc.c @@ -25,6 +25,7 @@ #include "kvm-powerpc.h" #include <errno.h> #include <stdio.h> +#include <inttypes.h> int handle_dcr(struct kvm_run *run, kvm_context_t kvm, int vcpu) { @@ -70,12 +71,16 @@ void kvm_show_regs(kvm_context_t kvm, int vcpu) return; fprintf(stderr,"guest vcpu #%d\n", vcpu); - fprintf(stderr,"pc: %08x msr: %08x\n", regs.pc, regs.msr); - fprintf(stderr,"lr: %08x ctr: %08x\n", regs.lr, regs.ctr); - fprintf(stderr,"srr0: %08x srr1: %08x\n", regs.srr0, regs.srr1); + fprintf(stderr,"pc: %016"PRIx64" msr: %016"PRIx64"\n", + regs.pc, regs.msr); + fprintf(stderr,"lr: %016"PRIx64" ctr: %016"PRIx64"\n", + regs.lr, regs.ctr); + fprintf(stderr,"srr0: %016"PRIx64" srr1: %016"PRIx64"\n", + regs.srr0, regs.srr1); for (i=0; i<32; i+=4) { - fprintf(stderr, "gpr%02d: %08x %08x %08x %08x\n", i, + fprintf(stderr, "gpr%02d: %016"PRIx64" %016"PRIx64" %016"PRIx64 + " %016"PRIx64"\n", i, regs.gpr[i], regs.gpr[i+1], regs.gpr[i+2], |