From c55e3e82c9cce9e5f9340d0119c2189e28699344 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 d93ef58c..c8656f52 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));