From 783bce62ce7e557b3525ceef0f6e4b7fc9a71ef1 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 23 Oct 2023 16:09:51 -0700 Subject: [PATCH] reduce mmap BLOCK_SIZE to 1 << 28 so it works on armv7a --- src/openpower/decoder/isa/mem.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/openpower/decoder/isa/mem.py b/src/openpower/decoder/isa/mem.py index a32f47fb..cad3d052 100644 --- a/src/openpower/decoder/isa/mem.py +++ b/src/openpower/decoder/isa/mem.py @@ -301,7 +301,11 @@ class _MMapPageFlags(enum.IntFlag): _MMAP_PAGE_SIZE = 1 << 16 # size of chunk that we track _PAGE_COUNT = (1 << 48) // _MMAP_PAGE_SIZE # 48-bit address space _NEG_PG_IDX_START = _PAGE_COUNT // 2 # start of negative half of address space -BLOCK_SIZE = 1 << 32 # code assumes it's a power of two + +# code assumes BLOCK_SIZE is a power of two +# BLOCK_SIZE = 1 << 32 +BLOCK_SIZE = 1 << 28 # reduced so it works on armv7a + assert BLOCK_SIZE % _MMAP_PAGE_SIZE == 0 DEFAULT_BLOCK_ADDRS = ( 0, # low end of user space -- 2.30.2