src/emu/cpu/i386/i386.c
| r11985 | r11986 | |
| 429 | 429 | int type; |
| 430 | 430 | UINT16 flags; |
| 431 | 431 | I386_SREG desc; |
| 432 | | UINT8 CPL = 0, DPL = 0, RPL = 0; |
| 432 | UINT8 CPL = 0, DPL = 0; //, RPL = 0; |
| 433 | 433 | I386_CALL_GATE gate; |
| 434 | 434 | |
| 435 | 435 | /* 32-bit */ |
| r11985 | r11986 | |
| 520 | 520 | i386_load_protected_mode_segment(cpustate,&desc); |
| 521 | 521 | CPL = cpustate->CPL; // current privilege level |
| 522 | 522 | DPL = (desc.flags >> 5) & 0x03; // descriptor privilege level |
| 523 | | RPL = segment & 0x03; // requested privilege level |
| 523 | // RPL = segment & 0x03; // requested privilege level |
| 524 | 524 | |
| 525 | 525 | if((segment & ~0x07) == 0) |
| 526 | 526 | { |