摘要 |
PROBLEM TO BE SOLVED: To provide the method and system which track resource allocation that supports speculative execution and has plural execution units. SOLUTION: A processor is equipped with resource counters including a 1st and a 2nd counter and many resources and allocates the resources to plural dispatched instructions. At the time of the dispatching, the 1st counter is increased by one for each allocated resource and when an instruction is a 1st instruction in a speculative execution path, the previous value of the 1st counter is loaded to the 2nd counter. At the end of the instruction, both the counters are decreased by one as to each resource. If an error of the speculative execution path is found, the value of the 2nd counter is transferred to the 1st counter to trace the allocation number of resources to plural instructions. |