Compile fix for Unittests.
A lot of tests are failing right now, not sure yet if this is caused by the recent reg changes or other stuff (at least broken according to tests: iar, subarn, addarn, 'ir, 'nr, 'l, 's, 'sn, 'ln, 'lsn, 'lsm, 'lsnm, 'sl etc - err, most/all that use increase/decrease) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6683 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
24eafcb342
commit
603c99f64f
|
@ -240,7 +240,7 @@ bool CWII_IPC_HLE_Device_FileIO::IOCtl(u32 _CommandAddress)
|
|||
{
|
||||
case ISFS_IOCTL_GETFILESTATS:
|
||||
{
|
||||
m_FileLength = File::GetSize(m_pFileHandle);
|
||||
m_FileLength = (u32)File::GetSize(m_pFileHandle);
|
||||
u32 Position = (u32)ftello(m_pFileHandle);
|
||||
|
||||
u32 BufferOut = Memory::Read_U32(_CommandAddress + 0x18);
|
||||
|
|
|
@ -63,7 +63,7 @@ bool DSPJitTester::AreEqual(SDSP& int_dsp, SDSP& jit_dsp)
|
|||
bool equal = true;
|
||||
for (int i = 0; i < DSP_REG_NUM; i++)
|
||||
{
|
||||
if (int_dsp.r[i] != jit_dsp.r[i])
|
||||
if (((u16*)&int_dsp._r)[i] != ((u16*)&jit_dsp._r)[i])
|
||||
{
|
||||
if (equal)
|
||||
{
|
||||
|
@ -77,7 +77,7 @@ bool DSPJitTester::AreEqual(SDSP& int_dsp, SDSP& jit_dsp)
|
|||
}
|
||||
equal = false;
|
||||
if (be_verbose || failed_only)
|
||||
printf("\t%s: int = 0x%04x, jit = 0x%04x\n", regnames[i].name, int_dsp.r[i], jit_dsp.r[i]);
|
||||
printf("\t%s: int = 0x%04x, jit = 0x%04x\n", regnames[i].name, ((u16*)&int_dsp._r)[i], ((u16*)&jit_dsp._r)[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -126,8 +126,8 @@ void DSPJitTester::DumpJittedCode()
|
|||
void DSPJitTester::DumpRegs(SDSP& dsp)
|
||||
{
|
||||
for (int i = 0; i < DSP_REG_NUM; i++)
|
||||
if (dsp.r[i])
|
||||
printf("%s=0x%04x ", regnames[i].name, dsp.r[i]);
|
||||
if (((u16*)&dsp._r)[i])
|
||||
printf("%s=0x%04x ", regnames[i].name, ((u16*)&dsp._r)[i]);
|
||||
}
|
||||
void DSPJitTester::Initialize()
|
||||
{
|
||||
|
@ -145,7 +145,7 @@ int DSPJitTester::TestOne(TestDataIterator it, SDSP& dsp)
|
|||
it++;
|
||||
for (TestData::size_type i = 0; i < data.size(); i++)
|
||||
{
|
||||
dsp.r[reg] = data.at(i);
|
||||
((u16*)&dsp._r)[reg] = data.at(i);
|
||||
failed += TestOne(it, dsp);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue