[gem5-users] Re: Run Timed Simulation (Stop After Certain Time)

2021-12-08 Thread Jason Lowe-Power via gem5-users
You can call cpu.scheduleInstStop(, , ) So, you can set an initial instruction limit which will exit from the simulate() call. Then, you can reset the stats and set a new instruction limit with scheduleInstStop. Then, call simulate() again. When this second simulate returns you can dump the

[gem5-users] Re: Run Timed Simulation (Stop After Certain Time)

2021-12-06 Thread Abdelrahman S. Hussein via gem5-users
Hi Prof. Jason, Thanks a lot for your response. The problem is not that we need to set one instruction limit but set one instruction limit, then reset the stats, and then terminate the simulation completely after the "total instruction limit". So, these are basically two termination points; one

[gem5-users] Re: Run Timed Simulation (Stop After Certain Time)

2021-12-06 Thread Jason Lowe-Power via gem5-users
Hi Abdelrahman, I think you have the right approach. Is the simulation not exiting after the warmup_inst instructions? Cheers, Jason On Sat, Dec 4, 2021 at 11:43 PM Abdelrahman S. Hussein via gem5-users < gem5-users@gem5.org> wrote: > Hello, > > I am trying to warm up my gem5 in order to train