INIT UCode: reduce DSP initialization time

Push the mail at UCode boot time, not after the first update. This avoids a lot
of crazy busy-looping on the CPU side while waiting for the DSP to be
initialized.
This commit is contained in:
Pierre Bourdon 2014-11-20 05:10:50 +01:00
parent a770cc0778
commit d5e177d3f9

View file

@ -10,6 +10,7 @@ INITUCode::INITUCode(DSPHLE *dsphle, u32 crc)
: UCodeInterface(dsphle, crc)
{
DEBUG_LOG(DSPHLE, "INITUCode - initialized");
m_mail_handler.PushMail(0x80544348);
}
INITUCode::~INITUCode()
@ -22,11 +23,6 @@ void INITUCode::Init()
void INITUCode::Update()
{
if (m_mail_handler.IsEmpty())
{
m_mail_handler.PushMail(0x80544348);
// HALT
}
}
u32 INITUCode::GetUpdateMs()