ARM: Eliminate decoding for the very deprecated FPA instructions.
[gem5.git] / src / arch / arm / isa / bitfields.isa
1 // -*- mode:c++ -*-
2
3 // Copyright (c) 2010 ARM Limited
4 // All rights reserved
5 //
6 // The license below extends only to copyright in the software and shall
7 // not be construed as granting a license to any other intellectual
8 // property including but not limited to intellectual property relating
9 // to a hardware implementation of the functionality of the software
10 // licensed hereunder. You may use the software subject to the license
11 // terms below provided that you ensure that this notice is replicated
12 // unmodified and in its entirety in all distributions of the software,
13 // modified or unmodified, in source code or in binary form.
14 //
15 // Copyright (c) 2007-2008 The Florida State University
16 // All rights reserved.
17 //
18 // Redistribution and use in source and binary forms, with or without
19 // modification, are permitted provided that the following conditions are
20 // met: redistributions of source code must retain the above copyright
21 // notice, this list of conditions and the following disclaimer;
22 // redistributions in binary form must reproduce the above copyright
23 // notice, this list of conditions and the following disclaimer in the
24 // documentation and/or other materials provided with the distribution;
25 // neither the name of the copyright holders nor the names of its
26 // contributors may be used to endorse or promote products derived from
27 // this software without specific prior written permission.
28 //
29 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
33 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
34 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 //
41 // Authors: Stephen Hines
42
43 ////////////////////////////////////////////////////////////////////
44 //
45 // Bitfield definitions.
46 //
47
48 // Opcode fields
49 def bitfield ENCODING encoding;
50 def bitfield OPCODE opcode;
51 def bitfield MEDIA_OPCODE mediaOpcode;
52 def bitfield MEDIA_OPCODE2 mediaOpcode2;
53 def bitfield USEIMM useImm;
54 def bitfield OPCODE_24 opcode24;
55 def bitfield OPCODE_23_20 opcode23_20;
56 def bitfield OPCODE_23_21 opcode23_21;
57 def bitfield OPCODE_22 opcode22;
58 def bitfield OPCODE_20 opcode20;
59 def bitfield OPCODE_19_16 opcode19_16;
60 def bitfield OPCODE_19 opcode19;
61 def bitfield OPCODE_18 opcode18;
62 def bitfield OPCODE_15_12 opcode15_12;
63 def bitfield OPCODE_15 opcode15;
64 def bitfield MISC_OPCODE miscOpcode;
65 def bitfield OPC2 opc2;
66 def bitfield OPCODE_7 opcode7;
67 def bitfield OPCODE_6 opcode6;
68 def bitfield OPCODE_4 opcode4;
69
70 def bitfield IS_MISC isMisc;
71 def bitfield SEVEN_AND_FOUR sevenAndFour;
72
73 def bitfield THUMB thumb;
74 def bitfield BIGTHUMB bigThumb;
75
76 // Other
77 def bitfield COND_CODE condCode;
78 def bitfield S_FIELD sField;
79 def bitfield RN rn;
80 def bitfield RD rd;
81 def bitfield RT rt;
82 def bitfield SHIFT_SIZE shiftSize;
83 def bitfield SHIFT shift;
84 def bitfield RM rm;
85
86 def bitfield RS rs;
87
88 def bitfield PUSWL puswl;
89 def bitfield PREPOST puswl.prepost;
90 def bitfield UP puswl.up;
91 def bitfield PSRUSER puswl.psruser;
92 def bitfield WRITEBACK puswl.writeback;
93 def bitfield LOADOP puswl.loadOp;
94
95 def bitfield PUBWL pubwl;
96
97 def bitfield IMM imm;
98
99 def bitfield IMMED_11_0 immed11_0;
100 def bitfield IMMED_7_0 immed7_0;
101
102 def bitfield IMMED_HI_11_8 immedHi11_8;
103 def bitfield IMMED_LO_3_0 immedLo3_0;
104
105 def bitfield IMMED_23_0 immed23_0;
106
107 def bitfield CPNUM cpNum;
108 // Note that FP Regs are only 3 bits
109 def bitfield FN fn;
110 def bitfield FD fd;
111 def bitfield FPREGIMM fpRegImm;
112 // We can just use 3:0 for FM since the hard-wired FP regs are handled in
113 // float_regfile.hh
114 def bitfield FM fm;
115 def bitfield FPIMM fpImm;
116 def bitfield PUNWL punwl;
117
118 // M5 instructions
119 def bitfield M5FUNC m5Func;
120
121 // 16 bit thumb bitfields
122 def bitfield TOPCODE_15_13 topcode15_13;
123 def bitfield TOPCODE_13_11 topcode13_11;
124 def bitfield TOPCODE_12_11 topcode12_11;
125 def bitfield TOPCODE_12_10 topcode12_10;
126 def bitfield TOPCODE_11_9 topcode11_9;
127 def bitfield TOPCODE_11_8 topcode11_8;
128 def bitfield TOPCODE_10_9 topcode10_9;
129 def bitfield TOPCODE_10_8 topcode10_8;
130 def bitfield TOPCODE_9_6 topcode9_6;
131 def bitfield TOPCODE_7 topcode7;
132 def bitfield TOPCODE_7_6 topcode7_6;
133 def bitfield TOPCODE_7_5 topcode7_5;
134 def bitfield TOPCODE_7_4 topcode7_4;
135 def bitfield TOPCODE_3_0 topcode3_0;
136
137 // 32 bit thumb bitfields
138 def bitfield HTOPCODE_12_11 htopcode12_11;
139 def bitfield HTOPCODE_10_9 htopcode10_9;
140 def bitfield HTOPCODE_9 htopcode9;
141 def bitfield HTOPCODE_9_8 htopcode9_8;
142 def bitfield HTOPCODE_9_5 htopcode9_5;
143 def bitfield HTOPCODE_9_4 htopcode9_4;
144 def bitfield HTOPCODE_8 htopcode8;
145 def bitfield HTOPCODE_8_7 htopcode8_7;
146 def bitfield HTOPCODE_8_6 htopcode8_6;
147 def bitfield HTOPCODE_8_5 htopcode8_5;
148 def bitfield HTOPCODE_7 htopcode7;
149 def bitfield HTOPCODE_7_5 htopcode7_5;
150 def bitfield HTOPCODE_6_5 htopcode6_5;
151 def bitfield HTOPCODE_5_4 htopcode5_4;
152 def bitfield HTOPCODE_4 htopcode4;
153
154 def bitfield HTRN htrn;
155 def bitfield HTS hts;
156
157 def bitfield LTOPCODE_15 ltopcode15;
158 def bitfield LTOPCODE_11_8 ltopcode11_8;
159 def bitfield LTOPCODE_7_6 ltopcode7_6;
160 def bitfield LTOPCODE_7_4 ltopcode7_4;
161 def bitfield LTOPCODE_4 ltopcode4;
162
163 def bitfield LTRD ltrd;
164 def bitfield LTCOPROC ltcoproc;