Hi Shawn, As for the error you got, I think TaggedPrefetcher should be properly imported in that script.
You could also simply enable the prefetcher in the SE mode by adding the following to se.py (or similarly, in any other configuration script you are using): system.cpu[0].dcache.prefetcher = TaggedPrefetcher() Thanks, Hossein On Tue, Jul 13, 2021 at 11:02 AM Shawn via gem5-users <gem5-users@gem5.org> wrote: > Hello, > > I am trying to enable the prefetcher of the cache in SE mode (not Ruby). > > After I modified the prefetcher configurations in src/mem/cache/cache.py > to *prefetcher = Param.BasePrefetcher(TaggedPrefetcher(),"Prefetcher > attached to cache")* and compiled it, it gave the error NameError: name ' > *TaggedPrefetcher*' is not defined. > > When I tried the *se.py with --l1d-hwp-Type=TaggedPrefetcher,* it works > fine. > > I am not sure what causes the issue. Do I have to use the se.py to enable > the prefetcher in a SE mode simulation? > > I will appreciate it if anyone may help. > > > Thank you very much, > Shawn > _______________________________________________ > 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