core, fix Pico horizontal irq (on irq level 5)

This commit is contained in:
kub 2024-01-20 17:15:51 +01:00
parent 214a6c624c
commit ba2b97dc24
5 changed files with 10 additions and 7 deletions

View file

@ -105,8 +105,8 @@ static void do_hint(struct PicoVideo *pv)
pv->pending_ints |= 0x10;
if (pv->reg[0] & 0x10) {
elprintf(EL_INTS, "hint: @ %06x [%u]", SekPc, SekCyclesDone());
if (SekIrqLevel < 4)
SekInterrupt(4);
if (SekIrqLevel < pv->hint_irq)
SekInterrupt(pv->hint_irq);
}
}