mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
Move HLE table address to FXO (#10284)
This commit is contained in:
parent
2e28e2d293
commit
57cd4ff3c6
9 changed files with 31 additions and 21 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue