PPU LLVM: upgrade to GHC call conv

Get rid of some global variables.
Implement ppu_escape (unused yet).
Bump PPU cache version to v4.
This commit is contained in:
Nekotekina 2021-01-31 21:38:47 +03:00
parent aeeceb7d0b
commit 0c034ad7de
7 changed files with 251 additions and 109 deletions

View file

@ -244,7 +244,7 @@ static void ppu_initialize_modules(ppu_linkage_info* link)
};
// Initialize double-purpose fake OPD array for HLE functions
const auto& hle_funcs = ppu_function_manager::get();
const auto& hle_funcs = ppu_function_manager::get(g_cfg.core.ppu_decoder == ppu_decoder_type::llvm);
// Allocate memory for the array (must be called after fixed allocations)
ppu_function_manager::addr = vm::alloc(::size32(hle_funcs) * 8, vm::main);