running of tests using ISACaller simulation
"""
- def __init__(self, dut, m, pspec, use_mmap_mem=False):
+ def __init__(self, dut, m, pspec,
+ use_mmap_mem=False,
+ use_syscall_emu=False):
super().__init__("sim", SimRunner)
self.dut = dut
None, regreduce_en=regreduce_en, fp_en=fp_en)
m.submodules.simdec2 = simdec2 # pain in the neck
self.use_mmap_mem = use_mmap_mem
+ self.use_syscall_emu = use_syscall_emu
def prepare_for_test(self, test):
self.test = test
mmu=self.mmu,
fpregfile=test.fpregs,
initial_fpscr=test.initial_fpscr,
- use_mmap_mem=self.use_mmap_mem)
+ use_mmap_mem=self.use_mmap_mem,
+ use_syscall_emu=self.use_syscall_emu)
# run the loop of the instructions on the current test
index = sim.pc.CIA.value//4
def __init__(self, tst_data, microwatt_mmu=False, rom=None,
svp64=True, run_hdl=None, run_sim=True,
allow_overlap=False, inorder=False, fp=False,
- use_mmap_mem=False):
+ use_mmap_mem=False,
+ use_syscall_emu=False):
super().__init__("run_all")
self.test_data = tst_data
self.microwatt_mmu = microwatt_mmu
self.run_sim = run_sim
self.fp = fp
self.use_mmap_mem = use_mmap_mem
+ self.use_syscall_emu = use_syscall_emu
def run_all(self):
m = Module()
state_list.append(hdlrun)
if self.run_sim:
- simrun = SimRunner(self, m, pspec, use_mmap_mem=self.use_mmap_mem)
+ simrun = SimRunner(self, m, pspec,
+ use_mmap_mem=self.use_mmap_mem,
+ use_syscall_emu=self.use_syscall_emu)
state_list.append(simrun)
# run core clock at same rate as test clock