Memmap: Make the MMIO mapping a unique_ptr

This commit is contained in:
Lioncash committed 2016-02-15 00:02:00 -05:00
1 parent cafc879b7c
commit b36b10fa78
4 files changed
+34 -28

No files matched your search

@@ -154,7 +154,7 @@ void JitArm64::SafeLoadToReg(u32 dest, s32 addr, s32 offsetReg, u32 flags, s32 o
}
else if (mmio_address)
{
MMIOLoadToReg(Memory::mmio_mapping, this,
MMIOLoadToReg(Memory::mmio_mapping.get(), this,
regs_in_use, fprs_in_use, dest_reg,
mmio_address, flags);
}
@@ -350,7 +350,7 @@ void JitArm64::SafeStoreFromReg(s32 dest, u32 value, s32 regOffset, u32 flags, s
}
else if (mmio_address && !(flags & BackPatchInfo::FLAG_REVERSE))
{
MMIOWriteRegToAddr(Memory::mmio_mapping, this,
MMIOWriteRegToAddr(Memory::mmio_mapping.get(), this,
regs_in_use, fprs_in_use, RS,
mmio_address, flags);
}
@@ -264,7 +264,7 @@ void EmuCodeBlock::SafeLoadToReg(X64Reg reg_value, const Gen::OpArg & opAddress,
u32 mmioAddress = PowerPC::IsOptimizableMMIOAccess(address, accessSize);
if (accessSize != 64 && mmioAddress)
{
MMIOLoadToReg(Memory::mmio_mapping, reg_value, registersInUse,
MMIOLoadToReg(Memory::mmio_mapping.get(), reg_value, registersInUse,
mmioAddress, accessSize, signExtend);
return;
}