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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user