Fix L1 instruction and OP cache mixup in the Zen 4 Instruction Fetch view.
Disabling the OP cache now shows 0% for Op$ Hitrate instead of L1i Hitrate.
Before:
After:
The "Op$ Ops" field value also seems suspect, but it's not clear what the fix is. The values shown are very different from the "Op Cache Ops" field from the "Loop Buffer" view. Switching this from counterData.ctr5 (L2 iTLB miss (page walk)) to counterData.ctr0 (OC Access) still shows disagreement with the "Loop Buffer" view.
Thanks for catching this! While looking over it I also noticed I left the oc ops field in there when I intended to move that to the "Loop Buffer" view. Also renamed "Loop Buffer" to "Ops from Frontend". I originally created that to work out Zen 4's loop buffer size, but it really gives an overview of where the frontend is sourcing its ops.
Fixed with a couple of commits