DSP: use CR_* enum values

This commit is contained in:
Tillmann Karras 2021-05-31 05:12:32 +01:00
parent 2f8c9a7735
commit a13df9b251
2 changed files with 3 additions and 3 deletions

View File

@ -200,14 +200,14 @@ int Interpreter::RunCycles(int cycles)
void Interpreter::WriteCR(u16 val)
{
// reset
if ((val & 1) != 0)
if ((val & CR_RESET) != 0)
{
INFO_LOG_FMT(DSPLLE, "DSP_CONTROL RESET");
m_dsp_core.Reset();
val &= ~CR_RESET;
}
// init
else if (val == 4)
else if (val == CR_HALT)
{
// HAX!
// OSInitAudioSystem ucode should send this mail - not DSP core itself

View File

@ -186,7 +186,7 @@ u16 DSPLLE::DSP_WriteControlRegister(u16 value)
{
m_dsp_core.GetInterpreter().WriteCR(value);
if ((value & 2) != 0)
if ((value & CR_EXTERNAL_INT) != 0)
{
if (m_is_dsp_on_thread)
{