Don't ask "useOldPC" and instead just pass the thing
This commit is contained in:
@@ -250,11 +250,10 @@ FORCE_INLINE bool Is64BitAddressing(Cop0& cp0, u64 addr) {
|
||||
}
|
||||
}
|
||||
|
||||
void FireException(Registers& regs, ExceptionCode code, int cop, bool useOldPC) {
|
||||
void FireException(Registers& regs, ExceptionCode code, int cop, s64 pc) {
|
||||
bool old_exl = regs.cop0.status.exl;
|
||||
s64 pc = useOldPC ? regs.oldPC : regs.pc;
|
||||
|
||||
if(!old_exl) {
|
||||
if(!regs.cop0.status.exl) {
|
||||
if(regs.prevDelaySlot) {
|
||||
regs.cop0.cause.branchDelay = true;
|
||||
pc -= 4;
|
||||
|
||||
Reference in New Issue
Block a user