From 8b689c5ff077252a68c88bc7d70990405fc8dd5a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 3 Mar 2024 21:01:46 +0900 Subject: feat: implement more instructions --- src/Execution/Allocator.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Execution/Allocator.php') diff --git a/src/Execution/Allocator.php b/src/Execution/Allocator.php index 89e1f83..8012078 100644 --- a/src/Execution/Allocator.php +++ b/src/Execution/Allocator.php @@ -130,6 +130,8 @@ final readonly class Allocator private function allocMem(MemType $memType): MemAddr { $minSize = $memType->limits->min; + // @todo hack + $minSize *= 8; $data = array_fill(0, $minSize * 64 * 1024, 0); $memInst = new MemInst($memType, $data); $this->store->mems[] = $memInst; -- cgit v1.2.3-70-g09d2