PageTableHostMappingTest: Fix copypaste error in misaligned+hole test
Because of this mistake, HoleInMaskMisalignedPageTable was testing the same thing as MisalignedPageTable, which wasn't the intent.
This commit is contained in:
1 parent
3fe5df474b
commit
4f0219d08c
1 file changed
+4
-3
@@ -820,12 +820,12 @@ TEST_F(PageTableHostMappingTest, HoleInMask)
|
||||
// mask, we get the same result as if we just make the base misaligned.
|
||||
TEST_F(PageTableHostMappingTest, HoleInMaskMisalignedPageTable)
|
||||
{
|
||||
SetSDR(MISALIGNED_PAGE_TABLE_BASE + 0x10000, PowerPC::PAGE_TABLE_MIN_SIZE - 1);
|
||||
SetSDR(MISALIGNED_HOLE_MASK_PAGE_TABLE_BASE + 0x10000, PowerPC::PAGE_TABLE_MIN_SIZE - 1);
|
||||
|
||||
AddHostSizedMapping(0x10ad0000, 0x002d0000, 4);
|
||||
ExpectMapped(0x10ad0000, 0x002d0000);
|
||||
|
||||
SetSDR(MISALIGNED_PAGE_TABLE_BASE, MISALIGNED_PAGE_TABLE_MASK);
|
||||
SetSDR(MISALIGNED_HOLE_MASK_PAGE_TABLE_BASE, MISALIGNED_HOLE_MASK_PAGE_TABLE_MASK);
|
||||
|
||||
ExpectNotMapped(0x10ad0000);
|
||||
|
||||
@@ -850,7 +850,8 @@ TEST_F(PageTableHostMappingTest, HoleInMaskMisalignedPageTable)
|
||||
ExpectMapped(0x10ad0000, 0x00310000);
|
||||
ExpectMapped(0x10ed0000, 0x00300000);
|
||||
|
||||
SetSDR(MISALIGNED_PAGE_TABLE_BASE_ALIGNED, MISALIGNED_PAGE_TABLE_MASK);
|
||||
SetSDR(MISALIGNED_HOLE_MASK_PAGE_TABLE_BASE_ALIGNED,
|
||||
MISALIGNED_HOLE_MASK_PAGE_TABLE_MASK_WITHOUT_HOLE);
|
||||
|
||||
ExpectNotMapped(0x102d0000);
|
||||
ExpectMapped(0x106d0000, 0x002f0000);
|
||||
|
||||
Reference in new issue
Block a user