pcsx2: Use enums instead of hardcoded integer

Might prevent future breakage.
This commit is contained in:
Jonathan Li 2018-03-18 17:35:37 +00:00
parent c8c9731262
commit 908a37598c
1 changed files with 3 additions and 1 deletions

View File

@ -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);