Minor ppu_initialize fix

This commit is contained in:
Eladash 2023-07-24 12:40:01 +03:00 committed by Elad Ashkenazi
parent a6e8b9037a
commit 9d3e626b55
1 changed files with 2 additions and 2 deletions

View File

@ -3741,7 +3741,7 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
{
if (g_cfg.core.ppu_decoder != ppu_decoder_type::llvm)
{
if (check_only)
if (check_only || vm::base(info.segs[0].addr) != info.segs[0].ptr)
{
return false;
}
@ -3761,7 +3761,7 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
if (g_cfg.core.ppu_debug && func.size && func.toc != umax)
{
ppu_toc.emplace(func.addr, func.toc);
ppu_toc[func.addr] = func.toc;
ppu_ref(func.addr) = &ppu_check_toc;
}
}