From 8925b828aa75b21d1069d2c238dca944088309c0 Mon Sep 17 00:00:00 2001 From: zeroZshadow Date: Thu, 13 Aug 2015 19:27:19 +0200 Subject: [PATCH] Ignore all writes to BBA_TXFIFOCNT --- Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp | 4 ++-- Source/Core/Core/HW/EXI_DeviceEthernet.cpp | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp b/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp index 6f60f3f380..dbe0116400 100644 --- a/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp +++ b/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp @@ -248,7 +248,7 @@ bool CEXIETHERNET::SendFrame(u8 *frame, u32 size) OVERLAPPED overlap; ZeroMemory(&overlap, sizeof(overlap)); - //WriteFile will always return false because the TAP handle is async + // WriteFile will always return false because the TAP handle is async WriteFile(mHAdapter, frame, size, NULL, &overlap); DWORD res = GetLastError(); @@ -314,7 +314,7 @@ bool CEXIETHERNET::RecvStart() if (res) { - // Synce the read is syncronouse here, complete immediately + // Since the read is synchronous here, complete immediately RecvHandlePacket(); } diff --git a/Source/Core/Core/HW/EXI_DeviceEthernet.cpp b/Source/Core/Core/HW/EXI_DeviceEthernet.cpp index 3468bad8d8..2de81059af 100644 --- a/Source/Core/Core/HW/EXI_DeviceEthernet.cpp +++ b/Source/Core/Core/HW/EXI_DeviceEthernet.cpp @@ -358,6 +358,12 @@ void CEXIETHERNET::MXCommandHandler(u32 data, u32 size) data &= (data & 0xff) ^ 0xff; goto write_to_register; + case BBA_TXFIFOCNT: + case BBA_TXFIFOCNT+1: + // Ignore all writes to BBA_TXFIFOCNT + transfer.address += size; + return; + write_to_register: default: for (int i = size - 1; i >= 0; i--)