Added a sanity check to mem_invalidate_range() when compiled with the new recompiler, fixes segmentation fault on with OS/2 on IBM PS/2 Model 80.

This commit is contained in:
OBattler
2023-06-10 19:24:44 +02:00
parent 86aa72840b
commit cf8a2aa50a

View File

@@ -2219,7 +2219,7 @@ mem_invalidate_range(uint32_t start_addr, uint32_t end_addr)
if (p) {
p->dirty_mask = 0xffffffffffffffffULL;
if (p->byte_dirty_mask)
if ((p->mem != page_ff) && p->byte_dirty_mask)
memset(p->byte_dirty_mask, 0xff, 64 * sizeof(uint64_t));
if (!page_in_evict_list(p))