trunk/src/emu/cpu/i386/i386.c
r241537 | r241538 | |
1977 | 1977 | logerror("CALL: Task Gate: Gate DPL is less than RPL.\n"); |
1978 | 1978 | FAULT(FAULT_TS,selector & ~0x03) // #TS(selector) |
1979 | 1979 | } |
1980 | | if(gate.ar & 0x0080) |
| 1980 | if((gate.ar & 0x0080) == 0) |
1981 | 1981 | { |
1982 | 1982 | logerror("CALL: Task Gate: Gate is not present.\n"); |
1983 | 1983 | FAULT(FAULT_NP,selector & ~0x03) // #NP(selector) |
r241537 | r241538 | |
2003 | 2003 | logerror("CALL: Task Gate: TSS is busy.\n"); |
2004 | 2004 | FAULT(FAULT_TS,gate.selector & ~0x03) // #TS(selector) |
2005 | 2005 | } |
2006 | | if(desc.flags & 0x0080) |
| 2006 | if((desc.flags & 0x0080) == 0) |
2007 | 2007 | { |
2008 | 2008 | logerror("CALL: Task Gate: TSS is not present.\n"); |
2009 | 2009 | FAULT(FAULT_NP,gate.selector & ~0x03) // #TS(selector) |