md, fix irq priority handling for H-int
authorkub <derkub@gmail.com>
Sat, 10 Apr 2021 19:31:16 +0000 (21:31 +0200)
committerkub <derkub@gmail.com>
Sat, 10 Apr 2021 19:34:48 +0000 (21:34 +0200)
pico/pico_cmn.c

index c5d7227..d1ebe22 100644 (file)
@@ -67,7 +67,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());
-    SekInterrupt(4);
+    if (SekIrqLevel < 4)
+      SekInterrupt(4);
   }
 }