From: Dmitry Selyutin Date: Wed, 18 Oct 2023 17:06:17 +0000 (+0300) Subject: isa/test_runner: support additional parameters X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2149b8c7c578a744e0458620974250cf2468848;p=openpower-isa.git isa/test_runner: support additional parameters --- diff --git a/src/openpower/decoder/isa/test_runner.py b/src/openpower/decoder/isa/test_runner.py index b84354cc..819ccae9 100644 --- a/src/openpower/decoder/isa/test_runner.py +++ b/src/openpower/decoder/isa/test_runner.py @@ -94,11 +94,17 @@ def check_regs(dut, sim, expected, test, code): yield from teststate_check_regs(dut, testdic, test, code) -def run_tst(generator, initial_regs, initial_sprs=None, svstate=0, mmu=False, - initial_cr=0, mem=None, - initial_fprs=None, - pdecode2=None, - state=None): # (dut, code) +def run_tst(generator, initial_regs, + initial_sprs=None, + svstate=0, + mmu=False, + initial_cr=0, + mem=None, + initial_fprs=None, + pdecode2=None, + state=None, + use_mmap_mem=False, + use_syscall_emu=False): # (dut, code) if initial_sprs is None: initial_sprs = {} m = Module() @@ -121,7 +127,9 @@ def run_tst(generator, initial_regs, initial_sprs=None, svstate=0, mmu=False, fpregfile=initial_fprs, disassembly=insncode, bigendian=0, - mmu=mmu) + mmu=mmu, + use_mmap_mem=use_mmap_mem, + use_syscall_emu=use_syscall_emu) comb += pdecode2.dec.raw_opcode_in.eq(instruction) sim = Simulator(m)