stdlib: Add the MinorCPU type to the stdlib

Issue-on: https://gem5.atlassian.net/browse/GEM5-1161
Change-Id: I849f164bb33bde9e5d29bbd1d8c74a9193d29daf
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/57689
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Bobby R. Bruce
2022-03-15 12:45:07 -07:00
committed by Bobby Bruce
parent de22295609
commit 1876e782ee
3 changed files with 4 additions and 2 deletions

View File

@@ -136,7 +136,8 @@ class AbstractCore(SubSystem):
CPUTypes.ATOMIC : "AtomicSimpleCPU",
CPUTypes.O3 : "O3CPU",
CPUTypes.TIMING : "TimingSimpleCPU",
CPUTypes.KVM : "KvmCPU"
CPUTypes.KVM : "KvmCPU",
CPUTypes.MINOR : "MinorCPU",
}
if isa not in _isa_string_map:

View File

@@ -32,3 +32,4 @@ class CPUTypes(Enum):
KVM = 2
O3 = 3
TIMING = 4
MINOR = 5

View File

@@ -92,7 +92,7 @@ class SimpleProcessor(AbstractProcessor):
board.kvm_vm = self.kvm_vm
# Set the memory mode.
if self._cpu_type == CPUTypes.TIMING or self._cpu_type == CPUTypes.O3:
if self._cpu_type in (CPUTypes.TIMING, CPUTypes.O3, CPUTypes.MINOR):
board.set_mem_mode(MemMode.TIMING)
elif self._cpu_type == CPUTypes.KVM:
board.set_mem_mode(MemMode.ATOMIC_NONCACHING)