From d6c9eb28ecd5fc0b2ee4c95b2ae6bcb76bce4f34 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 10 Oct 2023 22:05:49 -0700 Subject: [PATCH] support ignoring integer registers for ExpectedState --- src/openpower/test/state.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openpower/test/state.py b/src/openpower/test/state.py index d32f4b3e..50a01520 100644 --- a/src/openpower/test/state.py +++ b/src/openpower/test/state.py @@ -170,6 +170,8 @@ class State: # Compare int registers for i, (intreg, intreg2) in enumerate( zip(self.intregs, s2.intregs)): + if intreg is None or intreg2 is None: + continue log("asserting...reg", i, intreg, intreg2) log("code, frepr(code)", self.code, repr(self.code)) self.dut.assertEqual(intreg, intreg2, -- 2.30.2