From 47e056a65456ea04b6c14087a0c6c79eb46f478f Mon Sep 17 00:00:00 2001 From: Tom Boshoven Date: Sat, 5 Aug 2017 14:52:03 +0200 Subject: [PATCH] Re-enable SDIO events. --- Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp b/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp index 5b7f94a866..2ecd8f108a 100644 --- a/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp +++ b/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp @@ -155,8 +155,7 @@ s32 SDIOSlot0::ExecuteCommand(const Request& request, u32 _BufferIn, u32 _Buffer u32 pad0; } req; - // Ignore the first two bits (start bit and direction) - req.command = Memory::Read_U32(_BufferIn + 0) & 0x3f; + req.command = Memory::Read_U32(_BufferIn + 0); req.type = Memory::Read_U32(_BufferIn + 4); req.resp = Memory::Read_U32(_BufferIn + 8); req.arg = Memory::Read_U32(_BufferIn + 12); @@ -317,9 +316,6 @@ s32 SDIOSlot0::ExecuteCommand(const Request& request, u32 _BufferIn, u32 _Buffer Memory::Write_U32(0x900, _BufferOut); break; - // The following events don't seem to be possible due to the command length being only 6 bits - // I don't want to delete this without more context on why it's there and what it's meant to do - /* case EVENT_REGISTER: // async INFO_LOG(IOS_SD, "Register event %x", req.arg); m_event = std::make_unique(static_cast(req.arg), request); @@ -339,7 +335,6 @@ s32 SDIOSlot0::ExecuteCommand(const Request& request, u32 _BufferIn, u32 _Buffer m_event.reset(); break; } - */ default: ERROR_LOG(IOS_SD, "Unknown SD command 0x%08x", req.command);