mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-28 10:15:43 +00:00
dyncom: General cleanup of STM
This commit is contained in:
parent
e37425b380
commit
36dab56c31
|
@ -5989,23 +5989,21 @@ unsigned InterpreterMainLoop(ARMul_State* state) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (BIT(inst_cream->inst, 13)) {
|
if (BIT(inst_cream->inst, 13)) {
|
||||||
if (cpu->Mode == USER32MODE) {
|
if (cpu->Mode == USER32MODE)
|
||||||
Memory::Write32(addr, cpu->Reg[i]);
|
Memory::Write32(addr, cpu->Reg[i]);
|
||||||
addr += 4;
|
else
|
||||||
} else {
|
|
||||||
Memory::Write32(addr, cpu->Reg_usr[0]);
|
Memory::Write32(addr, cpu->Reg_usr[0]);
|
||||||
|
|
||||||
addr += 4;
|
addr += 4;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (BIT(inst_cream->inst, 14)) {
|
if (BIT(inst_cream->inst, 14)) {
|
||||||
if (cpu->Mode == USER32MODE) {
|
if (cpu->Mode == USER32MODE)
|
||||||
Memory::Write32(addr, cpu->Reg[i]);
|
Memory::Write32(addr, cpu->Reg[i]);
|
||||||
addr += 4;
|
else
|
||||||
} else {
|
|
||||||
Memory::Write32(addr, cpu->Reg_usr[1]);
|
Memory::Write32(addr, cpu->Reg_usr[1]);
|
||||||
|
|
||||||
addr += 4;
|
addr += 4;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (BIT(inst_cream->inst, 15)) {
|
if (BIT(inst_cream->inst, 15)) {
|
||||||
Memory::Write32(addr, cpu->Reg_usr[1] + 8);
|
Memory::Write32(addr, cpu->Reg_usr[1] + 8);
|
||||||
}
|
}
|
||||||
|
@ -6016,16 +6014,16 @@ unsigned InterpreterMainLoop(ARMul_State* state) {
|
||||||
Memory::Write32(addr, old_RN);
|
Memory::Write32(addr, old_RN);
|
||||||
else
|
else
|
||||||
Memory::Write32(addr, cpu->Reg[i]);
|
Memory::Write32(addr, cpu->Reg[i]);
|
||||||
|
|
||||||
addr += 4;
|
addr += 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check PC reg
|
// Check PC reg
|
||||||
if(BIT(inst_cream->inst, i)) {
|
if (BIT(inst_cream->inst, 15))
|
||||||
Memory::Write32(addr, cpu->Reg_usr[1] + 8);
|
Memory::Write32(addr, cpu->Reg_usr[1] + 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
cpu->Reg[15] += GET_INST_SIZE(cpu);
|
cpu->Reg[15] += GET_INST_SIZE(cpu);
|
||||||
INC_PC(sizeof(ldst_inst));
|
INC_PC(sizeof(ldst_inst));
|
||||||
FETCH_INST;
|
FETCH_INST;
|
||||||
|
|
Loading…
Reference in a new issue