aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/booke.c
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-11-05 10:36:19 -0500
committerAvi Kivity <avi@redhat.com>2008-12-31 09:52:22 -0500
commit5cf8ca22146fa106f3bb865631ec04f5b499508f (patch)
tree4a32a552277e4c3a6a103f05d164dfc97dbf2bae /arch/powerpc/kvm/booke.c
parentdb93f5745d836f81cef0b4101a7c2685eeb55efb (diff)
KVM: ppc: adjust vcpu types to support 64-bit cores
However, some of these fields could be split into separate per-core structures in the future. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r--arch/powerpc/kvm/booke.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index 883e9db5f00c..b23cd54603f4 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -120,14 +120,14 @@ void kvmppc_dump_vcpu(struct kvm_vcpu *vcpu)
120{ 120{
121 int i; 121 int i;
122 122
123 printk("pc: %08x msr: %08x\n", vcpu->arch.pc, vcpu->arch.msr); 123 printk("pc: %08lx msr: %08lx\n", vcpu->arch.pc, vcpu->arch.msr);
124 printk("lr: %08x ctr: %08x\n", vcpu->arch.lr, vcpu->arch.ctr); 124 printk("lr: %08lx ctr: %08lx\n", vcpu->arch.lr, vcpu->arch.ctr);
125 printk("srr0: %08x srr1: %08x\n", vcpu->arch.srr0, vcpu->arch.srr1); 125 printk("srr0: %08lx srr1: %08lx\n", vcpu->arch.srr0, vcpu->arch.srr1);
126 126
127 printk("exceptions: %08lx\n", vcpu->arch.pending_exceptions); 127 printk("exceptions: %08lx\n", vcpu->arch.pending_exceptions);
128 128
129 for (i = 0; i < 32; i += 4) { 129 for (i = 0; i < 32; i += 4) {
130 printk("gpr%02d: %08x %08x %08x %08x\n", i, 130 printk("gpr%02d: %08lx %08lx %08lx %08lx\n", i,
131 vcpu->arch.gpr[i], 131 vcpu->arch.gpr[i],
132 vcpu->arch.gpr[i+1], 132 vcpu->arch.gpr[i+1],
133 vcpu->arch.gpr[i+2], 133 vcpu->arch.gpr[i+2],
@@ -305,7 +305,7 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,
305 break; 305 break;
306 case EMULATE_FAIL: 306 case EMULATE_FAIL:
307 /* XXX Deliver Program interrupt to guest. */ 307 /* XXX Deliver Program interrupt to guest. */
308 printk(KERN_CRIT "%s: emulation at %x failed (%08x)\n", 308 printk(KERN_CRIT "%s: emulation at %lx failed (%08x)\n",
309 __func__, vcpu->arch.pc, vcpu->arch.last_inst); 309 __func__, vcpu->arch.pc, vcpu->arch.last_inst);
310 /* For debugging, encode the failing instruction and 310 /* For debugging, encode the failing instruction and
311 * report it to userspace. */ 311 * report it to userspace. */