主权项 |
1. A trace unit for generating items of trace data indicative of processing activities of at least one processor executing at least one stream of instructions, said at least one stream of instructions comprising a plurality of groups of instructions, said at least one processor executing at least some of said instructions speculatively, said trace unit comprising:
trace circuitry configured to monitor a behaviour of said at least one processor, wherein said trace circuitry is configured to be controlled by trace control data; a data store configured to store at least some of said trace control data associated with a corresponding one of said groups of instructions that has been executed; wherein said trace circuitry is configured to update said data store to store said at least some of said trace control data in said data store, in response to detecting execution of said corresponding one of said group of instructions; wherein said trace circuitry is responsive to detecting a cancelled group of instructions from said plurality of groups of instructions, wherein said cancelled group of instructions has been speculatively executed and cancelled by said at least one processor, to retrieve at least some of said trace control data stored in said data store and to control said trace-circuitry with said retrieved trace control data. |