From 81ffb9341985220f52c0875051b8348d1a9ef729 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 4 Dec 2023 00:19:31 -0800 Subject: [PATCH] ISACaller: add PowerISA spec. reference for real_page_size --- src/openpower/decoder/isa/caller.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 7806ccd2..e2f997cb 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -1452,7 +1452,9 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): # for LR/SC if real_page_size is None: - real_page_size = 4096 + # PowerISA v3.1B Book III Section 6.7 page 1191 (1217) + # defines real page size as 2 ** 12 bytes (4KiB) + real_page_size = 2 ** 12 self.real_page_size = real_page_size self.reserve_addr = SelectableInt(0, self.XLEN) self.reserve = SelectableInt(0, 1) -- 2.30.2