Fix memory breakpoints not triggering on Windows

For some reasons, they worked on Linux even though it was incorrect, this commit does it correctly and so it fixes that on Windows.
This commit is contained in:
aldelaro5 2017-03-03 05:06:40 -05:00
parent b83929477f
commit 4738e3195c
1 changed files with 2 additions and 2 deletions

View File

@ -227,9 +227,9 @@ void UpdateLogicalMemory(const PowerPC::BatTable& dbat_table)
g_arena.ReleaseView(entry.mapped_pointer, entry.mapped_size);
}
logical_mapped_entries.clear();
for (u32 i = 0; i < (1 << (32 - PowerPC::BAT_INDEX_SHIFT)); ++i)
for (u32 i = 0; i < dbat_table.size(); ++i)
{
if (dbat_table[i] & PowerPC::BAT_MAPPED_BIT)
if (dbat_table[i] & PowerPC::BAT_PHYSICAL_BIT)
{
u32 logical_address = i << PowerPC::BAT_INDEX_SHIFT;
// TODO: Merge adjacent mappings to make this faster.