[gem5-users] Re: 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

2020-10-12 Thread Gabe Black via gem5-users
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 wrote: > Hi All: > > > > > >When I use gem5 + O3 based on armv8 with NVMAIN ddr4 model, I want > to know *how I

[gem5-users] 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

2020-10-12 Thread Liyichao via gem5-users
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

[gem5-users] Re: Invalid RubyRequestType

2020-10-12 Thread Θοδωρής Τροχάτος via gem5-users
Hi Jason, Yes, I already tried this but I get the error “Invalid method call: Type ‘sequencer’ does not have a method evictionCallback” Στάλθηκε από το iPhone μου > 12 Οκτ 2020, 20:10, ο χρήστης «Jason Lowe-Power » έγραψε: > >  > Hi Teo, > > That error is because you're still using

[gem5-users] Re: CPU configuration and default values

2020-10-12 Thread Davide Basilio Bartolini via gem5-users
Hi Jason, Thanks for the pointers. So, as I understand it now, the "public" API for gem5 is the Python API and users are expected to write their own scripts against that API. That's what I am doing now, but still the issue with the default values surfaces back again. For example, in

[gem5-users] Re: Invalid RubyRequestType

2020-10-12 Thread Jason Lowe-Power via gem5-users
Hi Teo, That error is because you're still using MESI_Two_Level. You need to recompile gem5 to use a different protocol. I.e., to use MESI_Two_Level you could do the following: > scons build/X86_MESI_Two_Level/gem5.opt > build/X86_MESI_Two_Level/gem5.opt To use MOESI_hammer you could do the