From 6bcae13ff8603a8a26e7a5e7ad2f9cd09734f4a0 Mon Sep 17 00:00:00 2001 From: Marko Pusljar Date: Sun, 28 Mar 2010 17:10:36 +0000 Subject: DSPLLE - small idleskip improvment for zelda git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5248 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPIntCCUtil.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Source/Core/DSPCore/Src/DSPIntCCUtil.cpp') diff --git a/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp b/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp index fe19f57390..91581b4b29 100644 --- a/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp +++ b/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp @@ -61,7 +61,7 @@ void Update_SR_Register64(s64 _Value, bool carry, bool overflow) g_dsp.r[DSP_REG_SR] |= SR_OVER_S32; } - // 0x20 - Checks if top bits of m are equal, what is it good for? + // 0x20 - Checks if top bits of m are equal if (((_Value & 0xc0000000) == 0) || ((_Value & 0xc0000000) == 0xc0000000)) { g_dsp.r[DSP_REG_SR] |= SR_TOP2BITS; @@ -104,7 +104,7 @@ void Update_SR_Register16(s16 _Value, bool carry, bool overflow, bool overS32) g_dsp.r[DSP_REG_SR] |= SR_OVER_S32; } - // 0x20 - Checks if top bits of m are equal, what is it good for? + // 0x20 - Checks if top bits of m are equal if ((((u16)_Value >> 14) == 0) || (((u16)_Value >> 14) == 3)) { g_dsp.r[DSP_REG_SR] |= SR_TOP2BITS; @@ -152,7 +152,7 @@ inline bool isConditionA() { return (((g_dsp.r[DSP_REG_SR] & SR_OVER_S32) || (g_dsp.r[DSP_REG_SR] & SR_TOP2BITS)) && !(g_dsp.r[DSP_REG_SR] & SR_ARITH_ZERO)) ? true : false; } -//see gdsp_registers.h for flags +//see DSPCore.h for flags bool CheckCondition(u8 _Condition) { switch (_Condition & 0xf) @@ -190,8 +190,7 @@ bool CheckCondition(u8 _Condition) case 0xf: // Empty - always true. return true; default: - ERROR_LOG(DSPLLE, "Unknown condition check: 0x%04x", _Condition & 0xf); - return false; + return true; } } -- cgit v1.2.3