From 3aa34f7503bbb03e9bcd191f8af4fd5faac66d2e Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 5 May 2021 16:20:45 +0000 Subject: Revert "Remove BIOS reserved translation area" This reverts commit fb7ca09b019248b9a0aba481ea55386f71053d73. It seems that commit broke rolling in Minish Cap when using the ARM dynarec. --- frontend/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'frontend') 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(); -- cgit v1.2.3