Posted (Dec. 1, 2011, 8:15 a.m.)
I think this is a great idea and something I'd have liked to have a long time ago. I have two complaints though. The first is that it doesn't go far enough. I'd like to see this stat ported to all the CPUs and be a first class stat up there with sim_inst and sim_ticks. When you make a change in the microcode of an instruction in x86, for instance, you can be fairly confident you haven't broken anything if the number of microops change but the number of architecture level instructions hasn't. That would be useful no matter what CPU you're on. Second, you're naming looks wrong. This stat doesn't count macroops, it counts not microops which include non-microcoded instructions. I think that's actually the more useful of the two options anyway, so it's really just the name that I think should change. Perhaps we should go as far as making this the new sim_insts and come up with a new name for what sim_insts is currently counting.
Posted (Dec. 3, 2011, 5:28 a.m.)
I'll agree with Gabe on all three points here: 1. We really need this (so first and foremost thanks for actually doing it). 2. We really should have this for all CPU models. 3. This probably should be the new sim_insts and we should find a different name for the micro-op count.
