diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-04 02:52:40 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-04 03:00:10 +0100 |
| commit | 74e1577a2c91d5c5925b8cb170dc1ad41c02b3a0 (patch) | |
| tree | db89f30525adfbce054cd9a319a09b6d33e7468c /Source/Core/VideoCommon/PixelEngine.cpp | |
| parent | 908cec04cb523a7c09db857fe5633e00cac50943 (diff) | |
HW/ProcessorInterface: Refactor to class, move to Core::System.
Diffstat (limited to 'Source/Core/VideoCommon/PixelEngine.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelEngine.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelEngine.cpp b/Source/Core/VideoCommon/PixelEngine.cpp index 6cc9c05c02..82464339e4 100644 --- a/Source/Core/VideoCommon/PixelEngine.cpp +++ b/Source/Core/VideoCommon/PixelEngine.cpp @@ -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); } |
