From 7238df7859936a826159d93e36dc0bf2611ac4ef Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Tue, 20 Dec 2022 08:43:59 +0000 Subject: [PATCH] util: Update run_gem5_fs.sh script with AArch64 platform The example script is using VExpress_EMM, which is a deprecated platform and it is referring to an AArch32 kernel. With this patch we use the VExpress_GEM5_Foundation platform instead and point to a AArch64 kernel Change-Id: I961d5d5de71bc284c7492ee7b04088148909ca1b Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/66856 Maintainer: Daniel Carvalho Reviewed-by: Matthias Jung Reviewed-by: Daniel Carvalho Tested-by: kokoro --- util/tlm/README | 7 +++---- util/tlm/run_gem5_fs.sh | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/util/tlm/README b/util/tlm/README index 8098afa0e5..3ae43c5909 100644 --- a/util/tlm/README +++ b/util/tlm/README @@ -145,10 +145,9 @@ C++-configured gem5 using normal gem5 > ../../build/ARM/gem5.opt ../../configs/example/fs.py \ --tlm-memory=transactor --cpu-type=TimingSimpleCPU --num-cpu=1 \ --mem-type=SimpleMemory --mem-size=512MB --mem-channels=1 --caches \ - --l2cache --machine-type=VExpress_EMM \ - --dtb-filename=vexpress.aarch32.ll_20131205.0-gem5.1cpu.dtb \ - --kernel=vmlinux.aarch32.ll_20131205.0-gem5 \ - --disk-image=linux-aarch32-ael.img + --l2cache --machine-type=VExpress_GEM5_Foundation \ + --kernel=vmlinux.arm64 \ + --disk-image=ubuntu-18.04-arm64-docker.img The message "fatal: Can't find port handler type 'tlm_slave'" is okay. The configuration will be stored in the m5out/ directory diff --git a/util/tlm/run_gem5_fs.sh b/util/tlm/run_gem5_fs.sh index 9065cbf9f5..d8ab847031 100755 --- a/util/tlm/run_gem5_fs.sh +++ b/util/tlm/run_gem5_fs.sh @@ -42,9 +42,9 @@ echo -e "\n${BGre}Create gem5 Configuration${RCol}\n" --mem-size=512MB \ --mem-channels=1 \ --caches --l2cache \ ---machine-type=VExpress_EMM \ ---dtb-filename=vexpress.aarch32.ll_20131205.0-gem5.1cpu.dtb \ ---kernel=vmlinux.aarch32.ll_20131205.0-gem5 +--machine-type=VExpress_GEM5_Foundation \ +--kernel=vmlinux.arm64 \ +--disk-image=ubuntu-18.04-arm64-docker.img echo -e "\n${BGre}Run gem5 ${RCol}\n"