# HG changeset patch # User Keir Fraser # Date 1202207359 0 # Node ID 32e9c52fc6d9a6104afb2dbd84a89395b16f0e34 # Parent 99b8ffe250888d0c3fe86b726edf18f620072045 x86_emulate: Fix SAHF emulation. Signed-off-by: Xiaohui Xin Signed-off-by: Kevin Tian 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 */