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:
OBattler
2025-10-28 01:58:24 +01:00
parent 91e35ae33a
commit cb1033581e

View File

@@ -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;