summaryrefslogtreecommitdiff
path: root/Source/Core/Core/HW/EXI_Channel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Core/HW/EXI_Channel.cpp')
-rw-r--r--Source/Core/Core/HW/EXI_Channel.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/Core/Core/HW/EXI_Channel.cpp b/Source/Core/Core/HW/EXI_Channel.cpp
index 6061c78816..c70280f06a 100644
--- a/Source/Core/Core/HW/EXI_Channel.cpp
+++ b/Source/Core/Core/HW/EXI_Channel.cpp
@@ -35,8 +35,6 @@ CEXIChannel::CEXIChannel(u32 ChannelId) :
for (auto& device : m_pDevices)
device.reset(EXIDevice_Create(EXIDEVICE_NONE, m_ChannelId));
-
- updateInterrupts = CoreTiming::RegisterEvent("EXIInterrupt", UpdateInterrupts);
}
CEXIChannel::~CEXIChannel()
@@ -93,7 +91,7 @@ void CEXIChannel::RegisterMMIO(MMIO::Mapping* mmio, u32 base)
if (pDevice != nullptr)
pDevice->SetCS(m_Status.CHIP_SELECT);
- CoreTiming::ScheduleEvent_Threadsafe_Immediate(updateInterrupts, 0);
+ ExpansionInterface::UpdateInterrupts();
})
);
@@ -156,7 +154,7 @@ void CEXIChannel::RegisterMMIO(MMIO::Mapping* mmio, u32 base)
void CEXIChannel::SendTransferComplete()
{
m_Status.TCINT = 1;
- CoreTiming::ScheduleEvent_Threadsafe_Immediate(updateInterrupts, 0);
+ ExpansionInterface::UpdateInterrupts();
}
void CEXIChannel::RemoveDevices()
@@ -185,16 +183,11 @@ void CEXIChannel::AddDevice(IEXIDevice* pDevice, const int device_num, bool noti
if (m_ChannelId != 2)
{
m_Status.EXTINT = 1;
- CoreTiming::ScheduleEvent_Threadsafe_Immediate(updateInterrupts, 0);
+ ExpansionInterface::UpdateInterrupts();
}
}
}
-void CEXIChannel::UpdateInterrupts(u64 userdata, int cyclesLate)
-{
- ExpansionInterface::UpdateInterrupts();
-}
-
bool CEXIChannel::IsCausingInterrupt()
{
if (m_ChannelId != 2 && GetDevice(1)->IsInterruptSet())