mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86_emulate: Fix SAHF emulation.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com> Signed-off-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
1 parent
08286e1a3c
commit
054ccca730
1 file changed
+1
-1
@@ -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 */
|
||||
|
||||