Hi Amir, Considering the execute-in-execute cpu models of gem5, I don't think it will be possible in gem5. One thing that might work for you is to generate a trace with the latency information and then use that trace later to infer the dynamic latencies of operations (this will need two gem5 runs to simulate a workload).
-Ayaz On Wed, Feb 12, 2020 at 4:59 AM Muhammad Aamir <aamir.sa...@bilkent.edu.tr> wrote: > Hi everyone, > > If I wanted to get the latency of a micro-op in X86 before it is > "executed", what files or folders should I look into to get the latency. > > As we know they are two types of latencies associated with any micro-op or > any instruction(one latency of actually executing it and the other for > fetching/receiving data etc). Am interested in the later, For example the > "ld"(load)micro-op, i want to calculate the time it takes to load the data > from the memory to the registers but not its actual latency. And I want to > do it before it is send to be executed. > > I can find the latency once it has been executed in terms of ticks, but I > am not interested in it after it has been decoded and executed, I want to > store the latency of it beforehand. > > Is it possible to achieve this or not in gem5? > > > Thanks > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users