]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/config/tc-m68851.h
Update the address and phone number of the FSF
[thirdparty/binutils-gdb.git] / gas / config / tc-m68851.h
1 /* This file is tc-m68851.h
2
3 Copyright 1987, 1988, 1989, 1990, 1991, 1992, 2000
4 Free Software Foundation, Inc.
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to the Free
20 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
21 02110-1301, USA. */
22
23 /*
24 * pmmu.h
25 */
26
27 /* I suppose we have to copyright this file. Someone on the net sent it
28 to us as part of the changes for the m68851 Memory Management Unit */
29
30 /* Copyright (C) 1987 Free Software Foundation, Inc.
31
32 This file is part of Gas, the GNU Assembler.
33
34 The GNU assembler is distributed in the hope that it will be
35 useful, but WITHOUT ANY WARRANTY. No author or distributor
36 accepts responsibility to anyone for the consequences of using it
37 or for whether it serves any particular purpose or works at all,
38 unless he says so in writing. Refer to the GNU Assembler General
39 Public License for full details.
40
41 Everyone is granted permission to copy, modify and redistribute
42 the GNU Assembler, but only under the conditions described in the
43 GNU Assembler General Public License. A copy of this license is
44 supposed to have been given to you along with the GNU Assembler
45 so you can know your rights and responsibilities. It should be
46 in a file named COPYING. Among other things, the copyright
47 notice and this notice must be preserved on all copies. */
48
49 #ifdef m68851
50
51 /*
52 I didn't use much imagination in choosing the
53 following codes, so many of them aren't very
54 mnemonic. -rab
55
56 P pmmu register
57 Possible values:
58 000 TC Translation Control reg
59 100 CAL Current Access Level
60 101 VAL Validate Access Level
61 110 SCC Stack Change Control
62 111 AC Access Control
63
64 W wide pmmu registers
65 Possible values:
66 001 DRP Dma Root Pointer
67 010 SRP Supervisor Root Pointer
68 011 CRP Cpu Root Pointer
69
70 f function code register
71 0 SFC
72 1 DFC
73
74 V VAL register only
75
76 X BADx, BACx
77 100 BAD Breakpoint Acknowledge Data
78 101 BAC Breakpoint Acknowledge Control
79
80 Y PSR
81 Z PCSR
82
83 | memory (modes 2-6, 7.*)
84
85 */
86
87 /*
88 * these defines should be in m68k.c but
89 * i put them here to keep all the m68851 stuff
90 * together -rab
91 * JF--Make sure these #s don't clash with the ones in m68k.c
92 * That would be BAD.
93 */
94 #define TC (FPS+1) /* 48 */
95 #define DRP (TC+1) /* 49 */
96 #define SRP (DRP+1) /* 50 */
97 #define CRP (SRP+1) /* 51 */
98 #define CAL (CRP+1) /* 52 */
99 #define VAL (CAL+1) /* 53 */
100 #define SCC (VAL+1) /* 54 */
101 #define AC (SCC+1) /* 55 */
102 #define BAD (AC+1) /* 56,57,58,59, 60,61,62,63 */
103 #define BAC (BAD+8) /* 64,65,66,67, 68,69,70,71 */
104 #define PSR (BAC+8) /* 72 */
105 #define PCSR (PSR+1) /* 73 */
106
107 /* name */ /* opcode */ /* match */ /* args */
108
109 {"pbac", one(0xf0c7), one(0xffbf), "Bc"},
110 {"pbacw", one(0xf087), one(0xffbf), "Bc"},
111 {"pbas", one(0xf0c6), one(0xffbf), "Bc"},
112 {"pbasw", one(0xf086), one(0xffbf), "Bc"},
113 {"pbbc", one(0xf0c1), one(0xffbf), "Bc"},
114 {"pbbcw", one(0xf081), one(0xffbf), "Bc"},
115 {"pbbs", one(0xf0c0), one(0xffbf), "Bc"},
116 {"pbbsw", one(0xf080), one(0xffbf), "Bc"},
117 {"pbcc", one(0xf0cf), one(0xffbf), "Bc"},
118 {"pbccw", one(0xf08f), one(0xffbf), "Bc"},
119 {"pbcs", one(0xf0ce), one(0xffbf), "Bc"},
120 {"pbcsw", one(0xf08e), one(0xffbf), "Bc"},
121 {"pbgc", one(0xf0cd), one(0xffbf), "Bc"},
122 {"pbgcw", one(0xf08d), one(0xffbf), "Bc"},
123 {"pbgs", one(0xf0cc), one(0xffbf), "Bc"},
124 {"pbgsw", one(0xf08c), one(0xffbf), "Bc"},
125 {"pbic", one(0xf0cb), one(0xffbf), "Bc"},
126 {"pbicw", one(0xf08b), one(0xffbf), "Bc"},
127 {"pbis", one(0xf0ca), one(0xffbf), "Bc"},
128 {"pbisw", one(0xf08a), one(0xffbf), "Bc"},
129 {"pblc", one(0xf0c3), one(0xffbf), "Bc"},
130 {"pblcw", one(0xf083), one(0xffbf), "Bc"},
131 {"pbls", one(0xf0c2), one(0xffbf), "Bc"},
132 {"pblsw", one(0xf082), one(0xffbf), "Bc"},
133 {"pbsc", one(0xf0c5), one(0xffbf), "Bc"},
134 {"pbscw", one(0xf085), one(0xffbf), "Bc"},
135 {"pbss", one(0xf0c4), one(0xffbf), "Bc"},
136 {"pbssw", one(0xf084), one(0xffbf), "Bc"},
137 {"pbwc", one(0xf0c9), one(0xffbf), "Bc"},
138 {"pbwcw", one(0xf089), one(0xffbf), "Bc"},
139 {"pbws", one(0xf0c8), one(0xffbf), "Bc"},
140 {"pbwsw", one(0xf088), one(0xffbf), "Bc"},
141
142 {"pdbac", two(0xf048, 0x0007), two(0xfff8, 0xffff), "DsBw"},
143 {"pdbas", two(0xf048, 0x0006), two(0xfff8, 0xffff), "DsBw"},
144 {"pdbbc", two(0xf048, 0x0001), two(0xfff8, 0xffff), "DsBw"},
145 {"pdbbs", two(0xf048, 0x0000), two(0xfff8, 0xffff), "DsBw"},
146 {"pdbcc", two(0xf048, 0x000f), two(0xfff8, 0xffff), "DsBw"},
147 {"pdbcs", two(0xf048, 0x000e), two(0xfff8, 0xffff), "DsBw"},
148 {"pdbgc", two(0xf048, 0x000d), two(0xfff8, 0xffff), "DsBw"},
149 {"pdbgs", two(0xf048, 0x000c), two(0xfff8, 0xffff), "DsBw"},
150 {"pdbic", two(0xf048, 0x000b), two(0xfff8, 0xffff), "DsBw"},
151 {"pdbis", two(0xf048, 0x000a), two(0xfff8, 0xffff), "DsBw"},
152 {"pdblc", two(0xf048, 0x0003), two(0xfff8, 0xffff), "DsBw"},
153 {"pdbls", two(0xf048, 0x0002), two(0xfff8, 0xffff), "DsBw"},
154 {"pdbsc", two(0xf048, 0x0005), two(0xfff8, 0xffff), "DsBw"},
155 {"pdbss", two(0xf048, 0x0004), two(0xfff8, 0xffff), "DsBw"},
156 {"pdbwc", two(0xf048, 0x0009), two(0xfff8, 0xffff), "DsBw"},
157 {"pdbws", two(0xf048, 0x0008), two(0xfff8, 0xffff), "DsBw"},
158
159 {"pflusha", two(0xf000, 0x2400), two(0xffff, 0xffff), "" },
160
161 {"pflush", two(0xf000, 0x3010), two(0xffc0, 0xfe10), "T3T9" },
162 {"pflush", two(0xf000, 0x3810), two(0xffc0, 0xfe10), "T3T9&s" },
163 {"pflush", two(0xf000, 0x3008), two(0xffc0, 0xfe18), "D3T9" },
164 {"pflush", two(0xf000, 0x3808), two(0xffc0, 0xfe18), "D3T9&s" },
165 {"pflush", two(0xf000, 0x3000), two(0xffc0, 0xfe1e), "f3T9" },
166 {"pflush", two(0xf000, 0x3800), two(0xffc0, 0xfe1e), "f3T9&s" },
167
168 {"pflushs", two(0xf000, 0x3410), two(0xfff8, 0xfe10), "T3T9" },
169 {"pflushs", two(0xf000, 0x3c00), two(0xfff8, 0xfe00), "T3T9&s" },
170 {"pflushs", two(0xf000, 0x3408), two(0xfff8, 0xfe18), "D3T9" },
171 {"pflushs", two(0xf000, 0x3c08), two(0xfff8, 0xfe18), "D3T9&s" },
172 {"pflushs", two(0xf000, 0x3400), two(0xfff8, 0xfe1e), "f3T9" },
173 {"pflushs", two(0xf000, 0x3c00), two(0xfff8, 0xfe1e), "f3T9&s"},
174
175 {"pflushr", two(0xf000, 0xa000), two(0xffc0, 0xffff), "|s" },
176
177 {"ploadr", two(0xf000, 0x2210), two(0xffc0, 0xfff0), "T3&s" },
178 {"ploadr", two(0xf000, 0x2208), two(0xffc0, 0xfff8), "D3&s" },
179 {"ploadr", two(0xf000, 0x2200), two(0xffc0, 0xfffe), "f3&s" },
180 {"ploadw", two(0xf000, 0x2010), two(0xffc0, 0xfff0), "T3&s" },
181 {"ploadw", two(0xf000, 0x2008), two(0xffc0, 0xfff8), "D3&s" },
182 {"ploadw", two(0xf000, 0x2000), two(0xffc0, 0xfffe), "f3&s" },
183
184 /* TC, CRP, DRP, SRP, CAL, VAL, SCC, AC */
185 {"pmove", two(0xf000, 0x4000), two(0xffc0, 0xe3ff), "*sP8" },
186 {"pmove", two(0xf000, 0x4200), two(0xffc0, 0xe3ff), "P8%s" },
187 {"pmove", two(0xf000, 0x4000), two(0xffc0, 0xe3ff), "|sW8" },
188 {"pmove", two(0xf000, 0x4200), two(0xffc0, 0xe3ff), "W8~s" },
189
190 /* BADx, BACx */
191 {"pmove", two(0xf000, 0x6200), two(0xffc0, 0xe3e3), "*sX3" },
192 {"pmove", two(0xf000, 0x6000), two(0xffc0, 0xe3e3), "X3%s" },
193
194 /* PSR, PCSR */
195 /* {"pmove", two(0xf000, 0x6100), two(oxffc0, oxffff), "*sZ8" }, */
196 {"pmove", two(0xf000, 0x6000), two(0xffc0, 0xffff), "*sY8" },
197 {"pmove", two(0xf000, 0x6200), two(0xffc0, 0xffff), "Y8%s" },
198 {"pmove", two(0xf000, 0x6600), two(0xffc0, 0xffff), "Z8%s" },
199
200 {"prestore", one(0xf140), one(0xffc0), "&s"},
201 {"prestore", one(0xf158), one(0xfff8), "+s"},
202 {"psave", one(0xf100), one(0xffc0), "&s"},
203 {"psave", one(0xf100), one(0xffc0), "+s"},
204
205 {"psac", two(0xf040, 0x0007), two(0xffc0, 0xffff), "@s"},
206 {"psas", two(0xf040, 0x0006), two(0xffc0, 0xffff), "@s"},
207 {"psbc", two(0xf040, 0x0001), two(0xffc0, 0xffff), "@s"},
208 {"psbs", two(0xf040, 0x0000), two(0xffc0, 0xffff), "@s"},
209 {"pscc", two(0xf040, 0x000f), two(0xffc0, 0xffff), "@s"},
210 {"pscs", two(0xf040, 0x000e), two(0xffc0, 0xffff), "@s"},
211 {"psgc", two(0xf040, 0x000d), two(0xffc0, 0xffff), "@s"},
212 {"psgs", two(0xf040, 0x000c), two(0xffc0, 0xffff), "@s"},
213 {"psic", two(0xf040, 0x000b), two(0xffc0, 0xffff), "@s"},
214 {"psis", two(0xf040, 0x000a), two(0xffc0, 0xffff), "@s"},
215 {"pslc", two(0xf040, 0x0003), two(0xffc0, 0xffff), "@s"},
216 {"psls", two(0xf040, 0x0002), two(0xffc0, 0xffff), "@s"},
217 {"pssc", two(0xf040, 0x0005), two(0xffc0, 0xffff), "@s"},
218 {"psss", two(0xf040, 0x0004), two(0xffc0, 0xffff), "@s"},
219 {"pswc", two(0xf040, 0x0009), two(0xffc0, 0xffff), "@s"},
220 {"psws", two(0xf040, 0x0008), two(0xffc0, 0xffff), "@s"},
221
222 {"ptestr", two(0xf000, 0x8210), two(0xffc0, 0xe3f0), "T3&sQ8" },
223 {"ptestr", two(0xf000, 0x8310), two(0xffc0, 0xe310), "T3&sQ8A9" },
224 {"ptestr", two(0xf000, 0x8208), two(0xffc0, 0xe3f8), "D3&sQ8" },
225 {"ptestr", two(0xf000, 0x8308), two(0xffc0, 0xe318), "D3&sQ8A9" },
226 {"ptestr", two(0xf000, 0x8200), two(0xffc0, 0xe3fe), "f3&sQ8" },
227 {"ptestr", two(0xf000, 0x8300), two(0xffc0, 0xe31e), "f3&sQ8A9" },
228
229 {"ptestw", two(0xf000, 0x8010), two(0xffc0, 0xe3f0), "T3&sQ8" },
230 {"ptestw", two(0xf000, 0x8110), two(0xffc0, 0xe310), "T3&sQ8A9" },
231 {"ptestw", two(0xf000, 0x8008), two(0xffc0, 0xe3f8), "D3&sQ8" },
232 {"ptestw", two(0xf000, 0x8108), two(0xffc0, 0xe318), "D3&sQ8A9" },
233 {"ptestw", two(0xf000, 0x8000), two(0xffc0, 0xe3fe), "f3&sQ8" },
234 {"ptestw", two(0xf000, 0x8100), two(0xffc0, 0xe31e), "f3&sQ8A9" },
235
236 {"ptrapacw", two(0xf07a, 0x0007), two(0xffff, 0xffff), "#w"},
237 {"ptrapacl", two(0xf07b, 0x0007), two(0xffff, 0xffff), "#l"},
238 {"ptrapac", two(0xf07c, 0x0007), two(0xffff, 0xffff), ""},
239
240 {"ptrapasw", two(0xf07a, 0x0006), two(0xffff, 0xffff), "#w"},
241 {"ptrapasl", two(0xf07b, 0x0006), two(0xffff, 0xffff), "#l"},
242 {"ptrapas", two(0xf07c, 0x0006), two(0xffff, 0xffff), ""},
243
244 {"ptrapbcw", two(0xf07a, 0x0001), two(0xffff, 0xffff), "#w"},
245 {"ptrapbcl", two(0xf07b, 0x0001), two(0xffff, 0xffff), "#l"},
246 {"ptrapbc", two(0xf07c, 0x0001), two(0xffff, 0xffff), ""},
247
248 {"ptrapbsw", two(0xf07a, 0x0000), two(0xffff, 0xffff), "#w"},
249 {"ptrapbsl", two(0xf07b, 0x0000), two(0xffff, 0xffff), "#l"},
250 {"ptrapbs", two(0xf07c, 0x0000), two(0xffff, 0xffff), ""},
251
252 {"ptrapccw", two(0xf07a, 0x000f), two(0xffff, 0xffff), "#w"},
253 {"ptrapccl", two(0xf07b, 0x000f), two(0xffff, 0xffff), "#l"},
254 {"ptrapcc", two(0xf07c, 0x000f), two(0xffff, 0xffff), ""},
255
256 {"ptrapcsw", two(0xf07a, 0x000e), two(0xffff, 0xffff), "#w"},
257 {"ptrapcsl", two(0xf07b, 0x000e), two(0xffff, 0xffff), "#l"},
258 {"ptrapcs", two(0xf07c, 0x000e), two(0xffff, 0xffff), ""},
259
260 {"ptrapgcw", two(0xf07a, 0x000d), two(0xffff, 0xffff), "#w"},
261 {"ptrapgcl", two(0xf07b, 0x000d), two(0xffff, 0xffff), "#l"},
262 {"ptrapgc", two(0xf07c, 0x000d), two(0xffff, 0xffff), ""},
263
264 {"ptrapgsw", two(0xf07a, 0x000c), two(0xffff, 0xffff), "#w"},
265 {"ptrapgsl", two(0xf07b, 0x000c), two(0xffff, 0xffff), "#l"},
266 {"ptrapgs", two(0xf07c, 0x000c), two(0xffff, 0xffff), ""},
267
268 {"ptrapicw", two(0xf07a, 0x000b), two(0xffff, 0xffff), "#w"},
269 {"ptrapicl", two(0xf07b, 0x000b), two(0xffff, 0xffff), "#l"},
270 {"ptrapic", two(0xf07c, 0x000b), two(0xffff, 0xffff), ""},
271
272 {"ptrapisw", two(0xf07a, 0x000a), two(0xffff, 0xffff), "#w"},
273 {"ptrapisl", two(0xf07b, 0x000a), two(0xffff, 0xffff), "#l"},
274 {"ptrapis", two(0xf07c, 0x000a), two(0xffff, 0xffff), ""},
275
276 {"ptraplcw", two(0xf07a, 0x0003), two(0xffff, 0xffff), "#w"},
277 {"ptraplcl", two(0xf07b, 0x0003), two(0xffff, 0xffff), "#l"},
278 {"ptraplc", two(0xf07c, 0x0003), two(0xffff, 0xffff), ""},
279
280 {"ptraplsw", two(0xf07a, 0x0002), two(0xffff, 0xffff), "#w"},
281 {"ptraplsl", two(0xf07b, 0x0002), two(0xffff, 0xffff), "#l"},
282 {"ptrapls", two(0xf07c, 0x0002), two(0xffff, 0xffff), ""},
283
284 {"ptrapscw", two(0xf07a, 0x0005), two(0xffff, 0xffff), "#w"},
285 {"ptrapscl", two(0xf07b, 0x0005), two(0xffff, 0xffff), "#l"},
286 {"ptrapsc", two(0xf07c, 0x0005), two(0xffff, 0xffff), ""},
287
288 {"ptrapssw", two(0xf07a, 0x0004), two(0xffff, 0xffff), "#w"},
289 {"ptrapssl", two(0xf07b, 0x0004), two(0xffff, 0xffff), "#l"},
290 {"ptrapss", two(0xf07c, 0x0004), two(0xffff, 0xffff), ""},
291
292 {"ptrapwcw", two(0xf07a, 0x0009), two(0xffff, 0xffff), "#w"},
293 {"ptrapwcl", two(0xf07b, 0x0009), two(0xffff, 0xffff), "#l"},
294 {"ptrapwc", two(0xf07c, 0x0009), two(0xffff, 0xffff), ""},
295
296 {"ptrapwsw", two(0xf07a, 0x0008), two(0xffff, 0xffff), "#w"},
297 {"ptrapwsl", two(0xf07b, 0x0008), two(0xffff, 0xffff), "#l"},
298 {"ptrapws", two(0xf07c, 0x0008), two(0xffff, 0xffff), ""},
299
300 {"pvalid", two(0xf000, 0x2800), two(0xffc0, 0xffff), "Vs&s"},
301 {"pvalid", two(0xf000, 0x2c00), two(0xffc0, 0xfff8), "A3&s" },
302
303 #endif /* m68851 */