Don't do anything if dest is zero.

This commit is contained in:
Jean-Philip Desjardins 2017-06-25 12:29:12 -04:00
parent 103b280ff7
commit b53a39e364
2 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,8 @@ void CMA_VU::CLower::GenerateEATAN()
//00
void CMA_VU::CLower::LQ()
{
if(m_nDest == 0) return;
m_codeGen->PushRelRef(offsetof(CMIPS, m_vuMem));
VUShared::ComputeMemAccessAddr(
m_codeGen,

View File

@ -473,6 +473,8 @@ void VUShared::ADD(CMipsJitter* codeGen, uint8 nDest, uint8 nFd, uint8 nFs, uint
void VUShared::ADDbc(CMipsJitter* codeGen, uint8 nDest, uint8 nFd, uint8 nFs, uint8 nFt, uint8 nBc, uint32 relativePipeTime)
{
if(nDest == 0) return;
if(nFd == 0)
{
//Use the temporary register to store the result