From d00711b34fbbf0c03ba3313b44a425680e2e6d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 11 May 2019 00:15:15 +0200 Subject: [PATCH] AddressSpace: Fix PowerPC::HostWrite_XXX parameter order mixup --- Source/Core/Core/HW/AddressSpace.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/HW/AddressSpace.cpp b/Source/Core/Core/HW/AddressSpace.cpp index 5e46ab766f..0b5cb86288 100644 --- a/Source/Core/Core/HW/AddressSpace.cpp +++ b/Source/Core/Core/HW/AddressSpace.cpp @@ -82,13 +82,13 @@ struct EffectiveAddressSpaceAccessors : Accessors { bool IsValidAddress(u32 address) const override { return PowerPC::HostIsRAMAddress(address); } u8 ReadU8(u32 address) const override { return PowerPC::HostRead_U8(address); } - void WriteU8(u32 address, u8 value) override { PowerPC::HostWrite_U8(address, value); } + void WriteU8(u32 address, u8 value) override { PowerPC::HostWrite_U8(value, address); } u16 ReadU16(u32 address) const override { return PowerPC::HostRead_U16(address); } - void WriteU16(u32 address, u16 value) override { PowerPC::HostWrite_U16(address, value); } + void WriteU16(u32 address, u16 value) override { PowerPC::HostWrite_U16(value, address); } u32 ReadU32(u32 address) const override { return PowerPC::HostRead_U32(address); } - void WriteU32(u32 address, u32 value) override { PowerPC::HostWrite_U32(address, value); } + void WriteU32(u32 address, u32 value) override { PowerPC::HostWrite_U32(value, address); } u64 ReadU64(u32 address) const override { return PowerPC::HostRead_U64(address); } - void WriteU64(u32 address, u64 value) override { PowerPC::HostWrite_U64(address, value); } + void WriteU64(u32 address, u64 value) override { PowerPC::HostWrite_U64(value, address); } float ReadF32(u32 address) const override { return PowerPC::HostRead_F32(address); }; bool Matches(u32 haystack_start, u8* needle_start, u32 needle_size) const