Return the correct value for fcr0/fir.

This is what the PSP actually returns, it's read only.
This commit is contained in:
Unknown W. Brackets 2013-11-13 22:41:25 -08:00
parent 98fb2e0402
commit 26f5922174
5 changed files with 17 additions and 15 deletions

View file

@ -520,7 +520,7 @@ public:
virtual void DoState(PointerWrap &p)
{
auto s = p.Section("Thread", 1, 2);
auto s = p.Section("Thread", 1, 3);
if (!s)
return;
@ -531,6 +531,11 @@ public:
p.Do(currentMipscallId);
p.Do(currentCallbackId);
p.Do(context);
if (s <= 2)
{
context.other[4] = context.other[5];
context.other[3] = context.other[4];
}
p.Do(callbacks);
@ -1928,7 +1933,6 @@ void ThreadContext::reset()
vfpuCtrl[VFPU_CTRL_RCX6] = 0x3f800000;
vfpuCtrl[VFPU_CTRL_RCX7] = 0x3f800000;
fpcond = 0;
fcr0 = 0;
fcr31 = 0;
hi = 0xDEADBEEF;
lo = 0xDEADBEEF;