mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
mem.c: Make sure the topmost for loop on mappings recalculate exits right after the first iteration if the mapping's end is zero (ie. if no address bits are ignored).
This commit is contained in:
@@ -2347,6 +2347,9 @@ mem_mapping_recalc(uint64_t base, uint64_t size)
|
||||
_mem_state[c >> MEM_GRANULARITY_BITS].states[n].r))
|
||||
read_mapping_bus[c >> MEM_GRANULARITY_BITS] = map;
|
||||
}
|
||||
|
||||
if (i_e == 0x00000000ULL)
|
||||
break;
|
||||
}
|
||||
}
|
||||
map = map->next;
|
||||
|
||||
Reference in New Issue
Block a user