summaryrefslogtreecommitdiff
path: root/arch/mips/kvm/emulate.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-12-21 13:46:30 +0300
committerTakashi Iwai <tiwai@suse.de>2015-12-21 13:46:30 +0300
commit1d9d4495001d3c470e5c902ff35a6aa626924fc1 (patch)
tree1ae39f4ccadb610bc16fea88a1f93b23a4df37b1 /arch/mips/kvm/emulate.c
parentd3d33aabac51341065bcce0e9c2d9d27902a08c4 (diff)
parente2dc7d7d8ed3019f72855af1c3dcda3fb456b488 (diff)
downloadlinux-1d9d4495001d3c470e5c902ff35a6aa626924fc1.tar.xz
Merge branch 'topic/hdmi-jack' into for-next
Diffstat (limited to 'arch/mips/kvm/emulate.c')
-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 d5fa3eaf39a1..41b1b090f56f 100644
--- a/arch/mips/kvm/emulate.c
+++ b/arch/mips/kvm/emulate.c
@@ -1581,7 +1581,7 @@ enum emulation_result kvm_mips_emulate_cache(uint32_t inst, uint32_t *opc,
base = (inst >> 21) & 0x1f;
op_inst = (inst >> 16) & 0x1f;
- offset = inst & 0xffff;
+ offset = (int16_t)inst;
cache = (inst >> 16) & 0x3;
op = (inst >> 18) & 0x7;