add another sync point for RSP (#199)

This commit is contained in:
Logan McNaughton authored and GitHub committed 2025-01-29 11:14:50 +01:00
1 parent 687badc142
commit 7219a4445c
1 file changed
+3
+3
View File
@@ -273,6 +273,9 @@ pub fn read_regs(
if value == device.rsp.last_status_value && value != 0 {
device.rsp.cpu.sync_point = true;
}
if value & (SP_STATUS_DMA_BUSY | SP_STATUS_DMA_FULL) != 0 {
device.rsp.cpu.sync_point = true;
}
device.rsp.last_status_value = value;
device.rsp.regs[reg as usize]
}