From 63482dcfdcbd54fdcafe41ce1dd183ad3aeef0d3 Mon Sep 17 00:00:00 2001 From: Magn3s1um Date: Sat, 9 Nov 2013 07:51:26 -0800 Subject: [PATCH] -Fixed MPYU and special registers based on comments --- rpcs3/Emu/Cell/SPUInterpreter.h | 2 +- rpcs3/Emu/Cell/SPUThread.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/SPUInterpreter.h b/rpcs3/Emu/Cell/SPUInterpreter.h index e123dfe48c..69eb99009b 100644 --- a/rpcs3/Emu/Cell/SPUInterpreter.h +++ b/rpcs3/Emu/Cell/SPUInterpreter.h @@ -916,7 +916,7 @@ private: void MPYU(u32 rt, u32 ra, u32 rb) { for (int w = 0; w < 4; w++) - CPU.GPR[rt]._u32[w] = CPU.GPR[ra]._u16[w*2] * CPU.GPR[rb]._u16[w]; + CPU.GPR[rt]._u32[w] = CPU.GPR[ra]._u16[w*2] * CPU.GPR[rb]._u16[w*2]; } void CEQB(u32 rt, u32 ra, u32 rb) { diff --git a/rpcs3/Emu/Cell/SPUThread.h b/rpcs3/Emu/Cell/SPUThread.h index 89d1d45c45..2031805718 100644 --- a/rpcs3/Emu/Cell/SPUThread.h +++ b/rpcs3/Emu/Cell/SPUThread.h @@ -23,7 +23,7 @@ static const wxString spu_reg_name[128] = "$120", "$121", "$122", "$123", "$124", "$125", "$126", "$127", }; //SPU reg $0 is a dummy reg, and is used for certain instructions. -static const wxString spu_specialreg_name[129] = { +static const wxString spu_specialreg_name[128] = { "$0", "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9", "$10", "$11", "$12", "$13", "$14", "$15", "$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23", @@ -39,7 +39,7 @@ static const wxString spu_specialreg_name[129] = { "$96", "$97", "$98", "$99", "$100", "$101", "$102", "$103", "$104", "$105", "$106", "$107", "$108", "$109", "$110", "$111", "$112", "$113", "$114", "$115", "$116", "$117", "$118", "$119", - "$120", "$121", "$122", "$123", "$124", "$125", "$126", "$127", "$128", + "$120", "$121", "$122", "$123", "$124", "$125", "$126", "$127", }; static const wxString spu_ch_name[128] =