From 2480a659475a1a6003f0130ab5dc3a067b16d081 Mon Sep 17 00:00:00 2001 From: Erin Date: Wed, 26 Jul 2023 12:41:18 +0200 Subject: [PATCH] Whoops, this is 5-level paging, not 6-level paging --- hbvm/src/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbvm/src/mem/mod.rs b/hbvm/src/mem/mod.rs index d93ef58..c8656f5 100644 --- a/hbvm/src/mem/mod.rs +++ b/hbvm/src/mem/mod.rs @@ -64,7 +64,7 @@ impl Memory { }; // Walk pagetable levels - for lvl in (lookup_depth..5).rev() { + for lvl in (lookup_depth..4).rev() { let entry = (*current_pt) .table .get_unchecked_mut(addr_extract_index(target, lvl));