Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/52498 )
Change subject: sim,configs: Default m5ops_base to 0 (disabled) on x86.
......................................................................
sim,configs: Default m5ops_base to 0 (disabled) on x86.
This is already the default for other platforms. This is most important
when using KVM, where this mechanism is the only way to trigger pseudo
instructions, or in SE mode to also trigger system calls.
Change-Id: I0094e6814898ba397c7425e0fe76d84853bb17ad
---
M configs/common/FSConfig.py
M src/sim/System.py
M configs/example/se.py
M configs/example/apu_se.py
M src/python/gem5/components/boards/x86_board.py
5 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py
index 29b46f6..12714cd 100644
--- a/configs/common/FSConfig.py
+++ b/configs/common/FSConfig.py
@@ -452,6 +452,8 @@
def makeX86System(mem_mode, numCPUs=1, mdesc=None, workload=None,
Ruby=False):
self = System()
+ self.m5ops_base = 0xffff0000
+
if workload is None:
workload = X86FsWorkload()
self.workload = workload
diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py
index 6b6600b..2c15390 100644
--- a/configs/example/apu_se.py
+++ b/configs/example/apu_se.py
@@ -546,6 +546,7 @@
have_kvm_support = 'BaseKvmCPU' in globals()
if have_kvm_support and buildEnv['USE_X86']:
system.vm = KvmVM()
+ system.m5ops_base = 0xffff0000
for i in range(len(host_cpu.workload)):
host_cpu.workload[i].useArchPT = True
host_cpu.workload[i].kvmInSE = True
diff --git a/configs/example/se.py b/configs/example/se.py
index b55fe13..5cb41f6 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -200,6 +200,7 @@
if ObjectList.is_kvm_cpu(CPUClass) or ObjectList.is_kvm_cpu(FutureClass):
if buildEnv['USE_X86']:
system.kvm_vm = KvmVM()
+ system.m5ops_base = 0xffff0000
for process in multiprocesses:
process.useArchPT = True
process.kvmInSE = True
diff --git a/src/python/gem5/components/boards/x86_board.py
b/src/python/gem5/components/boards/x86_board.py
index df7e7fb..4703352 100644
--- a/src/python/gem5/components/boards/x86_board.py
+++ b/src/python/gem5/components/boards/x86_board.py
@@ -100,6 +100,8 @@
# North Bridge
self.iobus = IOXBar()
+ self.m5ops_base = 0xffff0000
+
def _setup_io_devices(self):
""" Sets up the x86 IO devices.
diff --git a/src/sim/System.py b/src/sim/System.py
index 85e5a09..c5b7a82 100644
--- a/src/sim/System.py
+++ b/src/sim/System.py
@@ -124,9 +124,8 @@
# SE mode doesn't use the ISA System subclasses, and so we need to set
an
# ISA specific value in this class directly.
- m5ops_base = Param.Addr(0xffff0000 if buildEnv['USE_X86'] else 0,
- "Base of the 64KiB PA range used for memory-mapped m5ops. Set to
0 "
- "to disable.")
+ m5ops_base = Param.Addr(0, "Base of the 64KiB PA range used for "
+ "memory-mapped m5ops. Set to 0 to disable.")
if buildEnv['USE_KVM']:
kvm_vm = Param.KvmVM(NULL, 'KVM VM (i.e., shared memory domain)')
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/52498
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I0094e6814898ba397c7425e0fe76d84853bb17ad
Gerrit-Change-Number: 52498
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s