have two different functions to set PC in r4300i, for word and dword + set the initial PC after PIF HLE instead of Registers constructor

This commit is contained in:
CocoSimone
2023-02-19 12:16:20 +01:00
parent abc14302cc
commit f56e1bafa2
8 changed files with 20 additions and 15 deletions

View File

@@ -21,10 +21,10 @@ void Cop0::dmfc0(Registers& regs, u32 instr) {
void Cop0::eret(Registers& regs) {
if(status.erl) {
regs.SetPC(ErrorEPC);
regs.SetPC64(ErrorEPC);
status.erl = false;
} else {
regs.SetPC(EPC);
regs.SetPC64(EPC);
status.exl = false;
}
llbit = false;

View File

@@ -163,7 +163,7 @@ void Interpreter::branch_likely(bool cond, s64 address) {
if (cond) {
regs.nextPC = address;
} else {
regs.SetPC(regs.nextPC);
regs.SetPC64(regs.nextPC);
}
}