ia64/xen-unstable

changeset 16986:32e9c52fc6d9

x86_emulate: Fix SAHF emulation.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Feb 05 10:29:19 2008 +0000 (2008-02-05)
parents 99b8ffe25088
children def2adbce510
files xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate.c	Mon Feb 04 13:57:01 2008 +0000
     1.2 +++ b/xen/arch/x86/x86_emulate.c	Tue Feb 05 10:29:19 2008 +0000
     1.3 @@ -2226,7 +2226,7 @@ x86_emulate(
     1.4      }
     1.5  
     1.6      case 0x9e: /* sahf */
     1.7 -        *(uint8_t *)_regs.eflags = (((uint8_t *)&_regs.eax)[1] & 0xd7) | 0x02;
     1.8 +        *(uint8_t *)&_regs.eflags = (((uint8_t *)&_regs.eax)[1] & 0xd7) | 0x02;
     1.9          break;
    1.10  
    1.11      case 0x9f: /* lahf */