Move HLE table address to FXO (#10284)

This commit is contained in:
Eladash 2021-05-17 14:22:27 +03:00 committed by GitHub
parent 2e28e2d293
commit 57cd4ff3c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 31 additions and 21 deletions

View file

@ -2,6 +2,7 @@
#include "StaticHLE.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/PPUOpcodes.h"
#include "Emu/IdManager.h"
LOG_CHANNEL(static_hle);
@ -162,7 +163,7 @@ bool statichle_handler::check_against_patterns(vm::cptr<u8>& data, u32 size, u32
}
const auto sfunc = &smodule->functions.at(pat.fnid);
const u32 target = ppu_function_manager::func_addr(sfunc->index) + 4;
const u32 target = g_fxo->get<ppu_function_manager>().func_addr(sfunc->index) + 4;
// write stub
vm::write32(addr, ppu_instructions::LIS(0, (target&0xFFFF0000)>>16));