Message ID | 20150619203600.162034362@linuxfoundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/arch/mips/kvm/emulate.c +++ b/arch/mips/kvm/emulate.c @@ -2101,7 +2101,7 @@ enum emulation_result kvm_mips_complete_ if (vcpu->mmio_needed == 2) *gpr = *(int16_t *) run->mmio.data; else - *gpr = *(int16_t *) run->mmio.data; + *gpr = *(uint16_t *)run->mmio.data; break; case 1: