Hi,

I do not know how to stop execution after a certain number of instructions but 
perhaps stopping execution after a certain number of ticks will suffice? If 
that works, you could try using the "m5.scheduleTickExitFromCurrent" function 
available in src>python>m5>simulate.py.  You could call this function before 
"processor.switch()".

You might also have to  append something like "ExitEvent.SCHEDULED_TICK: 
handle_exit()" to "ExitEvent.EXIT: handle_exit()," in line ~300 of the same 
file.

Hope I helped!
Humza Ikram
________________________________
From: Farbin Fayza via gem5-users <[email protected]>
Sent: Tuesday, April 11, 2023 1:19 AM
To: The gem5 Users mailing list <[email protected]>
Cc: Farbin Fayza <[email protected]>
Subject: [gem5-users] Setting the maxinsts after warm-up period for running 
SPEC2017 in full-system mode

Hello,
Could anyone tell me how to set the max number of instructions to run after the 
warm-up period? I'm not sure how to make the relevant change in the 
x86-spec-cpu2017-benchmarks.py file. Or, is it possible to do this with 
command-line arguments?

Thanks,
Farbin.
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to