DMA: Don't panic on invalid device read/write
This commit is contained in:
parent
7c7145d1c5
commit
ca61f989fc
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue