ia64/xen-unstable

changeset 13442:ba5e80864f9c

[XEN] BSF/BSR set ZF not CF.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Mon Jan 15 14:32:25 2007 +0000 (2007-01-15)
parents fb46005e0756
children 0ba81aa56455
files xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate.c	Mon Jan 15 12:25:04 2007 +0000
     1.2 +++ b/xen/arch/x86/x86_emulate.c	Mon Jan 15 14:32:25 2007 +0000
     1.3 @@ -2019,7 +2019,7 @@ x86_emulate(
     1.4  
     1.5      case 0xbc: /* bsf */ {
     1.6          int zf;
     1.7 -        asm ( "bsf %2,%0; setc %b1"
     1.8 +        asm ( "bsf %2,%0; setz %b1"
     1.9                : "=r" (dst.val), "=q" (zf)
    1.10                : "r" (src.val), "1" (0) );
    1.11          _regs.eflags &= ~EFLG_ZF;
    1.12 @@ -2029,7 +2029,7 @@ x86_emulate(
    1.13  
    1.14      case 0xbd: /* bsr */ {
    1.15          int zf;
    1.16 -        asm ( "bsr %2,%0; setc %b1"
    1.17 +        asm ( "bsr %2,%0; setz %b1"
    1.18                : "=r" (dst.val), "=q" (zf)
    1.19                : "r" (src.val), "1" (0) );
    1.20          _regs.eflags &= ~EFLG_ZF;