whoops forgot to trap if non-execute (instruction) invalid
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 20 Dec 2021 14:40:57 +0000 (14:40 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 20 Dec 2021 14:40:57 +0000 (14:40 +0000)
ISACaller RADIXMMU returns exception, there are two types:
LDST (0x300) and I-Fetch (0x400)

src/openpower/decoder/isa/caller.py

index 206a2d9ec5ed1d32795443a624fb215da628664b..4ee485f6c2a01238e3e23bb9391e798acb787767 100644 (file)
@@ -1039,6 +1039,8 @@ class ISACaller(ISACallerHelper, ISAFPHelpers):
                     # else
                     #     v.intr_vec := 16#480#;
                     self.call_trap(0x400, PIb.PRIV)    # 0x400, privileged
+                else:
+                    self.call_trap(0x300, PIb.PRIV)    # 0x300, privileged
                 return
             # not supported yet:
             raise e                          # ... re-raise