diff options
| author | JosJuice <josjuice@gmail.com> | 2026-04-04 22:50:12 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2026-04-04 22:56:00 +0200 |
| commit | 4f0219d08c7a497621b5ab54f4ac730b4fbf5f15 (patch) | |
| tree | c5f85d6edc2f3f1877d86f9669c06a71057d8d14 /Source/UnitTests | |
| parent | 3fe5df474bf268dc87f05991462df52150a7c511 (diff) | |
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.
Diffstat (limited to 'Source/UnitTests')
| -rw-r--r-- | Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp b/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp index c7b93d12fc..2cfb4b8c8f 100644 --- a/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp +++ b/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp @@ -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); |
