Hi Liyichao, you can register a callback with the
Stats::registerResetCallback function in base/statistics.hh.

Gabe

On Mon, Oct 12, 2020 at 7:15 PM Liyichao via gem5-users <gem5-users@gem5.org>
wrote:

> Hi All:
>
>
>
>
>
>        When I use gem5 + O3 based on armv8 with NVMAIN ddr4 model, I want
> to know *how I can notify the NVMAIN model when I use “m5 resetstats”* so
> that the NVMAIN model can also reset the stats in its model, e.g.
> bandwidth, latency, because I will first run warmup for a few instrutions,
> when warmup finished I reset stats in GEM5, and then go on running the
> simulation parts.
>
>
>
>
> _______________________________________________
> 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

Reply via email to