|
|
| version 1.21, 2011/12/23 04:17:47 | version 1.23, 2012/01/08 18:26:55 |
|---|---|
| Line 28 | Line 28 |
| #include "ia32.mcr" | #include "ia32.mcr" |
| void | void CPUCALL |
| load_segreg(int idx, UINT16 selector, UINT16 *sregp, descriptor_t *sdp, int exc) | load_segreg(int idx, UINT16 selector, UINT16 *sregp, descriptor_t *sdp, int exc) |
| { | { |
| selector_t sel; | selector_t sel; |
| Line 122 load_segreg(int idx, UINT16 selector, UI | Line 122 load_segreg(int idx, UINT16 selector, UI |
| /* | /* |
| * load SS register | * load SS register |
| */ | */ |
| void | void CPUCALL |
| load_ss(UINT16 selector, const descriptor_t *sdp, int cpl) | load_ss(UINT16 selector, const descriptor_t *sdp, int cpl) |
| { | { |
| Line 134 load_ss(UINT16 selector, const descripto | Line 134 load_ss(UINT16 selector, const descripto |
| /* | /* |
| * load CS register | * load CS register |
| */ | */ |
| void | void CPUCALL |
| load_cs(UINT16 selector, const descriptor_t *sdp, int new_cpl) | load_cs(UINT16 selector, const descriptor_t *sdp, int new_cpl) |
| { | { |
| int cpl = new_cpl & 3; | int cpl = new_cpl & 3; |
| Line 150 load_cs(UINT16 selector, const descripto | Line 150 load_cs(UINT16 selector, const descripto |
| /* | /* |
| * load LDT register | * load LDT register |
| */ | */ |
| void | void CPUCALL |
| load_ldtr(UINT16 selector, int exc) | load_ldtr(UINT16 selector, int exc) |
| { | { |
| selector_t sel; | selector_t sel; |
| Line 162 load_ldtr(UINT16 selector, int exc) | Line 162 load_ldtr(UINT16 selector, int exc) |
| if (rv < 0 || sel.ldt) { | if (rv < 0 || sel.ldt) { |
| if (rv == -2) { | if (rv == -2) { |
| /* null segment */ | /* null segment */ |
| VERBOSE(("load_ldtr: null segment")); | |
| CPU_LDTR = 0; | CPU_LDTR = 0; |
| memset(&CPU_LDTR_DESC, 0, sizeof(CPU_LDTR_DESC)); | memset(&CPU_LDTR_DESC, 0, sizeof(CPU_LDTR_DESC)); |
| return; | return; |
| Line 189 load_ldtr(UINT16 selector, int exc) | Line 190 load_ldtr(UINT16 selector, int exc) |
| CPU_LDTR_DESC = sel.desc; | CPU_LDTR_DESC = sel.desc; |
| } | } |
| void | void CPUCALL |
| load_descriptor(descriptor_t *sdp, UINT32 addr) | load_descriptor(descriptor_t *sdp, UINT32 addr) |
| { | { |
| UINT32 l, h; | UINT32 l, h; |
| Line 303 load_descriptor(descriptor_t *sdp, UINT3 | Line 304 load_descriptor(descriptor_t *sdp, UINT3 |
| #endif | #endif |
| } | } |
| int | int CPUCALL |
| parse_selector(selector_t *ssp, UINT16 selector) | parse_selector(selector_t *ssp, UINT16 selector) |
| { | { |
| UINT32 base; | UINT32 base; |
| Line 352 parse_selector(selector_t *ssp, UINT16 s | Line 353 parse_selector(selector_t *ssp, UINT16 s |
| return 0; | return 0; |
| } | } |
| int | int CPUCALL |
| selector_is_not_present(const selector_t *ssp) | selector_is_not_present(const selector_t *ssp) |
| { | { |
| UINT32 h; | UINT32 h; |
| Line 375 selector_is_not_present(const selector_t | Line 376 selector_is_not_present(const selector_t |
| return 0; | return 0; |
| } | } |
| void | void CPUCALL |
| segdesc_init(int idx, UINT16 sreg, descriptor_t *sdp) | segdesc_init(int idx, UINT16 sreg, descriptor_t *sdp) |
| { | { |
| Line 388 segdesc_init(int idx, UINT16 sreg, descr | Line 389 segdesc_init(int idx, UINT16 sreg, descr |
| segdesc_set_default(idx, sreg, sdp); | segdesc_set_default(idx, sreg, sdp); |
| } | } |
| void | void CPUCALL |
| segdesc_set_default(int idx, UINT16 selector, descriptor_t *sdp) | segdesc_set_default(int idx, UINT16 selector, descriptor_t *sdp) |
| { | { |