摘要 |
Disclosed is a data processing apparatus comprising a processor for executing a data processing process eg a thread and a processor for executing a tuning process. The processor executing the thread has an interface that allows the tuning processor to access the thread speculating mechanism parameters of the executing processor. The tuning processor can access the speculating mechanism parameters to change the way in which the executing processor speculates. The interface may not provide external write access to critical states of the processor, ie states that if changed could cause a program to produce a incorrect result. The interface may provide access to enable the value of the speculating mechanism parameters to be altered, including turning the speculating mechanism on and off so that the speculating mechanism speculates more accurately on average. The interface may allow the tuning processor to observe the state of the processor during the execution of the process, the observed state including performance counters, PC value, LR value, load address, cache misses and evictions. |