Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Windows build fix
  • Loading branch information
skidau committed Mar 26, 2013
1 parent b8b5afa commit 6a6c086
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Source/Core/Core/Src/DSP/DSPAccelerator.cpp
Expand Up @@ -21,8 +21,6 @@
#include "DSPHost.h"
#include "DSPHWInterface.h"
#include "DSPInterpreter.h"
#include "CoreTiming.h"
#include "Core.h"

// The hardware adpcm decoder :)
static s16 ADPCM_Step(u32& _rSamplePos)
Expand Down Expand Up @@ -170,7 +168,7 @@ u16 dsp_read_accelerator()
if (Address >= EndAddress)
{
// Set address back to start address.
if (Core::g_CoreStartupParameter.bWii || Address == EndAddress)
if (DSPHost_Wii() || (Address == EndAddress))
{
Address = (g_dsp.ifx_regs[DSP_ACSAH] << 16) | g_dsp.ifx_regs[DSP_ACSAL];
DSPCore_SetException(EXP_ACCOV);
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/Src/DSP/DSPHost.h
Expand Up @@ -26,6 +26,7 @@
u8 DSPHost_ReadHostMemory(u32 addr);
void DSPHost_WriteHostMemory(u8 value, u32 addr);
bool DSPHost_OnThread();
bool DSPHost_Wii();
void DSPHost_InterruptRequest();
u32 DSPHost_CodeLoaded(const u8 *ptr, int size);
void DSPHost_UpdateDebugger();
Expand Down
6 changes: 6 additions & 0 deletions Source/Core/Core/Src/HW/DSPLLE/DSPHost.cpp
Expand Up @@ -46,6 +46,12 @@ bool DSPHost_OnThread()
return _CoreParameter.bDSPThread;
}

bool DSPHost_Wii()
{
const SCoreStartupParameter& _CoreParameter = SConfig::GetInstance().m_LocalCoreStartupParameter;
return _CoreParameter.bWii;
}

void DSPHost_InterruptRequest()
{
// Fire an interrupt on the PPC ASAP.
Expand Down

0 comments on commit 6a6c086

Please sign in to comment.