From 05eea3cd2b0c484694bc01a5e16172a6346ddbd1 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 11 Jan 2023 18:21:48 +1000 Subject: [PATCH] CPU/CodeCache: Always compute uncached fetch ticks Running code out of uncached ROM is slowwww. --- src/core/cpu_code_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cpu_code_cache.cpp b/src/core/cpu_code_cache.cpp index b25342663..a9895eb53 100644 --- a/src/core/cpu_code_cache.cpp +++ b/src/core/cpu_code_cache.cpp @@ -706,9 +706,9 @@ bool CompileBlock(CodeBlock* block, bool allow_flush) block->icache_line_count++; last_cache_line = icache_line; } - block->uncached_fetch_ticks += GetInstructionReadTicks(pc); } + block->uncached_fetch_ticks += GetInstructionReadTicks(pc); block->contains_loadstore_instructions |= cbi.is_load_instruction; block->contains_loadstore_instructions |= cbi.is_store_instruction;