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 cache prediction. I am > doing this by running a timed simulation in order to limit the number of > instructions executed (if there is a more direction, that would be > certainly welcomed). > > So, how to do this? > > I tried the following: > > system.setMemCtrl(valid_mem_ctls[args.memory_ctl]) > system.cpu.max_insts_any_thread = warmup_inst > > Also, I tried to set the duration desired for the simulation by passing it > as an argument to the m5.simulate(). > > Thanks. > > -- > > *Best,Abdelrahman Hussein* > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s