[Bug 2455] New: x86emu doesn't handle the JNL instruction correctly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 2 15:45:40 PST 2005


Please do not reply to this email: if you want to comment on the bug, go to            
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=2455          
     
           Summary: x86emu doesn't handle the JNL instruction correctly
           Product: xorg
           Version: 6.8.1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Server/general
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: dwong_7086 at yahoo.com


in xc/extras/x86emu/src/x86emu/ops2.c:
   131        case 0x8d:
   132          name = "JNL\t";
   133          cond = xorl(ACCESS_FLAG(F_SF), ACCESS_FLAG(F_OF));

this should be
                cond = !(xorl(ACCESS_FLAG(F_SF), ACCESS_FLAG(F_OF)));
see the case for "JNLE" below.
                      
   134          break;
   135        case 0x8e:
   136          name = "JLE\t";
   137          cond = (xorl(ACCESS_FLAG(F_SF), ACCESS_FLAG(F_OF)) ||
   138                  ACCESS_FLAG(F_ZF));
   139          break;
   140        case 0x8f:
   141          name = "JNLE\t";
   142          cond = !(xorl(ACCESS_FLAG(F_SF), ACCESS_FLAG(F_OF)) ||
   143                   ACCESS_FLAG(F_ZF));
   144          break;          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list