Skip to content

Commit

Permalink
iR5900: Cleanup variable scope.
Browse files Browse the repository at this point in the history
Codacy.
  • Loading branch information
lightningterror committed Jun 25, 2022
1 parent ba07e46 commit cf568d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pcsx2/x86/ix86-32/iR5900Templates.cpp
Expand Up @@ -80,8 +80,6 @@ int eeProcessHILO(int reg, int mode, int mmx)
// core of reg caching
void eeRecompileCode0(R5900FNPTR constcode, R5900FNPTR_INFO constscode, R5900FNPTR_INFO consttcode, R5900FNPTR_INFO noconstcode, int xmminfo)
{
int mmreg1, mmreg2, mmreg3, mmtemp, moded;

if (!_Rd_ && (xmminfo & XMMINFO_WRITED))
return;

Expand All @@ -97,11 +95,12 @@ void eeRecompileCode0(R5900FNPTR constcode, R5900FNPTR_INFO constscode, R5900FNP
return;
}

moded = MODE_WRITE | ((xmminfo & XMMINFO_READD) ? MODE_READ : 0);
const int moded = MODE_WRITE | ((xmminfo & XMMINFO_READD) ? MODE_READ : 0);

// test if should write xmm, mirror to mmx code
if (g_pCurInstInfo->info & EEINST_XMM)
{
int mmreg1, mmreg3, mmtemp;
pxAssert(0);

if (xmminfo & (XMMINFO_READLO | XMMINFO_WRITELO))
Expand Down Expand Up @@ -183,7 +182,7 @@ void eeRecompileCode0(R5900FNPTR constcode, R5900FNPTR_INFO constscode, R5900FNP
{
// no const regs
mmreg1 = _allocCheckGPRtoXMM(g_pCurInstInfo, _Rs_, MODE_READ);
mmreg2 = _allocCheckGPRtoXMM(g_pCurInstInfo, _Rt_, MODE_READ);
int mmreg2 = _allocCheckGPRtoXMM(g_pCurInstInfo, _Rt_, MODE_READ);

if (mmreg1 >= 0 || mmreg2 >= 0)
{
Expand Down

0 comments on commit cf568d2

Please sign in to comment.