Memmap: Make the MMIO mapping a unique_ptr

This commit is contained in:
Lioncash
2016-02-14 22:22:49 -05:00
parent cafc879b7c
commit b36b10fa78
4 changed files with 34 additions and 28 deletions

View File

@ -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;
}