MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GifDMAInt

Function GifDMAInt

pcsx2/Gif.cpp:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14alignas(16) gifStruct gif;
15
16static __fi void GifDMAInt(int cycles)
17{
18 if (dmacRegs.ctrl.MFD == MFD_GIF)
19 {
20 if (!(cpuRegs.interrupt & (1 << DMAC_MFIFO_GIF)) || cpuRegs.eCycle[DMAC_MFIFO_GIF] < (u32)cycles)
21 {
22 CPU_INT(DMAC_MFIFO_GIF, cycles);
23 }
24 }
25 else if (!(cpuRegs.interrupt & (1 << DMAC_GIF)) || cpuRegs.eCycle[DMAC_GIF] < (u32)cycles)
26 {
27 CPU_INT(DMAC_GIF, cycles);
28 }
29}
30__fi void clearFIFOstuff(bool full)
31{
32 CSRreg.FIFO = full ? CSR_FIFO_FULL : CSR_FIFO_EMPTY;

Callers 8

CheckPathsFunction · 0.85
read_fifoMethod · 0.85
gifCheckPathStatusFunction · 0.85
gifInterruptFunction · 0.85
GIFchainFunction · 0.85
GIFdmaFunction · 0.85
mfifoGIFtransferFunction · 0.85
gifMFIFOInterruptFunction · 0.85

Calls 1

CPU_INTFunction · 0.85

Tested by

no test coverage detected