CPU: Don't leave fault_count uninitialized
This commit is contained in:
@@ -1249,6 +1249,7 @@ void CodeGenerator::EmitLoadGuestMemoryFastmem(const CodeBlockInstruction& cbi,
|
|||||||
bpi.address_host_reg = HostReg_Invalid;
|
bpi.address_host_reg = HostReg_Invalid;
|
||||||
bpi.value_host_reg = result.host_reg;
|
bpi.value_host_reg = result.host_reg;
|
||||||
bpi.guest_pc = m_current_instruction->pc;
|
bpi.guest_pc = m_current_instruction->pc;
|
||||||
|
bpi.fault_count = 0;
|
||||||
|
|
||||||
Value fastmem_base = GetFastmemLoadBase();
|
Value fastmem_base = GetFastmemLoadBase();
|
||||||
|
|
||||||
@@ -1405,6 +1406,7 @@ void CodeGenerator::EmitStoreGuestMemoryFastmem(const CodeBlockInstruction& cbi,
|
|||||||
bpi.address_host_reg = HostReg_Invalid;
|
bpi.address_host_reg = HostReg_Invalid;
|
||||||
bpi.value_host_reg = value.host_reg;
|
bpi.value_host_reg = value.host_reg;
|
||||||
bpi.guest_pc = m_current_instruction->pc;
|
bpi.guest_pc = m_current_instruction->pc;
|
||||||
|
bpi.fault_count = 0;
|
||||||
|
|
||||||
Value fastmem_base = GetFastmemStoreBase();
|
Value fastmem_base = GetFastmemStoreBase();
|
||||||
Value actual_value = GetValueInHostRegister(value);
|
Value actual_value = GetValueInHostRegister(value);
|
||||||
|
|||||||
@@ -1411,6 +1411,7 @@ void CodeGenerator::EmitLoadGuestMemoryFastmem(const CodeBlockInstruction& cbi,
|
|||||||
bpi.address_host_reg = HostReg_Invalid;
|
bpi.address_host_reg = HostReg_Invalid;
|
||||||
bpi.value_host_reg = result.host_reg;
|
bpi.value_host_reg = result.host_reg;
|
||||||
bpi.guest_pc = m_current_instruction->pc;
|
bpi.guest_pc = m_current_instruction->pc;
|
||||||
|
bpi.fault_count = 0;
|
||||||
|
|
||||||
HostReg address_reg;
|
HostReg address_reg;
|
||||||
if (address.IsConstant())
|
if (address.IsConstant())
|
||||||
@@ -1586,6 +1587,7 @@ void CodeGenerator::EmitStoreGuestMemoryFastmem(const CodeBlockInstruction& cbi,
|
|||||||
bpi.address_host_reg = HostReg_Invalid;
|
bpi.address_host_reg = HostReg_Invalid;
|
||||||
bpi.value_host_reg = value.host_reg;
|
bpi.value_host_reg = value.host_reg;
|
||||||
bpi.guest_pc = m_current_instruction->pc;
|
bpi.guest_pc = m_current_instruction->pc;
|
||||||
|
bpi.fault_count = 0;
|
||||||
|
|
||||||
HostReg address_reg;
|
HostReg address_reg;
|
||||||
if (address.IsConstant())
|
if (address.IsConstant())
|
||||||
|
|||||||
@@ -1875,6 +1875,7 @@ void CodeGenerator::EmitLoadGuestMemoryFastmem(const CodeBlockInstruction& cbi,
|
|||||||
bpi.address_host_reg = HostReg_Invalid;
|
bpi.address_host_reg = HostReg_Invalid;
|
||||||
bpi.value_host_reg = result.host_reg;
|
bpi.value_host_reg = result.host_reg;
|
||||||
bpi.guest_pc = m_current_instruction->pc;
|
bpi.guest_pc = m_current_instruction->pc;
|
||||||
|
bpi.fault_count = 0;
|
||||||
|
|
||||||
if (g_settings.cpu_fastmem_mode == CPUFastmemMode::MMap)
|
if (g_settings.cpu_fastmem_mode == CPUFastmemMode::MMap)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user