From ae78d75c974edf687b692489893d7d4125daf4d1 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 17 Sep 2021 00:07:28 +0100 Subject: [PATCH] whoops must check crregs being int, not int_regs --- src/openpower/test/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/test/state.py b/src/openpower/test/state.py index 10248e7d..aa3aa81f 100644 --- a/src/openpower/test/state.py +++ b/src/openpower/test/state.py @@ -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 -- 2.30.2