24.7. Pass extra options to gem5
Remember that in the gem5 command line, we can either pass options to the script being run as in:
build/X86/gem5.opt configs/examples/fs.py --some-option
or to the gem5 executable itself:
build/X86/gem5.opt --some-option configs/examples/fs.py
Pass options to the script in our setup use:
-
get help:
./run --emulator gem5 -- -h
-
boot with the more detailed and slow
HPI
CPU model:./run --arch arm --emulator gem5 -- --caches --cpu-type=HPI
To pass options to the gem5
executable we expose the --gem5-exe-args
option:
-
get help:
./run --gem5-exe-args='-h' --emulator gem5