From 3b3ad0c1cb3c21c4886b8aeea11e842c4b018f82 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 29 Oct 2020 22:15:10 +1000 Subject: [PATCH] Bus: Fix icache fills from BIOS failing --- src/core/bus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/bus.cpp b/src/core/bus.cpp index f38caeadf..5c09bc97c 100644 --- a/src/core/bus.cpp +++ b/src/core/bus.cpp @@ -967,7 +967,7 @@ ALWAYS_INLINE_RELEASE void DoInstructionRead(PhysicalMemoryAddress address, void } else if (address >= BIOS_BASE && address < (BIOS_BASE + BIOS_SIZE)) { - std::memcpy(data, &g_bios[(address - BIOS_BASE) & BIOS_MASK], sizeof(u32)); + std::memcpy(data, &g_bios[(address - BIOS_BASE) & BIOS_MASK], sizeof(u32) * word_count); if constexpr (add_ticks) g_state.pending_ticks += m_bios_access_time[static_cast(MemoryAccessSize::Word)] * word_count; }