X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fr3000a.h;h=32538e584849a15938f4349c5112b3772f4b12f9;hp=157d31b98ed03fab17dda6ea8f1f0e6760d5be31;hb=HEAD;hpb=65722e0455a2a42eece5e67ce2e92bfac03e1368 diff --git a/libpcsxcore/r3000a.h b/libpcsxcore/r3000a.h index 157d31b9..03aeee19 100644 --- a/libpcsxcore/r3000a.h +++ b/libpcsxcore/r3000a.h @@ -163,25 +163,6 @@ typedef union { PAIR p[32]; } psxCP2Ctrl; -enum { - PSXINT_SIO = 0, - PSXINT_CDR, - PSXINT_CDREAD, - PSXINT_GPUDMA, - PSXINT_MDECOUTDMA, - PSXINT_SPUDMA, - PSXINT_GPUBUSY, - PSXINT_MDECINDMA, - PSXINT_GPUOTCDMA, - PSXINT_CDRDMA, - PSXINT_NEWDRC_CHECK, - PSXINT_RCNT, - PSXINT_CDRLID, - PSXINT_IRQ10, - PSXINT_SPU_UPDATE, - PSXINT_COUNT -}; - enum R3000Abdt { // corresponds to bits 31,30 of Cause reg R3000A_BRANCH_TAKEN = 3, @@ -223,7 +204,8 @@ typedef struct { u32 dloadVal[2]; u32 biosBranchCheck; u32 cpuInRecursion; - u32 reserved[2]; + u32 gpuIdleAfter; + u32 reserved[1]; // warning: changing anything in psxRegisters requires update of all // asm in libpcsxcore/new_dynarec/ } psxRegisters; @@ -231,24 +213,8 @@ typedef struct { extern psxRegisters psxRegs; /* new_dynarec stuff */ -extern u32 event_cycles[PSXINT_COUNT]; -extern u32 next_interupt; - void new_dyna_freeze(void *f, int mode); -#define new_dyna_set_event_abs(e, abs) { \ - u32 abs_ = abs; \ - s32 di_ = next_interupt - abs_; \ - event_cycles[e] = abs_; \ - if (di_ > 0) { \ - /*printf("%u: next_interupt %u -> %u\n", psxRegs.cycle, next_interupt, abs_);*/ \ - next_interupt = abs_; \ - } \ -} - -#define new_dyna_set_event(e, c) \ - new_dyna_set_event_abs(e, psxRegs.cycle + (c)) - int psxInit(); void psxReset(); void psxShutdown();