diff --git a/hbvm/src/vm/mem/mod.rs b/hbvm/src/vm/mem/mod.rs index 3b91add..88e82ca 100644 --- a/hbvm/src/vm/mem/mod.rs +++ b/hbvm/src/vm/mem/mod.rs @@ -120,7 +120,7 @@ impl Memory { size: match lvl { 0 => 4096, 1 => 1024_usize.pow(2) * 2, - 2 => 4096_usize.pow(3), + 2 => 1024_usize.pow(3), _ => unreachable!(), }, offset: addr as usize & ((1 << 12) - 1),