DMA: Don't panic on invalid device read/write

This commit is contained in:
Connor McLaughlin 2020-12-19 01:29:49 +10:00
parent 7c7145d1c5
commit ca61f989fc
1 changed files with 2 additions and 2 deletions

View File

@ -481,7 +481,7 @@ TickCount DMA::TransferMemoryToDevice(Channel channel, u32 address, u32 incremen
case Channel::MDECout: case Channel::MDECout:
case Channel::PIO: case Channel::PIO:
default: default:
Panic("Unhandled DMA channel for device write"); Log_ErrorPrintf("Unhandled DMA channel %u for device write", static_cast<u32>(channel));
break; break;
} }
@ -537,7 +537,7 @@ TickCount DMA::TransferDeviceToMemory(Channel channel, u32 address, u32 incremen
break; break;
default: default:
Panic("Unhandled DMA channel for device read"); Log_ErrorPrintf("Unhandled DMA channel %u for device read", static_cast<u32>(channel));
std::fill_n(dest_pointer, word_count, UINT32_C(0xFFFFFFFF)); std::fill_n(dest_pointer, word_count, UINT32_C(0xFFFFFFFF));
break; break;
} }