mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
MMIO: Show the read/write size in invalid handlers.
This commit is contained in:
@ -194,8 +194,8 @@ template <typename T>
|
|||||||
ReadHandlingMethod<T>* InvalidRead()
|
ReadHandlingMethod<T>* InvalidRead()
|
||||||
{
|
{
|
||||||
return ComplexRead<T>([](u32 addr) {
|
return ComplexRead<T>([](u32 addr) {
|
||||||
ERROR_LOG(MEMMAP, "Trying to read from an invalid MMIO (addr=%08x)",
|
ERROR_LOG(MEMMAP, "Trying to read%d from an invalid MMIO (addr=%08x)",
|
||||||
addr);
|
8 * (int)(sizeof (T)), addr);
|
||||||
return -1;
|
return -1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -203,8 +203,8 @@ template <typename T>
|
|||||||
WriteHandlingMethod<T>* InvalidWrite()
|
WriteHandlingMethod<T>* InvalidWrite()
|
||||||
{
|
{
|
||||||
return ComplexWrite<T>([](u32 addr, T val) {
|
return ComplexWrite<T>([](u32 addr, T val) {
|
||||||
ERROR_LOG(MEMMAP, "Trying to write to an invalid MMIO (addr=%08x, val=%08x)",
|
ERROR_LOG(MEMMAP, "Trying to write%d to an invalid MMIO (addr=%08x, val=%08x)",
|
||||||
addr, (u32)val);
|
8 * (int)(sizeof (T)), addr, (u32)val);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user