mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
Experimental class template Module<T>
Allocates ps3 memory for specific instance T
This commit is contained in:
parent
093ecc0a02
commit
12f36cf31f
123 changed files with 494 additions and 379 deletions
|
@ -309,6 +309,7 @@ namespace loader
|
|||
|
||||
//store elf to memory
|
||||
vm::ps3::init();
|
||||
Emu.GetModuleManager().Init();
|
||||
|
||||
error_code res = alloc_memory(0);
|
||||
if (res != ok)
|
||||
|
@ -418,7 +419,7 @@ namespace loader
|
|||
continue;
|
||||
}
|
||||
|
||||
Module* module = Emu.GetModuleManager().GetModuleByName(m.first.c_str());
|
||||
Module<>* module = Emu.GetModuleManager().GetModuleByName(m.first.c_str());
|
||||
|
||||
if (!module)
|
||||
{
|
||||
|
@ -506,6 +507,8 @@ namespace loader
|
|||
ppu_thr_stop_data[1] = BLR();
|
||||
Emu.SetCPUThreadStop(ppu_thr_stop_data.addr());
|
||||
|
||||
Emu.GetModuleManager().Alloc();
|
||||
|
||||
static const int branch_size = 8 * 4;
|
||||
|
||||
auto make_branch = [](vm::ptr<u32>& ptr, u32 addr)
|
||||
|
@ -687,7 +690,7 @@ namespace loader
|
|||
{
|
||||
const std::string module_name = stub->s_modulename.get_ptr();
|
||||
|
||||
Module* module = Emu.GetModuleManager().GetModuleByName(module_name.c_str());
|
||||
Module<>* module = Emu.GetModuleManager().GetModuleByName(module_name.c_str());
|
||||
|
||||
if (!module)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue