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:
Lioncash 2015-07-21 03:51:36 -04:00
parent baba0efcd1
commit c2689b8c2c
3 changed files with 6 additions and 6 deletions

View file

@ -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);