| CPC G06F 9/3814 (2013.01) [G06F 9/30145 (2013.01); G06F 9/3818 (2013.01); G06F 9/3822 (2013.01); G06F 9/3851 (2013.01); G06F 9/3836 (2013.01)] | 20 Claims |

|
1. A decoding method of a simultaneously multi-threading processor, comprising:
fetching an instruction stream according to an instruction fetching request;
segmenting the instruction stream which is fetched in response to the simultaneously multi-threading processor being in a single-threaded mode;
allocating the instruction stream which is segmented to multiple target instruction queues by using an instruction at a segmentation position as a boundary of switching instruction queues, wherein the multiple target instruction queues comprise an instruction queue corresponding to an active thread and one or more instruction queues corresponding to one or more inactive threads; and
decoding instructions in the multiple target instruction queues by using multiple decoder groups, so as to obtain micro-ops decoded by respective decoder groups, wherein one decoder group decodes instructions in one or more corresponding target instruction queues, and in the single-threaded mode, one decoder group corresponds to at least one target instruction queue.
|