VM_CAST macro

This commit is contained in:
Nekotekina 2015-07-03 02:11:44 +03:00
parent 8c00dcd02d
commit 721ad404d2
17 changed files with 259 additions and 257 deletions

View file

@ -106,7 +106,7 @@ void execute_ppu_func_by_index(PPUThread& CPU, u32 index)
// save RTOC if necessary
if (index & EIF_SAVE_RTOC)
{
vm::write64(vm::cast(CPU.GPR[1] + 0x28), CPU.GPR[2]);
vm::write64(VM_CAST(CPU.GPR[1] + 0x28), CPU.GPR[2]);
}
// save old syscall/NID value
@ -196,7 +196,7 @@ void execute_ppu_func_by_index(PPUThread& CPU, u32 index)
if (index & EIF_PERFORM_BLR)
{
// return if necessary
CPU.PC = vm::cast(CPU.LR & ~3) - 4;
CPU.PC = VM_CAST(CPU.LR & ~3) - 4;
}
CPU.hle_code = last_code;