Core: Correct ValidSize outside scratchpad.

And simplify all the scratchpad valid checks.
This commit is contained in:
Unknown W. Brackets 2021-04-21 19:32:22 -07:00
parent bbdb4f76c8
commit 744d17e13c
3 changed files with 13 additions and 8 deletions

View file

@ -572,6 +572,11 @@ static bool TestMemMap() {
}
}
EXPECT_FALSE(Memory::IsValidAddress(0x00015000));
EXPECT_FALSE(Memory::IsValidAddress(0x04900000));
EXPECT_EQ_HEX(Memory::ValidSize(0x00015000, 4), 0);
EXPECT_EQ_HEX(Memory::ValidSize(0x04900000, 4), 0);
return true;
}