X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxcounters.c;h=3f6e13956e45e796ccb0bb14e165fbae82bc02f3;hp=90c3d1491c9628052eb9acf9ac41a2035631dcc0;hb=5b8c000f969c365d48418781d8f88f9c58d65611;hpb=9f7ee52edab5d7ba8f7da69f3c15d1d0025bd15b diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index 90c3d149..3f6e1395 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -26,13 +26,6 @@ /******************************************************************************/ -typedef struct Rcnt -{ - u16 mode, target; - u32 rate, irq, counterState, irqState; - u32 cycle, cycleStart; -} Rcnt; - enum { Rc0Gate = 0x0001, // 0 not implemented @@ -75,7 +68,7 @@ static const s32 VerboseLevel = VERBOSE_LEVEL; /******************************************************************************/ -static Rcnt rcnts[ CounterQuantity ]; +Rcnt rcnts[ CounterQuantity ]; static u32 hSyncCount = 0; static u32 spuSyncCount = 0; @@ -183,6 +176,9 @@ void psxRcntSet() psxNextCounter = countToUpdate; } } + + psxRegs.interrupt |= (1 << PSXINT_RCNT); + new_dyna_set_event(PSXINT_RCNT, psxNextCounter); } /******************************************************************************/