melonDS
melonDS copied to clipboard
Hopefully fix fastmem on macOS
trafficstars
This makes two very small changes:
- Add forgotten calls to
JitEnableWrite/JitEnableExecuteinFaultHandler - Disable the immediate
munmapofMemoryBasewhich, while it works on Linux, seems to cause problems on macOS. Additionally this should fix FreeBSD as it seems to behave the same as macOS here.
https://github.com/melonDS-emu/melonDS/blob/master/src/ARMJIT_Memory.cpp#L338
This needs to be replaced by mmaping anonymous memory in place again. Otherwise once memory is remapped (e.g. DTCM) the fastmem area will get holely.
iirc there was also a hack to keep fastmem by default disabled in config.
iirc there was also a hack to keep fastmem by default disabled in config.
Just looked, all it does is disable it by default but doesn't keep it off if you turned it on. Should probably still be removed in this PR though.