ax: switch to new style interrupt triggering

This commit is contained in:
Pierre Bourdon 2016-03-29 05:02:42 +02:00 committed by degasus
parent fd54d4f767
commit 7c4bbcf22f
1 changed files with 4 additions and 8 deletions

View File

@ -27,8 +27,7 @@ AXUCode::~AXUCode()
void AXUCode::Initialize() void AXUCode::Initialize()
{ {
m_mail_handler.PushMail(DSP_INIT); m_mail_handler.PushMail(DSP_INIT, true);
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
LoadResamplingCoefficients(); LoadResamplingCoefficients();
} }
@ -71,8 +70,7 @@ void AXUCode::LoadResamplingCoefficients()
void AXUCode::SignalWorkEnd() void AXUCode::SignalWorkEnd()
{ {
// Signal end of processing // Signal end of processing
m_mail_handler.PushMail(DSP_YIELD); m_mail_handler.PushMail(DSP_YIELD, true);
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
} }
void AXUCode::HandleCommandList() void AXUCode::HandleCommandList()
@ -616,8 +614,7 @@ void AXUCode::HandleMail(u32 mail)
else if (mail == MAIL_RESUME) else if (mail == MAIL_RESUME)
{ {
// Acknowledge the resume request // Acknowledge the resume request
m_mail_handler.PushMail(DSP_RESUME); m_mail_handler.PushMail(DSP_RESUME, true);
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
} }
else if (mail == MAIL_NEW_UCODE) else if (mail == MAIL_NEW_UCODE)
{ {
@ -664,8 +661,7 @@ void AXUCode::Update()
// Used for UCode switching. // Used for UCode switching.
if (NeedsResumeMail()) if (NeedsResumeMail())
{ {
m_mail_handler.PushMail(DSP_RESUME); m_mail_handler.PushMail(DSP_RESUME, true);
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
} }
} }