diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-04-30 16:03:33 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-05-04 11:18:06 +0300 |
commit | 16cba2dced332ed298f38305cd68da7653aa445b (patch) | |
tree | cb085a6029ba2e466fc06922caa19283181dfbe0 /libkvm | |
parent | f5d4ef337deaf4e3e75eb611ac9cc0161914cf8b (diff) |
kvm: qemu: ppc: Update GPR type to match kernel interface changes
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'libkvm')
-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], |