Passing command line arguments to binary in gem5

Viewed 45

I am trying to pass command line arguments to a binary that I am simulating on gem5. I want to simulate the following:

./binary 1

I have tried:

gem5.opt configs/learning_gem5/part1/two_level.py binary 1
gem5.opt configs/learning_gem5/part1/two_level.py binary --options '1'
gem5.opt configs/learning_gem5/part1/two_level.py --cmd binary --options '1'

Which are shown here and here but seem to be depreciated. Nearly all of these give error: unrecognized arguments: -options 1 or something similar.

0 Answers
Related