From c8496d8c4d58a27ee91fc905957cce8f5486075b Mon Sep 17 00:00:00 2001 From: Richard Cooper Date: Tue, 4 Oct 2022 10:51:38 +0100 Subject: [PATCH] configs: Add the O3 CPU as an option to baremetal.py Adds the O3_ARM_v7a CPU model as an extra option for the `--cpu-type` to `configs/example/arm/baremetal.py`. Change-Id: I717b168945bec22fb5ae17e37c2854df844bcb4f Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69686 Tested-by: kokoro Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini --- configs/example/arm/baremetal.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configs/example/arm/baremetal.py b/configs/example/arm/baremetal.py index 345596d6e1..9caab9db84 100644 --- a/configs/example/arm/baremetal.py +++ b/configs/example/arm/baremetal.py @@ -52,6 +52,7 @@ from common import SysPaths from common import MemConfig from common import ObjectList from common.cores.arm import HPI +from common.cores.arm import O3_ARM_v7a import devices import workloads @@ -63,6 +64,12 @@ cpu_types = { "atomic": (AtomicSimpleCPU, None, None, None), "minor": (MinorCPU, devices.L1I, devices.L1D, devices.L2), "hpi": (HPI.HPI, HPI.HPI_ICache, HPI.HPI_DCache, HPI.HPI_L2), + "o3": ( + O3_ARM_v7a.O3_ARM_v7a_3, + O3_ARM_v7a.O3_ARM_v7a_ICache, + O3_ARM_v7a.O3_ARM_v7a_DCache, + O3_ARM_v7a.O3_ARM_v7aL2, + ), }