DebugInterface: Fix r3000 isValidAddress

This commit is contained in:
Ziemas 2023-10-24 15:46:32 +02:00 committed by refractionpcsx2
parent bfd1a4c341
commit 83c18d0cb6
1 changed files with 14 additions and 6 deletions

View File

@ -1003,14 +1003,22 @@ std::string R3000DebugInterface::disasm(u32 address, bool simplify)
bool R3000DebugInterface::isValidAddress(u32 addr)
{
if (addr >= 0x10000000 && addr < 0x10010000)
return true;
if (addr >= 0x12000000 && addr < 0x12001100)
return true;
if (addr >= 0x70000000 && addr < 0x70004000)
if (addr >= 0x1D000000 && addr < 0x1E000000)
{
return true;
}
return !(addr & 0x40000000) && vtlb_GetPhyPtr(addr & 0x1FFFFFFF) != NULL;
if (addr >= 0x1F400000 && addr < 0x1FA00000)
{
return true;
}
if (addr < 0x200000)
{
return true;
}
return false;
}
u32 R3000DebugInterface::getCycles()