摘要 |
An apparatus 2, such as a hardware multithreading processor, has processing circuitry 6 having access to a first processing resource 20-0 and a second processing resource 20-3. The processing resources can be a register set 20-0-20-3 or a thread ID 22.A first thread can be processed using the first processing resource. In a thread mode the second processing resource 20-3 can be used to process a second thread while in a transaction mode the second processing resource 20-3 can be used to process a transaction of the first thread comprising a number of speculatively performed operations for which results are committed at the end of the transaction. By sharing resources for supporting additional threads and supporting transactions, circuit area and power consumption can be reduced. A configuration register 30 can be used to determine the mode and this can be set statically at boot time or dynamically switched at run time. |