From b4eed7fbe8c8f11bfa0792747a2f2e404a899e12 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 3 Mar 2021 17:07:00 +0000 Subject: [PATCH] remove singleton pattern --- src/soc/decoder/isa/test_caller_svp64.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/soc/decoder/isa/test_caller_svp64.py b/src/soc/decoder/isa/test_caller_svp64.py index 14a72d26..118886c1 100644 --- a/src/soc/decoder/isa/test_caller_svp64.py +++ b/src/soc/decoder/isa/test_caller_svp64.py @@ -171,8 +171,10 @@ class DecoderTestCase(FHDLTestCase): self.assertEqual(CR0, SelectableInt(2, 4)) self.assertEqual(CR1, SelectableInt(4, 4)) - def run_tst_program(self, prog, initial_regs=[0] * 32, + def run_tst_program(self, prog, initial_regs=None, svstate=None): + if initial_regs is None: + initial_regs = [0] * 32 simulator = run_tst(prog, initial_regs, svstate=svstate) simulator.gpr.dump() return simulator -- 2.30.2