mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-18 20:27:59 -05:00
dyncom: Pass SVC immediates directly.
Previously it would just re-read the already decoded instruction and extract the immediate value.
This commit is contained in:
@ -6248,7 +6248,8 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
|
||||
SWI_INST:
|
||||
{
|
||||
if (inst_base->cond == 0xE || CondPassed(cpu, inst_base->cond)) {
|
||||
SVC::CallSVC(Memory::Read32(cpu->Reg[15]));
|
||||
swi_inst* const inst_cream = (swi_inst*)inst_base->component;
|
||||
SVC::CallSVC(inst_cream->num & 0xFFFF);
|
||||
}
|
||||
|
||||
cpu->Reg[15] += GET_INST_SIZE(cpu);
|
||||
|
Reference in New Issue
Block a user