add error message showing which instructions have been barfed
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 3 Oct 2023 14:37:37 +0000 (15:37 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 4 Oct 2023 09:07:51 +0000 (10:07 +0100)
src/openpower/decoder/pseudo/pagereader.py

index be70f32eb3787e8b44951671cddbcae3526b2449..73173cfc772140505695e85cdcc0550464077e5d 100644 (file)
@@ -339,7 +339,8 @@ class ISA:
 
             # "Special Registers Altered" expected
             l = lines.pop(0).rstrip()
-            assert l.startswith("Special"), ("special not found %s" % l)
+            assert l.startswith("Special"), \
+                    ("special not found %s (%s)" % (l, d['desc']))
 
             # whitespace expected
             l = lines.pop(0).strip()