Debugger: Display/set correct VU values (#2526)

This commit is contained in:
Souzooka 2018-07-29 22:20:37 -10:00 committed by Jonathan Li
parent 0efbd283c4
commit 4e429b27be
1 changed files with 4 additions and 4 deletions

View File

@ -435,10 +435,10 @@ u128 R5900DebugInterface::getRegister(int cat, int num)
result = u128::From32(fpuRegs.fprc[num]);
break;
case EECAT_VU0F:
result = VU1.VF[num].UQ;
result = VU0.VF[num].UQ;
break;
case EECAT_VU0I:
result = u128::From32(VU1.VI[num].UL);
result = u128::From32(VU0.VI[num].UL);
break;
default:
result = u128::From32(0);
@ -519,10 +519,10 @@ void R5900DebugInterface::setRegister(int cat, int num, u128 newValue)
fpuRegs.fprc[num] = newValue._u32[0];
break;
case EECAT_VU0F:
VU1.VF[num].UQ = newValue;
VU0.VF[num].UQ = newValue;
break;
case EECAT_VU0I:
VU1.VI[num].UL = newValue._u32[0];
VU0.VI[num].UL = newValue._u32[0];
break;
default:
break;