DVDInterface: Deduplicate code in UpdateInterrupts()
This commit is contained in:
parent
7bc1063d2a
commit
419ed1b46a
|
@ -586,15 +586,11 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
|
||||||
|
|
||||||
void UpdateInterrupts()
|
void UpdateInterrupts()
|
||||||
{
|
{
|
||||||
if ((s_DISR.DEINT & s_DISR.DEINITMASK) || (s_DISR.TCINT & s_DISR.TCINTMASK) ||
|
const bool set_mask = (s_DISR.DEINT & s_DISR.DEINITMASK) || (s_DISR.TCINT & s_DISR.TCINTMASK) ||
|
||||||
(s_DISR.BRKINT & s_DISR.BRKINTMASK) || (s_DICVR.CVRINT & s_DICVR.CVRINTMASK))
|
(s_DISR.BRKINT & s_DISR.BRKINTMASK) ||
|
||||||
{
|
(s_DICVR.CVRINT & s_DICVR.CVRINTMASK);
|
||||||
ProcessorInterface::SetInterrupt(ProcessorInterface::INT_CAUSE_DI, true);
|
|
||||||
}
|
ProcessorInterface::SetInterrupt(ProcessorInterface::INT_CAUSE_DI, set_mask);
|
||||||
else
|
|
||||||
{
|
|
||||||
ProcessorInterface::SetInterrupt(ProcessorInterface::INT_CAUSE_DI, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Required for Summoner: A Goddess Reborn
|
// Required for Summoner: A Goddess Reborn
|
||||||
CoreTiming::ForceExceptionCheck(50);
|
CoreTiming::ForceExceptionCheck(50);
|
||||||
|
|
Loading…
Reference in New Issue