mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
HW/ProcessorInterface: Refactor to class, move to Core::System.
This commit is contained in:
parent
908cec04cb
commit
74e1577a2c
26 changed files with 200 additions and 144 deletions
|
@ -157,12 +157,15 @@ void PixelEngineManager::RegisterMMIO(MMIO::Mapping* mmio, u32 base)
|
|||
|
||||
void PixelEngineManager::UpdateInterrupts()
|
||||
{
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& processor_interface = system.GetProcessorInterface();
|
||||
|
||||
// check if there is a token-interrupt
|
||||
ProcessorInterface::SetInterrupt(INT_CAUSE_PE_TOKEN,
|
||||
processor_interface.SetInterrupt(INT_CAUSE_PE_TOKEN,
|
||||
m_signal_token_interrupt && m_control.pe_token_enable);
|
||||
|
||||
// check if there is a finish-interrupt
|
||||
ProcessorInterface::SetInterrupt(INT_CAUSE_PE_FINISH,
|
||||
processor_interface.SetInterrupt(INT_CAUSE_PE_FINISH,
|
||||
m_signal_finish_interrupt && m_control.pe_finish_enable);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue