Hi Priyanka, I am assuming you don't see any new instructions in the "trace.out" after a specific time. My understanding is that since this program is run in full system mode (bare metal), even when the program finishes the simulation loop still keeps executing (simulating the bare metal system). One possible option, I think, is to add an m5 instruction ( https://www.gem5.org/documentation/general_docs/m5ops/) at the end of your program which will move the control from C++ simulation loop to the python run script where you can terminate the simulation yourself. Another option is to set the maximum time the simulation should run for by passing a tick value to the m5.simulate() call.
-Ayaz On Thu, Jan 26, 2023 at 1:17 PM Priyanka Ankolekar via gem5-users < gem5-users@gem5.org> wrote: > Hello, > I am new to gem5. > I am trying to run Dhrystone on gem5 RISCV using the fs_linux.py file in > the gem5 repo. > > configs/example/riscv/fs_linux.py > > Here is the command I am using: > > ./build/RISCV/gem5.opt --debug-start=0 --debug-flags=Exec > --debug-file=trace.out ./configs/example/riscv/fs_linux.py --bare-metal > --kernel ../riscv-tests/benchmarks/dhrystone.riscv > > > The issue is that it won't stop running. Do I have to add an ExitEvent or > some exit criteria? How should I do that? > > Thanks for your help. > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org