I am having some trouble running the simulation in gem5. I keep getting
no workload specified
# Set the workload and benchmark
process = Process()
process.cmd = ['gzip', '-k', 'test.txt']
system.cpu.workload = process
system.cpu.createThreads()
# Set the workload
print("set workload")
m5.command_line.set_workload('mcf')
print("workload Set")
I tried to print the workload portion but received the same error
# Set the workload
print("set workload")
m5.command_line.set_workload('mcf')
print("workload Set")
If none of the below code works with you, leave a comment and I will share more a complete gem5 project to run SPEC17 and SEC06 besides executable bins.
Here is an example to run one of the SEC17 benchmarks:
Another example to run a binary
Obtain the components.
Add them to the board.
Set the workload.
Setup the Simulator and run the simulation.