From a2d72a0e78553141a7a0eaac8018889893f4e762 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 18 Oct 2023 18:32:37 +0300 Subject: [PATCH] isa/caller: enable host-backed memory for scemu --- src/openpower/decoder/isa/caller.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.30.2