avoid using access_write_linear when not strickly needed
This commit is contained in:
parent
8ef5dcaca3
commit
65ffcf5dc8
@ -570,7 +570,7 @@ BX_INSF_TYPE BX_CPP_AttrRegparmN(1) BX_CPU_C::LTR_Ew(bxInstruction_c *i)
|
||||
/* mark as busy */
|
||||
if (!(dword2 & 0x0200)) {
|
||||
dword2 |= 0x0200; /* set busy bit */
|
||||
access_write_linear(BX_CPU_THIS_PTR gdtr.base + selector.index*8 + 4, 4, 0, 0x0, &dword2);
|
||||
system_write_dword(BX_CPU_THIS_PTR gdtr.base + selector.index*8 + 4, dword2);
|
||||
}
|
||||
|
||||
BX_NEXT_INSTR(i);
|
||||
|
@ -512,10 +512,10 @@ BX_CPU_C::touch_segment(bx_selector_t *selector, bx_descriptor_t *descriptor)
|
||||
descriptor->type |= 1;
|
||||
|
||||
if (selector->ti == 0) { /* GDT */
|
||||
access_write_linear(BX_CPU_THIS_PTR gdtr.base + selector->index*8 + 5, 1, 0, 0x0, &AR_byte);
|
||||
system_write_byte(BX_CPU_THIS_PTR gdtr.base + selector->index*8 + 5, AR_byte);
|
||||
}
|
||||
else { /* LDT */
|
||||
access_write_linear(BX_CPU_THIS_PTR ldtr.cache.u.segment.base + selector->index*8 + 5, 1, 0, 0x0, &AR_byte);
|
||||
system_write_byte(BX_CPU_THIS_PTR ldtr.cache.u.segment.base + selector->index*8 + 5, AR_byte);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user