1. Field of the Invention
This invention relates to the field of data processing systems. More particularly, this invention relates to the field of data processing systems supporting multiple different instruction sets.
2. Description of the Prior Art
It is known to provide data processing systems supporting multiple instruction sets. For example, known processes designed by ARM Limited of Cambridge, England support both the ARM and the Thumb instruction sets. These instruction sets share a register file and share a mapping between register specifiers and registers within that register file.
The ARM and Thumb instruction sets referred to above are closely related and accordingly it is possible for the same mapping to be used between register specifiers and architectural registers storing operands. However, it may be desirable to support instruction set architectures with a significant degree of difference between the ways in which architectural registers are addressed by program instructions of those different instruction sets. One way of dealing with this is to provide separate mechanisms for the register addressing to be used by the instructions from the different instruction set. However, this disadvantageously increases the required circuit resources and power consumption.
Viewed from one aspect the present invention provides an apparatus for processing data comprising:
processing circuitry configured to perform processing operations;
an architectural register file having a plurality of architectural registers for storing operand values;
first decoder circuitry configured to decode program instructions of a first instruction set to generate control signals for controlling said processing circuitry to perform processing operations; and
second decoder circuitry configured to decode program instructions of a second instruction set to generate control signals for controlling said processing circuitry to perform processing operations; wherein
program instructions of said first instruction set include first logical register specifiers specifying first logical registers holding operand values, said first logical registers corresponding to architectural registers within said architectural register file and having a plurality of different sizes corresponding to different numbers of words of data up to a maximum number of words of data;
program instructions of said second instruction set include second logical register specifiers specifying second logical registers holding operand values, said second logical registers corresponding to architectural registers within said architectural register file and having a plurality of different sizes corresponding to different numbers of words of data up to said maximum number of words of data;
said first decoder circuitry is configured to map said first logical specifiers using a first mapping to a common address format;
said second decoder circuitry is configured to map said second logical specifiers using a second mapping to said common address format; and
said second mapping is divergent from said first mapping such that at least some values used as both a first logical register specifier and a second logical register specifier map to different architectural registers.
The present invention recognises that the first decoder's circuitry and the second decoder's circuitry used to decode program instructions of respective instruction sets may be configured to map their register specifiers to a common address format despite the divergence between them in which some values used as both first logical register specifiers and second logical register specifiers are mapped to different architectural registers. The resolving of the different mappings into a common address format permits a common (shared) set of subsequent circuitry to be used for the processing of register specifiers using that common address format thereby permitting a reduction in circuit overhead and power consumption.
In some embodiments the architectural registers may be addressed as an array of architectural registers arranged as a plurality of banks and a plurality of rows with the common addressed format comprising a bank specifier and a row specifier within the array. In this way, the bank specifier and the row specifier may be viewed as Cartesian coordinates for addressing a particular architectural register within an array of architectural registers.
In some embodiments the plurality of banks permit first logical registers and second logical registers having the maximum number of words to be stored within a single row of the array. Storing operands of the maximum size within a single row facilitates the use of single port access to the register file thereby reducing circuit overhead and complexity.
The first mapping and the second mapping may take a variety of different forms. In some embodiments one of the first logical registers of the maximum number of words corresponds to a group of architectural register that are all mapped by the first mapping to a plurality of logical registers at each different lower size. Thus, for example, a single quad word register may correspond to two double word registers and four single word registers.
Either in combination with the above, or separate therefrom, the second mapping may be such that one of the second logical registers of the maximum number of words corresponds to a group of architectural registers at least one of which is mapped by the second mapping to a single second logical register at each different lower size. Thus, a quad word register corresponds to a single double word register (with some excess space) and a single single word register (with some excess space).
Within embodiments utilizing register naming there may be provided a plurality of physical registers configured to store data values to be manipulated and renaming circuitry configured to store register mapping data mapping between a bank specifier value and a row specifier value identifying an architectural register and one of the physical registers to be used in place of the architectural register for speculative execution of a program instruction. Thus, the common register addressing format may be used as an input to common renaming circuitry.
In circumstances where a plurality of architectural registers correspond to one of the first logical register or the second logical register, energy may be saved by identifying the plurality of architectural registers using a single architectural register value in the common address format and a size qualifier to indicate how many of the architectural registers are combined with the one specified in the single architectural register value.
Viewed from another aspect present invention provides an apparatus for processing data comprising:
processing means for performing processing operations;
a plurality of architectural register means for storing operand values;
first decoder means for decoding program instructions of a first instruction set to generate control signals for controlling said processing means to perform processing operations; and
second decoder means for decoding program instructions of a second instruction set to generate control signals for controlling said processing means to perform processing operations; wherein
program instructions of said first instruction set include first logical register specifiers specifying first logical register means for holding operand values, said first logical register means corresponding to architectural register means and having a plurality of different sizes corresponding to different numbers of words of data up to a maximum number of words of data;
program instructions of said second instruction set include second logical register specifiers specifying second logical register means for holding operand values, said second logical register means corresponding to architectural register means and having a plurality of different sizes corresponding to different numbers of words of data up to said maximum number of words of data;
said first decoder means maps said first logical specifiers using a first mapping to a common address format;
said second decoder means maps said second logical specifiers using a second mapping to said common address format; and
said second mapping is divergent from said first mapping such that at least some values used as both a first logical register specifier and a second logical register specifier map to different architectural register means.
Viewed from a further aspect the invention provides a method of processing data comprising the steps of:
performing processing operations with processing circuitry;
storing operand values in a plurality of architectural registers of an architectural register file;
decoding program instructions of a first instruction set to generate control signals for controlling said processing circuitry to perform processing operations; and
decoding program instructions of a second instruction set to generate control signals for controlling said processing circuitry to perform processing operations; wherein
program instructions of said first instruction set include first logical register specifiers specifying first logical registers holding operand values, said first logical registers corresponding to architectural registers within said architectural register file and having a plurality of different sizes corresponding to different numbers of words of data up to a maximum number of words of data;
program instructions of said second instruction set include second logical register specifiers specifying second logical registers holding operand values, said second logical registers corresponding to architectural registers within said architectural register file and having a plurality of different sizes corresponding to different numbers of words of data up to said maximum number of words of data; further comprising the steps of:
said second mapping is divergent from said first mapping such that at least some values used as both a first logical register specifier and a second logical register specifier map to different architectural registers.
The above, and other objects, features and advantages of this invention will be apparent from the following detailed description of illustrative embodiments which is to be read in connection with the accompanying drawings.
The circuitry of
It will be appreciated that the first decoder circuitry 4 and second decoder circuitry 6 will typically produce many other outputs, such as control signals for controlling other aspects of the processor core, such as the processing circuitry 8 which performs the processing operations specified by the program instruction.
The common register address format register specifiers output by the first decoder 4 and the second decoder 6 are supplied to renaming circuitry 10 which includes register mapping data 12 and a free list 14. The renaming circuitry 10 applies register renaming techniques, as typically used in out-of-order processors, to generate a renamed register specifier (rtag). This renamed register specifier is supplied to a physical register file 16 which together with an architectural register file 18 and commit queue 20 form part of register circuitry 22. The physical registers in the physical register files 16 are used for storing speculative operands. When these operands become non-speculative, the commit queue circuitry 20 manages their writing (retirement) into the architectural register file 18. The register mapping data 12 tracks which architectural registers are mapped to which physical registers. The free list 14 tracks which physical registers are available for allocation to store speculative operand values in accordance with register renaming techniques.
The renamed register specifiers produced by the renaming circuitry 10 also include the destination tag identifying the destination physical register for a program instruction. When an architectural register is not currently mapped to any physical register, the common register address format register specifier may be used by the architectural register file 18 to supply the required operand to the processing circuitry 8.
It will be appreciated by those familiar with this technical field that the portion of the processor shown in
The correspondence between the elements within the columns is such that S1 in the first mapping corresponds to the block immediately below S0 in the second mapping. The same position within the diagrams showing the first and second mappings corresponds to the same physical register storage locations—for example S2 in the first mapping corresponds to the block S0 in the first mapping and S4 from the first mapping corresponds to S1 in the second mapping as shown in
In accordance with the second mapping a logical register specifier for a quad word operand again corresponds to four architectural registers. However, in this case these four architectural registers may be used to store either a single double word logical register or a single single word logical register. These two mappings are divergent in that it will be seen that a single value of a logical register specifier (as specified by a program instruction) such as “S1” maps to different architectural registers when subject to the first mapping compared to when subject to the second mapping.
The general format of the register specifiers illustrated in
The second mapping used for quad word registers is such that each logical register specifier corresponds to a row within the array.
At step 24, processing waits until an instruction is received. Step 26 determines whether or not that instruction is from the first instruction set. If the instruction is from the first instruction set, then step 28 applies a first mapping (see
If the determination at step 26 is that the instruction received is not from the first instruction set, then the instruction will be from the second instruction set and processing proceeds to step 32 at which the second mapping is applied between the logical register specifier and the common format register specifier (see
Although illustrative embodiments of the invention have been described in detail herein with reference to the accompanying drawings, it is to be understood that the invention is not limited to those precise embodiments, and that various changes and modifications can be effected therein by one skilled in the art without departing from the scope and spirit of the invention as defined by the appended claims
Number | Name | Date | Kind |
---|---|---|---|
3629850 | Clark et al. | Dec 1971 | A |
3943494 | Holmes, Jr. et al. | Mar 1976 | A |
4053947 | Carlsson et al. | Oct 1977 | A |
4065808 | Schomberg et al. | Dec 1977 | A |
4128873 | Lamiaux | Dec 1978 | A |
4296468 | Bandoh et al. | Oct 1981 | A |
4307445 | Tredennick et al. | Dec 1981 | A |
4589085 | Pierce | May 1986 | A |
5101483 | Tanagawa | Mar 1992 | A |
5127096 | Kaneko et al. | Jun 1992 | A |
5136700 | Thacker | Aug 1992 | A |
5301285 | Hanawa et al. | Apr 1994 | A |
5475824 | Grochowski et al. | Dec 1995 | A |
5481693 | Blomgren et al. | Jan 1996 | A |
5542059 | Blomgren | Jul 1996 | A |
5546553 | Robertson et al. | Aug 1996 | A |
5568646 | Jaggar | Oct 1996 | A |
5598546 | Blomgren | Jan 1997 | A |
5638525 | Hammond et al. | Jun 1997 | A |
5758115 | Nevill | May 1998 | A |
5852726 | Lin et al. | Dec 1998 | A |
5918031 | Morrison et al. | Jun 1999 | A |
6237083 | Favor | May 2001 | B1 |
6433786 | Jones, Jr. | Aug 2002 | B1 |
7353368 | Chow et al. | Apr 2008 | B2 |
20010022751 | Nagai | Sep 2001 | A1 |
20020007450 | Witt et al. | Jan 2002 | A1 |
20020010847 | Abdallah et al. | Jan 2002 | A1 |
20020013892 | Gorishek, IV et al. | Jan 2002 | A1 |
20020042909 | Van Gageldonk et al. | Apr 2002 | A1 |
20020066003 | Nevill et al. | May 2002 | A1 |
20020188825 | Seal et al. | Dec 2002 | A1 |
20020188826 | Rose et al. | Dec 2002 | A1 |
20030126587 | Rosner et al. | Jul 2003 | A1 |
20040015904 | Jourdan et al. | Jan 2004 | A1 |
20040098568 | Nguyen | May 2004 | A1 |
20040172519 | Nakajima | Sep 2004 | A1 |
20040186981 | Christie et al. | Sep 2004 | A1 |
20050027968 | Rupley, II et al. | Feb 2005 | A1 |
20050132170 | Leijten | Jun 2005 | A1 |
20050262329 | Krishnan et al. | Nov 2005 | A1 |
20060004942 | Hetherington et al. | Jan 2006 | A1 |
20060288193 | Hsu | Dec 2006 | A1 |
20070005939 | Latorre et al. | Jan 2007 | A1 |
20070006231 | Wang et al. | Jan 2007 | A1 |
20080016324 | Burky et al. | Jan 2008 | A1 |
20080040587 | Burke et al. | Feb 2008 | A1 |
20080195850 | Abernathy et al. | Aug 2008 | A1 |
20090150701 | Nagao et al. | Jun 2009 | A1 |
20100268919 | Chaudhry et al. | Oct 2010 | A1 |
20110225397 | Grisenthwaite et al. | Sep 2011 | A1 |
20110239062 | Noda | Sep 2011 | A1 |
20120042144 | Grisenthwaite | Feb 2012 | A1 |
20120089807 | Rupley | Apr 2012 | A1 |
Number | Date | Country |
---|---|---|
0 573 071 | Dec 1993 | EP |
61-122743 | Jun 1986 | JP |
61-122743 | Aug 1986 | JP |
2007-0071466 | Jul 2007 | KR |
WO 9532466 | Nov 1995 | WO |
WO 9908185 | Feb 1999 | WO |
Entry |
---|
International Search Report and Written Opinion of the International Searching Authority mailed Dec. 14, 2012 in PCT/GB2012/052431. |
Number | Date | Country | |
---|---|---|---|
20130145126 A1 | Jun 2013 | US |