23 lines
815 B
Diff
23 lines
815 B
Diff
|
# HG changeset patch
|
||
|
# User Keir Fraser <keir.fraser@citrix.com>
|
||
|
# Date 1202207359 0
|
||
|
# Node ID 32e9c52fc6d9a6104afb2dbd84a89395b16f0e34
|
||
|
# Parent 99b8ffe250888d0c3fe86b726edf18f620072045
|
||
|
x86_emulate: Fix SAHF emulation.
|
||
|
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
|
||
|
Signed-off-by: Kevin Tian <kevin.tian@intel.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
|
||
|
@@ -2176,7 +2176,7 @@ x86_emulate(
|
||
|
}
|
||
|
|
||
|
case 0x9e: /* sahf */
|
||
|
- *(uint8_t *)_regs.eflags = (((uint8_t *)&_regs.eax)[1] & 0xd7) | 0x02;
|
||
|
+ *(uint8_t *)&_regs.eflags = (((uint8_t *)&_regs.eax)[1] & 0xd7) | 0x02;
|
||
|
break;
|
||
|
|
||
|
case 0x9f: /* lahf */
|