mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Core/DSPCore: Changed g_dsp._r back to g_dsp.r. Removed the check*Exclude
functions accidentally added. Fixed the jitted ar register arithmetic. Added a CMakeList.txt for the UnitTests, but did not add the subdirectory to Source/CMakeLists.txt. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6687 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -32,15 +32,15 @@ inline s64 dsp_get_multiply_prod(u16 a, u16 b, u8 sign)
|
||||
{
|
||||
s64 prod;
|
||||
|
||||
if ((sign == 1) && (g_dsp._r.sr & SR_MUL_UNSIGNED)) //unsigned
|
||||
if ((sign == 1) && (g_dsp.r.sr & SR_MUL_UNSIGNED)) //unsigned
|
||||
prod = (u32)(a * b);
|
||||
else if ((sign == 2) && (g_dsp._r.sr & SR_MUL_UNSIGNED)) //mixed
|
||||
else if ((sign == 2) && (g_dsp.r.sr & SR_MUL_UNSIGNED)) //mixed
|
||||
prod = a * (s16)b;
|
||||
else
|
||||
prod = (s16)a * (s16)b; //signed
|
||||
|
||||
// Conditionally multiply by 2.
|
||||
if ((g_dsp._r.sr & SR_MUL_MODIFY) == 0)
|
||||
if ((g_dsp.r.sr & SR_MUL_MODIFY) == 0)
|
||||
prod <<= 1;
|
||||
|
||||
return prod;
|
||||
@ -95,10 +95,10 @@ void clrp(const UDSPInstruction opc)
|
||||
{
|
||||
zeroWriteBackLog();
|
||||
|
||||
g_dsp._r.prod.l = 0x0000;
|
||||
g_dsp._r.prod.m = 0xfff0;
|
||||
g_dsp._r.prod.h = 0x00ff;
|
||||
g_dsp._r.prod.m2 = 0x0010;
|
||||
g_dsp.r.prod.l = 0x0000;
|
||||
g_dsp.r.prod.m = 0xfff0;
|
||||
g_dsp.r.prod.h = 0x00ff;
|
||||
g_dsp.r.prod.m2 = 0x0010;
|
||||
}
|
||||
|
||||
// TSTPROD
|
||||
|
Reference in New Issue
Block a user