[XEN] BSF/BSR set ZF not CF.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-01-15 14:32:25 +00:00
1 parent f28756a627
commit 2f5ff9b862
1 file changed
+2 -2
+2 -2
View File
@@ -2019,7 +2019,7 @@ x86_emulate(
case 0xbc: /* bsf */ {
int zf;
asm ( "bsf %2,%0; setc %b1"
asm ( "bsf %2,%0; setz %b1"
: "=r" (dst.val), "=q" (zf)
: "r" (src.val), "1" (0) );
_regs.eflags &= ~EFLG_ZF;
@@ -2029,7 +2029,7 @@ x86_emulate(
case 0xbd: /* bsr */ {
int zf;
asm ( "bsr %2,%0; setc %b1"
asm ( "bsr %2,%0; setz %b1"
: "=r" (dst.val), "=q" (zf)
: "r" (src.val), "1" (0) );
_regs.eflags &= ~EFLG_ZF;
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.