From c7b6f22e10d06abaf27d48a5fef4537ca79bf0fb Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Mon, 25 Dec 2023 19:07:08 +0100 Subject: [PATCH] naomi: limit rom dma delay to 1 sec Fixes crash at boot with jambo safari. Fix for MINIDUMP-293 --- core/hw/naomi/naomi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hw/naomi/naomi.cpp b/core/hw/naomi/naomi.cpp index e877b35844..73bc21be3c 100644 --- a/core/hw/naomi/naomi.cpp +++ b/core/hw/naomi/naomi.cpp @@ -160,7 +160,7 @@ static void Naomi_DmaStart(u32 addr, u32 data) // Max G1 bus rate: 50 MHz x 16 bits // SH4_access990312_e.xls: 14.4 MB/s from GD-ROM to system RAM // Here: 7 MB/s - sh4_sched_request(dmaSchedId, SB_GDLEN * 27); + sh4_sched_request(dmaSchedId, std::min(SB_GDLEN * 27, SH4_MAIN_CLOCK)); return; } else