Giacomo Travaglini has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/53628 )

Change subject: ext: Add an Arm section for gem5-SST README.md
......................................................................

ext: Add an Arm section for gem5-SST README.md

Change-Id: Ia10948a836797855219aef406bf38f52d28d8e26
Signed-off-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
---
M ext/sst/README.md
M ext/sst/sst/arm_example.py
2 files changed, 38 insertions(+), 2 deletions(-)



diff --git a/ext/sst/README.md b/ext/sst/README.md
index 7a8f838..81203eb 100644
--- a/ext/sst/README.md
+++ b/ext/sst/README.md
@@ -57,7 +57,7 @@

 See `INSTALL.md`.

-## Running an example simulation
+## Running an example simulation (RISCV)

 Downloading the built bootloader containing a Linux Kernel and a workload,

@@ -77,6 +77,32 @@
 customized workload is available at
[https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/develop/src/riscv-boot-exit-nodisk/].

+## Running an example simulation (Arm)
+
+Download the prebuilt bootloader and Linux Kernel with embedded initramfs and +extract them under the $M5_PATH directory (make sure M5_PATH points to a valid
+directory):
+
+```sh
+wget http://dist.gem5.org/dist/v21-1/arm/aarch-system-20210904.tar.bz2
+tar -xf aarch-system-20210904.tar.bz2
+
+# copying bootloaders
+cp binaries/boot* $M5_PATH/binaries/
+
+# copying Linux Kernel
+cp binaries/vmlinux_exit.arm64 $M5_PATH/binaries/
+```
+
+`vmlinux_exit.arm64` contains an m5 binary, and `m5 exit` will be called upon
+the booting process reaching the early userspace.
+
+Run the simulation:
+
+```sh
+sst sst/arm_example.py
+```
+
 ## Notes

 - SwapReq from gem5 requires reading from memory and writing to memory.
diff --git a/ext/sst/sst/arm_example.py b/ext/sst/sst/arm_example.py
index 26832b0..cdee3ca 100644
--- a/ext/sst/sst/arm_example.py
+++ b/ext/sst/sst/arm_example.py
@@ -44,7 +44,7 @@

 cache_link_latency = "1ps"

-kernel = "vmlinux"
+kernel = "vmlinux_exit.arm64"
 cpu_clock_rate = "3GHz"
# gem5 will send requests to physical addresses of range [0x80000000, inf) to memory # currently, we do not subtract 0x80000000 from the request's address to get the "real" address

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/53628
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: Ia10948a836797855219aef406bf38f52d28d8e26
Gerrit-Change-Number: 53628
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to