[FAST486]

If the executable bit of a segment descriptor is set, it's never a grow-down segment.


svn path=/trunk/; revision=67606
This commit is contained in:
Aleksandar Andrejevic 2015-05-09 21:56:40 +00:00
parent b3dfcac1cf
commit 6cba38d854

View file

@ -47,7 +47,7 @@ Fast486ReadMemory(PFAST486_STATE State,
/* Get the cached descriptor */ /* Get the cached descriptor */
CachedDescriptor = &State->SegmentRegs[SegmentReg]; CachedDescriptor = &State->SegmentRegs[SegmentReg];
if (InstFetch || !CachedDescriptor->DirConf) if (InstFetch || CachedDescriptor->Executable || !CachedDescriptor->DirConf)
{ {
if ((Offset + Size - 1) > CachedDescriptor->Limit) if ((Offset + Size - 1) > CachedDescriptor->Limit)
{ {
@ -169,7 +169,7 @@ Fast486WriteMemory(PFAST486_STATE State,
/* Get the cached descriptor */ /* Get the cached descriptor */
CachedDescriptor = &State->SegmentRegs[SegmentReg]; CachedDescriptor = &State->SegmentRegs[SegmentReg];
if (!CachedDescriptor->DirConf) if (CachedDescriptor->Executable || !CachedDescriptor->DirConf)
{ {
if ((Offset + Size - 1) > CachedDescriptor->Limit) if ((Offset + Size - 1) > CachedDescriptor->Limit)
{ {