mmu: check if remap does anything

This commit is contained in:
2026-01-13 10:26:32 +08:00
parent 6262cb135d
commit 7a4da4df48

View File

@@ -407,6 +407,10 @@ impl L1Table {
let index = (virtual_addr >> 20) as usize;
let entry = &mut self.table[index];
if entry.0 & 0x000f_ffff == new_physical_base {
// don't waste time with flushing caches if there's no change
return;
}
let section = entry.get_section();
*entry = L1Entry::from_section(new_physical_base, section);