aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/powerpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kvm/powerpc.c')
-rw-r--r--arch/powerpc/kvm/powerpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 237f3ba68d27..7ad150e0fbbf 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -256,14 +256,14 @@ int kvm_arch_vcpu_ioctl_debug_guest(struct kvm_vcpu *vcpu,
256static void kvmppc_complete_dcr_load(struct kvm_vcpu *vcpu, 256static void kvmppc_complete_dcr_load(struct kvm_vcpu *vcpu,
257 struct kvm_run *run) 257 struct kvm_run *run)
258{ 258{
259 u32 *gpr = &vcpu->arch.gpr[vcpu->arch.io_gpr]; 259 ulong *gpr = &vcpu->arch.gpr[vcpu->arch.io_gpr];
260 *gpr = run->dcr.data; 260 *gpr = run->dcr.data;
261} 261}
262 262
263static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu, 263static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu,
264 struct kvm_run *run) 264 struct kvm_run *run)
265{ 265{
266 u32 *gpr = &vcpu->arch.gpr[vcpu->arch.io_gpr]; 266 ulong *gpr = &vcpu->arch.gpr[vcpu->arch.io_gpr];
267 267
268 if (run->mmio.len > sizeof(*gpr)) { 268 if (run->mmio.len > sizeof(*gpr)) {
269 printk(KERN_ERR "bad MMIO length: %d\n", run->mmio.len); 269 printk(KERN_ERR "bad MMIO length: %d\n", run->mmio.len);