Skip to content

Commit

Permalink
Save int register right before altering instruction is executed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed May 24, 2024
1 parent 6900e7a commit d4bb3f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ee/VuBasicBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,9 @@ CVuBasicBlock::INTEGER_BRANCH_DELAY_INFO CVuBasicBlock::ComputeTrailingIntegerBr
uint32 fmacDelayOnBranch = fmacStallDelays[fmacStallDelays.size() - 2];
if((endLoOps.writeI != 0) && !endLoOps.branchValue && (fmacDelayOnBranch == 0))
{
// we need to use the value of intReg 3 steps prior or use initial value.
// we need to save the value of the integer register before the instruction is executed
result.regIndex = endLoOps.writeI;
result.saveRegAddress = std::max<int32>(adjustedEnd - 5 * 8, m_begin);
result.saveRegAddress = adjustedEnd;
}
return result;
}
Expand Down

0 comments on commit d4bb3f1

Please sign in to comment.