From ca61f989fc38d0eb089a1297790c959fbbbca01b Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 19 Dec 2020 01:29:49 +1000 Subject: [PATCH] DMA: Don't panic on invalid device read/write --- src/core/dma.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/dma.cpp b/src/core/dma.cpp index 43bc01031..9bf9c7dc3 100644 --- a/src/core/dma.cpp +++ b/src/core/dma.cpp @@ -481,7 +481,7 @@ TickCount DMA::TransferMemoryToDevice(Channel channel, u32 address, u32 incremen case Channel::MDECout: case Channel::PIO: default: - Panic("Unhandled DMA channel for device write"); + Log_ErrorPrintf("Unhandled DMA channel %u for device write", static_cast(channel)); break; } @@ -537,7 +537,7 @@ TickCount DMA::TransferDeviceToMemory(Channel channel, u32 address, u32 incremen break; default: - Panic("Unhandled DMA channel for device read"); + Log_ErrorPrintf("Unhandled DMA channel %u for device read", static_cast(channel)); std::fill_n(dest_pointer, word_count, UINT32_C(0xFFFFFFFF)); break; }