platinum: Handle read 4 bytes with offset.

This commit is contained in:
joevt 2024-02-18 18:19:38 -08:00 committed by dingusdev
parent 97339e4ce4
commit ffc7de4715

View File

@ -195,7 +195,7 @@ uint32_t PlatinumCtrl::read(uint32_t rgn_start, uint32_t offset, int size) {
value = 0; value = 0;
} }
if (size == 4) if (size == 4 && !(offset & 3))
return value; return value;
else else
return extract_with_wrap_around(value, offset, size); return extract_with_wrap_around(value, offset, size);