summaryrefslogtreecommitdiff
path: root/sys/dev/x86emu
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2014-06-15 11:04:50 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2014-06-15 11:04:50 +0000
commitdb8fe6d3f09beef2aba9d0cfb56931f6d8aca034 (patch)
tree0a4466b817e77628c6f16a3580daf1daddea6767 /sys/dev/x86emu
parent683f0e779436c18a247f6bf82c4f13c67aa6990d (diff)
Decode ModR/M for 32-bit MOVSX instruction.
Heads-up from Xen Li (delphij@FreeBSD), thanks! Tested on Sony VGN-P530H. Okay mlarkin@, matthieu@
Diffstat (limited to 'sys/dev/x86emu')
-rw-r--r--sys/dev/x86emu/x86emu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/x86emu/x86emu.c b/sys/dev/x86emu/x86emu.c
index 8e87284abfd..45f512b921d 100644
--- a/sys/dev/x86emu/x86emu.c
+++ b/sys/dev/x86emu/x86emu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x86emu.c,v 1.8 2014/06/15 11:01:43 pirofti Exp $ */
+/* $OpenBSD: x86emu.c,v 1.9 2014/06/15 11:04:49 pirofti Exp $ */
/* $NetBSD: x86emu.c,v 1.7 2009/02/03 19:26:29 joerg Exp $ */
/*
@@ -5626,6 +5626,7 @@ x86emuOp2_32_movsx_byte_R_RM(struct x86emu *emu)
{
uint32_t *destreg;
+ fetch_decode_modrm(emu);
destreg = decode_rh_long_register(emu);
*destreg = (int32_t)(int8_t)decode_and_fetch_byte(emu);
}