mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 08:25:16 +00:00
memory fix
This commit is contained in:
parent
73906f9f29
commit
bb111d325f
5 changed files with 15 additions and 8 deletions
|
|
@ -73,6 +73,11 @@ extern void ppu_execute_function(ppu_thread& ppu, u32 index);
|
|||
|
||||
const auto s_ppu_compiled = static_cast<u32*>(memory_helper::reserve_memory(0x100000000));
|
||||
|
||||
extern void ppu_finalize()
|
||||
{
|
||||
memory_helper::free_reserved_memory(s_ppu_compiled, 0x100000000);
|
||||
}
|
||||
|
||||
// Get interpreter cache value
|
||||
static u32 ppu_cache(u32 addr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ extern void ppu_load_exec(const ppu_exec_object&);
|
|||
extern void spu_load_exec(const spu_exec_object&);
|
||||
extern void arm_load_exec(const arm_exec_object&);
|
||||
extern std::shared_ptr<struct lv2_prx> ppu_load_prx(const ppu_prx_object&);
|
||||
extern void ppu_finalize();
|
||||
|
||||
fs::file g_tty;
|
||||
|
||||
|
|
@ -460,6 +461,7 @@ void Emulator::Stop()
|
|||
|
||||
RSXIOMem.Clear();
|
||||
vm::close();
|
||||
ppu_finalize();
|
||||
|
||||
if (g_cfg_autoexit)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@ void InterpreterDisAsmFrame::DoRun(wxCommandEvent& WXUNUSED(event))
|
|||
|
||||
if (cpu && cpu->state.test_and_reset(cpu_flag::dbg_pause))
|
||||
{
|
||||
if (!test(cpu->state, cpu_state_pause))
|
||||
if (!test(cpu->state, cpu_flag::dbg_pause + cpu_flag::dbg_global_pause))
|
||||
{
|
||||
cpu->notify();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue