21 lines
835 B
Diff
21 lines
835 B
Diff
# HG changeset patch
|
|
# User Keir Fraser <keir.fraser@citrix.com>
|
|
# Date 1202412636 0
|
|
# Node ID 1b750b9cf4319c076bb831d26dcdcffbd5cfb913
|
|
# Parent 8e4cd0658c4152a02576892e895e63772bd9df1c
|
|
x86_emulate: Fix IMUL r/m8 emulation.
|
|
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
|
|
|
|
Index: xen-3.2-testing/xen/arch/x86/x86_emulate.c
|
|
===================================================================
|
|
--- xen-3.2-testing.orig/xen/arch/x86/x86_emulate.c
|
|
+++ xen-3.2-testing/xen/arch/x86/x86_emulate.c
|
|
@@ -1592,6 +1592,7 @@ x86_emulate(
|
|
(uint16_t)(int8_t)dst.val);
|
|
if ( (int8_t)dst.val != (uint16_t)dst.val )
|
|
_regs.eflags |= EFLG_OF|EFLG_CF;
|
|
+ dst.bytes = 2;
|
|
break;
|
|
case 2:
|
|
dst.val = ((uint32_t)(int16_t)src.val *
|