| CPC G06F 9/3804 (2013.01) [G06F 11/3024 (2013.01); G06F 11/3495 (2013.01); G06F 12/0802 (2013.01); G06F 2212/30 (2013.01)] | 24 Claims |

|
1. An apparatus comprising:
an execution circuit to execute instructions;
a retirement circuit to retire executed instructions;
a status register; and
a last branch record circuit to:
in response to retirement by the retirement circuit of a first taken branch instruction, start a cycle timer and a performance monitoring event counter that is distinct from the cycle timer, and
in response to retirement by the retirement circuit of a second taken branch instruction, that is a next taken branch instruction in program order after the first taken branch instruction, write values from the cycle timer and the performance monitoring event counter into a first entry in the status register and clear the values from the cycle timer and the performance monitoring event counter.
|