diff --git a/src/core/cpu_recompiler_code_generator_aarch32.cpp b/src/core/cpu_recompiler_code_generator_aarch32.cpp index 1631498a9..9cfbb4f07 100644 --- a/src/core/cpu_recompiler_code_generator_aarch32.cpp +++ b/src/core/cpu_recompiler_code_generator_aarch32.cpp @@ -1249,6 +1249,7 @@ void CodeGenerator::EmitLoadGuestMemoryFastmem(const CodeBlockInstruction& cbi, bpi.address_host_reg = HostReg_Invalid; bpi.value_host_reg = result.host_reg; bpi.guest_pc = m_current_instruction->pc; + bpi.fault_count = 0; Value fastmem_base = GetFastmemLoadBase(); @@ -1405,6 +1406,7 @@ void CodeGenerator::EmitStoreGuestMemoryFastmem(const CodeBlockInstruction& cbi, bpi.address_host_reg = HostReg_Invalid; bpi.value_host_reg = value.host_reg; bpi.guest_pc = m_current_instruction->pc; + bpi.fault_count = 0; Value fastmem_base = GetFastmemStoreBase(); Value actual_value = GetValueInHostRegister(value); diff --git a/src/core/cpu_recompiler_code_generator_aarch64.cpp b/src/core/cpu_recompiler_code_generator_aarch64.cpp index 455616f3d..3b1beaeb3 100644 --- a/src/core/cpu_recompiler_code_generator_aarch64.cpp +++ b/src/core/cpu_recompiler_code_generator_aarch64.cpp @@ -1411,6 +1411,7 @@ void CodeGenerator::EmitLoadGuestMemoryFastmem(const CodeBlockInstruction& cbi, bpi.address_host_reg = HostReg_Invalid; bpi.value_host_reg = result.host_reg; bpi.guest_pc = m_current_instruction->pc; + bpi.fault_count = 0; HostReg address_reg; if (address.IsConstant()) @@ -1586,6 +1587,7 @@ void CodeGenerator::EmitStoreGuestMemoryFastmem(const CodeBlockInstruction& cbi, bpi.address_host_reg = HostReg_Invalid; bpi.value_host_reg = value.host_reg; bpi.guest_pc = m_current_instruction->pc; + bpi.fault_count = 0; HostReg address_reg; if (address.IsConstant()) diff --git a/src/core/cpu_recompiler_code_generator_x64.cpp b/src/core/cpu_recompiler_code_generator_x64.cpp index 9239c9b4b..a591d2294 100644 --- a/src/core/cpu_recompiler_code_generator_x64.cpp +++ b/src/core/cpu_recompiler_code_generator_x64.cpp @@ -1875,6 +1875,7 @@ void CodeGenerator::EmitLoadGuestMemoryFastmem(const CodeBlockInstruction& cbi, bpi.address_host_reg = HostReg_Invalid; bpi.value_host_reg = result.host_reg; bpi.guest_pc = m_current_instruction->pc; + bpi.fault_count = 0; if (g_settings.cpu_fastmem_mode == CPUFastmemMode::MMap) {