Hi Tracy, I think you can put scheduleInstStop() and m5.simulate() in a loop to do that.
Regards, Hoa Nguyen On 11/10/20, Tracy Mac via gem5-users <gem5-users@gem5.org> wrote: > Hi All! > I am trying to limit instructions number repeatedly,stop the simulation > when the instruction is limited, do other operations, and continue the > simulation until the next instruction limit, > I find scheduleInstStop()(src/cpu/base.cc) realize this function,but I > can't call scheduleInstStop repeatedly. > Is there a function to limit the number of CPU instructions multiple times > in gem5 > I want to call scheduleInstStop() function in Simlation.py(configs/common) > repeatedly,but I don't know how to set it. > I hope you could give me some suggestions. > > Thanks > Tracy > _______________________________________________ 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