Skip to content

Commit 7bbb2a8

Browse files
committed
gem5: fix -X-b, fs_bigLITTLE checkpoint restore, checkpoints are just dirs on backend
1 parent 8902235 commit 7bbb2a8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6162,6 +6162,10 @@ Checkpoints are stored inside the `m5out` directory at:
61626162
out/<arch>/gem5/<gem5-variant>/<run-id>/m5out/cpt.<checkpoint-time>
61636163
....
61646164

6165+
and TODO confirm the `-r N` tag takes the N-th checkpoint with the longest running time, which is not necessarily the last one that was taken, unless you take the second one on the same simulation as the first one.
6166+
6167+
This integer value is just pure `fs.py` sugar, the backend at `m5.instantiate` just takes the actual tracepoint directory as input.
6168+
61656169
[[gem5-restore-new-scrip]]
61666170
==== gem5 checkpoint restore and run a different script
61676171

@@ -6545,6 +6549,12 @@ then:
65456549
./run -aA -g -X-b
65466550
....
65476551

6552+
Checkpoints can be restored with:
6553+
6554+
....
6555+
./run -aA -g -X-b -- --restore-from=out/aarch64/gem5/default/0/m5ou5/cpt.*
6556+
....
6557+
65486558
Advantages over `fs.py`:
65496559

65506560
* more representative of mobile ARM SoCs, which almost always have big little cluster

run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ done
134134
shift "$(($OPTIND - 1))"
135135
extra_flags="$extra_flags $@"
136136
OPTIND=1
137-
while getopts b OPT "$extra_opts"; do
137+
while getopts b OPT $extra_opts; do
138138
case "$OPT" in
139139
b)
140140
gem5_fsbiglittle=true

0 commit comments

Comments
 (0)