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