move "happened" field to end of LDSTException
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 4 May 2021 12:48:37 +0000 (13:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 4 May 2021 12:48:37 +0000 (13:48 +0100)
src/openpower/exceptions.py

index a0fc9a7f8247ce66b454e98b18e007bd0263f6aa..e648ba1fc62d4623b2fb473cb8dc19413c91d1f0 100644 (file)
@@ -5,8 +5,9 @@ from nmigen import Signal
 
 # https://bugs.libre-soc.org/show_bug.cgi?id=465
 class LDSTException(RecordObject):
-    _exc_types = ['happened', 'alignment', 'instr_fault', 'invalid', 'badtree',
-                 'perm_error', 'rc_error', 'segment_fault',]
+    _exc_types = ['alignment', 'instr_fault', 'invalid', 'badtree',
+                 'perm_error', 'rc_error', 'segment_fault',
+                  'happened', ] # must be last: may overlap with Data.ok
     def __init__(self, name=None):
         RecordObject.__init__(self, name=name)
         for f in self._exc_types: