[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEN] BSF/BSR set ZF not CF.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1168871545 0 # Node ID ba5e80864f9c9cc91879e2fc175370634d3bdd9a # Parent fb46005e07564bd152621c2ebf2c737b4115dc83 [XEN] BSF/BSR set ZF not CF. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- xen/arch/x86/x86_emulate.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r fb46005e0756 -r ba5e80864f9c xen/arch/x86/x86_emulate.c --- a/xen/arch/x86/x86_emulate.c Mon Jan 15 12:25:04 2007 +0000 +++ b/xen/arch/x86/x86_emulate.c Mon Jan 15 14:32:25 2007 +0000 @@ -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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |