From: Luke Kenneth Casson Leighton Date: Wed, 3 Mar 2021 17:07:00 +0000 (+0000) Subject: remove singleton pattern X-Git-Tag: convert-csv-opcode-to-binary~126 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4eed7fbe8c8f11bfa0792747a2f2e404a899e12;p=soc.git remove singleton pattern --- 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