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:
Keir Fraser committed 2008-02-05 10:29:19 +00:00
1 parent 08286e1a3c
commit 054ccca730
1 file changed
+1 -1
+1 -1
View File
@@ -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 */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.