aica: always avoid race condition when sh4 interrupt is raised
... even if an SH4 interrupt is already asserted.
Regression introduced by c7d214e55a
Fixes audio freeze in Test Drive Le Mans
Issue #1267
This commit is contained in:
parent
24944e00a7
commit
51089c5e0a
|
@ -76,18 +76,16 @@ static bool UpdateSh4Ints()
|
|||
if (p_ints)
|
||||
{
|
||||
if ((SB_ISTEXT & SH4_IRQ_BIT) == 0)
|
||||
{
|
||||
// if no interrupt is already pending then raise one
|
||||
asic_RaiseInterrupt(holly_SPU_IRQ);
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((SB_ISTEXT & SH4_IRQ_BIT) != 0)
|
||||
asic_CancelInterrupt(holly_SPU_IRQ);
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
AicaTimer timers[3];
|
||||
|
|
Loading…
Reference in New Issue