summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorneonloop2021-05-05 16:20:45 +0000
committerneonloop2021-05-05 16:20:45 +0000
commit3aa34f7503bbb03e9bcd191f8af4fd5faac66d2e (patch)
tree1be71c0b48ec866b604ab67aa7099be5f4c0283d /frontend
parentda0db18b9debadc6ff0241f39bbd9d78ab5328d2 (diff)
downloadpicogpsp-3aa34f7503bbb03e9bcd191f8af4fd5faac66d2e.tar.gz
picogpsp-3aa34f7503bbb03e9bcd191f8af4fd5faac66d2e.tar.bz2
picogpsp-3aa34f7503bbb03e9bcd191f8af4fd5faac66d2e.zip
Revert "Remove BIOS reserved translation area"
This reverts commit fb7ca09b019248b9a0aba481ea55386f71053d73. It seems that commit broke rolling in Minish Cap when using the ARM dynarec.
Diffstat (limited to 'frontend')
-rw-r--r--frontend/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/main.c b/frontend/main.c
index fb05708..1839c2a 100644
--- a/frontend/main.c
+++ b/frontend/main.c
@@ -373,6 +373,8 @@ int main(int argc, char *argv[])
PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0);
ram_translation_cache = mmap(NULL, RAM_TRANSLATION_CACHE_SIZE,
PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0);
+ bios_translation_cache = mmap(NULL, BIOS_TRANSLATION_CACHE_SIZE,
+ PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0);
#endif
}
else
@@ -429,6 +431,7 @@ void quit()
#if defined(HAVE_MMAP) && defined(HAVE_DYNAREC)
munmap(rom_translation_cache, ROM_TRANSLATION_CACHE_SIZE);
munmap(ram_translation_cache, RAM_TRANSLATION_CACHE_SIZE);
+ munmap(bios_translation_cache, BIOS_TRANSLATION_CACHE_SIZE);
#endif
menu_finish();