"Bruno Larsen (billionai)" <bruno.larsen@eldorado.org.br> writes:
Based-on: 20210525115355.8254-1-bruno.larsen@eldorado.org.br"><20210525115355.8254-1-bruno.larsen@eldorado.org.br>
The functionality of counting how many instructions were being executed and
being able to show it through the monitor, although neat, was only
supported by ppc, and now that it is migrating to use decodetree (at
least partially), those statistics won't be used anymore. Therefore,
this patch removes that functinality completely.
I have no particular comment to make about the PPC stuff but with the
common translator loop we have hooks across all converted front ends to
identify the start of each instruction. It's needed for the TCG plugin
instrumentation and we could in theory use it for more integrated stats
across the board.
Out of interest what was the main aim of this code - a view of total
executed instructions or something more detailed like a breakdown of
types and ops?
I'm pretty new to qemu, so I'm not sure what the original intent
was, but what it did was count how many times the handler of the
instruction was called, so you knew how many times each individual
opcode was used. At least, that's what I think it should do, since
the code doesn't even compile anymore for me to check