summaryrefslogtreecommitdiff
path: root/gba_memory.c
diff options
context:
space:
mode:
authorDavid Guillen Fandos2021-03-17 18:33:02 +0100
committerDavid Guillen Fandos2021-03-17 18:33:02 +0100
commitfb7ca09b019248b9a0aba481ea55386f71053d73 (patch)
tree4b4c650c5b0aca014747e43c29693bbb4e6c00f3 /gba_memory.c
parent34e672ed25f96c3558534ac24523103f3711e58a (diff)
downloadpicogpsp-fb7ca09b019248b9a0aba481ea55386f71053d73.tar.gz
picogpsp-fb7ca09b019248b9a0aba481ea55386f71053d73.tar.bz2
picogpsp-fb7ca09b019248b9a0aba481ea55386f71053d73.zip
Remove BIOS reserved translation area
This is not really necessary since it can share area with ROM. Performance impact should be very minimal (haven't noticed it myself) and could be compensated (even by a positive offset) if we bump the ROM cache area size. Tested with several dynarecs.
Diffstat (limited to 'gba_memory.c')
-rw-r--r--gba_memory.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/gba_memory.c b/gba_memory.c
index c59aab1..e1cb9a4 100644
--- a/gba_memory.c
+++ b/gba_memory.c
@@ -310,8 +310,7 @@ u16 io_registers[1024 * 16];
u8 ewram[1024 * 256 * 2];
u8 iwram[1024 * 32 * 2];
u8 vram[1024 * 96];
-
-u8 bios_rom[1024 * 16 * 2];
+u8 bios_rom[1024 * 16];
u32 bios_read_protect;
// Up to 128kb, store SRAM, flash ROM, or EEPROM here.
@@ -3373,17 +3372,6 @@ void memory_term(void)
}
}
-void bios_region_read_allow(void)
-{
- memory_map_read[0] = bios_rom;
-}
-
-void bios_region_read_protect(void)
-{
- memory_map_read[0] = NULL;
-}
-
-
#define savestate_block(type) \
cpu_##type##_savestate(); \
input_##type##_savestate(); \
@@ -3409,7 +3397,6 @@ void gba_load_state(const void* src)
{
flush_translation_cache_ram();
flush_translation_cache_rom();
- flush_translation_cache_bios();
}
#endif