diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-02-05 10:29:19 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-02-05 10:29:19 +0000 |
commit | 054ccca730a664d2f1c44f2bf3c22db6bdbf5d25 (patch) | |
tree | 307a5398cf2677483a550a82b33bd929cc349010 /xen/arch/x86/x86_emulate.c | |
parent | 08286e1a3c5809b2a5441d47d06a4aded8142a3d (diff) | |
download | xen-054ccca730a664d2f1c44f2bf3c22db6bdbf5d25.tar.gz xen-054ccca730a664d2f1c44f2bf3c22db6bdbf5d25.tar.bz2 xen-054ccca730a664d2f1c44f2bf3c22db6bdbf5d25.zip |
x86_emulate: Fix SAHF emulation.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'xen/arch/x86/x86_emulate.c')
-rw-r--r-- | xen/arch/x86/x86_emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/x86_emulate.c b/xen/arch/x86/x86_emulate.c index 43f9016624..e559e3c91a 100644 --- a/xen/arch/x86/x86_emulate.c +++ b/xen/arch/x86/x86_emulate.c @@ -2226,7 +2226,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 */ |