Skip to content

Commit

Permalink
Merge pull request #9786 from Tilka/dsp
Browse files Browse the repository at this point in the history
DSP: small cleanup
  • Loading branch information
lioncash committed Jun 6, 2021
2 parents 89af7b8 + f2c4041 commit 5470ace
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/DSP/Interpreter/DSPInterpreter.cpp
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions Source/Core/Core/HW/DSPHLE/UCodes/INIT.cpp
Expand Up @@ -26,10 +26,6 @@ void INITUCode::Initialize()
m_mail_handler.PushMail(0x80544348);
}

void INITUCode::Init()
{
}

void INITUCode::Update()
{
}
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/HW/DSPHLE/UCodes/INIT.h
Expand Up @@ -20,6 +20,5 @@ class INITUCode : public UCodeInterface
void Initialize() override;
void HandleMail(u32 mail) override;
void Update() override;
void Init();
};
} // namespace DSP::HLE
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPLLE/DSPLLE.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5470ace

Please sign in to comment.