whoops must check crregs being int, not int_regs
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Sep 2021 23:07:28 +0000 (00:07 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Sep 2021 23:07:28 +0000 (00:07 +0100)
src/openpower/test/state.py

index 10248e7dbdb6ee58c13aac2e9d4d6922fa987f9a..aa3aa81f1ef403e5d1b897d771e64152704075ec 100644 (file)
@@ -122,7 +122,7 @@ class ExpectedState(State):
         self.pc = pc
         if crregs is None:
             crregs = 8
-        if isinstance(int_regs, int):
+        if isinstance(crregs, int):
             crregs = [0] * crregs
         self.crregs = crregs
         self.so = so