diff options
| author | hrydgard <hrydgard@gmail.com> | 2011-01-26 22:54:20 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2011-01-26 22:54:20 +0000 |
| commit | c79195c4e468d0cb10b245ddd7d5920f3fa15ab8 (patch) | |
| tree | b0229c819685a4df05aea679f0dc406094770c4b /Source/Core | |
| parent | 48b7658c8aa49f5567dce0d4b0699761e206400c (diff) | |
dsp: minor optimization.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6926 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Src/HW/DSP.cpp | 8 |
1 files 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); } } |
