From: Dmitry Selyutin Date: Wed, 18 Oct 2023 15:32:37 +0000 (+0300) Subject: isa/caller: enable host-backed memory for scemu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6df40d6287f1c086ecadab86ec746feb16da8aa6;p=openpower-isa.git isa/caller: enable host-backed memory for scemu --- diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 5a72880f..0c9b0e60 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -1169,7 +1169,13 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): insnlog=None, use_mmap_mem=False, use_syscall_emu=False): - self.syscall = SyscallEmulator(isacaller=self) + if use_syscall_emu: + self.syscall = SyscallEmulator(isacaller=self) + if not use_mmap_mem: + log("forcing use_mmap_mem due to use_syscall_emu active") + use_mmap_mem = True + else: + self.syscall = None # trace log file for model output. if None do nothing self.insnlog = insnlog