mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: Use enums instead of hardcoded integer
Might prevent future breakage.
This commit is contained in:
parent
c8c9731262
commit
908a37598c
|
@ -288,7 +288,9 @@ static __fi void _cpuTestInterrupts()
|
|||
// The following ints are rarely called. Encasing them in a conditional
|
||||
// as follows helps speed up most games.
|
||||
|
||||
if( cpuRegs.interrupt & 0x60F19 ) // Bits 0 3 4 8 9 10 11 17 18( 1100000111100011001 )
|
||||
if (cpuRegs.interrupt & ((1 << DMAC_VIF0) | (1 << DMAC_FROM_IPU) | (1 << DMAC_TO_IPU)
|
||||
| (1 << DMAC_FROM_SPR) | (1 << DMAC_TO_SPR) | (1 << DMAC_MFIFO_VIF) | (1 << DMAC_MFIFO_GIF)
|
||||
| (1 << VIF_VU0_FINISH) | (1 << VIF_VU1_FINISH)))
|
||||
{
|
||||
TESTINT(DMAC_VIF0, vif0Interrupt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue