ISACaller: add PowerISA spec. reference for real_page_size
authorJacob Lifshay <programmerjake@gmail.com>
Mon, 4 Dec 2023 08:19:31 +0000 (00:19 -0800)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:22 +0000 (19:26 +0000)
src/openpower/decoder/isa/caller.py

index e500f8a36b7d796b41e7a4e01e5f250c8ede1693..fd0a60fee6b3246ce595a723a89782c6edfb45ab 100644 (file)
@@ -1461,7 +1461,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)