summaryrefslogtreecommitdiff
path: root/cpu_threaded.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu_threaded.c')
-rw-r--r--cpu_threaded.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpu_threaded.c b/cpu_threaded.c
index c66fa5e..519d7f0 100644
--- a/cpu_threaded.c
+++ b/cpu_threaded.c
@@ -3686,6 +3686,17 @@ void flush_translation_cache_rom(void)
memset(rom_branch_hash, 0, sizeof(rom_branch_hash));
}
+void wipe_caches(void)
+{
+ /* Ensure we wipe everything including the SMC mirrors */
+ flush_translation_cache_rom();
+ ewram_code_min = 0;
+ ewram_code_max = 0x3FFFF;
+ iwram_code_min = 0;
+ iwram_code_max = 0x7FFF;
+ flush_translation_cache_ram();
+}
+
#define cache_dump_prefix ""
void dump_translation_cache(void)