From c79195c4e468d0cb10b245ddd7d5920f3fa15ab8 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Wed, 26 Jan 2011 22:54:20 +0000 Subject: [PATCH] dsp: minor optimization. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6926 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/DSP.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/Src/HW/DSP.cpp b/Source/Core/Core/Src/HW/DSP.cpp index 238dd6382c..025f383276 100644 --- a/Source/Core/Core/Src/HW/DSP.cpp +++ b/Source/Core/Core/Src/HW/DSP.cpp @@ -298,7 +298,7 @@ void Read16(u16& _uReturnValue, const u32 _iAddress) // DSP case DSP_MAIL_TO_DSP_HI: if (dsp_slice > DSP_MAIL_SLICE && dsp_is_lle) { - CPluginManager::GetInstance().GetDSP()->DSP_Update(DSP_MAIL_SLICE); + dsp_plugin->DSP_Update(DSP_MAIL_SLICE); dsp_slice -= DSP_MAIL_SLICE; } _uReturnValue = dsp_plugin->DSP_ReadMailboxHigh(true); @@ -310,7 +310,7 @@ void Read16(u16& _uReturnValue, const u32 _iAddress) case DSP_MAIL_FROM_DSP_HI: if (dsp_slice > DSP_MAIL_SLICE && dsp_is_lle) { - CPluginManager::GetInstance().GetDSP()->DSP_Update(DSP_MAIL_SLICE); + dsp_plugin->DSP_Update(DSP_MAIL_SLICE); dsp_slice -= DSP_MAIL_SLICE; } _uReturnValue = dsp_plugin->DSP_ReadMailboxHigh(false); @@ -631,12 +631,12 @@ void GenerateDSPInterruptFromPlugin(DSPInterruptType type, bool _bSet) void UpdateDSPSlice(int cycles) { if (dsp_is_lle) { //use up the rest of the slice(if any) - CPluginManager::GetInstance().GetDSP()->DSP_Update(dsp_slice); + dsp_plugin->DSP_Update(dsp_slice); dsp_slice %= 6; //note the new budget dsp_slice += cycles; } else { - CPluginManager::GetInstance().GetDSP()->DSP_Update(cycles); + dsp_plugin->DSP_Update(cycles); } }