haxm: Skip unconditional marking of pages as dirty

Marking all pages as always dirty has some really bad consequences for
the current NV2A emulation. The lesser of two evils for now is to leave
the pages as-is. Eventually this will be replaced by proper dirty page
tracking once HAXM supports it.
This commit is contained in:
Matt Borgerson 2018-09-21 01:27:20 -07:00 committed by Matt
parent 71a4c6ddd4
commit f48b6345f2
1 changed files with 7 additions and 0 deletions

View File

@ -281,7 +281,14 @@ static void hax_log_sync(MemoryListener *listener,
return;
}
#ifndef XBOX
/* FIXME: Marking all pages as always dirty has some really bad consequences
* for the current NV2A emulation. The lesser of two evils for now is to
* leave the pages as-is. Eventually this will be replaced by proper dirty
* page tracking once HAXM supports it.
*/
memory_region_set_dirty(mr, 0, int128_get64(section->size));
#endif
}
static MemoryListener hax_memory_listener = {