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

@ -7,6 +7,7 @@
#include "Emu/Cell/Common.h"
#include "Emu/Cell/PPUFunction.h"
#include "Emu/Cell/timers.hpp"
#include "Emu/IdManager.h"
#include <bit>
#include <cmath>
@ -5180,7 +5181,7 @@ bool ppu_interpreter::FCFID(ppu_thread& ppu, ppu_opcode_t op)
bool ppu_interpreter::UNK(ppu_thread& ppu, ppu_opcode_t op)
{
// HLE function index
const u32 index = (ppu.cia - ppu_function_manager::addr) / 8;
const u32 index = (ppu.cia - g_fxo->get<ppu_function_manager>().addr) / 8;
const auto& hle_funcs = ppu_function_manager::get();