projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3402776
)
reduce mmap BLOCK_SIZE to 1 << 28 so it works on armv7a
author
Jacob Lifshay
<programmerjake@gmail.com>
Mon, 23 Oct 2023 23:09:51 +0000
(16:09 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Mon, 23 Oct 2023 23:09:51 +0000
(16:09 -0700)
src/openpower/decoder/isa/mem.py
patch
|
blob
|
history
diff --git
a/src/openpower/decoder/isa/mem.py
b/src/openpower/decoder/isa/mem.py
index a32f47fbf49ee40b6c8fd7d0a7fc0d1549111a09..cad3d052a38252ebf0e1cf3b8b41deac813e269e 100644
(file)
--- 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