Core: Correct ValidSize outside scratchpad.
And simplify all the scratchpad valid checks.
This commit is contained in:
parent
bbdb4f76c8
commit
744d17e13c
3 changed files with 13 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue