Skip to content

Commit

Permalink
iop rec: add the missing LWC2/SWC2 (CP2 reg from/to mem)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory38 committed Sep 1, 2016
1 parent 1ee0526 commit b47c50a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pcsx2/x86/iR3000Atables.cpp
Expand Up @@ -1420,6 +1420,9 @@ REC_GTE_FUNC(CFC2);
REC_GTE_FUNC(MTC2);
REC_GTE_FUNC(CTC2);

REC_GTE_FUNC(LWC2);
REC_GTE_FUNC(SWC2);


// R3000A tables
extern void (*rpsxBSC[64])();
Expand All @@ -1446,8 +1449,8 @@ void (*rpsxBSC[64])() = {
rpsxNULL , rpsxNULL , rpsxNULL, rpsxNULL , rpsxNULL, rpsxNULL, rpsxNULL, rpsxNULL,
rpsxLB , rpsxLH , rpsxLWL , rpsxLW , rpsxLBU , rpsxLHU , rpsxLWR , rpsxNULL,
rpsxSB , rpsxSH , rpsxSWL , rpsxSW , rpsxNULL, rpsxNULL, rpsxSWR , rpsxNULL,
rpsxNULL , rpsxNULL , rpsxNULL, rpsxNULL , rpsxNULL, rpsxNULL, rpsxNULL, rpsxNULL,
rpsxNULL , rpsxNULL , rpsxNULL, rpsxNULL , rpsxNULL, rpsxNULL, rpsxNULL, rpsxNULL
rpsxNULL , rpsxNULL , rgteLWC2, rpsxNULL , rpsxNULL, rpsxNULL, rpsxNULL, rpsxNULL,
rpsxNULL , rpsxNULL , rgteSWC2, rpsxNULL , rpsxNULL, rpsxNULL, rpsxNULL, rpsxNULL
};

void (*rpsxSPC[64])() = {
Expand Down Expand Up @@ -1561,6 +1564,11 @@ void rpsxpropBSC(EEINST* prev, EEINST* pinst)
rpsxpropSetRead(_Rs_);
break;

case 50: // LWC2
case 58: // SWC2
// Operation on COP2 registers/memory. GPRs are left untouched
break;

default:
rpsxpropSetWrite(_Rt_);
rpsxpropSetRead(_Rs_);
Expand Down

0 comments on commit b47c50a

Please sign in to comment.