]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gpu.cpp
Fixes for the 68K IRQ system. There's probably a little more to do though.
[virtualjaguar] / src / gpu.cpp
index 4892b7aa536d4bee7d790435bacfd929b621fa28..4a141c419a1c13a572a3488c5c8c8d7209153f35 100644 (file)
@@ -739,10 +739,11 @@ WriteLog("GPU: %s setting GPU PC to %08X %s\n", whoName[who], gpu_pc, (GPU_RUNNI
 //WriteLog("GPU->CPU interrupt\n");
                                if (TOMIRQEnabled(IRQ_GPU))
                                {
-                                       if ((TOMIRQEnabled(IRQ_GPU)) && (JaguarInterruptHandlerIsValid(64)))
+//This is the programmer's responsibility, to make sure the handler is valid, not ours!
+//                                     if ((TOMIRQEnabled(IRQ_GPU))// && (JaguarInterruptHandlerIsValid(64)))
                                        {
                                                TOMSetPendingGPUInt();
-                                               m68k_set_irq(7);                        // Set 68000 NMI
+                                               m68k_set_irq(2);                        // Set 68000 IPL 2
                                                GPUReleaseTimeslice();
                                        }
                                }