X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgpu.cpp;h=4a141c419a1c13a572a3488c5c8c8d7209153f35;hb=22e4f2eeba52ba2a1f2808e82147dc57a9e4e44f;hp=aec51a18e3be9bc0ffe0fb2b4579cd1981285898;hpb=dd520b965a1e6531bd1d285494b223ab04c5368b;p=virtualjaguar diff --git a/src/gpu.cpp b/src/gpu.cpp index aec51a1..4a141c4 100644 --- a/src/gpu.cpp +++ b/src/gpu.cpp @@ -6,6 +6,15 @@ // Originally by David Raingeard (Cal2) // GCC/SDL port by Niels Wagenaar (Linux/WIN32) and Caz (BeOS) // Cleanups, endian wrongness, and bad ASM amelioration by James L. Hammons +// (C) 2010 Underground Software +// +// JLH = James L. Hammons +// +// Who When What +// --- ---------- ------------------------------------------------------------- +// JLH 01/16/2010 Created this log ;-) + +// // Note: Endian wrongness probably stems from the MAME origins of this emu and // the braindead way in which MAME handles memory. :-) // @@ -23,7 +32,7 @@ #include "jaguar.h" #include "log.h" #include "m68k.h" -#include "memory.h" +//#include "memory.h" #include "tom.h" //#define GPU_DEBUG @@ -730,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(); } }