aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/kvm/emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c
index 4b50c5787e25..d5fa3eaf39a1 100644
--- a/arch/mips/kvm/emulate.c
+++ b/arch/mips/kvm/emulate.c
@@ -2409,7 +2409,7 @@ enum emulation_result kvm_mips_complete_mmio_load(struct kvm_vcpu *vcpu,
2409 if (vcpu->mmio_needed == 2) 2409 if (vcpu->mmio_needed == 2)
2410 *gpr = *(int16_t *) run->mmio.data; 2410 *gpr = *(int16_t *) run->mmio.data;
2411 else 2411 else
2412 *gpr = *(int16_t *) run->mmio.data; 2412 *gpr = *(uint16_t *)run->mmio.data;
2413 2413
2414 break; 2414 break;
2415 case 1: 2415 case 1: