root / target-ppc / translate_init.c @ bfa1e5cf
History | View | Annotate | Download (234 kB)
1 | 3fc6c082 | bellard | /*
|
---|---|---|---|
2 | 3fc6c082 | bellard | * PowerPC CPU initialization for qemu.
|
3 | 5fafdf24 | ths | *
|
4 | 76a66253 | j_mayer | * Copyright (c) 2003-2007 Jocelyn Mayer
|
5 | 3fc6c082 | bellard | *
|
6 | 3fc6c082 | bellard | * This library is free software; you can redistribute it and/or
|
7 | 3fc6c082 | bellard | * modify it under the terms of the GNU Lesser General Public
|
8 | 3fc6c082 | bellard | * License as published by the Free Software Foundation; either
|
9 | 3fc6c082 | bellard | * version 2 of the License, or (at your option) any later version.
|
10 | 3fc6c082 | bellard | *
|
11 | 3fc6c082 | bellard | * This library is distributed in the hope that it will be useful,
|
12 | 3fc6c082 | bellard | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | 3fc6c082 | bellard | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | 3fc6c082 | bellard | * Lesser General Public License for more details.
|
15 | 3fc6c082 | bellard | *
|
16 | 3fc6c082 | bellard | * You should have received a copy of the GNU Lesser General Public
|
17 | 3fc6c082 | bellard | * License along with this library; if not, write to the Free Software
|
18 | 3fc6c082 | bellard | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 | 3fc6c082 | bellard | */
|
20 | 3fc6c082 | bellard | |
21 | 3fc6c082 | bellard | /* A lot of PowerPC definition have been included here.
|
22 | 3fc6c082 | bellard | * Most of them are not usable for now but have been kept
|
23 | 3fc6c082 | bellard | * inside "#if defined(TODO) ... #endif" statements to make tests easier.
|
24 | 3fc6c082 | bellard | */
|
25 | 3fc6c082 | bellard | |
26 | 237c0af0 | j_mayer | #include "dis-asm.h" |
27 | 237c0af0 | j_mayer | |
28 | 3fc6c082 | bellard | //#define PPC_DUMP_CPU
|
29 | 3fc6c082 | bellard | //#define PPC_DEBUG_SPR
|
30 | a496775f | j_mayer | //#define PPC_DEBUG_IRQ
|
31 | 3fc6c082 | bellard | |
32 | 3fc6c082 | bellard | struct ppc_def_t {
|
33 | 3fc6c082 | bellard | const unsigned char *name; |
34 | 3fc6c082 | bellard | uint32_t pvr; |
35 | 3fc6c082 | bellard | uint32_t pvr_mask; |
36 | 0487d6a8 | j_mayer | uint64_t insns_flags; |
37 | 3fc6c082 | bellard | uint64_t msr_mask; |
38 | a750fc0b | j_mayer | uint8_t mmu_model; |
39 | a750fc0b | j_mayer | uint8_t excp_model; |
40 | a750fc0b | j_mayer | uint8_t bus_model; |
41 | a750fc0b | j_mayer | uint8_t pad; |
42 | 237c0af0 | j_mayer | int bfd_mach;
|
43 | a750fc0b | j_mayer | void (*init_proc)(CPUPPCState *env);
|
44 | 3fc6c082 | bellard | }; |
45 | 3fc6c082 | bellard | |
46 | e9df014c | j_mayer | /* For user-mode emulation, we don't emulate any IRQ controller */
|
47 | e9df014c | j_mayer | #if defined(CONFIG_USER_ONLY)
|
48 | a750fc0b | j_mayer | #define PPC_IRQ_INIT_FN(name) \
|
49 | a750fc0b | j_mayer | static inline void glue(glue(ppc, name),_irq_init) (CPUPPCState *env) \ |
50 | a750fc0b | j_mayer | { \ |
51 | e9df014c | j_mayer | } |
52 | e9df014c | j_mayer | #else
|
53 | a750fc0b | j_mayer | #define PPC_IRQ_INIT_FN(name) \
|
54 | e9df014c | j_mayer | void glue(glue(ppc, name),_irq_init) (CPUPPCState *env);
|
55 | e9df014c | j_mayer | #endif
|
56 | a750fc0b | j_mayer | |
57 | a750fc0b | j_mayer | PPC_IRQ_INIT_FN(401);
|
58 | 24be5ae3 | j_mayer | PPC_IRQ_INIT_FN(405);
|
59 | e9df014c | j_mayer | PPC_IRQ_INIT_FN(6xx);
|
60 | d0dfae6e | j_mayer | PPC_IRQ_INIT_FN(970);
|
61 | e9df014c | j_mayer | |
62 | 3fc6c082 | bellard | /* Generic callbacks:
|
63 | 3fc6c082 | bellard | * do nothing but store/retrieve spr value
|
64 | 3fc6c082 | bellard | */
|
65 | 04f20795 | j_mayer | #ifdef PPC_DUMP_SPR_ACCESSES
|
66 | 3fc6c082 | bellard | static void spr_read_generic (void *opaque, int sprn) |
67 | 3fc6c082 | bellard | { |
68 | 04f20795 | j_mayer | gen_op_load_dump_spr(sprn); |
69 | 3fc6c082 | bellard | } |
70 | 3fc6c082 | bellard | |
71 | 3fc6c082 | bellard | static void spr_write_generic (void *opaque, int sprn) |
72 | 3fc6c082 | bellard | { |
73 | 04f20795 | j_mayer | gen_op_store_dump_spr(sprn); |
74 | 3fc6c082 | bellard | } |
75 | 04f20795 | j_mayer | #else
|
76 | 04f20795 | j_mayer | static void spr_read_generic (void *opaque, int sprn) |
77 | a496775f | j_mayer | { |
78 | 04f20795 | j_mayer | gen_op_load_spr(sprn); |
79 | a496775f | j_mayer | } |
80 | a496775f | j_mayer | |
81 | 04f20795 | j_mayer | static void spr_write_generic (void *opaque, int sprn) |
82 | a496775f | j_mayer | { |
83 | 04f20795 | j_mayer | gen_op_store_spr(sprn); |
84 | a496775f | j_mayer | } |
85 | 04f20795 | j_mayer | #endif
|
86 | a496775f | j_mayer | |
87 | a496775f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
88 | a496775f | j_mayer | static void spr_write_clear (void *opaque, int sprn) |
89 | a496775f | j_mayer | { |
90 | a496775f | j_mayer | gen_op_mask_spr(sprn); |
91 | a496775f | j_mayer | } |
92 | a496775f | j_mayer | #endif
|
93 | a496775f | j_mayer | |
94 | 76a66253 | j_mayer | /* SPR common to all PowerPC */
|
95 | 3fc6c082 | bellard | /* XER */
|
96 | 3fc6c082 | bellard | static void spr_read_xer (void *opaque, int sprn) |
97 | 3fc6c082 | bellard | { |
98 | 3fc6c082 | bellard | gen_op_load_xer(); |
99 | 3fc6c082 | bellard | } |
100 | 3fc6c082 | bellard | |
101 | 3fc6c082 | bellard | static void spr_write_xer (void *opaque, int sprn) |
102 | 3fc6c082 | bellard | { |
103 | 3fc6c082 | bellard | gen_op_store_xer(); |
104 | 3fc6c082 | bellard | } |
105 | 3fc6c082 | bellard | |
106 | 3fc6c082 | bellard | /* LR */
|
107 | 3fc6c082 | bellard | static void spr_read_lr (void *opaque, int sprn) |
108 | 3fc6c082 | bellard | { |
109 | 3fc6c082 | bellard | gen_op_load_lr(); |
110 | 3fc6c082 | bellard | } |
111 | 3fc6c082 | bellard | |
112 | 3fc6c082 | bellard | static void spr_write_lr (void *opaque, int sprn) |
113 | 3fc6c082 | bellard | { |
114 | 3fc6c082 | bellard | gen_op_store_lr(); |
115 | 3fc6c082 | bellard | } |
116 | 3fc6c082 | bellard | |
117 | 3fc6c082 | bellard | /* CTR */
|
118 | 3fc6c082 | bellard | static void spr_read_ctr (void *opaque, int sprn) |
119 | 3fc6c082 | bellard | { |
120 | 3fc6c082 | bellard | gen_op_load_ctr(); |
121 | 3fc6c082 | bellard | } |
122 | 3fc6c082 | bellard | |
123 | 3fc6c082 | bellard | static void spr_write_ctr (void *opaque, int sprn) |
124 | 3fc6c082 | bellard | { |
125 | 3fc6c082 | bellard | gen_op_store_ctr(); |
126 | 3fc6c082 | bellard | } |
127 | 3fc6c082 | bellard | |
128 | 3fc6c082 | bellard | /* User read access to SPR */
|
129 | 3fc6c082 | bellard | /* USPRx */
|
130 | 3fc6c082 | bellard | /* UMMCRx */
|
131 | 3fc6c082 | bellard | /* UPMCx */
|
132 | 3fc6c082 | bellard | /* USIA */
|
133 | 3fc6c082 | bellard | /* UDECR */
|
134 | 3fc6c082 | bellard | static void spr_read_ureg (void *opaque, int sprn) |
135 | 3fc6c082 | bellard | { |
136 | 3fc6c082 | bellard | gen_op_load_spr(sprn + 0x10);
|
137 | 3fc6c082 | bellard | } |
138 | 3fc6c082 | bellard | |
139 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC */
|
140 | 3fc6c082 | bellard | /* DECR */
|
141 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
142 | 3fc6c082 | bellard | static void spr_read_decr (void *opaque, int sprn) |
143 | 3fc6c082 | bellard | { |
144 | 3fc6c082 | bellard | gen_op_load_decr(); |
145 | 3fc6c082 | bellard | } |
146 | 3fc6c082 | bellard | |
147 | 3fc6c082 | bellard | static void spr_write_decr (void *opaque, int sprn) |
148 | 3fc6c082 | bellard | { |
149 | 3fc6c082 | bellard | gen_op_store_decr(); |
150 | 3fc6c082 | bellard | } |
151 | 76a66253 | j_mayer | #endif
|
152 | 3fc6c082 | bellard | |
153 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC, except 601 */
|
154 | 3fc6c082 | bellard | /* Time base */
|
155 | 3fc6c082 | bellard | static void spr_read_tbl (void *opaque, int sprn) |
156 | 3fc6c082 | bellard | { |
157 | 3fc6c082 | bellard | gen_op_load_tbl(); |
158 | 3fc6c082 | bellard | } |
159 | 3fc6c082 | bellard | |
160 | 76a66253 | j_mayer | static void spr_read_tbu (void *opaque, int sprn) |
161 | 3fc6c082 | bellard | { |
162 | 76a66253 | j_mayer | gen_op_load_tbu(); |
163 | 3fc6c082 | bellard | } |
164 | 3fc6c082 | bellard | |
165 | a062e36c | j_mayer | __attribute__ (( unused )) |
166 | a062e36c | j_mayer | static void spr_read_atbl (void *opaque, int sprn) |
167 | a062e36c | j_mayer | { |
168 | a062e36c | j_mayer | gen_op_load_atbl(); |
169 | a062e36c | j_mayer | } |
170 | a062e36c | j_mayer | |
171 | a062e36c | j_mayer | __attribute__ (( unused )) |
172 | a062e36c | j_mayer | static void spr_read_atbu (void *opaque, int sprn) |
173 | a062e36c | j_mayer | { |
174 | a062e36c | j_mayer | gen_op_load_atbu(); |
175 | a062e36c | j_mayer | } |
176 | a062e36c | j_mayer | |
177 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
178 | 76a66253 | j_mayer | static void spr_write_tbl (void *opaque, int sprn) |
179 | 3fc6c082 | bellard | { |
180 | 76a66253 | j_mayer | gen_op_store_tbl(); |
181 | 3fc6c082 | bellard | } |
182 | 3fc6c082 | bellard | |
183 | 3fc6c082 | bellard | static void spr_write_tbu (void *opaque, int sprn) |
184 | 3fc6c082 | bellard | { |
185 | 3fc6c082 | bellard | gen_op_store_tbu(); |
186 | 3fc6c082 | bellard | } |
187 | a062e36c | j_mayer | |
188 | a062e36c | j_mayer | __attribute__ (( unused )) |
189 | a062e36c | j_mayer | static void spr_write_atbl (void *opaque, int sprn) |
190 | a062e36c | j_mayer | { |
191 | a062e36c | j_mayer | gen_op_store_atbl(); |
192 | a062e36c | j_mayer | } |
193 | a062e36c | j_mayer | |
194 | a062e36c | j_mayer | __attribute__ (( unused )) |
195 | a062e36c | j_mayer | static void spr_write_atbu (void *opaque, int sprn) |
196 | a062e36c | j_mayer | { |
197 | a062e36c | j_mayer | gen_op_store_atbu(); |
198 | a062e36c | j_mayer | } |
199 | 76a66253 | j_mayer | #endif
|
200 | 3fc6c082 | bellard | |
201 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
202 | 3fc6c082 | bellard | /* IBAT0U...IBAT0U */
|
203 | 3fc6c082 | bellard | /* IBAT0L...IBAT7L */
|
204 | 3fc6c082 | bellard | static void spr_read_ibat (void *opaque, int sprn) |
205 | 3fc6c082 | bellard | { |
206 | 3fc6c082 | bellard | gen_op_load_ibat(sprn & 1, (sprn - SPR_IBAT0U) / 2); |
207 | 3fc6c082 | bellard | } |
208 | 3fc6c082 | bellard | |
209 | 3fc6c082 | bellard | static void spr_read_ibat_h (void *opaque, int sprn) |
210 | 3fc6c082 | bellard | { |
211 | 3fc6c082 | bellard | gen_op_load_ibat(sprn & 1, (sprn - SPR_IBAT4U) / 2); |
212 | 3fc6c082 | bellard | } |
213 | 3fc6c082 | bellard | |
214 | 3fc6c082 | bellard | static void spr_write_ibatu (void *opaque, int sprn) |
215 | 3fc6c082 | bellard | { |
216 | 3fc6c082 | bellard | gen_op_store_ibatu((sprn - SPR_IBAT0U) / 2);
|
217 | 3fc6c082 | bellard | } |
218 | 3fc6c082 | bellard | |
219 | 3fc6c082 | bellard | static void spr_write_ibatu_h (void *opaque, int sprn) |
220 | 3fc6c082 | bellard | { |
221 | 3fc6c082 | bellard | gen_op_store_ibatu((sprn - SPR_IBAT4U) / 2);
|
222 | 3fc6c082 | bellard | } |
223 | 3fc6c082 | bellard | |
224 | 3fc6c082 | bellard | static void spr_write_ibatl (void *opaque, int sprn) |
225 | 3fc6c082 | bellard | { |
226 | 3fc6c082 | bellard | gen_op_store_ibatl((sprn - SPR_IBAT0L) / 2);
|
227 | 3fc6c082 | bellard | } |
228 | 3fc6c082 | bellard | |
229 | 3fc6c082 | bellard | static void spr_write_ibatl_h (void *opaque, int sprn) |
230 | 3fc6c082 | bellard | { |
231 | 3fc6c082 | bellard | gen_op_store_ibatl((sprn - SPR_IBAT4L) / 2);
|
232 | 3fc6c082 | bellard | } |
233 | 3fc6c082 | bellard | |
234 | 3fc6c082 | bellard | /* DBAT0U...DBAT7U */
|
235 | 3fc6c082 | bellard | /* DBAT0L...DBAT7L */
|
236 | 3fc6c082 | bellard | static void spr_read_dbat (void *opaque, int sprn) |
237 | 3fc6c082 | bellard | { |
238 | 3fc6c082 | bellard | gen_op_load_dbat(sprn & 1, (sprn - SPR_DBAT0U) / 2); |
239 | 3fc6c082 | bellard | } |
240 | 3fc6c082 | bellard | |
241 | 3fc6c082 | bellard | static void spr_read_dbat_h (void *opaque, int sprn) |
242 | 3fc6c082 | bellard | { |
243 | 3fc6c082 | bellard | gen_op_load_dbat(sprn & 1, (sprn - SPR_DBAT4U) / 2); |
244 | 3fc6c082 | bellard | } |
245 | 3fc6c082 | bellard | |
246 | 3fc6c082 | bellard | static void spr_write_dbatu (void *opaque, int sprn) |
247 | 3fc6c082 | bellard | { |
248 | 3fc6c082 | bellard | gen_op_store_dbatu((sprn - SPR_DBAT0U) / 2);
|
249 | 3fc6c082 | bellard | } |
250 | 3fc6c082 | bellard | |
251 | 3fc6c082 | bellard | static void spr_write_dbatu_h (void *opaque, int sprn) |
252 | 3fc6c082 | bellard | { |
253 | 3fc6c082 | bellard | gen_op_store_dbatu((sprn - SPR_DBAT4U) / 2);
|
254 | 3fc6c082 | bellard | } |
255 | 3fc6c082 | bellard | |
256 | 3fc6c082 | bellard | static void spr_write_dbatl (void *opaque, int sprn) |
257 | 3fc6c082 | bellard | { |
258 | 3fc6c082 | bellard | gen_op_store_dbatl((sprn - SPR_DBAT0L) / 2);
|
259 | 3fc6c082 | bellard | } |
260 | 3fc6c082 | bellard | |
261 | 3fc6c082 | bellard | static void spr_write_dbatl_h (void *opaque, int sprn) |
262 | 3fc6c082 | bellard | { |
263 | 3fc6c082 | bellard | gen_op_store_dbatl((sprn - SPR_DBAT4L) / 2);
|
264 | 3fc6c082 | bellard | } |
265 | 3fc6c082 | bellard | |
266 | 3fc6c082 | bellard | /* SDR1 */
|
267 | 3fc6c082 | bellard | static void spr_read_sdr1 (void *opaque, int sprn) |
268 | 3fc6c082 | bellard | { |
269 | 3fc6c082 | bellard | gen_op_load_sdr1(); |
270 | 3fc6c082 | bellard | } |
271 | 3fc6c082 | bellard | |
272 | 3fc6c082 | bellard | static void spr_write_sdr1 (void *opaque, int sprn) |
273 | 3fc6c082 | bellard | { |
274 | 3fc6c082 | bellard | gen_op_store_sdr1(); |
275 | 3fc6c082 | bellard | } |
276 | 3fc6c082 | bellard | |
277 | 76a66253 | j_mayer | /* 64 bits PowerPC specific SPRs */
|
278 | 76a66253 | j_mayer | /* ASR */
|
279 | 5b284968 | ths | /* Currently unused */
|
280 | 5b284968 | ths | #if 0 && defined(TARGET_PPC64)
|
281 | 76a66253 | j_mayer | static void spr_read_asr (void *opaque, int sprn)
|
282 | 76a66253 | j_mayer | {
|
283 | 76a66253 | j_mayer | gen_op_load_asr();
|
284 | 76a66253 | j_mayer | }
|
285 | 76a66253 | j_mayer | |
286 | 76a66253 | j_mayer | static void spr_write_asr (void *opaque, int sprn)
|
287 | 76a66253 | j_mayer | {
|
288 | 76a66253 | j_mayer | DisasContext *ctx = opaque;
|
289 | 76a66253 | j_mayer | |
290 | 76a66253 | j_mayer | gen_op_store_asr();
|
291 | 76a66253 | j_mayer | }
|
292 | 76a66253 | j_mayer | #endif
|
293 | a750fc0b | j_mayer | #endif
|
294 | 76a66253 | j_mayer | |
295 | 76a66253 | j_mayer | /* PowerPC 601 specific registers */
|
296 | 76a66253 | j_mayer | /* RTC */
|
297 | 76a66253 | j_mayer | static void spr_read_601_rtcl (void *opaque, int sprn) |
298 | 76a66253 | j_mayer | { |
299 | 76a66253 | j_mayer | gen_op_load_601_rtcl(); |
300 | 76a66253 | j_mayer | } |
301 | 76a66253 | j_mayer | |
302 | 76a66253 | j_mayer | static void spr_read_601_rtcu (void *opaque, int sprn) |
303 | 76a66253 | j_mayer | { |
304 | 76a66253 | j_mayer | gen_op_load_601_rtcu(); |
305 | 76a66253 | j_mayer | } |
306 | 76a66253 | j_mayer | |
307 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
308 | 76a66253 | j_mayer | static void spr_write_601_rtcu (void *opaque, int sprn) |
309 | 76a66253 | j_mayer | { |
310 | 76a66253 | j_mayer | gen_op_store_601_rtcu(); |
311 | 76a66253 | j_mayer | } |
312 | 76a66253 | j_mayer | |
313 | 76a66253 | j_mayer | static void spr_write_601_rtcl (void *opaque, int sprn) |
314 | 76a66253 | j_mayer | { |
315 | 76a66253 | j_mayer | gen_op_store_601_rtcl(); |
316 | 76a66253 | j_mayer | } |
317 | 76a66253 | j_mayer | #endif
|
318 | 76a66253 | j_mayer | |
319 | 76a66253 | j_mayer | /* Unified bats */
|
320 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
321 | 76a66253 | j_mayer | static void spr_read_601_ubat (void *opaque, int sprn) |
322 | 76a66253 | j_mayer | { |
323 | 76a66253 | j_mayer | gen_op_load_601_bat(sprn & 1, (sprn - SPR_IBAT0U) / 2); |
324 | 76a66253 | j_mayer | } |
325 | 76a66253 | j_mayer | |
326 | 76a66253 | j_mayer | static void spr_write_601_ubatu (void *opaque, int sprn) |
327 | 76a66253 | j_mayer | { |
328 | 76a66253 | j_mayer | gen_op_store_601_batu((sprn - SPR_IBAT0U) / 2);
|
329 | 76a66253 | j_mayer | } |
330 | 76a66253 | j_mayer | |
331 | 76a66253 | j_mayer | static void spr_write_601_ubatl (void *opaque, int sprn) |
332 | 76a66253 | j_mayer | { |
333 | 76a66253 | j_mayer | gen_op_store_601_batl((sprn - SPR_IBAT0L) / 2);
|
334 | 76a66253 | j_mayer | } |
335 | 76a66253 | j_mayer | #endif
|
336 | 76a66253 | j_mayer | |
337 | 76a66253 | j_mayer | /* PowerPC 40x specific registers */
|
338 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
339 | 76a66253 | j_mayer | static void spr_read_40x_pit (void *opaque, int sprn) |
340 | 76a66253 | j_mayer | { |
341 | 76a66253 | j_mayer | gen_op_load_40x_pit(); |
342 | 76a66253 | j_mayer | } |
343 | 76a66253 | j_mayer | |
344 | 76a66253 | j_mayer | static void spr_write_40x_pit (void *opaque, int sprn) |
345 | 76a66253 | j_mayer | { |
346 | 76a66253 | j_mayer | gen_op_store_40x_pit(); |
347 | 76a66253 | j_mayer | } |
348 | 76a66253 | j_mayer | |
349 | 8ecc7913 | j_mayer | static void spr_write_40x_dbcr0 (void *opaque, int sprn) |
350 | 8ecc7913 | j_mayer | { |
351 | 8ecc7913 | j_mayer | DisasContext *ctx = opaque; |
352 | 8ecc7913 | j_mayer | |
353 | 8ecc7913 | j_mayer | gen_op_store_40x_dbcr0(); |
354 | 8ecc7913 | j_mayer | /* We must stop translation as we may have rebooted */
|
355 | e1833e1f | j_mayer | GEN_STOP(ctx); |
356 | 8ecc7913 | j_mayer | } |
357 | 8ecc7913 | j_mayer | |
358 | c294fc58 | j_mayer | static void spr_write_40x_sler (void *opaque, int sprn) |
359 | c294fc58 | j_mayer | { |
360 | c294fc58 | j_mayer | gen_op_store_40x_sler(); |
361 | c294fc58 | j_mayer | } |
362 | c294fc58 | j_mayer | |
363 | 76a66253 | j_mayer | static void spr_write_booke_tcr (void *opaque, int sprn) |
364 | 76a66253 | j_mayer | { |
365 | 76a66253 | j_mayer | gen_op_store_booke_tcr(); |
366 | 76a66253 | j_mayer | } |
367 | 76a66253 | j_mayer | |
368 | 76a66253 | j_mayer | static void spr_write_booke_tsr (void *opaque, int sprn) |
369 | 76a66253 | j_mayer | { |
370 | 76a66253 | j_mayer | gen_op_store_booke_tsr(); |
371 | 76a66253 | j_mayer | } |
372 | 76a66253 | j_mayer | #endif
|
373 | 76a66253 | j_mayer | |
374 | 76a66253 | j_mayer | /* PowerPC 403 specific registers */
|
375 | 76a66253 | j_mayer | /* PBL1 / PBU1 / PBL2 / PBU2 */
|
376 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
377 | 76a66253 | j_mayer | static void spr_read_403_pbr (void *opaque, int sprn) |
378 | 76a66253 | j_mayer | { |
379 | 76a66253 | j_mayer | gen_op_load_403_pb(sprn - SPR_403_PBL1); |
380 | 76a66253 | j_mayer | } |
381 | 76a66253 | j_mayer | |
382 | 76a66253 | j_mayer | static void spr_write_403_pbr (void *opaque, int sprn) |
383 | 76a66253 | j_mayer | { |
384 | 76a66253 | j_mayer | gen_op_store_403_pb(sprn - SPR_403_PBL1); |
385 | 76a66253 | j_mayer | } |
386 | 76a66253 | j_mayer | |
387 | 3fc6c082 | bellard | static void spr_write_pir (void *opaque, int sprn) |
388 | 3fc6c082 | bellard | { |
389 | 3fc6c082 | bellard | gen_op_store_pir(); |
390 | 3fc6c082 | bellard | } |
391 | 76a66253 | j_mayer | #endif
|
392 | 3fc6c082 | bellard | |
393 | 76a66253 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
394 | 76a66253 | j_mayer | #define spr_register(env, num, name, uea_read, uea_write, \
|
395 | 76a66253 | j_mayer | oea_read, oea_write, initial_value) \ |
396 | 76a66253 | j_mayer | do { \
|
397 | 76a66253 | j_mayer | _spr_register(env, num, name, uea_read, uea_write, initial_value); \ |
398 | 76a66253 | j_mayer | } while (0) |
399 | 76a66253 | j_mayer | static inline void _spr_register (CPUPPCState *env, int num, |
400 | 76a66253 | j_mayer | const unsigned char *name, |
401 | 76a66253 | j_mayer | void (*uea_read)(void *opaque, int sprn), |
402 | 76a66253 | j_mayer | void (*uea_write)(void *opaque, int sprn), |
403 | 76a66253 | j_mayer | target_ulong initial_value) |
404 | 76a66253 | j_mayer | #else
|
405 | 3fc6c082 | bellard | static inline void spr_register (CPUPPCState *env, int num, |
406 | 3fc6c082 | bellard | const unsigned char *name, |
407 | 3fc6c082 | bellard | void (*uea_read)(void *opaque, int sprn), |
408 | 3fc6c082 | bellard | void (*uea_write)(void *opaque, int sprn), |
409 | 3fc6c082 | bellard | void (*oea_read)(void *opaque, int sprn), |
410 | 3fc6c082 | bellard | void (*oea_write)(void *opaque, int sprn), |
411 | 3fc6c082 | bellard | target_ulong initial_value) |
412 | 76a66253 | j_mayer | #endif
|
413 | 3fc6c082 | bellard | { |
414 | 3fc6c082 | bellard | ppc_spr_t *spr; |
415 | 3fc6c082 | bellard | |
416 | 3fc6c082 | bellard | spr = &env->spr_cb[num]; |
417 | 3fc6c082 | bellard | if (spr->name != NULL ||env-> spr[num] != 0x00000000 || |
418 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
419 | 76a66253 | j_mayer | spr->oea_read != NULL || spr->oea_write != NULL || |
420 | 76a66253 | j_mayer | #endif
|
421 | 76a66253 | j_mayer | spr->uea_read != NULL || spr->uea_write != NULL) { |
422 | 3fc6c082 | bellard | printf("Error: Trying to register SPR %d (%03x) twice !\n", num, num);
|
423 | 3fc6c082 | bellard | exit(1);
|
424 | 3fc6c082 | bellard | } |
425 | 3fc6c082 | bellard | #if defined(PPC_DEBUG_SPR)
|
426 | 1b9eb036 | j_mayer | printf("*** register spr %d (%03x) %s val " ADDRX "\n", num, num, name, |
427 | 76a66253 | j_mayer | initial_value); |
428 | 3fc6c082 | bellard | #endif
|
429 | 3fc6c082 | bellard | spr->name = name; |
430 | 3fc6c082 | bellard | spr->uea_read = uea_read; |
431 | 3fc6c082 | bellard | spr->uea_write = uea_write; |
432 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
433 | 3fc6c082 | bellard | spr->oea_read = oea_read; |
434 | 3fc6c082 | bellard | spr->oea_write = oea_write; |
435 | 76a66253 | j_mayer | #endif
|
436 | 3fc6c082 | bellard | env->spr[num] = initial_value; |
437 | 3fc6c082 | bellard | } |
438 | 3fc6c082 | bellard | |
439 | 3fc6c082 | bellard | /* Generic PowerPC SPRs */
|
440 | 3fc6c082 | bellard | static void gen_spr_generic (CPUPPCState *env) |
441 | 3fc6c082 | bellard | { |
442 | 3fc6c082 | bellard | /* Integer processing */
|
443 | 3fc6c082 | bellard | spr_register(env, SPR_XER, "XER",
|
444 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
445 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
446 | 3fc6c082 | bellard | 0x00000000);
|
447 | 3fc6c082 | bellard | /* Branch contol */
|
448 | 3fc6c082 | bellard | spr_register(env, SPR_LR, "LR",
|
449 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
450 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
451 | 3fc6c082 | bellard | 0x00000000);
|
452 | 3fc6c082 | bellard | spr_register(env, SPR_CTR, "CTR",
|
453 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
454 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
455 | 3fc6c082 | bellard | 0x00000000);
|
456 | 3fc6c082 | bellard | /* Interrupt processing */
|
457 | 3fc6c082 | bellard | spr_register(env, SPR_SRR0, "SRR0",
|
458 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
459 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
460 | 3fc6c082 | bellard | 0x00000000);
|
461 | 3fc6c082 | bellard | spr_register(env, SPR_SRR1, "SRR1",
|
462 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
463 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
464 | 3fc6c082 | bellard | 0x00000000);
|
465 | 3fc6c082 | bellard | /* Processor control */
|
466 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG0, "SPRG0",
|
467 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
468 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
469 | 3fc6c082 | bellard | 0x00000000);
|
470 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG1, "SPRG1",
|
471 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
472 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
473 | 3fc6c082 | bellard | 0x00000000);
|
474 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG2, "SPRG2",
|
475 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
476 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
477 | 3fc6c082 | bellard | 0x00000000);
|
478 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG3, "SPRG3",
|
479 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
480 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
481 | 3fc6c082 | bellard | 0x00000000);
|
482 | 3fc6c082 | bellard | } |
483 | 3fc6c082 | bellard | |
484 | 3fc6c082 | bellard | /* SPR common to all non-embedded PowerPC, including 601 */
|
485 | 3fc6c082 | bellard | static void gen_spr_ne_601 (CPUPPCState *env) |
486 | 3fc6c082 | bellard | { |
487 | 3fc6c082 | bellard | /* Exception processing */
|
488 | 3fc6c082 | bellard | spr_register(env, SPR_DSISR, "DSISR",
|
489 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
490 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
491 | 3fc6c082 | bellard | 0x00000000);
|
492 | 3fc6c082 | bellard | spr_register(env, SPR_DAR, "DAR",
|
493 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
494 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
495 | 3fc6c082 | bellard | 0x00000000);
|
496 | 3fc6c082 | bellard | /* Timer */
|
497 | 3fc6c082 | bellard | spr_register(env, SPR_DECR, "DECR",
|
498 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
499 | 3fc6c082 | bellard | &spr_read_decr, &spr_write_decr, |
500 | 3fc6c082 | bellard | 0x00000000);
|
501 | 3fc6c082 | bellard | /* Memory management */
|
502 | 3fc6c082 | bellard | spr_register(env, SPR_SDR1, "SDR1",
|
503 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
504 | 3fc6c082 | bellard | &spr_read_sdr1, &spr_write_sdr1, |
505 | 3fc6c082 | bellard | 0x00000000);
|
506 | 3fc6c082 | bellard | } |
507 | 3fc6c082 | bellard | |
508 | 3fc6c082 | bellard | /* BATs 0-3 */
|
509 | 3fc6c082 | bellard | static void gen_low_BATs (CPUPPCState *env) |
510 | 3fc6c082 | bellard | { |
511 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
512 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
513 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
514 | 3fc6c082 | bellard | 0x00000000);
|
515 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
516 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
517 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
518 | 3fc6c082 | bellard | 0x00000000);
|
519 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
520 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
521 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
522 | 3fc6c082 | bellard | 0x00000000);
|
523 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
524 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
525 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
526 | 3fc6c082 | bellard | 0x00000000);
|
527 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
528 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
529 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
530 | 3fc6c082 | bellard | 0x00000000);
|
531 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
532 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
533 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
534 | 3fc6c082 | bellard | 0x00000000);
|
535 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
536 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
537 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
538 | 3fc6c082 | bellard | 0x00000000);
|
539 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
540 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
541 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
542 | 3fc6c082 | bellard | 0x00000000);
|
543 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0U, "DBAT0U",
|
544 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
545 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
546 | 3fc6c082 | bellard | 0x00000000);
|
547 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0L, "DBAT0L",
|
548 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
549 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
550 | 3fc6c082 | bellard | 0x00000000);
|
551 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1U, "DBAT1U",
|
552 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
553 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
554 | 3fc6c082 | bellard | 0x00000000);
|
555 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1L, "DBAT1L",
|
556 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
557 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
558 | 3fc6c082 | bellard | 0x00000000);
|
559 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2U, "DBAT2U",
|
560 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
561 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
562 | 3fc6c082 | bellard | 0x00000000);
|
563 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2L, "DBAT2L",
|
564 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
565 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
566 | 3fc6c082 | bellard | 0x00000000);
|
567 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3U, "DBAT3U",
|
568 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
569 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
570 | 3fc6c082 | bellard | 0x00000000);
|
571 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3L, "DBAT3L",
|
572 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
573 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
574 | 3fc6c082 | bellard | 0x00000000);
|
575 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
576 | 3fc6c082 | bellard | } |
577 | 3fc6c082 | bellard | |
578 | 3fc6c082 | bellard | /* BATs 4-7 */
|
579 | 3fc6c082 | bellard | static void gen_high_BATs (CPUPPCState *env) |
580 | 3fc6c082 | bellard | { |
581 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4U, "IBAT4U",
|
582 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
583 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
584 | 3fc6c082 | bellard | 0x00000000);
|
585 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4L, "IBAT4L",
|
586 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
587 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
588 | 3fc6c082 | bellard | 0x00000000);
|
589 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5U, "IBAT5U",
|
590 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
591 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
592 | 3fc6c082 | bellard | 0x00000000);
|
593 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5L, "IBAT5L",
|
594 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
595 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
596 | 3fc6c082 | bellard | 0x00000000);
|
597 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6U, "IBAT6U",
|
598 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
599 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
600 | 3fc6c082 | bellard | 0x00000000);
|
601 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6L, "IBAT6L",
|
602 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
603 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
604 | 3fc6c082 | bellard | 0x00000000);
|
605 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7U, "IBAT7U",
|
606 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
607 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
608 | 3fc6c082 | bellard | 0x00000000);
|
609 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7L, "IBAT7L",
|
610 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
611 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
612 | 3fc6c082 | bellard | 0x00000000);
|
613 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4U, "DBAT4U",
|
614 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
615 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
616 | 3fc6c082 | bellard | 0x00000000);
|
617 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4L, "DBAT4L",
|
618 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
619 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
620 | 3fc6c082 | bellard | 0x00000000);
|
621 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5U, "DBAT5U",
|
622 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
623 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
624 | 3fc6c082 | bellard | 0x00000000);
|
625 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5L, "DBAT5L",
|
626 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
627 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
628 | 3fc6c082 | bellard | 0x00000000);
|
629 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6U, "DBAT6U",
|
630 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
631 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
632 | 3fc6c082 | bellard | 0x00000000);
|
633 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6L, "DBAT6L",
|
634 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
635 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
636 | 3fc6c082 | bellard | 0x00000000);
|
637 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7U, "DBAT7U",
|
638 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
639 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
640 | 3fc6c082 | bellard | 0x00000000);
|
641 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7L, "DBAT7L",
|
642 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
643 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
644 | 3fc6c082 | bellard | 0x00000000);
|
645 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
646 | 3fc6c082 | bellard | } |
647 | 3fc6c082 | bellard | |
648 | 3fc6c082 | bellard | /* Generic PowerPC time base */
|
649 | 3fc6c082 | bellard | static void gen_tbl (CPUPPCState *env) |
650 | 3fc6c082 | bellard | { |
651 | 3fc6c082 | bellard | spr_register(env, SPR_VTBL, "TBL",
|
652 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
653 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
654 | 3fc6c082 | bellard | 0x00000000);
|
655 | 3fc6c082 | bellard | spr_register(env, SPR_TBL, "TBL",
|
656 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
657 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbl, |
658 | 3fc6c082 | bellard | 0x00000000);
|
659 | 3fc6c082 | bellard | spr_register(env, SPR_VTBU, "TBU",
|
660 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
661 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
662 | 3fc6c082 | bellard | 0x00000000);
|
663 | 3fc6c082 | bellard | spr_register(env, SPR_TBU, "TBU",
|
664 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
665 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbu, |
666 | 3fc6c082 | bellard | 0x00000000);
|
667 | 3fc6c082 | bellard | } |
668 | 3fc6c082 | bellard | |
669 | 76a66253 | j_mayer | /* Softare table search registers */
|
670 | 76a66253 | j_mayer | static void gen_6xx_7xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
671 | 76a66253 | j_mayer | { |
672 | 76a66253 | j_mayer | env->nb_tlb = nb_tlbs; |
673 | 76a66253 | j_mayer | env->nb_ways = nb_ways; |
674 | 76a66253 | j_mayer | env->id_tlbs = 1;
|
675 | 76a66253 | j_mayer | spr_register(env, SPR_DMISS, "DMISS",
|
676 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
677 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
678 | 76a66253 | j_mayer | 0x00000000);
|
679 | 76a66253 | j_mayer | spr_register(env, SPR_DCMP, "DCMP",
|
680 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
681 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
682 | 76a66253 | j_mayer | 0x00000000);
|
683 | 76a66253 | j_mayer | spr_register(env, SPR_HASH1, "HASH1",
|
684 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
685 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
686 | 76a66253 | j_mayer | 0x00000000);
|
687 | 76a66253 | j_mayer | spr_register(env, SPR_HASH2, "HASH2",
|
688 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
689 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
690 | 76a66253 | j_mayer | 0x00000000);
|
691 | 76a66253 | j_mayer | spr_register(env, SPR_IMISS, "IMISS",
|
692 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
693 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
694 | 76a66253 | j_mayer | 0x00000000);
|
695 | 76a66253 | j_mayer | spr_register(env, SPR_ICMP, "ICMP",
|
696 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
697 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
698 | 76a66253 | j_mayer | 0x00000000);
|
699 | 76a66253 | j_mayer | spr_register(env, SPR_RPA, "RPA",
|
700 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
701 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
702 | 76a66253 | j_mayer | 0x00000000);
|
703 | 76a66253 | j_mayer | } |
704 | 76a66253 | j_mayer | |
705 | 76a66253 | j_mayer | /* SPR common to MPC755 and G2 */
|
706 | 76a66253 | j_mayer | static void gen_spr_G2_755 (CPUPPCState *env) |
707 | 76a66253 | j_mayer | { |
708 | 76a66253 | j_mayer | /* SGPRs */
|
709 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
710 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
711 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
712 | 76a66253 | j_mayer | 0x00000000);
|
713 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
714 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
715 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
716 | 76a66253 | j_mayer | 0x00000000);
|
717 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
718 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
719 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
720 | 76a66253 | j_mayer | 0x00000000);
|
721 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
722 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
723 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
724 | 76a66253 | j_mayer | 0x00000000);
|
725 | 76a66253 | j_mayer | /* External access control */
|
726 | 76a66253 | j_mayer | /* XXX : not implemented */
|
727 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
728 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
729 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
730 | 76a66253 | j_mayer | 0x00000000);
|
731 | 76a66253 | j_mayer | } |
732 | 76a66253 | j_mayer | |
733 | 3fc6c082 | bellard | /* SPR common to all 7xx PowerPC implementations */
|
734 | 3fc6c082 | bellard | static void gen_spr_7xx (CPUPPCState *env) |
735 | 3fc6c082 | bellard | { |
736 | 3fc6c082 | bellard | /* Breakpoints */
|
737 | 3fc6c082 | bellard | /* XXX : not implemented */
|
738 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
739 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
740 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
741 | 3fc6c082 | bellard | 0x00000000);
|
742 | 3fc6c082 | bellard | /* XXX : not implemented */
|
743 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
744 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
745 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
746 | 3fc6c082 | bellard | 0x00000000);
|
747 | 3fc6c082 | bellard | /* Cache management */
|
748 | 3fc6c082 | bellard | /* XXX : not implemented */
|
749 | 3fc6c082 | bellard | spr_register(env, SPR_ICTC, "ICTC",
|
750 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
751 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
752 | 3fc6c082 | bellard | 0x00000000);
|
753 | 76a66253 | j_mayer | /* XXX : not implemented */
|
754 | 76a66253 | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
755 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
756 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
757 | 76a66253 | j_mayer | 0x00000000);
|
758 | 3fc6c082 | bellard | /* Performance monitors */
|
759 | 3fc6c082 | bellard | /* XXX : not implemented */
|
760 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
761 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
762 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
763 | 3fc6c082 | bellard | 0x00000000);
|
764 | 3fc6c082 | bellard | /* XXX : not implemented */
|
765 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR1, "MMCR1",
|
766 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
767 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
768 | 3fc6c082 | bellard | 0x00000000);
|
769 | 3fc6c082 | bellard | /* XXX : not implemented */
|
770 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
771 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
772 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
773 | 3fc6c082 | bellard | 0x00000000);
|
774 | 3fc6c082 | bellard | /* XXX : not implemented */
|
775 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
776 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
777 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
778 | 3fc6c082 | bellard | 0x00000000);
|
779 | 3fc6c082 | bellard | /* XXX : not implemented */
|
780 | 3fc6c082 | bellard | spr_register(env, SPR_PMC3, "PMC3",
|
781 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
782 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
783 | 3fc6c082 | bellard | 0x00000000);
|
784 | 3fc6c082 | bellard | /* XXX : not implemented */
|
785 | 3fc6c082 | bellard | spr_register(env, SPR_PMC4, "PMC4",
|
786 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
787 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
788 | 3fc6c082 | bellard | 0x00000000);
|
789 | 3fc6c082 | bellard | /* XXX : not implemented */
|
790 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
791 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
792 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
793 | 3fc6c082 | bellard | 0x00000000);
|
794 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR0, "UMMCR0",
|
795 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
796 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
797 | 3fc6c082 | bellard | 0x00000000);
|
798 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR1, "UMMCR1",
|
799 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
800 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
801 | 3fc6c082 | bellard | 0x00000000);
|
802 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC1, "UPMC1",
|
803 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
804 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
805 | 3fc6c082 | bellard | 0x00000000);
|
806 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC2, "UPMC2",
|
807 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
808 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
809 | 3fc6c082 | bellard | 0x00000000);
|
810 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC3, "UPMC3",
|
811 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
812 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
813 | 3fc6c082 | bellard | 0x00000000);
|
814 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC4, "UPMC4",
|
815 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
816 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
817 | 3fc6c082 | bellard | 0x00000000);
|
818 | a750fc0b | j_mayer | spr_register(env, SPR_USIAR, "USIAR",
|
819 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
820 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
821 | 3fc6c082 | bellard | 0x00000000);
|
822 | a750fc0b | j_mayer | /* External access control */
|
823 | 3fc6c082 | bellard | /* XXX : not implemented */
|
824 | a750fc0b | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
825 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
826 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
827 | 3fc6c082 | bellard | 0x00000000);
|
828 | a750fc0b | j_mayer | } |
829 | a750fc0b | j_mayer | |
830 | a750fc0b | j_mayer | static void gen_spr_thrm (CPUPPCState *env) |
831 | a750fc0b | j_mayer | { |
832 | a750fc0b | j_mayer | /* Thermal management */
|
833 | 3fc6c082 | bellard | /* XXX : not implemented */
|
834 | a750fc0b | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
835 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
836 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
837 | 3fc6c082 | bellard | 0x00000000);
|
838 | 3fc6c082 | bellard | /* XXX : not implemented */
|
839 | a750fc0b | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
840 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
841 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
842 | 3fc6c082 | bellard | 0x00000000);
|
843 | 3fc6c082 | bellard | /* XXX : not implemented */
|
844 | a750fc0b | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
845 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
846 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
847 | 3fc6c082 | bellard | 0x00000000);
|
848 | 3fc6c082 | bellard | } |
849 | 3fc6c082 | bellard | |
850 | 3fc6c082 | bellard | /* SPR specific to PowerPC 604 implementation */
|
851 | 3fc6c082 | bellard | static void gen_spr_604 (CPUPPCState *env) |
852 | 3fc6c082 | bellard | { |
853 | 3fc6c082 | bellard | /* Processor identification */
|
854 | 3fc6c082 | bellard | spr_register(env, SPR_PIR, "PIR",
|
855 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
856 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_pir, |
857 | 3fc6c082 | bellard | 0x00000000);
|
858 | 3fc6c082 | bellard | /* Breakpoints */
|
859 | 3fc6c082 | bellard | /* XXX : not implemented */
|
860 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
861 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
862 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
863 | 3fc6c082 | bellard | 0x00000000);
|
864 | 3fc6c082 | bellard | /* XXX : not implemented */
|
865 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
866 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
867 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
868 | 3fc6c082 | bellard | 0x00000000);
|
869 | 3fc6c082 | bellard | /* Performance counters */
|
870 | 3fc6c082 | bellard | /* XXX : not implemented */
|
871 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
872 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
873 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
874 | 3fc6c082 | bellard | 0x00000000);
|
875 | 3fc6c082 | bellard | /* XXX : not implemented */
|
876 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR1, "MMCR1",
|
877 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
878 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
879 | 3fc6c082 | bellard | 0x00000000);
|
880 | 3fc6c082 | bellard | /* XXX : not implemented */
|
881 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
882 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
883 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
884 | 3fc6c082 | bellard | 0x00000000);
|
885 | 3fc6c082 | bellard | /* XXX : not implemented */
|
886 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
887 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
888 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
889 | 3fc6c082 | bellard | 0x00000000);
|
890 | 3fc6c082 | bellard | /* XXX : not implemented */
|
891 | 3fc6c082 | bellard | spr_register(env, SPR_PMC3, "PMC3",
|
892 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
893 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
894 | 3fc6c082 | bellard | 0x00000000);
|
895 | 3fc6c082 | bellard | /* XXX : not implemented */
|
896 | 3fc6c082 | bellard | spr_register(env, SPR_PMC4, "PMC4",
|
897 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
898 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
899 | 3fc6c082 | bellard | 0x00000000);
|
900 | 3fc6c082 | bellard | /* XXX : not implemented */
|
901 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
902 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
903 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
904 | 3fc6c082 | bellard | 0x00000000);
|
905 | 3fc6c082 | bellard | /* XXX : not implemented */
|
906 | 3fc6c082 | bellard | spr_register(env, SPR_SDA, "SDA",
|
907 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
908 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
909 | 3fc6c082 | bellard | 0x00000000);
|
910 | 3fc6c082 | bellard | /* External access control */
|
911 | 3fc6c082 | bellard | /* XXX : not implemented */
|
912 | 3fc6c082 | bellard | spr_register(env, SPR_EAR, "EAR",
|
913 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
914 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
915 | 3fc6c082 | bellard | 0x00000000);
|
916 | 3fc6c082 | bellard | } |
917 | 3fc6c082 | bellard | |
918 | 76a66253 | j_mayer | /* SPR specific to PowerPC 603 implementation */
|
919 | 76a66253 | j_mayer | static void gen_spr_603 (CPUPPCState *env) |
920 | 3fc6c082 | bellard | { |
921 | 76a66253 | j_mayer | /* External access control */
|
922 | 76a66253 | j_mayer | /* XXX : not implemented */
|
923 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
924 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
925 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
926 | 76a66253 | j_mayer | 0x00000000);
|
927 | 3fc6c082 | bellard | } |
928 | 3fc6c082 | bellard | |
929 | 76a66253 | j_mayer | /* SPR specific to PowerPC G2 implementation */
|
930 | 76a66253 | j_mayer | static void gen_spr_G2 (CPUPPCState *env) |
931 | 3fc6c082 | bellard | { |
932 | 76a66253 | j_mayer | /* Memory base address */
|
933 | 76a66253 | j_mayer | /* MBAR */
|
934 | 76a66253 | j_mayer | spr_register(env, SPR_MBAR, "MBAR",
|
935 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
936 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
937 | 76a66253 | j_mayer | 0x00000000);
|
938 | 76a66253 | j_mayer | /* System version register */
|
939 | 76a66253 | j_mayer | /* SVR */
|
940 | 76a66253 | j_mayer | spr_register(env, SPR_SVR, "SVR",
|
941 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
942 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
943 | 76a66253 | j_mayer | 0x00000000);
|
944 | 76a66253 | j_mayer | /* Exception processing */
|
945 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
946 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
947 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
948 | 76a66253 | j_mayer | 0x00000000);
|
949 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
950 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
951 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
952 | 76a66253 | j_mayer | 0x00000000);
|
953 | 76a66253 | j_mayer | /* Breakpoints */
|
954 | 76a66253 | j_mayer | /* XXX : not implemented */
|
955 | 76a66253 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
956 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
957 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
958 | 76a66253 | j_mayer | 0x00000000);
|
959 | 76a66253 | j_mayer | /* XXX : not implemented */
|
960 | 76a66253 | j_mayer | spr_register(env, SPR_DABR2, "DABR2",
|
961 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
962 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
963 | 76a66253 | j_mayer | 0x00000000);
|
964 | 76a66253 | j_mayer | /* XXX : not implemented */
|
965 | 76a66253 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
966 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
967 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
968 | 76a66253 | j_mayer | 0x00000000);
|
969 | 76a66253 | j_mayer | /* XXX : not implemented */
|
970 | 76a66253 | j_mayer | spr_register(env, SPR_IABR2, "IABR2",
|
971 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
972 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
973 | 76a66253 | j_mayer | 0x00000000);
|
974 | 76a66253 | j_mayer | /* XXX : not implemented */
|
975 | 76a66253 | j_mayer | spr_register(env, SPR_IBCR, "IBCR",
|
976 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
977 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
978 | 76a66253 | j_mayer | 0x00000000);
|
979 | 76a66253 | j_mayer | /* XXX : not implemented */
|
980 | 76a66253 | j_mayer | spr_register(env, SPR_DBCR, "DBCR",
|
981 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
982 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
983 | 76a66253 | j_mayer | 0x00000000);
|
984 | 76a66253 | j_mayer | } |
985 | 76a66253 | j_mayer | |
986 | 76a66253 | j_mayer | /* SPR specific to PowerPC 602 implementation */
|
987 | 76a66253 | j_mayer | static void gen_spr_602 (CPUPPCState *env) |
988 | 76a66253 | j_mayer | { |
989 | 76a66253 | j_mayer | /* ESA registers */
|
990 | 76a66253 | j_mayer | /* XXX : not implemented */
|
991 | 76a66253 | j_mayer | spr_register(env, SPR_SER, "SER",
|
992 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
993 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
994 | 76a66253 | j_mayer | 0x00000000);
|
995 | 76a66253 | j_mayer | /* XXX : not implemented */
|
996 | 76a66253 | j_mayer | spr_register(env, SPR_SEBR, "SEBR",
|
997 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
998 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
999 | 76a66253 | j_mayer | 0x00000000);
|
1000 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1001 | a750fc0b | j_mayer | spr_register(env, SPR_ESASRR, "ESASRR",
|
1002 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1003 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1004 | 76a66253 | j_mayer | 0x00000000);
|
1005 | 76a66253 | j_mayer | /* Floating point status */
|
1006 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1007 | 76a66253 | j_mayer | spr_register(env, SPR_SP, "SP",
|
1008 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1009 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1010 | 76a66253 | j_mayer | 0x00000000);
|
1011 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1012 | 76a66253 | j_mayer | spr_register(env, SPR_LT, "LT",
|
1013 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1014 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1015 | 76a66253 | j_mayer | 0x00000000);
|
1016 | 76a66253 | j_mayer | /* Watchdog timer */
|
1017 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1018 | 76a66253 | j_mayer | spr_register(env, SPR_TCR, "TCR",
|
1019 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1020 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1021 | 76a66253 | j_mayer | 0x00000000);
|
1022 | 76a66253 | j_mayer | /* Interrupt base */
|
1023 | 76a66253 | j_mayer | spr_register(env, SPR_IBR, "IBR",
|
1024 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1025 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1026 | 76a66253 | j_mayer | 0x00000000);
|
1027 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1028 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1029 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1030 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1031 | a750fc0b | j_mayer | 0x00000000);
|
1032 | 76a66253 | j_mayer | } |
1033 | 76a66253 | j_mayer | |
1034 | 76a66253 | j_mayer | /* SPR specific to PowerPC 601 implementation */
|
1035 | 76a66253 | j_mayer | static void gen_spr_601 (CPUPPCState *env) |
1036 | 76a66253 | j_mayer | { |
1037 | 76a66253 | j_mayer | /* Multiplication/division register */
|
1038 | 76a66253 | j_mayer | /* MQ */
|
1039 | 76a66253 | j_mayer | spr_register(env, SPR_MQ, "MQ",
|
1040 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1041 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1042 | 76a66253 | j_mayer | 0x00000000);
|
1043 | 76a66253 | j_mayer | /* RTC registers */
|
1044 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCU, "RTCU",
|
1045 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1046 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcu, |
1047 | 76a66253 | j_mayer | 0x00000000);
|
1048 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCU, "RTCU",
|
1049 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1050 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1051 | 76a66253 | j_mayer | 0x00000000);
|
1052 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCL, "RTCL",
|
1053 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1054 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcl, |
1055 | 76a66253 | j_mayer | 0x00000000);
|
1056 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCL, "RTCL",
|
1057 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1058 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1059 | 76a66253 | j_mayer | 0x00000000);
|
1060 | 76a66253 | j_mayer | /* Timer */
|
1061 | 76a66253 | j_mayer | #if 0 /* ? */
|
1062 | 76a66253 | j_mayer | spr_register(env, SPR_601_UDECR, "UDECR",
|
1063 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1064 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1065 | 76a66253 | j_mayer | 0x00000000);
|
1066 | 76a66253 | j_mayer | #endif
|
1067 | 76a66253 | j_mayer | /* External access control */
|
1068 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1069 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1070 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1071 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1072 | 76a66253 | j_mayer | 0x00000000);
|
1073 | 76a66253 | j_mayer | /* Memory management */
|
1074 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
1075 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1076 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1077 | 76a66253 | j_mayer | 0x00000000);
|
1078 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
1079 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1080 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1081 | 76a66253 | j_mayer | 0x00000000);
|
1082 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
1083 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1084 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1085 | 76a66253 | j_mayer | 0x00000000);
|
1086 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
1087 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1088 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1089 | 76a66253 | j_mayer | 0x00000000);
|
1090 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
1091 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1092 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1093 | 76a66253 | j_mayer | 0x00000000);
|
1094 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
1095 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1096 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1097 | 76a66253 | j_mayer | 0x00000000);
|
1098 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
1099 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1100 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1101 | 76a66253 | j_mayer | 0x00000000);
|
1102 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
1103 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1104 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1105 | 76a66253 | j_mayer | 0x00000000);
|
1106 | a750fc0b | j_mayer | env->nb_BATs = 4;
|
1107 | a750fc0b | j_mayer | } |
1108 | a750fc0b | j_mayer | |
1109 | a750fc0b | j_mayer | static void gen_spr_74xx (CPUPPCState *env) |
1110 | a750fc0b | j_mayer | { |
1111 | a750fc0b | j_mayer | /* Processor identification */
|
1112 | a750fc0b | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
1113 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1114 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_pir, |
1115 | a750fc0b | j_mayer | 0x00000000);
|
1116 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1117 | a750fc0b | j_mayer | spr_register(env, SPR_MMCR2, "MMCR2",
|
1118 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1119 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1120 | a750fc0b | j_mayer | 0x00000000);
|
1121 | a750fc0b | j_mayer | spr_register(env, SPR_UMMCR2, "UMMCR2",
|
1122 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1123 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1124 | a750fc0b | j_mayer | 0x00000000);
|
1125 | a750fc0b | j_mayer | /* XXX: not implemented */
|
1126 | a750fc0b | j_mayer | spr_register(env, SPR_BAMR, "BAMR",
|
1127 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1128 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1129 | a750fc0b | j_mayer | 0x00000000);
|
1130 | a750fc0b | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
1131 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1132 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1133 | a750fc0b | j_mayer | 0x00000000);
|
1134 | a750fc0b | j_mayer | spr_register(env, SPR_MSSCR0, "MSSCR0",
|
1135 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1136 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1137 | a750fc0b | j_mayer | 0x00000000);
|
1138 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
1139 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1140 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
1141 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1142 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1143 | a750fc0b | j_mayer | 0x00000000);
|
1144 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1145 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
1146 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1147 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1148 | a750fc0b | j_mayer | 0x00000000);
|
1149 | a750fc0b | j_mayer | /* Altivec */
|
1150 | a750fc0b | j_mayer | spr_register(env, SPR_VRSAVE, "VRSAVE",
|
1151 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1152 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1153 | a750fc0b | j_mayer | 0x00000000);
|
1154 | a750fc0b | j_mayer | } |
1155 | a750fc0b | j_mayer | |
1156 | a750fc0b | j_mayer | #if defined (TODO)
|
1157 | a750fc0b | j_mayer | static void gen_l3_ctrl (CPUPPCState *env) |
1158 | a750fc0b | j_mayer | { |
1159 | a750fc0b | j_mayer | /* L3CR */
|
1160 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1161 | a750fc0b | j_mayer | spr_register(env, SPR_L3CR, "L3CR",
|
1162 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1163 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1164 | a750fc0b | j_mayer | 0x00000000);
|
1165 | a750fc0b | j_mayer | /* L3ITCR0 */
|
1166 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR0, "L3ITCR0",
|
1167 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1168 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1169 | a750fc0b | j_mayer | 0x00000000);
|
1170 | a750fc0b | j_mayer | /* L3ITCR1 */
|
1171 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
1172 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1173 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1174 | a750fc0b | j_mayer | 0x00000000);
|
1175 | a750fc0b | j_mayer | /* L3ITCR2 */
|
1176 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
1177 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1178 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1179 | a750fc0b | j_mayer | 0x00000000);
|
1180 | a750fc0b | j_mayer | /* L3ITCR3 */
|
1181 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
1182 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1183 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1184 | a750fc0b | j_mayer | 0x00000000);
|
1185 | a750fc0b | j_mayer | /* L3OHCR */
|
1186 | a750fc0b | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
1187 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1188 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1189 | a750fc0b | j_mayer | 0x00000000);
|
1190 | a750fc0b | j_mayer | /* L3PM */
|
1191 | a750fc0b | j_mayer | spr_register(env, SPR_L3PM, "L3PM",
|
1192 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1193 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1194 | a750fc0b | j_mayer | 0x00000000);
|
1195 | a750fc0b | j_mayer | } |
1196 | a750fc0b | j_mayer | #endif /* TODO */ |
1197 | a750fc0b | j_mayer | |
1198 | a750fc0b | j_mayer | #if defined (TODO)
|
1199 | a750fc0b | j_mayer | static void gen_74xx_soft_tlb (CPUPPCState *env) |
1200 | a750fc0b | j_mayer | { |
1201 | a750fc0b | j_mayer | /* XXX: TODO */
|
1202 | a750fc0b | j_mayer | spr_register(env, SPR_PTEHI, "PTEHI",
|
1203 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1204 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1205 | a750fc0b | j_mayer | 0x00000000);
|
1206 | a750fc0b | j_mayer | spr_register(env, SPR_PTELO, "PTELO",
|
1207 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1208 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1209 | a750fc0b | j_mayer | 0x00000000);
|
1210 | a750fc0b | j_mayer | spr_register(env, SPR_TLBMISS, "TLBMISS",
|
1211 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1212 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1213 | a750fc0b | j_mayer | 0x00000000);
|
1214 | 76a66253 | j_mayer | } |
1215 | a750fc0b | j_mayer | #endif /* TODO */ |
1216 | 76a66253 | j_mayer | |
1217 | 76a66253 | j_mayer | /* PowerPC BookE SPR */
|
1218 | 76a66253 | j_mayer | static void gen_spr_BookE (CPUPPCState *env) |
1219 | 76a66253 | j_mayer | { |
1220 | 76a66253 | j_mayer | /* Processor identification */
|
1221 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
1222 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1223 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_pir, |
1224 | 76a66253 | j_mayer | 0x00000000);
|
1225 | 76a66253 | j_mayer | /* Interrupt processing */
|
1226 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1227 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1228 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1229 | 76a66253 | j_mayer | 0x00000000);
|
1230 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1231 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1232 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1233 | 363be49c | j_mayer | 0x00000000);
|
1234 | 2662a059 | j_mayer | #if 0
|
1235 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_DSRR0, "DSRR0",
|
1236 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
1237 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic,
|
1238 | 363be49c | j_mayer | 0x00000000);
|
1239 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_DSRR1, "DSRR1",
|
1240 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
1241 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic,
|
1242 | 363be49c | j_mayer | 0x00000000);
|
1243 | 2662a059 | j_mayer | #endif
|
1244 | 76a66253 | j_mayer | /* Debug */
|
1245 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1246 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC1, "IAC1",
|
1247 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1248 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1249 | 76a66253 | j_mayer | 0x00000000);
|
1250 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1251 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC2, "IAC2",
|
1252 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1253 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1254 | 76a66253 | j_mayer | 0x00000000);
|
1255 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1256 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
1257 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1258 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1259 | 76a66253 | j_mayer | 0x00000000);
|
1260 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1261 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
1262 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1263 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1264 | 76a66253 | j_mayer | 0x00000000);
|
1265 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1266 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC1, "DAC1",
|
1267 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1268 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1269 | 76a66253 | j_mayer | 0x00000000);
|
1270 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1271 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC2, "DAC2",
|
1272 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1273 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1274 | 76a66253 | j_mayer | 0x00000000);
|
1275 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1276 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
1277 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1278 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1279 | 76a66253 | j_mayer | 0x00000000);
|
1280 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1281 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
1282 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1283 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1284 | 76a66253 | j_mayer | 0x00000000);
|
1285 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1286 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR0, "DBCR0",
|
1287 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1288 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1289 | 76a66253 | j_mayer | 0x00000000);
|
1290 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1291 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR1, "DBCR1",
|
1292 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1293 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1294 | 76a66253 | j_mayer | 0x00000000);
|
1295 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1296 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR2, "DBCR2",
|
1297 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1298 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1299 | 76a66253 | j_mayer | 0x00000000);
|
1300 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1301 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBSR, "DBSR",
|
1302 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1303 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1304 | 76a66253 | j_mayer | 0x00000000);
|
1305 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DEAR, "DEAR",
|
1306 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1307 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1308 | 76a66253 | j_mayer | 0x00000000);
|
1309 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_ESR, "ESR",
|
1310 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1311 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1312 | 76a66253 | j_mayer | 0x00000000);
|
1313 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVPR, "IVPR",
|
1314 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1315 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1316 | 363be49c | j_mayer | 0x00000000);
|
1317 | 363be49c | j_mayer | /* Exception vectors */
|
1318 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR0, "IVOR0",
|
1319 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1320 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1321 | 76a66253 | j_mayer | 0x00000000);
|
1322 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR1, "IVOR1",
|
1323 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1324 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1325 | 76a66253 | j_mayer | 0x00000000);
|
1326 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR2, "IVOR2",
|
1327 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1328 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1329 | 76a66253 | j_mayer | 0x00000000);
|
1330 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR3, "IVOR3",
|
1331 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1332 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1333 | 76a66253 | j_mayer | 0x00000000);
|
1334 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR4, "IVOR4",
|
1335 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1336 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1337 | 76a66253 | j_mayer | 0x00000000);
|
1338 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR5, "IVOR5",
|
1339 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1340 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1341 | 76a66253 | j_mayer | 0x00000000);
|
1342 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR6, "IVOR6",
|
1343 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1344 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1345 | 76a66253 | j_mayer | 0x00000000);
|
1346 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR7, "IVOR7",
|
1347 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1348 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1349 | 76a66253 | j_mayer | 0x00000000);
|
1350 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR8, "IVOR8",
|
1351 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1352 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1353 | 76a66253 | j_mayer | 0x00000000);
|
1354 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR9, "IVOR9",
|
1355 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1356 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1357 | 76a66253 | j_mayer | 0x00000000);
|
1358 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR10, "IVOR10",
|
1359 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1360 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1361 | 76a66253 | j_mayer | 0x00000000);
|
1362 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR11, "IVOR11",
|
1363 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1364 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1365 | 76a66253 | j_mayer | 0x00000000);
|
1366 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR12, "IVOR12",
|
1367 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1368 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1369 | 76a66253 | j_mayer | 0x00000000);
|
1370 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR13, "IVOR13",
|
1371 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1372 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1373 | 76a66253 | j_mayer | 0x00000000);
|
1374 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR14, "IVOR14",
|
1375 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1376 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1377 | 76a66253 | j_mayer | 0x00000000);
|
1378 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IVOR15, "IVOR15",
|
1379 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1380 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1381 | 76a66253 | j_mayer | 0x00000000);
|
1382 | 2662a059 | j_mayer | #if 0
|
1383 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVOR32, "IVOR32",
|
1384 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
1385 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic,
|
1386 | 363be49c | j_mayer | 0x00000000);
|
1387 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVOR33, "IVOR33",
|
1388 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
1389 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic,
|
1390 | 363be49c | j_mayer | 0x00000000);
|
1391 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVOR34, "IVOR34",
|
1392 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
1393 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic,
|
1394 | 363be49c | j_mayer | 0x00000000);
|
1395 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVOR35, "IVOR35",
|
1396 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
1397 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic,
|
1398 | 363be49c | j_mayer | 0x00000000);
|
1399 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVOR36, "IVOR36",
|
1400 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
1401 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic,
|
1402 | 363be49c | j_mayer | 0x00000000);
|
1403 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVOR37, "IVOR37",
|
1404 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
1405 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic,
|
1406 | 363be49c | j_mayer | 0x00000000);
|
1407 | 2662a059 | j_mayer | #endif
|
1408 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_PID, "PID",
|
1409 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1410 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1411 | 76a66253 | j_mayer | 0x00000000);
|
1412 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TCR, "TCR",
|
1413 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1414 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1415 | 76a66253 | j_mayer | 0x00000000);
|
1416 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TSR, "TSR",
|
1417 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1418 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1419 | 76a66253 | j_mayer | 0x00000000);
|
1420 | 76a66253 | j_mayer | /* Timer */
|
1421 | 76a66253 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
1422 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1423 | 76a66253 | j_mayer | &spr_read_decr, &spr_write_decr, |
1424 | 76a66253 | j_mayer | 0x00000000);
|
1425 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DECAR, "DECAR",
|
1426 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1427 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
1428 | 76a66253 | j_mayer | 0x00000000);
|
1429 | 76a66253 | j_mayer | /* SPRGs */
|
1430 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1431 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1432 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1433 | 76a66253 | j_mayer | 0x00000000);
|
1434 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1435 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1436 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1437 | 76a66253 | j_mayer | 0x00000000);
|
1438 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
1439 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1440 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1441 | 76a66253 | j_mayer | 0x00000000);
|
1442 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1443 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1444 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1445 | 76a66253 | j_mayer | 0x00000000);
|
1446 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
1447 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1448 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1449 | 76a66253 | j_mayer | 0x00000000);
|
1450 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1451 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1452 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1453 | 76a66253 | j_mayer | 0x00000000);
|
1454 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
1455 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1456 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1457 | 76a66253 | j_mayer | 0x00000000);
|
1458 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1459 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1460 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1461 | 76a66253 | j_mayer | 0x00000000);
|
1462 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
1463 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1464 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1465 | 76a66253 | j_mayer | 0x00000000);
|
1466 | 76a66253 | j_mayer | } |
1467 | 76a66253 | j_mayer | |
1468 | 363be49c | j_mayer | /* FSL storage control registers */
|
1469 | a750fc0b | j_mayer | #if defined(TODO)
|
1470 | 363be49c | j_mayer | static void gen_spr_BookE_FSL (CPUPPCState *env) |
1471 | 363be49c | j_mayer | { |
1472 | 363be49c | j_mayer | /* TLB assist registers */
|
1473 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MAS0, "MAS0",
|
1474 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1475 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1476 | 363be49c | j_mayer | 0x00000000);
|
1477 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MAS1, "MAS2",
|
1478 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1479 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1480 | 363be49c | j_mayer | 0x00000000);
|
1481 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MAS2, "MAS3",
|
1482 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1483 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1484 | 363be49c | j_mayer | 0x00000000);
|
1485 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MAS3, "MAS4",
|
1486 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1487 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1488 | 363be49c | j_mayer | 0x00000000);
|
1489 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MAS4, "MAS5",
|
1490 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1491 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1492 | 363be49c | j_mayer | 0x00000000);
|
1493 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MAS6, "MAS6",
|
1494 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1495 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1496 | 363be49c | j_mayer | 0x00000000);
|
1497 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MAS7, "MAS7",
|
1498 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1499 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1500 | 363be49c | j_mayer | 0x00000000);
|
1501 | 363be49c | j_mayer | if (env->nb_pids > 1) { |
1502 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID1, "PID1",
|
1503 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1504 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1505 | 363be49c | j_mayer | 0x00000000);
|
1506 | 363be49c | j_mayer | } |
1507 | 363be49c | j_mayer | if (env->nb_pids > 2) { |
1508 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID2, "PID2",
|
1509 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1510 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1511 | 363be49c | j_mayer | 0x00000000);
|
1512 | 363be49c | j_mayer | } |
1513 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MMUCFG, "MMUCFG",
|
1514 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1515 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1516 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1517 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_MMUCSR0, "MMUCSR0",
|
1518 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1519 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1520 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1521 | 363be49c | j_mayer | switch (env->nb_ways) {
|
1522 | 363be49c | j_mayer | case 4: |
1523 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB3CFG, "TLB3CFG",
|
1524 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1525 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1526 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1527 | 363be49c | j_mayer | /* Fallthru */
|
1528 | 363be49c | j_mayer | case 3: |
1529 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB2CFG, "TLB2CFG",
|
1530 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1531 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1532 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1533 | 363be49c | j_mayer | /* Fallthru */
|
1534 | 363be49c | j_mayer | case 2: |
1535 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
1536 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1537 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1538 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1539 | 363be49c | j_mayer | /* Fallthru */
|
1540 | 363be49c | j_mayer | case 1: |
1541 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
1542 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1543 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1544 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1545 | 363be49c | j_mayer | /* Fallthru */
|
1546 | 363be49c | j_mayer | case 0: |
1547 | 363be49c | j_mayer | default:
|
1548 | 363be49c | j_mayer | break;
|
1549 | 363be49c | j_mayer | } |
1550 | 363be49c | j_mayer | } |
1551 | a750fc0b | j_mayer | #endif
|
1552 | 363be49c | j_mayer | |
1553 | 76a66253 | j_mayer | /* SPR specific to PowerPC 440 implementation */
|
1554 | 76a66253 | j_mayer | static void gen_spr_440 (CPUPPCState *env) |
1555 | 76a66253 | j_mayer | { |
1556 | 76a66253 | j_mayer | /* Cache control */
|
1557 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1558 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV0, "DNV0",
|
1559 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1560 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1561 | 76a66253 | j_mayer | 0x00000000);
|
1562 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1563 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV1, "DNV1",
|
1564 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1565 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1566 | 76a66253 | j_mayer | 0x00000000);
|
1567 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1568 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV2, "DNV2",
|
1569 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1570 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1571 | 76a66253 | j_mayer | 0x00000000);
|
1572 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1573 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV3, "DNV3",
|
1574 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1575 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1576 | 76a66253 | j_mayer | 0x00000000);
|
1577 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1578 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV0, "DTV0",
|
1579 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1580 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1581 | 76a66253 | j_mayer | 0x00000000);
|
1582 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1583 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV1, "DTV1",
|
1584 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1585 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1586 | 76a66253 | j_mayer | 0x00000000);
|
1587 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1588 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV2, "DTV2",
|
1589 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1590 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1591 | 76a66253 | j_mayer | 0x00000000);
|
1592 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1593 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV3, "DTV3",
|
1594 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1595 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1596 | 76a66253 | j_mayer | 0x00000000);
|
1597 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1598 | 76a66253 | j_mayer | spr_register(env, SPR_440_DVLIM, "DVLIM",
|
1599 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1600 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1601 | 76a66253 | j_mayer | 0x00000000);
|
1602 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1603 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV0, "INV0",
|
1604 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1605 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1606 | 76a66253 | j_mayer | 0x00000000);
|
1607 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1608 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV1, "INV1",
|
1609 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1610 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1611 | 76a66253 | j_mayer | 0x00000000);
|
1612 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1613 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV2, "INV2",
|
1614 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1615 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1616 | 76a66253 | j_mayer | 0x00000000);
|
1617 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1618 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV3, "INV3",
|
1619 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1620 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1621 | 76a66253 | j_mayer | 0x00000000);
|
1622 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1623 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV0, "ITV0",
|
1624 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1625 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1626 | 76a66253 | j_mayer | 0x00000000);
|
1627 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1628 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV1, "ITV1",
|
1629 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1630 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1631 | 76a66253 | j_mayer | 0x00000000);
|
1632 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1633 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV2, "ITV2",
|
1634 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1635 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1636 | 76a66253 | j_mayer | 0x00000000);
|
1637 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1638 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV3, "ITV3",
|
1639 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1640 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1641 | 76a66253 | j_mayer | 0x00000000);
|
1642 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1643 | 76a66253 | j_mayer | spr_register(env, SPR_440_IVLIM, "IVLIM",
|
1644 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1645 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1646 | 76a66253 | j_mayer | 0x00000000);
|
1647 | 76a66253 | j_mayer | /* Cache debug */
|
1648 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1649 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRH, "DCDBTRH",
|
1650 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1651 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1652 | 76a66253 | j_mayer | 0x00000000);
|
1653 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1654 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRL, "DCDBTRL",
|
1655 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1656 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1657 | 76a66253 | j_mayer | 0x00000000);
|
1658 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1659 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1660 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1661 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1662 | 76a66253 | j_mayer | 0x00000000);
|
1663 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1664 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRH, "ICDBTRH",
|
1665 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1666 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1667 | 76a66253 | j_mayer | 0x00000000);
|
1668 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1669 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRL, "ICDBTRL",
|
1670 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1671 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1672 | 76a66253 | j_mayer | 0x00000000);
|
1673 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1674 | 76a66253 | j_mayer | spr_register(env, SPR_440_DBDR, "DBDR",
|
1675 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1676 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1677 | 76a66253 | j_mayer | 0x00000000);
|
1678 | 76a66253 | j_mayer | /* Processor control */
|
1679 | 76a66253 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1680 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1681 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1682 | 76a66253 | j_mayer | 0x00000000);
|
1683 | 76a66253 | j_mayer | spr_register(env, SPR_440_RSTCFG, "RSTCFG",
|
1684 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1685 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1686 | 76a66253 | j_mayer | 0x00000000);
|
1687 | 76a66253 | j_mayer | /* Storage control */
|
1688 | 76a66253 | j_mayer | spr_register(env, SPR_440_MMUCR, "MMUCR",
|
1689 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1690 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1691 | 76a66253 | j_mayer | 0x00000000);
|
1692 | 76a66253 | j_mayer | } |
1693 | 76a66253 | j_mayer | |
1694 | 76a66253 | j_mayer | /* SPR shared between PowerPC 40x implementations */
|
1695 | 76a66253 | j_mayer | static void gen_spr_40x (CPUPPCState *env) |
1696 | 76a66253 | j_mayer | { |
1697 | 76a66253 | j_mayer | /* Cache */
|
1698 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1699 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DCCR, "DCCR",
|
1700 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1701 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1702 | 76a66253 | j_mayer | 0x00000000);
|
1703 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1704 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ICCR, "ICCR",
|
1705 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1706 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1707 | 76a66253 | j_mayer | 0x00000000);
|
1708 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1709 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1710 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1711 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1712 | 76a66253 | j_mayer | 0x00000000);
|
1713 | 76a66253 | j_mayer | /* Exception */
|
1714 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DEAR, "DEAR",
|
1715 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1716 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1717 | 76a66253 | j_mayer | 0x00000000);
|
1718 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ESR, "ESR",
|
1719 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1720 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1721 | 76a66253 | j_mayer | 0x00000000);
|
1722 | 76a66253 | j_mayer | spr_register(env, SPR_40x_EVPR, "EVPR",
|
1723 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1724 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1725 | 76a66253 | j_mayer | 0x00000000);
|
1726 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR2, "SRR2",
|
1727 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1728 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1729 | 76a66253 | j_mayer | 0x00000000);
|
1730 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR3, "SRR3",
|
1731 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1732 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1733 | 76a66253 | j_mayer | 0x00000000);
|
1734 | 76a66253 | j_mayer | /* Timers */
|
1735 | 76a66253 | j_mayer | spr_register(env, SPR_40x_PIT, "PIT",
|
1736 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1737 | 76a66253 | j_mayer | &spr_read_40x_pit, &spr_write_40x_pit, |
1738 | 76a66253 | j_mayer | 0x00000000);
|
1739 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TCR, "TCR",
|
1740 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1741 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1742 | 76a66253 | j_mayer | 0x00000000);
|
1743 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TSR, "TSR",
|
1744 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1745 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1746 | 76a66253 | j_mayer | 0x00000000);
|
1747 | 2662a059 | j_mayer | } |
1748 | 2662a059 | j_mayer | |
1749 | 2662a059 | j_mayer | /* SPR specific to PowerPC 405 implementation */
|
1750 | 2662a059 | j_mayer | static void gen_spr_405 (CPUPPCState *env) |
1751 | 2662a059 | j_mayer | { |
1752 | 2662a059 | j_mayer | /* MMU */
|
1753 | 2662a059 | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1754 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1755 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1756 | 76a66253 | j_mayer | 0x00000000);
|
1757 | 2662a059 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1758 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1759 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1760 | 2662a059 | j_mayer | 0x00700000);
|
1761 | 2662a059 | j_mayer | /* Debug interface */
|
1762 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1763 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1764 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1765 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1766 | 76a66253 | j_mayer | 0x00000000);
|
1767 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1768 | 2662a059 | j_mayer | spr_register(env, SPR_405_DBCR1, "DBCR1",
|
1769 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1770 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1771 | 2662a059 | j_mayer | 0x00000000);
|
1772 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1773 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1774 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1775 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1776 | 8ecc7913 | j_mayer | /* Last reset was system reset */
|
1777 | 76a66253 | j_mayer | 0x00000300);
|
1778 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1779 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1780 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1781 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1782 | 76a66253 | j_mayer | 0x00000000);
|
1783 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1784 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1785 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1786 | 76a66253 | j_mayer | 0x00000000);
|
1787 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1788 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC1, "DVC1",
|
1789 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1790 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1791 | 2662a059 | j_mayer | 0x00000000);
|
1792 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1793 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC2, "DVC2",
|
1794 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1795 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1796 | 76a66253 | j_mayer | 0x00000000);
|
1797 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1798 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1799 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1800 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1801 | 76a66253 | j_mayer | 0x00000000);
|
1802 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1803 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1804 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1805 | 76a66253 | j_mayer | 0x00000000);
|
1806 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1807 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC3, "IAC3",
|
1808 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1809 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1810 | 76a66253 | j_mayer | 0x00000000);
|
1811 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1812 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC4, "IAC4",
|
1813 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1814 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1815 | 76a66253 | j_mayer | 0x00000000);
|
1816 | 76a66253 | j_mayer | /* Storage control */
|
1817 | 76a66253 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1818 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1819 | c294fc58 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1820 | 76a66253 | j_mayer | 0x00000000);
|
1821 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1822 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1823 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1824 | 2662a059 | j_mayer | 0x00000000);
|
1825 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1826 | 76a66253 | j_mayer | spr_register(env, SPR_405_SU0R, "SU0R",
|
1827 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1828 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1829 | 76a66253 | j_mayer | 0x00000000);
|
1830 | 76a66253 | j_mayer | /* SPRG */
|
1831 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1832 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1833 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1834 | 76a66253 | j_mayer | 0x00000000);
|
1835 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1836 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1837 | 04f20795 | j_mayer | &spr_read_generic, &spr_write_generic, |
1838 | 76a66253 | j_mayer | 0x00000000);
|
1839 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
1840 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1841 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1842 | 76a66253 | j_mayer | 0x00000000);
|
1843 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1844 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1845 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1846 | 76a66253 | j_mayer | 0x00000000);
|
1847 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
1848 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1849 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1850 | 76a66253 | j_mayer | 0x00000000);
|
1851 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1852 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1853 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1854 | 76a66253 | j_mayer | 0x00000000);
|
1855 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
1856 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1857 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1858 | 76a66253 | j_mayer | 0x00000000);
|
1859 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1860 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1861 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1862 | 76a66253 | j_mayer | 0x00000000);
|
1863 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
1864 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1865 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1866 | 76a66253 | j_mayer | 0x00000000);
|
1867 | 76a66253 | j_mayer | } |
1868 | 76a66253 | j_mayer | |
1869 | 76a66253 | j_mayer | /* SPR shared between PowerPC 401 & 403 implementations */
|
1870 | 76a66253 | j_mayer | static void gen_spr_401_403 (CPUPPCState *env) |
1871 | 76a66253 | j_mayer | { |
1872 | 76a66253 | j_mayer | /* Time base */
|
1873 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBL, "TBL",
|
1874 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1875 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1876 | 76a66253 | j_mayer | 0x00000000);
|
1877 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBL, "TBL",
|
1878 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1879 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbl, |
1880 | 76a66253 | j_mayer | 0x00000000);
|
1881 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBU, "TBU",
|
1882 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1883 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1884 | 76a66253 | j_mayer | 0x00000000);
|
1885 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBU, "TBU",
|
1886 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1887 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbu, |
1888 | 76a66253 | j_mayer | 0x00000000);
|
1889 | 76a66253 | j_mayer | /* Debug */
|
1890 | 76a66253 | j_mayer | /* XXX: not implemented */
|
1891 | 76a66253 | j_mayer | spr_register(env, SPR_403_CDBCR, "CDBCR",
|
1892 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1893 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1894 | 76a66253 | j_mayer | 0x00000000);
|
1895 | 76a66253 | j_mayer | } |
1896 | 76a66253 | j_mayer | |
1897 | 2662a059 | j_mayer | /* SPR specific to PowerPC 401 implementation */
|
1898 | 2662a059 | j_mayer | static void gen_spr_401 (CPUPPCState *env) |
1899 | 2662a059 | j_mayer | { |
1900 | 2662a059 | j_mayer | /* Debug interface */
|
1901 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1902 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR",
|
1903 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1904 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1905 | 2662a059 | j_mayer | 0x00000000);
|
1906 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1907 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1908 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1909 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1910 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1911 | 2662a059 | j_mayer | 0x00000300);
|
1912 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1913 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC",
|
1914 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1915 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1916 | 2662a059 | j_mayer | 0x00000000);
|
1917 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1918 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC",
|
1919 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1920 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1921 | 2662a059 | j_mayer | 0x00000000);
|
1922 | 2662a059 | j_mayer | /* Storage control */
|
1923 | 2662a059 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1924 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1925 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1926 | 2662a059 | j_mayer | 0x00000000);
|
1927 | 2662a059 | j_mayer | } |
1928 | 2662a059 | j_mayer | |
1929 | a750fc0b | j_mayer | static void gen_spr_401x2 (CPUPPCState *env) |
1930 | a750fc0b | j_mayer | { |
1931 | a750fc0b | j_mayer | gen_spr_401(env); |
1932 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1933 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1934 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1935 | a750fc0b | j_mayer | 0x00000000);
|
1936 | a750fc0b | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1937 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1938 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1939 | a750fc0b | j_mayer | 0x00000000);
|
1940 | a750fc0b | j_mayer | } |
1941 | a750fc0b | j_mayer | |
1942 | 76a66253 | j_mayer | /* SPR specific to PowerPC 403 implementation */
|
1943 | 76a66253 | j_mayer | static void gen_spr_403 (CPUPPCState *env) |
1944 | 76a66253 | j_mayer | { |
1945 | 2662a059 | j_mayer | /* Debug interface */
|
1946 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1947 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1948 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1949 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1950 | 2662a059 | j_mayer | 0x00000000);
|
1951 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1952 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1953 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1954 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1955 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1956 | 2662a059 | j_mayer | 0x00000300);
|
1957 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1958 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1959 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1960 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1961 | 2662a059 | j_mayer | 0x00000000);
|
1962 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1963 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1964 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1965 | 2662a059 | j_mayer | 0x00000000);
|
1966 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1967 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1968 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1969 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1970 | 2662a059 | j_mayer | 0x00000000);
|
1971 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1972 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1973 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1974 | 2662a059 | j_mayer | 0x00000000);
|
1975 | a750fc0b | j_mayer | } |
1976 | a750fc0b | j_mayer | |
1977 | a750fc0b | j_mayer | static void gen_spr_403_real (CPUPPCState *env) |
1978 | a750fc0b | j_mayer | { |
1979 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL1, "PBL1",
|
1980 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1981 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1982 | 76a66253 | j_mayer | 0x00000000);
|
1983 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU1, "PBU1",
|
1984 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1985 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1986 | 76a66253 | j_mayer | 0x00000000);
|
1987 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL2, "PBL2",
|
1988 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1989 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1990 | 76a66253 | j_mayer | 0x00000000);
|
1991 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU2, "PBU2",
|
1992 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1993 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1994 | 76a66253 | j_mayer | 0x00000000);
|
1995 | a750fc0b | j_mayer | } |
1996 | a750fc0b | j_mayer | |
1997 | a750fc0b | j_mayer | static void gen_spr_403_mmu (CPUPPCState *env) |
1998 | a750fc0b | j_mayer | { |
1999 | a750fc0b | j_mayer | /* MMU */
|
2000 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
2001 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2002 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2003 | a750fc0b | j_mayer | 0x00000000);
|
2004 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
2005 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2006 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
2007 | 76a66253 | j_mayer | 0x00000000);
|
2008 | 76a66253 | j_mayer | } |
2009 | 76a66253 | j_mayer | |
2010 | 76a66253 | j_mayer | /* SPR specific to PowerPC compression coprocessor extension */
|
2011 | 76a66253 | j_mayer | static void gen_spr_compress (CPUPPCState *env) |
2012 | 76a66253 | j_mayer | { |
2013 | 76a66253 | j_mayer | spr_register(env, SPR_401_SKR, "SKR",
|
2014 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2015 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
2016 | 76a66253 | j_mayer | 0x00000000);
|
2017 | 76a66253 | j_mayer | } |
2018 | a750fc0b | j_mayer | |
2019 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
2020 | a750fc0b | j_mayer | #if defined (TODO)
|
2021 | a750fc0b | j_mayer | /* SPR specific to PowerPC 620 */
|
2022 | a750fc0b | j_mayer | static void gen_spr_620 (CPUPPCState *env) |
2023 | a750fc0b | j_mayer | { |
2024 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR0, "PMR0",
|
2025 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2026 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2027 | a750fc0b | j_mayer | 0x00000000);
|
2028 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR1, "PMR1",
|
2029 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2030 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2031 | a750fc0b | j_mayer | 0x00000000);
|
2032 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR2, "PMR2",
|
2033 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2034 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2035 | a750fc0b | j_mayer | 0x00000000);
|
2036 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR3, "PMR3",
|
2037 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2038 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2039 | a750fc0b | j_mayer | 0x00000000);
|
2040 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR4, "PMR4",
|
2041 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2042 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2043 | a750fc0b | j_mayer | 0x00000000);
|
2044 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR5, "PMR5",
|
2045 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2046 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2047 | a750fc0b | j_mayer | 0x00000000);
|
2048 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR6, "PMR6",
|
2049 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2050 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2051 | a750fc0b | j_mayer | 0x00000000);
|
2052 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR7, "PMR7",
|
2053 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2054 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2055 | a750fc0b | j_mayer | 0x00000000);
|
2056 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR8, "PMR8",
|
2057 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2058 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2059 | a750fc0b | j_mayer | 0x00000000);
|
2060 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR9, "PMR9",
|
2061 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2062 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2063 | a750fc0b | j_mayer | 0x00000000);
|
2064 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRA, "PMR10",
|
2065 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2066 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2067 | a750fc0b | j_mayer | 0x00000000);
|
2068 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRB, "PMR11",
|
2069 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2070 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2071 | a750fc0b | j_mayer | 0x00000000);
|
2072 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRC, "PMR12",
|
2073 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2074 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2075 | a750fc0b | j_mayer | 0x00000000);
|
2076 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRD, "PMR13",
|
2077 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2078 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2079 | a750fc0b | j_mayer | 0x00000000);
|
2080 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRE, "PMR14",
|
2081 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2082 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2083 | a750fc0b | j_mayer | 0x00000000);
|
2084 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRF, "PMR15",
|
2085 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2086 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2087 | a750fc0b | j_mayer | 0x00000000);
|
2088 | a750fc0b | j_mayer | spr_register(env, SPR_620_HID8, "HID8",
|
2089 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2090 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2091 | a750fc0b | j_mayer | 0x00000000);
|
2092 | a750fc0b | j_mayer | spr_register(env, SPR_620_HID9, "HID9",
|
2093 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2094 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2095 | a750fc0b | j_mayer | 0x00000000);
|
2096 | a750fc0b | j_mayer | } |
2097 | 76a66253 | j_mayer | #endif
|
2098 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
2099 | 76a66253 | j_mayer | |
2100 | 2662a059 | j_mayer | // XXX: TODO
|
2101 | 76a66253 | j_mayer | /*
|
2102 | 2662a059 | j_mayer | * AMR => SPR 29 (Power 2.04)
|
2103 | 2662a059 | j_mayer | * CTRL => SPR 136 (Power 2.04)
|
2104 | 2662a059 | j_mayer | * CTRL => SPR 152 (Power 2.04)
|
2105 | 2662a059 | j_mayer | * SCOMC => SPR 276 (64 bits ?)
|
2106 | 2662a059 | j_mayer | * SCOMD => SPR 277 (64 bits ?)
|
2107 | 2662a059 | j_mayer | * ASR => SPR 280 (64 bits)
|
2108 | 2662a059 | j_mayer | * TBU40 => SPR 286 (Power 2.04 hypv)
|
2109 | 2662a059 | j_mayer | * HSPRG0 => SPR 304 (Power 2.04 hypv)
|
2110 | 2662a059 | j_mayer | * HSPRG1 => SPR 305 (Power 2.04 hypv)
|
2111 | 2662a059 | j_mayer | * HDSISR => SPR 306 (Power 2.04 hypv)
|
2112 | 2662a059 | j_mayer | * HDAR => SPR 307 (Power 2.04 hypv)
|
2113 | 2662a059 | j_mayer | * PURR => SPR 309 (Power 2.04 hypv)
|
2114 | 2662a059 | j_mayer | * HDEC => SPR 310 (Power 2.04 hypv)
|
2115 | 2662a059 | j_mayer | * HIOR => SPR 311 (hypv)
|
2116 | 2662a059 | j_mayer | * RMOR => SPR 312 (970)
|
2117 | 2662a059 | j_mayer | * HRMOR => SPR 313 (Power 2.04 hypv)
|
2118 | 2662a059 | j_mayer | * HSRR0 => SPR 314 (Power 2.04 hypv)
|
2119 | 2662a059 | j_mayer | * HSRR1 => SPR 315 (Power 2.04 hypv)
|
2120 | 2662a059 | j_mayer | * LPCR => SPR 316 (970)
|
2121 | 2662a059 | j_mayer | * LPIDR => SPR 317 (970)
|
2122 | 2662a059 | j_mayer | * SPEFSCR => SPR 512 (Power 2.04 emb)
|
2123 | 2662a059 | j_mayer | * ATBL => SPR 526 (Power 2.04 emb)
|
2124 | 2662a059 | j_mayer | * ATBU => SPR 527 (Power 2.04 emb)
|
2125 | 2662a059 | j_mayer | * EPR => SPR 702 (Power 2.04 emb)
|
2126 | 2662a059 | j_mayer | * perf => 768-783 (Power 2.04)
|
2127 | 2662a059 | j_mayer | * perf => 784-799 (Power 2.04)
|
2128 | 2662a059 | j_mayer | * PPR => SPR 896 (Power 2.04)
|
2129 | 2662a059 | j_mayer | * EPLC => SPR 947 (Power 2.04 emb)
|
2130 | 2662a059 | j_mayer | * EPSC => SPR 948 (Power 2.04 emb)
|
2131 | 2662a059 | j_mayer | * DABRX => 1015 (Power 2.04 hypv)
|
2132 | 2662a059 | j_mayer | * FPECR => SPR 1022 (?)
|
2133 | 76a66253 | j_mayer | * ... and more (thermal management, performance counters, ...)
|
2134 | 76a66253 | j_mayer | */
|
2135 | 76a66253 | j_mayer | |
2136 | a750fc0b | j_mayer | /*****************************************************************************/
|
2137 | e1833e1f | j_mayer | /* Exception vectors models */
|
2138 | e1833e1f | j_mayer | static void init_excp_4xx_real (CPUPPCState *env) |
2139 | e1833e1f | j_mayer | { |
2140 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2141 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2142 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2143 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2144 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2145 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2146 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2147 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2148 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2149 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2150 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2151 | e1833e1f | j_mayer | #endif
|
2152 | e1833e1f | j_mayer | } |
2153 | e1833e1f | j_mayer | |
2154 | e1833e1f | j_mayer | static void init_excp_4xx_softmmu (CPUPPCState *env) |
2155 | e1833e1f | j_mayer | { |
2156 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2157 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2158 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2159 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2160 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2161 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2162 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2163 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2164 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2165 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2166 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2167 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2168 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001100;
|
2169 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001200;
|
2170 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2171 | e1833e1f | j_mayer | #endif
|
2172 | e1833e1f | j_mayer | } |
2173 | e1833e1f | j_mayer | |
2174 | e1833e1f | j_mayer | static void init_excp_BookE (CPUPPCState *env) |
2175 | e1833e1f | j_mayer | { |
2176 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2177 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2178 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2179 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2180 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2181 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2182 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2183 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2184 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2185 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2186 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2187 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2188 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2189 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2190 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2191 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2192 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2193 | e1833e1f | j_mayer | env->excp_prefix = 0x00000000;
|
2194 | e1833e1f | j_mayer | env->ivor_mask = 0x0000FFE0;
|
2195 | e1833e1f | j_mayer | env->ivpr_mask = 0xFFFF0000;
|
2196 | e1833e1f | j_mayer | #endif
|
2197 | e1833e1f | j_mayer | } |
2198 | e1833e1f | j_mayer | |
2199 | e1833e1f | j_mayer | static void init_excp_601 (CPUPPCState *env) |
2200 | e1833e1f | j_mayer | { |
2201 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2202 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2203 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2204 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2205 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2206 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2207 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2208 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2209 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2210 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2211 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IO] = 0x00000A00;
|
2212 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2213 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RUNM] = 0x00002000;
|
2214 | e1833e1f | j_mayer | env->excp_prefix = 0xFFF00000;
|
2215 | e1833e1f | j_mayer | #endif
|
2216 | e1833e1f | j_mayer | } |
2217 | e1833e1f | j_mayer | |
2218 | e1833e1f | j_mayer | static void init_excp_602 (CPUPPCState *env) |
2219 | e1833e1f | j_mayer | { |
2220 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2221 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2222 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2223 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2224 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2225 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2226 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2227 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2228 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2229 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2230 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2231 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2232 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2233 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2234 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2235 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2236 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2237 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2238 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001500;
|
2239 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001600;
|
2240 | e1833e1f | j_mayer | env->excp_prefix = 0xFFF00000;
|
2241 | e1833e1f | j_mayer | #endif
|
2242 | e1833e1f | j_mayer | } |
2243 | e1833e1f | j_mayer | |
2244 | e1833e1f | j_mayer | static void init_excp_603 (CPUPPCState *env) |
2245 | e1833e1f | j_mayer | { |
2246 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2247 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2248 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2249 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2250 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2251 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2252 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2253 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2254 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2255 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2256 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2257 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2258 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2259 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2260 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2261 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2262 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2263 | e1833e1f | j_mayer | #endif
|
2264 | e1833e1f | j_mayer | } |
2265 | e1833e1f | j_mayer | |
2266 | e1833e1f | j_mayer | static void init_excp_G2 (CPUPPCState *env) |
2267 | e1833e1f | j_mayer | { |
2268 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2269 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2270 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2271 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2272 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2273 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2274 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2275 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2276 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2277 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2278 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000A00;
|
2279 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2280 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2281 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2282 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2283 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2284 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2285 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2286 | e1833e1f | j_mayer | #endif
|
2287 | e1833e1f | j_mayer | } |
2288 | e1833e1f | j_mayer | |
2289 | e1833e1f | j_mayer | static void init_excp_604 (CPUPPCState *env) |
2290 | e1833e1f | j_mayer | { |
2291 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2292 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2293 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2294 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2295 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2296 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2297 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2298 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2299 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2300 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2301 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2302 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2303 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2304 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2305 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2306 | e1833e1f | j_mayer | #endif
|
2307 | e1833e1f | j_mayer | } |
2308 | e1833e1f | j_mayer | |
2309 | e1833e1f | j_mayer | #if defined (TODO)
|
2310 | e1833e1f | j_mayer | static void init_excp_620 (CPUPPCState *env) |
2311 | e1833e1f | j_mayer | { |
2312 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2313 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2314 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2315 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2316 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2317 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2318 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2319 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2320 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2321 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2322 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2323 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2324 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2325 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2326 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2327 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2328 | e1833e1f | j_mayer | #endif
|
2329 | e1833e1f | j_mayer | } |
2330 | e1833e1f | j_mayer | #endif /* defined (TODO) */ |
2331 | e1833e1f | j_mayer | |
2332 | e1833e1f | j_mayer | static void init_excp_7x0 (CPUPPCState *env) |
2333 | e1833e1f | j_mayer | { |
2334 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2335 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2336 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2337 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2338 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2339 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2340 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2341 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2342 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2343 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2344 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2345 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2346 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2347 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2348 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2349 | e1833e1f | j_mayer | #endif
|
2350 | e1833e1f | j_mayer | } |
2351 | e1833e1f | j_mayer | |
2352 | e1833e1f | j_mayer | static void init_excp_750FX (CPUPPCState *env) |
2353 | e1833e1f | j_mayer | { |
2354 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2355 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2356 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2357 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2358 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2359 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2360 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2361 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2362 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2363 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2364 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2365 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2366 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2367 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2368 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2369 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2370 | e1833e1f | j_mayer | #endif
|
2371 | e1833e1f | j_mayer | } |
2372 | e1833e1f | j_mayer | |
2373 | e1833e1f | j_mayer | static void init_excp_7400 (CPUPPCState *env) |
2374 | e1833e1f | j_mayer | { |
2375 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2376 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2377 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2378 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2379 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2380 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2381 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2382 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2383 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2384 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2385 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2386 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2387 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2388 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
2389 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2390 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2391 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
2392 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2393 | e1833e1f | j_mayer | #endif
|
2394 | e1833e1f | j_mayer | } |
2395 | e1833e1f | j_mayer | |
2396 | e1833e1f | j_mayer | #if defined (TODO)
|
2397 | e1833e1f | j_mayer | static void init_excp_7450 (CPUPPCState *env) |
2398 | e1833e1f | j_mayer | { |
2399 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2400 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2401 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2402 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2403 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2404 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2405 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2406 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2407 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2408 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2409 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2410 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2411 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2412 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
2413 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2414 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2415 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2416 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2417 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2418 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
2419 | e1833e1f | j_mayer | #endif
|
2420 | e1833e1f | j_mayer | } |
2421 | e1833e1f | j_mayer | #endif /* defined (TODO) */ |
2422 | e1833e1f | j_mayer | |
2423 | e1833e1f | j_mayer | #if defined (TARGET_PPC64)
|
2424 | e1833e1f | j_mayer | static void init_excp_970 (CPUPPCState *env) |
2425 | e1833e1f | j_mayer | { |
2426 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2427 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2428 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2429 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2430 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSEG] = 0x00000380;
|
2431 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2432 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISEG] = 0x00000480;
|
2433 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2434 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2435 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2436 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2437 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2438 | e1833e1f | j_mayer | #if defined(TARGET_PPC64H) /* PowerPC 64 with hypervisor mode support */ |
2439 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_HDECR] = 0x00000980;
|
2440 | e1833e1f | j_mayer | #endif
|
2441 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2442 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2443 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2444 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
2445 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2446 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MAINT] = 0x00001600;
|
2447 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001700;
|
2448 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001800;
|
2449 | e1833e1f | j_mayer | #endif
|
2450 | e1833e1f | j_mayer | } |
2451 | e1833e1f | j_mayer | #endif
|
2452 | e1833e1f | j_mayer | |
2453 | e1833e1f | j_mayer | /*****************************************************************************/
|
2454 | a750fc0b | j_mayer | /* PowerPC implementations definitions */
|
2455 | 76a66253 | j_mayer | |
2456 | a750fc0b | j_mayer | /* PowerPC 40x instruction set */
|
2457 | a750fc0b | j_mayer | #define POWERPC_INSNS_EMB (PPC_INSNS_BASE | PPC_EMB_COMMON)
|
2458 | 76a66253 | j_mayer | |
2459 | a750fc0b | j_mayer | /* PowerPC 401 */
|
2460 | a750fc0b | j_mayer | #define POWERPC_INSNS_401 (POWERPC_INSNS_EMB | \
|
2461 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
2462 | a750fc0b | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP | PPC_40x_ICBT) |
2463 | a750fc0b | j_mayer | #define POWERPC_MSRM_401 (0x00000000000FD201ULL) |
2464 | a750fc0b | j_mayer | #define POWERPC_MMU_401 (POWERPC_MMU_REAL_4xx)
|
2465 | a750fc0b | j_mayer | #define POWERPC_EXCP_401 (POWERPC_EXCP_40x)
|
2466 | a750fc0b | j_mayer | #define POWERPC_INPUT_401 (PPC_FLAGS_INPUT_401)
|
2467 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401 (bfd_mach_ppc_403)
|
2468 | 76a66253 | j_mayer | |
2469 | a750fc0b | j_mayer | static void init_proc_401 (CPUPPCState *env) |
2470 | a750fc0b | j_mayer | { |
2471 | a750fc0b | j_mayer | gen_spr_40x(env); |
2472 | a750fc0b | j_mayer | gen_spr_401_403(env); |
2473 | a750fc0b | j_mayer | gen_spr_401(env); |
2474 | a750fc0b | j_mayer | /* Bus access control */
|
2475 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
2476 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2477 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2478 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
2479 | a750fc0b | j_mayer | /* XXX : not implemented */
|
2480 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
2481 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2482 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2483 | a750fc0b | j_mayer | 0x00000000);
|
2484 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
2485 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2486 | a750fc0b | j_mayer | } |
2487 | 76a66253 | j_mayer | |
2488 | a750fc0b | j_mayer | /* PowerPC 401x2 */
|
2489 | a750fc0b | j_mayer | #define POWERPC_INSNS_401x2 (POWERPC_INSNS_EMB | \
|
2490 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
2491 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
2492 | a750fc0b | j_mayer | PPC_CACHE_DCBA | PPC_MFTB | \ |
2493 | a750fc0b | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP | PPC_40x_ICBT) |
2494 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x2 (0x00000000001FD231ULL) |
2495 | a750fc0b | j_mayer | #define POWERPC_MMU_401x2 (POWERPC_MMU_SOFT_4xx_Z)
|
2496 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x2 (POWERPC_EXCP_40x)
|
2497 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x2 (PPC_FLAGS_INPUT_401)
|
2498 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x2 (bfd_mach_ppc_403)
|
2499 | a750fc0b | j_mayer | |
2500 | a750fc0b | j_mayer | static void init_proc_401x2 (CPUPPCState *env) |
2501 | a750fc0b | j_mayer | { |
2502 | a750fc0b | j_mayer | gen_spr_40x(env); |
2503 | a750fc0b | j_mayer | gen_spr_401_403(env); |
2504 | a750fc0b | j_mayer | gen_spr_401x2(env); |
2505 | a750fc0b | j_mayer | gen_spr_compress(env); |
2506 | a750fc0b | j_mayer | /* Bus access control */
|
2507 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
2508 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2509 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2510 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
2511 | a750fc0b | j_mayer | /* XXX : not implemented */
|
2512 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
2513 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2514 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2515 | a750fc0b | j_mayer | 0x00000000);
|
2516 | a750fc0b | j_mayer | /* Memory management */
|
2517 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2518 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2519 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2520 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
2521 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2522 | 76a66253 | j_mayer | } |
2523 | 76a66253 | j_mayer | |
2524 | a750fc0b | j_mayer | /* PowerPC 401x3 */
|
2525 | a750fc0b | j_mayer | #if defined(TODO)
|
2526 | a750fc0b | j_mayer | #define POWERPC_INSNS_401x3 (POWERPC_INSNS_EMB | \
|
2527 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
2528 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
2529 | a750fc0b | j_mayer | PPC_CACHE_DCBA | PPC_MFTB | \ |
2530 | a750fc0b | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP | PPC_40x_ICBT) |
2531 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x3 (0x00000000001FD631ULL) |
2532 | a750fc0b | j_mayer | #define POWERPC_MMU_401x3 (POWERPC_MMU_SOFT_4xx_Z)
|
2533 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x3 (POWERPC_EXCP_40x)
|
2534 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x3 (PPC_FLAGS_INPUT_401)
|
2535 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x3 (bfd_mach_ppc_403)
|
2536 | a750fc0b | j_mayer | |
2537 | e1833e1f | j_mayer | static void init_proc_401x3 (CPUPPCState *env) |
2538 | 76a66253 | j_mayer | { |
2539 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
2540 | 3fc6c082 | bellard | } |
2541 | a750fc0b | j_mayer | #endif /* TODO */ |
2542 | a750fc0b | j_mayer | |
2543 | a750fc0b | j_mayer | /* IOP480 */
|
2544 | a750fc0b | j_mayer | #define POWERPC_INSNS_IOP480 (POWERPC_INSNS_EMB | \
|
2545 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
2546 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
2547 | a750fc0b | j_mayer | PPC_CACHE_DCBA | \ |
2548 | a750fc0b | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP | PPC_40x_ICBT) |
2549 | a750fc0b | j_mayer | #define POWERPC_MSRM_IOP480 (0x00000000001FD231ULL) |
2550 | a750fc0b | j_mayer | #define POWERPC_MMU_IOP480 (POWERPC_MMU_SOFT_4xx_Z)
|
2551 | a750fc0b | j_mayer | #define POWERPC_EXCP_IOP480 (POWERPC_EXCP_40x)
|
2552 | a750fc0b | j_mayer | #define POWERPC_INPUT_IOP480 (PPC_FLAGS_INPUT_401)
|
2553 | 237c0af0 | j_mayer | #define POWERPC_BFDM_IOP480 (bfd_mach_ppc_403)
|
2554 | a750fc0b | j_mayer | |
2555 | a750fc0b | j_mayer | static void init_proc_IOP480 (CPUPPCState *env) |
2556 | 3fc6c082 | bellard | { |
2557 | a750fc0b | j_mayer | gen_spr_40x(env); |
2558 | a750fc0b | j_mayer | gen_spr_401_403(env); |
2559 | a750fc0b | j_mayer | gen_spr_401x2(env); |
2560 | a750fc0b | j_mayer | gen_spr_compress(env); |
2561 | a750fc0b | j_mayer | /* Bus access control */
|
2562 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
2563 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2564 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2565 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
2566 | a750fc0b | j_mayer | /* XXX : not implemented */
|
2567 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
2568 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2569 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2570 | a750fc0b | j_mayer | 0x00000000);
|
2571 | a750fc0b | j_mayer | /* Memory management */
|
2572 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2573 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2574 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2575 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
2576 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2577 | 3fc6c082 | bellard | } |
2578 | 3fc6c082 | bellard | |
2579 | a750fc0b | j_mayer | /* PowerPC 403 */
|
2580 | a750fc0b | j_mayer | #define POWERPC_INSNS_403 (POWERPC_INSNS_EMB | \
|
2581 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
2582 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
2583 | a750fc0b | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP | PPC_40x_ICBT) |
2584 | a750fc0b | j_mayer | #define POWERPC_MSRM_403 (0x000000000007D00DULL) |
2585 | a750fc0b | j_mayer | #define POWERPC_MMU_403 (POWERPC_MMU_REAL_4xx)
|
2586 | a750fc0b | j_mayer | #define POWERPC_EXCP_403 (POWERPC_EXCP_40x)
|
2587 | a750fc0b | j_mayer | #define POWERPC_INPUT_403 (PPC_FLAGS_INPUT_401)
|
2588 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403 (bfd_mach_ppc_403)
|
2589 | a750fc0b | j_mayer | |
2590 | a750fc0b | j_mayer | static void init_proc_403 (CPUPPCState *env) |
2591 | 3fc6c082 | bellard | { |
2592 | a750fc0b | j_mayer | gen_spr_40x(env); |
2593 | a750fc0b | j_mayer | gen_spr_401_403(env); |
2594 | a750fc0b | j_mayer | gen_spr_403(env); |
2595 | a750fc0b | j_mayer | gen_spr_403_real(env); |
2596 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
2597 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2598 | 3fc6c082 | bellard | } |
2599 | 3fc6c082 | bellard | |
2600 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
2601 | a750fc0b | j_mayer | #define POWERPC_INSNS_403GCX (POWERPC_INSNS_EMB | \
|
2602 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
2603 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
2604 | a750fc0b | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP | PPC_40x_ICBT) |
2605 | a750fc0b | j_mayer | #define POWERPC_MSRM_403GCX (0x000000000007D00DULL) |
2606 | a750fc0b | j_mayer | #define POWERPC_MMU_403GCX (POWERPC_MMU_SOFT_4xx_Z)
|
2607 | a750fc0b | j_mayer | #define POWERPC_EXCP_403GCX (POWERPC_EXCP_40x)
|
2608 | a750fc0b | j_mayer | #define POWERPC_INPUT_403GCX (PPC_FLAGS_INPUT_401)
|
2609 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403GCX (bfd_mach_ppc_403)
|
2610 | a750fc0b | j_mayer | |
2611 | a750fc0b | j_mayer | static void init_proc_403GCX (CPUPPCState *env) |
2612 | 3fc6c082 | bellard | { |
2613 | a750fc0b | j_mayer | gen_spr_40x(env); |
2614 | a750fc0b | j_mayer | gen_spr_401_403(env); |
2615 | a750fc0b | j_mayer | gen_spr_403(env); |
2616 | a750fc0b | j_mayer | gen_spr_403_real(env); |
2617 | a750fc0b | j_mayer | gen_spr_403_mmu(env); |
2618 | a750fc0b | j_mayer | /* Bus access control */
|
2619 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
2620 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2621 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2622 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
2623 | a750fc0b | j_mayer | /* XXX : not implemented */
|
2624 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
2625 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2626 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2627 | a750fc0b | j_mayer | 0x00000000);
|
2628 | a750fc0b | j_mayer | /* Memory management */
|
2629 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2630 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2631 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2632 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
2633 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2634 | 3fc6c082 | bellard | } |
2635 | 3fc6c082 | bellard | |
2636 | a750fc0b | j_mayer | /* PowerPC 405 */
|
2637 | a750fc0b | j_mayer | #define POWERPC_INSNS_405 (POWERPC_INSNS_EMB | PPC_MFTB | \
|
2638 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_CACHE_DCBA | \ |
2639 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
2640 | a750fc0b | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP | PPC_40x_ICBT | \ |
2641 | a750fc0b | j_mayer | PPC_405_MAC) |
2642 | a750fc0b | j_mayer | #define POWERPC_MSRM_405 (0x000000000006E630ULL) |
2643 | a750fc0b | j_mayer | #define POWERPC_MMU_405 (POWERPC_MMU_SOFT_4xx)
|
2644 | a750fc0b | j_mayer | #define POWERPC_EXCP_405 (POWERPC_EXCP_40x)
|
2645 | a750fc0b | j_mayer | #define POWERPC_INPUT_405 (PPC_FLAGS_INPUT_405)
|
2646 | 237c0af0 | j_mayer | #define POWERPC_BFDM_405 (bfd_mach_ppc_403)
|
2647 | a750fc0b | j_mayer | |
2648 | a750fc0b | j_mayer | static void init_proc_405 (CPUPPCState *env) |
2649 | 3fc6c082 | bellard | { |
2650 | a750fc0b | j_mayer | /* Time base */
|
2651 | a750fc0b | j_mayer | gen_tbl(env); |
2652 | a750fc0b | j_mayer | gen_spr_40x(env); |
2653 | a750fc0b | j_mayer | gen_spr_405(env); |
2654 | a750fc0b | j_mayer | /* Bus access control */
|
2655 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
2656 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2657 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2658 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
2659 | a750fc0b | j_mayer | /* XXX : not implemented */
|
2660 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
2661 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2662 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2663 | a750fc0b | j_mayer | 0x00000000);
|
2664 | a750fc0b | j_mayer | /* Memory management */
|
2665 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2666 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2667 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2668 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
2669 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
2670 | a750fc0b | j_mayer | ppc405_irq_init(env); |
2671 | 3fc6c082 | bellard | } |
2672 | 3fc6c082 | bellard | |
2673 | a750fc0b | j_mayer | /* PowerPC 440 EP */
|
2674 | a750fc0b | j_mayer | #define POWERPC_INSNS_440EP (POWERPC_INSNS_EMB | \
|
2675 | a750fc0b | j_mayer | PPC_CACHE_DCBA | PPC_MEM_TLBSYNC | \ |
2676 | a750fc0b | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
2677 | a750fc0b | j_mayer | PPC_440_SPEC | PPC_RFMCI) |
2678 | a750fc0b | j_mayer | #define POWERPC_MSRM_440EP (0x000000000006D630ULL) |
2679 | a750fc0b | j_mayer | #define POWERPC_MMU_440EP (POWERPC_MMU_BOOKE)
|
2680 | a750fc0b | j_mayer | #define POWERPC_EXCP_440EP (POWERPC_EXCP_BOOKE)
|
2681 | a750fc0b | j_mayer | #define POWERPC_INPUT_440EP (PPC_FLAGS_INPUT_BookE)
|
2682 | 237c0af0 | j_mayer | #define POWERPC_BFDM_440EP (bfd_mach_ppc_403)
|
2683 | a750fc0b | j_mayer | |
2684 | a750fc0b | j_mayer | static void init_proc_440EP (CPUPPCState *env) |
2685 | 3fc6c082 | bellard | { |
2686 | a750fc0b | j_mayer | /* Time base */
|
2687 | a750fc0b | j_mayer | gen_tbl(env); |
2688 | a750fc0b | j_mayer | gen_spr_BookE(env); |
2689 | a750fc0b | j_mayer | gen_spr_440(env); |
2690 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
2691 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2692 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2693 | a750fc0b | j_mayer | 0x00000000);
|
2694 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
2695 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2696 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2697 | a750fc0b | j_mayer | 0x00000000);
|
2698 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
2699 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2700 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2701 | a750fc0b | j_mayer | 0x00000000);
|
2702 | a750fc0b | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
2703 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2704 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2705 | a750fc0b | j_mayer | 0x00000000);
|
2706 | a750fc0b | j_mayer | /* Memory management */
|
2707 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2708 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2709 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2710 | e1833e1f | j_mayer | init_excp_BookE(env); |
2711 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2712 | 3fc6c082 | bellard | } |
2713 | 3fc6c082 | bellard | |
2714 | a750fc0b | j_mayer | /* PowerPC 440 GP */
|
2715 | a750fc0b | j_mayer | #define POWERPC_INSNS_440GP (POWERPC_INSNS_EMB | \
|
2716 | a750fc0b | j_mayer | PPC_CACHE_DCBA | PPC_MEM_TLBSYNC | \ |
2717 | a750fc0b | j_mayer | PPC_BOOKE | PPC_BOOKE_EXT | PPC_4xx_COMMON | \ |
2718 | a750fc0b | j_mayer | PPC_405_MAC | PPC_440_SPEC) |
2719 | a750fc0b | j_mayer | #define POWERPC_MSRM_440GP (0x000000000006FF30ULL) |
2720 | a750fc0b | j_mayer | #define POWERPC_MMU_440GP (POWERPC_MMU_BOOKE)
|
2721 | a750fc0b | j_mayer | #define POWERPC_EXCP_440GP (POWERPC_EXCP_BOOKE)
|
2722 | a750fc0b | j_mayer | #define POWERPC_INPUT_440GP (PPC_FLAGS_INPUT_BookE)
|
2723 | 237c0af0 | j_mayer | #define POWERPC_BFDM_440GP (bfd_mach_ppc_403)
|
2724 | a750fc0b | j_mayer | |
2725 | a750fc0b | j_mayer | static void init_proc_440GP (CPUPPCState *env) |
2726 | 3fc6c082 | bellard | { |
2727 | a750fc0b | j_mayer | /* Time base */
|
2728 | a750fc0b | j_mayer | gen_tbl(env); |
2729 | a750fc0b | j_mayer | gen_spr_BookE(env); |
2730 | a750fc0b | j_mayer | gen_spr_440(env); |
2731 | a750fc0b | j_mayer | /* Memory management */
|
2732 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2733 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2734 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2735 | e1833e1f | j_mayer | init_excp_BookE(env); |
2736 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2737 | 3fc6c082 | bellard | } |
2738 | 3fc6c082 | bellard | |
2739 | a750fc0b | j_mayer | /* PowerPC 440x4 */
|
2740 | a750fc0b | j_mayer | #if defined(TODO)
|
2741 | a750fc0b | j_mayer | #define POWERPC_INSNS_440x4 (POWERPC_INSNS_EMB | \
|
2742 | a750fc0b | j_mayer | PPC_CACHE_DCBA | PPC_MEM_TLBSYNC | \ |
2743 | a750fc0b | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
2744 | a750fc0b | j_mayer | PPC_440_SPEC) |
2745 | a750fc0b | j_mayer | #define POWERPC_MSRM_440x4 (0x000000000006FF30ULL) |
2746 | a750fc0b | j_mayer | #define POWERPC_MMU_440x4 (POWERPC_MMU_BOOKE)
|
2747 | a750fc0b | j_mayer | #define POWERPC_EXCP_440x4 (POWERPC_EXCP_BOOKE)
|
2748 | a750fc0b | j_mayer | #define POWERPC_INPUT_440x4 (PPC_FLAGS_INPUT_BookE)
|
2749 | 237c0af0 | j_mayer | #define POWERPC_BFDM_440x4 (bfd_mach_ppc_403)
|
2750 | a750fc0b | j_mayer | |
2751 | a750fc0b | j_mayer | static void init_proc_440x4 (CPUPPCState *env) |
2752 | 3fc6c082 | bellard | { |
2753 | a750fc0b | j_mayer | /* Time base */
|
2754 | a750fc0b | j_mayer | gen_tbl(env); |
2755 | a750fc0b | j_mayer | gen_spr_BookE(env); |
2756 | a750fc0b | j_mayer | gen_spr_440(env); |
2757 | a750fc0b | j_mayer | /* Memory management */
|
2758 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2759 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2760 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2761 | e1833e1f | j_mayer | init_excp_BookE(env); |
2762 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2763 | 3fc6c082 | bellard | } |
2764 | a750fc0b | j_mayer | #endif /* TODO */ |
2765 | a750fc0b | j_mayer | |
2766 | a750fc0b | j_mayer | /* PowerPC 440x5 */
|
2767 | a750fc0b | j_mayer | #define POWERPC_INSNS_440x5 (POWERPC_INSNS_EMB | \
|
2768 | a750fc0b | j_mayer | PPC_CACHE_DCBA | PPC_MEM_TLBSYNC | \ |
2769 | a750fc0b | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
2770 | a750fc0b | j_mayer | PPC_440_SPEC | PPC_RFMCI) |
2771 | a750fc0b | j_mayer | #define POWERPC_MSRM_440x5 (0x000000000006FF30ULL) |
2772 | a750fc0b | j_mayer | #define POWERPC_MMU_440x5 (POWERPC_MMU_BOOKE)
|
2773 | a750fc0b | j_mayer | #define POWERPC_EXCP_440x5 (POWERPC_EXCP_BOOKE)
|
2774 | a750fc0b | j_mayer | #define POWERPC_INPUT_440x5 (PPC_FLAGS_INPUT_BookE)
|
2775 | 237c0af0 | j_mayer | #define POWERPC_BFDM_440x5 (bfd_mach_ppc_403)
|
2776 | a750fc0b | j_mayer | |
2777 | a750fc0b | j_mayer | static void init_proc_440x5 (CPUPPCState *env) |
2778 | 3fc6c082 | bellard | { |
2779 | a750fc0b | j_mayer | /* Time base */
|
2780 | a750fc0b | j_mayer | gen_tbl(env); |
2781 | a750fc0b | j_mayer | gen_spr_BookE(env); |
2782 | a750fc0b | j_mayer | gen_spr_440(env); |
2783 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
2784 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2785 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2786 | a750fc0b | j_mayer | 0x00000000);
|
2787 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
2788 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2789 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2790 | a750fc0b | j_mayer | 0x00000000);
|
2791 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
2792 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2793 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2794 | a750fc0b | j_mayer | 0x00000000);
|
2795 | a750fc0b | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
2796 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2797 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2798 | a750fc0b | j_mayer | 0x00000000);
|
2799 | a750fc0b | j_mayer | /* Memory management */
|
2800 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2801 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2802 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2803 | e1833e1f | j_mayer | init_excp_BookE(env); |
2804 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2805 | 3fc6c082 | bellard | } |
2806 | 3fc6c082 | bellard | |
2807 | a750fc0b | j_mayer | /* PowerPC 460 (guessed) */
|
2808 | a750fc0b | j_mayer | #if defined(TODO)
|
2809 | a750fc0b | j_mayer | #define POWERPC_INSNS_460F (POWERPC_INSNS_EMB | \
|
2810 | a750fc0b | j_mayer | PPC_CACHE_DCBA | PPC_MEM_TLBSYNC | \ |
2811 | a750fc0b | j_mayer | PPC_BOOKE | PPC_BOOKE_EXT | PPC_4xx_COMMON | \ |
2812 | a750fc0b | j_mayer | PPC_405_MAC | PPC_440_SPEC | PPC_DCRUX) |
2813 | a750fc0b | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
2814 | a750fc0b | j_mayer | #define POWERPC_MMU_460 (POWERPC_MMU_BOOKE)
|
2815 | a750fc0b | j_mayer | #define POWERPC_EXCP_460 (POWERPC_EXCP_BOOKE)
|
2816 | a750fc0b | j_mayer | #define POWERPC_INPUT_460 (PPC_FLAGS_INPUT_BookE)
|
2817 | 237c0af0 | j_mayer | #define POWERPC_BFDM_460 (bfd_mach_ppc_403)
|
2818 | a750fc0b | j_mayer | |
2819 | a750fc0b | j_mayer | static void init_proc_460 (CPUPPCState *env) |
2820 | 3fc6c082 | bellard | { |
2821 | e1833e1f | j_mayer | /* Time base */
|
2822 | e1833e1f | j_mayer | gen_tbl(env); |
2823 | e1833e1f | j_mayer | gen_spr_BookE(env); |
2824 | e1833e1f | j_mayer | gen_spr_440(env); |
2825 | e1833e1f | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
2826 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2827 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
2828 | e1833e1f | j_mayer | 0x00000000);
|
2829 | e1833e1f | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
2830 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2831 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
2832 | e1833e1f | j_mayer | 0x00000000);
|
2833 | e1833e1f | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
2834 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2835 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
2836 | e1833e1f | j_mayer | 0x00000000);
|
2837 | e1833e1f | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
2838 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2839 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
2840 | e1833e1f | j_mayer | 0x00000000);
|
2841 | e1833e1f | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
2842 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
2843 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
2844 | e1833e1f | j_mayer | 0x00000000);
|
2845 | e1833e1f | j_mayer | /* Memory management */
|
2846 | e1833e1f | j_mayer | env->nb_tlb = 64;
|
2847 | e1833e1f | j_mayer | env->nb_ways = 1;
|
2848 | e1833e1f | j_mayer | env->id_tlbs = 0;
|
2849 | e1833e1f | j_mayer | init_excp_BookE(env); |
2850 | e1833e1f | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2851 | 3fc6c082 | bellard | } |
2852 | a750fc0b | j_mayer | #endif /* TODO */ |
2853 | a750fc0b | j_mayer | |
2854 | a750fc0b | j_mayer | /* PowerPC 460F (guessed) */
|
2855 | a750fc0b | j_mayer | #if defined(TODO)
|
2856 | a750fc0b | j_mayer | #define POWERPC_INSNS_460F (POWERPC_INSNS_EMB | \
|
2857 | a750fc0b | j_mayer | PPC_CACHE_DCBA | PPC_MEM_TLBSYNC | \ |
2858 | a750fc0b | j_mayer | PPC_FLOAT | PPC_FLOAT_FSQRT | PPC_FLOAT_FRES | \ |
2859 | a750fc0b | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_FSEL | \ |
2860 | a750fc0b | j_mayer | PPC_FLOAT_STFIWX | \ |
2861 | a750fc0b | j_mayer | PPC_BOOKE | PPC_BOOKE_EXT | PPC_4xx_COMMON | \ |
2862 | a750fc0b | j_mayer | PPC_405_MAC | PPC_440_SPEC | PPC_DCRUX) |
2863 | a750fc0b | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
2864 | a750fc0b | j_mayer | #define POWERPC_MMU_460F (POWERPC_MMU_BOOKE)
|
2865 | a750fc0b | j_mayer | #define POWERPC_EXCP_460F (POWERPC_EXCP_BOOKE)
|
2866 | a750fc0b | j_mayer | #define POWERPC_INPUT_460F (PPC_FLAGS_INPUT_BookE)
|
2867 | 237c0af0 | j_mayer | #define POWERPC_BFDM_460F (bfd_mach_ppc_403)
|
2868 | a750fc0b | j_mayer | |
2869 | e1833e1f | j_mayer | static void init_proc_460F (CPUPPCState *env) |
2870 | 3fc6c082 | bellard | { |
2871 | a750fc0b | j_mayer | /* Time base */
|
2872 | a750fc0b | j_mayer | gen_tbl(env); |
2873 | a750fc0b | j_mayer | gen_spr_BookE(env); |
2874 | a750fc0b | j_mayer | gen_spr_440(env); |
2875 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
2876 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2877 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2878 | a750fc0b | j_mayer | 0x00000000);
|
2879 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
2880 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2881 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2882 | a750fc0b | j_mayer | 0x00000000);
|
2883 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
2884 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2885 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2886 | a750fc0b | j_mayer | 0x00000000);
|
2887 | a750fc0b | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
2888 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2889 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2890 | a750fc0b | j_mayer | 0x00000000);
|
2891 | a750fc0b | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
2892 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2893 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2894 | a750fc0b | j_mayer | 0x00000000);
|
2895 | a750fc0b | j_mayer | /* Memory management */
|
2896 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2897 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2898 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2899 | e1833e1f | j_mayer | init_excp_BookE(env); |
2900 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2901 | 3fc6c082 | bellard | } |
2902 | a750fc0b | j_mayer | #endif /* TODO */ |
2903 | a750fc0b | j_mayer | |
2904 | a750fc0b | j_mayer | /* Generic BookE PowerPC */
|
2905 | a750fc0b | j_mayer | #if defined(TODO)
|
2906 | a750fc0b | j_mayer | #define POWERPC_INSNS_BookE (POWERPC_INSNS_EMB | \
|
2907 | a750fc0b | j_mayer | PPC_MEM_EIEIO | PPC_MEM_TLBSYNC | \ |
2908 | a750fc0b | j_mayer | PPC_CACHE_DCBA | \ |
2909 | a750fc0b | j_mayer | PPC_FLOAT | PPC_FLOAT_FSQRT | \ |
2910 | a750fc0b | j_mayer | PPC_FLOAT_FRES | PPC_FLOAT_FRSQRTE | \ |
2911 | a750fc0b | j_mayer | PPC_FLOAT_FSEL | PPC_FLOAT_STFIW | \ |
2912 | a750fc0b | j_mayer | PPC_BOOKE) |
2913 | a750fc0b | j_mayer | #define POWERPC_MSRM_BookE (0x000000000006D630ULL) |
2914 | a750fc0b | j_mayer | #define POWERPC_MMU_BookE (POWERPC_MMU_BOOKE)
|
2915 | a750fc0b | j_mayer | #define POWERPC_EXCP_BookE (POWERPC_EXCP_BOOKE)
|
2916 | a750fc0b | j_mayer | #define POWERPC_INPUT_BookE (PPC_FLAGS_INPUT_BookE)
|
2917 | 237c0af0 | j_mayer | #define POWERPC_BFDM_BookE (bfd_mach_ppc_403)
|
2918 | a750fc0b | j_mayer | |
2919 | a750fc0b | j_mayer | static void init_proc_BookE (CPUPPCState *env) |
2920 | 3fc6c082 | bellard | { |
2921 | e1833e1f | j_mayer | init_excp_BookE(env); |
2922 | 3fc6c082 | bellard | } |
2923 | a750fc0b | j_mayer | #endif /* TODO */ |
2924 | a750fc0b | j_mayer | |
2925 | a750fc0b | j_mayer | /* e200 core */
|
2926 | a750fc0b | j_mayer | #if defined(TODO)
|
2927 | a750fc0b | j_mayer | #endif /* TODO */ |
2928 | a750fc0b | j_mayer | |
2929 | a750fc0b | j_mayer | /* e300 core */
|
2930 | a750fc0b | j_mayer | #if defined(TODO)
|
2931 | a750fc0b | j_mayer | #endif /* TODO */ |
2932 | a750fc0b | j_mayer | |
2933 | a750fc0b | j_mayer | /* e500 core */
|
2934 | a750fc0b | j_mayer | #if defined(TODO)
|
2935 | a750fc0b | j_mayer | #define POWERPC_INSNS_e500 (POWERPC_INSNS_EMB | \
|
2936 | a750fc0b | j_mayer | PPC_MEM_EIEIO | PPC_MEM_TLBSYNC | \ |
2937 | a750fc0b | j_mayer | PPC_CACHE_DCBA | \ |
2938 | a750fc0b | j_mayer | PPC_BOOKE | PPC_E500_VECTOR) |
2939 | a750fc0b | j_mayer | #define POWERPC_MMU_e500 (POWERPC_MMU_SOFT_4xx)
|
2940 | a750fc0b | j_mayer | #define POWERPC_EXCP_e500 (POWERPC_EXCP_40x)
|
2941 | a750fc0b | j_mayer | #define POWERPC_INPUT_e500 (PPC_FLAGS_INPUT_BookE)
|
2942 | 237c0af0 | j_mayer | #define POWERPC_BFDM_e500 (bfd_mach_ppc_403)
|
2943 | a750fc0b | j_mayer | |
2944 | a750fc0b | j_mayer | static void init_proc_e500 (CPUPPCState *env) |
2945 | 3fc6c082 | bellard | { |
2946 | a750fc0b | j_mayer | /* Time base */
|
2947 | a750fc0b | j_mayer | gen_tbl(env); |
2948 | a750fc0b | j_mayer | gen_spr_BookE(env); |
2949 | a750fc0b | j_mayer | /* Memory management */
|
2950 | a750fc0b | j_mayer | gen_spr_BookE_FSL(env); |
2951 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
2952 | a750fc0b | j_mayer | env->nb_ways = 1;
|
2953 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
2954 | e1833e1f | j_mayer | init_excp_BookE(env); |
2955 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
2956 | 3fc6c082 | bellard | } |
2957 | a750fc0b | j_mayer | #endif /* TODO */ |
2958 | a750fc0b | j_mayer | |
2959 | a750fc0b | j_mayer | /* e600 core */
|
2960 | a750fc0b | j_mayer | #if defined(TODO)
|
2961 | a750fc0b | j_mayer | #endif /* TODO */ |
2962 | a750fc0b | j_mayer | |
2963 | a750fc0b | j_mayer | /* Non-embedded PowerPC */
|
2964 | a750fc0b | j_mayer | /* Base instructions set for all 6xx/7xx/74xx/970 PowerPC */
|
2965 | a750fc0b | j_mayer | #define POWERPC_INSNS_6xx (PPC_INSNS_BASE | PPC_FLOAT | PPC_MEM_SYNC | \
|
2966 | a750fc0b | j_mayer | PPC_MEM_EIEIO | PPC_SEGMENT | PPC_MEM_TLBIE) |
2967 | a750fc0b | j_mayer | /* Instructions common to all 6xx/7xx/74xx/970 PowerPC except 601 & 602 */
|
2968 | a750fc0b | j_mayer | #define POWERPC_INSNS_WORKS (POWERPC_INSNS_6xx | PPC_FLOAT_FSQRT | \
|
2969 | a750fc0b | j_mayer | PPC_FLOAT_FRES | PPC_FLOAT_FRSQRTE | \ |
2970 | a750fc0b | j_mayer | PPC_FLOAT_FSEL | PPC_FLOAT_STFIWX | \ |
2971 | a750fc0b | j_mayer | PPC_MEM_TLBSYNC | PPC_MFTB) |
2972 | a750fc0b | j_mayer | |
2973 | a750fc0b | j_mayer | /* POWER : same as 601, without mfmsr, mfsr */
|
2974 | a750fc0b | j_mayer | #if defined(TODO)
|
2975 | a750fc0b | j_mayer | #define POWERPC_INSNS_POWER (XXX_TODO)
|
2976 | a750fc0b | j_mayer | /* POWER RSC (from RAD6000) */
|
2977 | a750fc0b | j_mayer | #define POWERPC_MSRM_POWER (0x00000000FEF0ULL) |
2978 | a750fc0b | j_mayer | #endif /* TODO */ |
2979 | a750fc0b | j_mayer | |
2980 | a750fc0b | j_mayer | /* PowerPC 601 */
|
2981 | a750fc0b | j_mayer | #define POWERPC_INSNS_601 (POWERPC_INSNS_6xx | PPC_EXTERN | PPC_POWER_BR)
|
2982 | a750fc0b | j_mayer | #define POWERPC_MSRM_601 (0x000000000000FE70ULL) |
2983 | a750fc0b | j_mayer | //#define POWERPC_MMU_601 (POWERPC_MMU_601)
|
2984 | a750fc0b | j_mayer | //#define POWERPC_EXCP_601 (POWERPC_EXCP_601)
|
2985 | a750fc0b | j_mayer | #define POWERPC_INPUT_601 (PPC_FLAGS_INPUT_6xx)
|
2986 | 237c0af0 | j_mayer | #define POWERPC_BFDM_601 (bfd_mach_ppc_601)
|
2987 | a750fc0b | j_mayer | |
2988 | a750fc0b | j_mayer | static void init_proc_601 (CPUPPCState *env) |
2989 | 3fc6c082 | bellard | { |
2990 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
2991 | a750fc0b | j_mayer | gen_spr_601(env); |
2992 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
2993 | a750fc0b | j_mayer | /* XXX : not implemented */
|
2994 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
2995 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2996 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2997 | a750fc0b | j_mayer | 0x00000000);
|
2998 | a750fc0b | j_mayer | /* XXX : not implemented */
|
2999 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3000 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3001 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3002 | a750fc0b | j_mayer | 0x00000000);
|
3003 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3004 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID2, "HID2",
|
3005 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3006 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3007 | a750fc0b | j_mayer | 0x00000000);
|
3008 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3009 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID5, "HID5",
|
3010 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3011 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3012 | a750fc0b | j_mayer | 0x00000000);
|
3013 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3014 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID15, "HID15",
|
3015 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3016 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3017 | a750fc0b | j_mayer | 0x00000000);
|
3018 | a750fc0b | j_mayer | /* Memory management */
|
3019 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3020 | a750fc0b | j_mayer | env->nb_ways = 2;
|
3021 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3022 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3023 | e1833e1f | j_mayer | init_excp_601(env); |
3024 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3025 | 3fc6c082 | bellard | } |
3026 | 3fc6c082 | bellard | |
3027 | a750fc0b | j_mayer | /* PowerPC 602 */
|
3028 | a750fc0b | j_mayer | #define POWERPC_INSNS_602 (POWERPC_INSNS_6xx | PPC_MFTB | \
|
3029 | a750fc0b | j_mayer | PPC_FLOAT_FRES | PPC_FLOAT_FRSQRTE | \ |
3030 | a750fc0b | j_mayer | PPC_FLOAT_FSEL | PPC_FLOAT_STFIWX | \ |
3031 | a750fc0b | j_mayer | PPC_6xx_TLB | PPC_MEM_TLBSYNC | PPC_602_SPEC) |
3032 | a750fc0b | j_mayer | #define POWERPC_MSRM_602 (0x000000000033FF73ULL) |
3033 | a750fc0b | j_mayer | #define POWERPC_MMU_602 (POWERPC_MMU_SOFT_6xx)
|
3034 | a750fc0b | j_mayer | //#define POWERPC_EXCP_602 (POWERPC_EXCP_602)
|
3035 | a750fc0b | j_mayer | #define POWERPC_INPUT_602 (PPC_FLAGS_INPUT_6xx)
|
3036 | 237c0af0 | j_mayer | #define POWERPC_BFDM_602 (bfd_mach_ppc_602)
|
3037 | a750fc0b | j_mayer | |
3038 | a750fc0b | j_mayer | static void init_proc_602 (CPUPPCState *env) |
3039 | 3fc6c082 | bellard | { |
3040 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3041 | a750fc0b | j_mayer | gen_spr_602(env); |
3042 | a750fc0b | j_mayer | /* Time base */
|
3043 | a750fc0b | j_mayer | gen_tbl(env); |
3044 | a750fc0b | j_mayer | /* hardware implementation registers */
|
3045 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3046 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3047 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3048 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3049 | a750fc0b | j_mayer | 0x00000000);
|
3050 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3051 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3052 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3053 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3054 | a750fc0b | j_mayer | 0x00000000);
|
3055 | a750fc0b | j_mayer | /* Memory management */
|
3056 | a750fc0b | j_mayer | gen_low_BATs(env); |
3057 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3058 | e1833e1f | j_mayer | init_excp_602(env); |
3059 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3060 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3061 | a750fc0b | j_mayer | } |
3062 | 3fc6c082 | bellard | |
3063 | a750fc0b | j_mayer | /* PowerPC 603 */
|
3064 | a750fc0b | j_mayer | #define POWERPC_INSNS_603 (POWERPC_INSNS_WORKS | PPC_6xx_TLB | PPC_EXTERN)
|
3065 | a750fc0b | j_mayer | #define POWERPC_MSRM_603 (0x000000000001FF73ULL) |
3066 | a750fc0b | j_mayer | #define POWERPC_MMU_603 (POWERPC_MMU_SOFT_6xx)
|
3067 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603 (POWERPC_EXCP_603)
|
3068 | a750fc0b | j_mayer | #define POWERPC_INPUT_603 (PPC_FLAGS_INPUT_6xx)
|
3069 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603 (bfd_mach_ppc_603)
|
3070 | a750fc0b | j_mayer | |
3071 | a750fc0b | j_mayer | static void init_proc_603 (CPUPPCState *env) |
3072 | a750fc0b | j_mayer | { |
3073 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3074 | a750fc0b | j_mayer | gen_spr_603(env); |
3075 | a750fc0b | j_mayer | /* Time base */
|
3076 | a750fc0b | j_mayer | gen_tbl(env); |
3077 | a750fc0b | j_mayer | /* hardware implementation registers */
|
3078 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3079 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3080 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3081 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3082 | a750fc0b | j_mayer | 0x00000000);
|
3083 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3084 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3085 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3086 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3087 | a750fc0b | j_mayer | 0x00000000);
|
3088 | a750fc0b | j_mayer | /* Memory management */
|
3089 | a750fc0b | j_mayer | gen_low_BATs(env); |
3090 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3091 | e1833e1f | j_mayer | init_excp_603(env); |
3092 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3093 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3094 | 3fc6c082 | bellard | } |
3095 | 3fc6c082 | bellard | |
3096 | a750fc0b | j_mayer | /* PowerPC 603e */
|
3097 | a750fc0b | j_mayer | #define POWERPC_INSNS_603E (POWERPC_INSNS_WORKS | PPC_6xx_TLB | PPC_EXTERN)
|
3098 | a750fc0b | j_mayer | #define POWERPC_MSRM_603E (0x000000000007FF73ULL) |
3099 | a750fc0b | j_mayer | #define POWERPC_MMU_603E (POWERPC_MMU_SOFT_6xx)
|
3100 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603E (POWERPC_EXCP_603E)
|
3101 | a750fc0b | j_mayer | #define POWERPC_INPUT_603E (PPC_FLAGS_INPUT_6xx)
|
3102 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603E (bfd_mach_ppc_ec603e)
|
3103 | a750fc0b | j_mayer | |
3104 | a750fc0b | j_mayer | static void init_proc_603E (CPUPPCState *env) |
3105 | a750fc0b | j_mayer | { |
3106 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3107 | a750fc0b | j_mayer | gen_spr_603(env); |
3108 | a750fc0b | j_mayer | /* Time base */
|
3109 | a750fc0b | j_mayer | gen_tbl(env); |
3110 | a750fc0b | j_mayer | /* hardware implementation registers */
|
3111 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3112 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3113 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3114 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3115 | a750fc0b | j_mayer | 0x00000000);
|
3116 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3117 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3118 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3119 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3120 | a750fc0b | j_mayer | 0x00000000);
|
3121 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3122 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
3123 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3124 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3125 | a750fc0b | j_mayer | 0x00000000);
|
3126 | a750fc0b | j_mayer | /* Memory management */
|
3127 | a750fc0b | j_mayer | gen_low_BATs(env); |
3128 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3129 | e1833e1f | j_mayer | init_excp_603(env); |
3130 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3131 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3132 | a750fc0b | j_mayer | } |
3133 | a750fc0b | j_mayer | |
3134 | a750fc0b | j_mayer | /* PowerPC G2 */
|
3135 | a750fc0b | j_mayer | #define POWERPC_INSNS_G2 (POWERPC_INSNS_WORKS | PPC_6xx_TLB | PPC_EXTERN)
|
3136 | a750fc0b | j_mayer | #define POWERPC_MSRM_G2 (0x000000000006FFF2ULL) |
3137 | a750fc0b | j_mayer | #define POWERPC_MMU_G2 (POWERPC_MMU_SOFT_6xx)
|
3138 | a750fc0b | j_mayer | //#define POWERPC_EXCP_G2 (POWERPC_EXCP_G2)
|
3139 | a750fc0b | j_mayer | #define POWERPC_INPUT_G2 (PPC_FLAGS_INPUT_6xx)
|
3140 | 237c0af0 | j_mayer | #define POWERPC_BFDM_G2 (bfd_mach_ppc_ec603e)
|
3141 | a750fc0b | j_mayer | |
3142 | a750fc0b | j_mayer | static void init_proc_G2 (CPUPPCState *env) |
3143 | a750fc0b | j_mayer | { |
3144 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3145 | a750fc0b | j_mayer | gen_spr_G2_755(env); |
3146 | a750fc0b | j_mayer | gen_spr_G2(env); |
3147 | a750fc0b | j_mayer | /* Time base */
|
3148 | a750fc0b | j_mayer | gen_tbl(env); |
3149 | a750fc0b | j_mayer | /* Hardware implementation register */
|
3150 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3151 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3152 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3153 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3154 | a750fc0b | j_mayer | 0x00000000);
|
3155 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3156 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3157 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3158 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3159 | a750fc0b | j_mayer | 0x00000000);
|
3160 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3161 | a750fc0b | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3162 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3163 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3164 | a750fc0b | j_mayer | 0x00000000);
|
3165 | a750fc0b | j_mayer | /* Memory management */
|
3166 | a750fc0b | j_mayer | gen_low_BATs(env); |
3167 | a750fc0b | j_mayer | gen_high_BATs(env); |
3168 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3169 | e1833e1f | j_mayer | init_excp_G2(env); |
3170 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3171 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3172 | a750fc0b | j_mayer | } |
3173 | a750fc0b | j_mayer | |
3174 | a750fc0b | j_mayer | /* PowerPC G2LE */
|
3175 | a750fc0b | j_mayer | #define POWERPC_INSNS_G2LE (POWERPC_INSNS_WORKS | PPC_6xx_TLB | PPC_EXTERN)
|
3176 | a750fc0b | j_mayer | #define POWERPC_MSRM_G2LE (0x000000000007FFF3ULL) |
3177 | a750fc0b | j_mayer | #define POWERPC_MMU_G2LE (POWERPC_MMU_SOFT_6xx)
|
3178 | a750fc0b | j_mayer | #define POWERPC_EXCP_G2LE (POWERPC_EXCP_G2)
|
3179 | a750fc0b | j_mayer | #define POWERPC_INPUT_G2LE (PPC_FLAGS_INPUT_6xx)
|
3180 | 237c0af0 | j_mayer | #define POWERPC_BFDM_G2LE (bfd_mach_ppc_ec603e)
|
3181 | a750fc0b | j_mayer | |
3182 | a750fc0b | j_mayer | static void init_proc_G2LE (CPUPPCState *env) |
3183 | a750fc0b | j_mayer | { |
3184 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3185 | a750fc0b | j_mayer | gen_spr_G2_755(env); |
3186 | a750fc0b | j_mayer | gen_spr_G2(env); |
3187 | a750fc0b | j_mayer | /* Time base */
|
3188 | a750fc0b | j_mayer | gen_tbl(env); |
3189 | a750fc0b | j_mayer | /* Hardware implementation register */
|
3190 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3191 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3192 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3193 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3194 | a750fc0b | j_mayer | 0x00000000);
|
3195 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3196 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3197 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3198 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3199 | a750fc0b | j_mayer | 0x00000000);
|
3200 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3201 | a750fc0b | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3202 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3203 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3204 | a750fc0b | j_mayer | 0x00000000);
|
3205 | a750fc0b | j_mayer | /* Memory management */
|
3206 | a750fc0b | j_mayer | gen_low_BATs(env); |
3207 | a750fc0b | j_mayer | gen_high_BATs(env); |
3208 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3209 | e1833e1f | j_mayer | init_excp_G2(env); |
3210 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3211 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3212 | a750fc0b | j_mayer | } |
3213 | a750fc0b | j_mayer | |
3214 | a750fc0b | j_mayer | /* PowerPC 604 */
|
3215 | a750fc0b | j_mayer | #define POWERPC_INSNS_604 (POWERPC_INSNS_WORKS | PPC_EXTERN)
|
3216 | a750fc0b | j_mayer | #define POWERPC_MSRM_604 (0x000000000005FF77ULL) |
3217 | a750fc0b | j_mayer | #define POWERPC_MMU_604 (POWERPC_MMU_32B)
|
3218 | a750fc0b | j_mayer | //#define POWERPC_EXCP_604 (POWERPC_EXCP_604)
|
3219 | a750fc0b | j_mayer | #define POWERPC_INPUT_604 (PPC_FLAGS_INPUT_6xx)
|
3220 | 237c0af0 | j_mayer | #define POWERPC_BFDM_604 (bfd_mach_ppc_604)
|
3221 | a750fc0b | j_mayer | |
3222 | a750fc0b | j_mayer | static void init_proc_604 (CPUPPCState *env) |
3223 | a750fc0b | j_mayer | { |
3224 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3225 | a750fc0b | j_mayer | gen_spr_604(env); |
3226 | a750fc0b | j_mayer | /* Time base */
|
3227 | a750fc0b | j_mayer | gen_tbl(env); |
3228 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
3229 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3230 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3231 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3232 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3233 | a750fc0b | j_mayer | 0x00000000);
|
3234 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3235 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3236 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3237 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3238 | a750fc0b | j_mayer | 0x00000000);
|
3239 | a750fc0b | j_mayer | /* Memory management */
|
3240 | a750fc0b | j_mayer | gen_low_BATs(env); |
3241 | e1833e1f | j_mayer | init_excp_604(env); |
3242 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3243 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3244 | a750fc0b | j_mayer | } |
3245 | a750fc0b | j_mayer | |
3246 | a750fc0b | j_mayer | /* PowerPC 740/750 (aka G3) */
|
3247 | a750fc0b | j_mayer | #define POWERPC_INSNS_7x0 (POWERPC_INSNS_WORKS | PPC_EXTERN)
|
3248 | a750fc0b | j_mayer | #define POWERPC_MSRM_7x0 (0x000000000007FF77ULL) |
3249 | a750fc0b | j_mayer | #define POWERPC_MMU_7x0 (POWERPC_MMU_32B)
|
3250 | a750fc0b | j_mayer | //#define POWERPC_EXCP_7x0 (POWERPC_EXCP_7x0)
|
3251 | a750fc0b | j_mayer | #define POWERPC_INPUT_7x0 (PPC_FLAGS_INPUT_6xx)
|
3252 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7x0 (bfd_mach_ppc_750)
|
3253 | a750fc0b | j_mayer | |
3254 | a750fc0b | j_mayer | static void init_proc_7x0 (CPUPPCState *env) |
3255 | a750fc0b | j_mayer | { |
3256 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3257 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3258 | a750fc0b | j_mayer | /* Time base */
|
3259 | a750fc0b | j_mayer | gen_tbl(env); |
3260 | a750fc0b | j_mayer | /* Thermal management */
|
3261 | a750fc0b | j_mayer | gen_spr_thrm(env); |
3262 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
3263 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3264 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3265 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3266 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3267 | a750fc0b | j_mayer | 0x00000000);
|
3268 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3269 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3270 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3271 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3272 | a750fc0b | j_mayer | 0x00000000);
|
3273 | a750fc0b | j_mayer | /* Memory management */
|
3274 | a750fc0b | j_mayer | gen_low_BATs(env); |
3275 | e1833e1f | j_mayer | init_excp_7x0(env); |
3276 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3277 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3278 | a750fc0b | j_mayer | } |
3279 | a750fc0b | j_mayer | |
3280 | a750fc0b | j_mayer | /* PowerPC 750FX/GX */
|
3281 | a750fc0b | j_mayer | #define POWERPC_INSNS_750fx (POWERPC_INSNS_WORKS | PPC_EXTERN)
|
3282 | a750fc0b | j_mayer | #define POWERPC_MSRM_750fx (0x000000000007FF77ULL) |
3283 | a750fc0b | j_mayer | #define POWERPC_MMU_750fx (POWERPC_MMU_32B)
|
3284 | a750fc0b | j_mayer | #define POWERPC_EXCP_750fx (POWERPC_EXCP_7x0)
|
3285 | a750fc0b | j_mayer | #define POWERPC_INPUT_750fx (PPC_FLAGS_INPUT_6xx)
|
3286 | 237c0af0 | j_mayer | #define POWERPC_BFDM_750fx (bfd_mach_ppc_750)
|
3287 | a750fc0b | j_mayer | |
3288 | a750fc0b | j_mayer | static void init_proc_750fx (CPUPPCState *env) |
3289 | a750fc0b | j_mayer | { |
3290 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3291 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3292 | a750fc0b | j_mayer | /* Time base */
|
3293 | a750fc0b | j_mayer | gen_tbl(env); |
3294 | a750fc0b | j_mayer | /* Thermal management */
|
3295 | a750fc0b | j_mayer | gen_spr_thrm(env); |
3296 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
3297 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3298 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3299 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3300 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3301 | a750fc0b | j_mayer | 0x00000000);
|
3302 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3303 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3304 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3305 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3306 | a750fc0b | j_mayer | 0x00000000);
|
3307 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3308 | a750fc0b | j_mayer | spr_register(env, SPR_750_HID2, "HID2",
|
3309 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3310 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3311 | a750fc0b | j_mayer | 0x00000000);
|
3312 | a750fc0b | j_mayer | /* Memory management */
|
3313 | a750fc0b | j_mayer | gen_low_BATs(env); |
3314 | a750fc0b | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
3315 | a750fc0b | j_mayer | gen_high_BATs(env); |
3316 | e1833e1f | j_mayer | init_excp_750FX(env); |
3317 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3318 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3319 | a750fc0b | j_mayer | } |
3320 | a750fc0b | j_mayer | |
3321 | a750fc0b | j_mayer | /* PowerPC 745/755 */
|
3322 | a750fc0b | j_mayer | #define POWERPC_INSNS_7x5 (POWERPC_INSNS_WORKS | PPC_EXTERN | PPC_6xx_TLB)
|
3323 | a750fc0b | j_mayer | #define POWERPC_MSRM_7x5 (0x000000000007FF77ULL) |
3324 | a750fc0b | j_mayer | #define POWERPC_MMU_7x5 (POWERPC_MMU_SOFT_6xx)
|
3325 | a750fc0b | j_mayer | //#define POWERPC_EXCP_7x5 (POWERPC_EXCP_7x5)
|
3326 | a750fc0b | j_mayer | #define POWERPC_INPUT_7x5 (PPC_FLAGS_INPUT_6xx)
|
3327 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7x5 (bfd_mach_ppc_750)
|
3328 | a750fc0b | j_mayer | |
3329 | a750fc0b | j_mayer | static void init_proc_7x5 (CPUPPCState *env) |
3330 | a750fc0b | j_mayer | { |
3331 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3332 | a750fc0b | j_mayer | gen_spr_G2_755(env); |
3333 | a750fc0b | j_mayer | /* Time base */
|
3334 | a750fc0b | j_mayer | gen_tbl(env); |
3335 | a750fc0b | j_mayer | /* L2 cache control */
|
3336 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3337 | a750fc0b | j_mayer | spr_register(env, SPR_ICTC, "ICTC",
|
3338 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3339 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3340 | a750fc0b | j_mayer | 0x00000000);
|
3341 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3342 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
3343 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3344 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3345 | a750fc0b | j_mayer | 0x00000000);
|
3346 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
3347 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3348 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3349 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3350 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3351 | a750fc0b | j_mayer | 0x00000000);
|
3352 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3353 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3354 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3355 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3356 | a750fc0b | j_mayer | 0x00000000);
|
3357 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3358 | a750fc0b | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3359 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3360 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3361 | a750fc0b | j_mayer | 0x00000000);
|
3362 | a750fc0b | j_mayer | /* Memory management */
|
3363 | a750fc0b | j_mayer | gen_low_BATs(env); |
3364 | a750fc0b | j_mayer | gen_high_BATs(env); |
3365 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3366 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3367 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3368 | a750fc0b | j_mayer | } |
3369 | a750fc0b | j_mayer | |
3370 | a750fc0b | j_mayer | /* PowerPC 7400 (aka G4) */
|
3371 | a750fc0b | j_mayer | #define POWERPC_INSNS_7400 (POWERPC_INSNS_WORKS | PPC_CACHE_DCBA | \
|
3372 | a750fc0b | j_mayer | PPC_EXTERN | PPC_MEM_TLBIA | \ |
3373 | a750fc0b | j_mayer | PPC_ALTIVEC) |
3374 | a750fc0b | j_mayer | #define POWERPC_MSRM_7400 (0x000000000205FF77ULL) |
3375 | a750fc0b | j_mayer | #define POWERPC_MMU_7400 (POWERPC_MMU_32B)
|
3376 | a750fc0b | j_mayer | #define POWERPC_EXCP_7400 (POWERPC_EXCP_74xx)
|
3377 | a750fc0b | j_mayer | #define POWERPC_INPUT_7400 (PPC_FLAGS_INPUT_6xx)
|
3378 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7400 (bfd_mach_ppc_7400)
|
3379 | a750fc0b | j_mayer | |
3380 | a750fc0b | j_mayer | static void init_proc_7400 (CPUPPCState *env) |
3381 | a750fc0b | j_mayer | { |
3382 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3383 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3384 | a750fc0b | j_mayer | /* Time base */
|
3385 | a750fc0b | j_mayer | gen_tbl(env); |
3386 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
3387 | a750fc0b | j_mayer | gen_spr_74xx(env); |
3388 | a750fc0b | j_mayer | /* Thermal management */
|
3389 | a750fc0b | j_mayer | gen_spr_thrm(env); |
3390 | a750fc0b | j_mayer | /* Memory management */
|
3391 | a750fc0b | j_mayer | gen_low_BATs(env); |
3392 | e1833e1f | j_mayer | init_excp_7400(env); |
3393 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3394 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3395 | a750fc0b | j_mayer | } |
3396 | a750fc0b | j_mayer | |
3397 | a750fc0b | j_mayer | /* PowerPC 7410 (aka G4) */
|
3398 | a750fc0b | j_mayer | #define POWERPC_INSNS_7410 (POWERPC_INSNS_WORKS | PPC_CACHE_DCBA | \
|
3399 | a750fc0b | j_mayer | PPC_EXTERN | PPC_MEM_TLBIA | \ |
3400 | a750fc0b | j_mayer | PPC_ALTIVEC) |
3401 | a750fc0b | j_mayer | #define POWERPC_MSRM_7410 (0x000000000205FF77ULL) |
3402 | a750fc0b | j_mayer | #define POWERPC_MMU_7410 (POWERPC_MMU_32B)
|
3403 | a750fc0b | j_mayer | #define POWERPC_EXCP_7410 (POWERPC_EXCP_74xx)
|
3404 | a750fc0b | j_mayer | #define POWERPC_INPUT_7410 (PPC_FLAGS_INPUT_6xx)
|
3405 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7410 (bfd_mach_ppc_7400)
|
3406 | a750fc0b | j_mayer | |
3407 | a750fc0b | j_mayer | static void init_proc_7410 (CPUPPCState *env) |
3408 | a750fc0b | j_mayer | { |
3409 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3410 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3411 | a750fc0b | j_mayer | /* Time base */
|
3412 | a750fc0b | j_mayer | gen_tbl(env); |
3413 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
3414 | a750fc0b | j_mayer | gen_spr_74xx(env); |
3415 | a750fc0b | j_mayer | /* Thermal management */
|
3416 | a750fc0b | j_mayer | gen_spr_thrm(env); |
3417 | a750fc0b | j_mayer | /* L2PMCR */
|
3418 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3419 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
3420 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3421 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3422 | a750fc0b | j_mayer | 0x00000000);
|
3423 | a750fc0b | j_mayer | /* LDSTDB */
|
3424 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3425 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTDB, "LDSTDB",
|
3426 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3427 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3428 | a750fc0b | j_mayer | 0x00000000);
|
3429 | a750fc0b | j_mayer | /* Memory management */
|
3430 | a750fc0b | j_mayer | gen_low_BATs(env); |
3431 | e1833e1f | j_mayer | init_excp_7400(env); |
3432 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3433 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3434 | a750fc0b | j_mayer | } |
3435 | a750fc0b | j_mayer | |
3436 | a750fc0b | j_mayer | /* PowerPC 7440 (aka G4) */
|
3437 | a750fc0b | j_mayer | #if defined (TODO)
|
3438 | a750fc0b | j_mayer | #define POWERPC_INSNS_7440 (POWERPC_INSNS_WORKS | PPC_CACHE_DCBA | \
|
3439 | a750fc0b | j_mayer | PPC_EXTERN | PPC_74xx_TLB | PPC_MEM_TLBIA | \ |
3440 | a750fc0b | j_mayer | PPC_ALTIVEC) |
3441 | a750fc0b | j_mayer | #define POWERPC_MSRM_7440 (0x000000000205FF77ULL) |
3442 | a750fc0b | j_mayer | #define POWERPC_MMU_7440 (POWERPC_MMU_SOFT_74xx)
|
3443 | a750fc0b | j_mayer | #define POWERPC_EXCP_7440 (POWERPC_EXCP_74xx)
|
3444 | a750fc0b | j_mayer | #define POWERPC_INPUT_7440 (PPC_FLAGS_INPUT_6xx)
|
3445 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7440 (bfd_mach_ppc_7400)
|
3446 | a750fc0b | j_mayer | |
3447 | a750fc0b | j_mayer | static void init_proc_7440 (CPUPPCState *env) |
3448 | a750fc0b | j_mayer | { |
3449 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3450 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3451 | a750fc0b | j_mayer | /* Time base */
|
3452 | a750fc0b | j_mayer | gen_tbl(env); |
3453 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
3454 | a750fc0b | j_mayer | gen_spr_74xx(env); |
3455 | a750fc0b | j_mayer | /* LDSTCR */
|
3456 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3457 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
3458 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3459 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3460 | a750fc0b | j_mayer | 0x00000000);
|
3461 | a750fc0b | j_mayer | /* ICTRL */
|
3462 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3463 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
3464 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3465 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3466 | a750fc0b | j_mayer | 0x00000000);
|
3467 | a750fc0b | j_mayer | /* MSSSR0 */
|
3468 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
3469 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3470 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3471 | a750fc0b | j_mayer | 0x00000000);
|
3472 | a750fc0b | j_mayer | /* PMC */
|
3473 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3474 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
3475 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3476 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3477 | a750fc0b | j_mayer | 0x00000000);
|
3478 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
3479 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3480 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3481 | a750fc0b | j_mayer | 0x00000000);
|
3482 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
3483 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3484 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3485 | a750fc0b | j_mayer | 0x00000000);
|
3486 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
3487 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3488 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3489 | a750fc0b | j_mayer | 0x00000000);
|
3490 | a750fc0b | j_mayer | /* Memory management */
|
3491 | a750fc0b | j_mayer | gen_low_BATs(env); |
3492 | a750fc0b | j_mayer | gen_74xx_soft_tlb(env); |
3493 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3494 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3495 | a750fc0b | j_mayer | } |
3496 | a750fc0b | j_mayer | #endif /* TODO */ |
3497 | a750fc0b | j_mayer | |
3498 | a750fc0b | j_mayer | /* PowerPC 7450 (aka G4) */
|
3499 | a750fc0b | j_mayer | #if defined (TODO)
|
3500 | a750fc0b | j_mayer | #define POWERPC_INSNS_7450 (POWERPC_INSNS_WORKS | PPC_CACHE_DCBA | \
|
3501 | a750fc0b | j_mayer | PPC_EXTERN | PPC_74xx_TLB | PPC_MEM_TLBIA | \ |
3502 | a750fc0b | j_mayer | PPC_ALTIVEC) |
3503 | a750fc0b | j_mayer | #define POWERPC_MSRM_7450 (0x000000000205FF77ULL) |
3504 | a750fc0b | j_mayer | #define POWERPC_MMU_7450 (POWERPC_MMU_SOFT_74xx)
|
3505 | a750fc0b | j_mayer | #define POWERPC_EXCP_7450 (POWERPC_EXCP_74xx)
|
3506 | a750fc0b | j_mayer | #define POWERPC_INPUT_7450 (PPC_FLAGS_INPUT_6xx)
|
3507 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7450 (bfd_mach_ppc_7400)
|
3508 | a750fc0b | j_mayer | |
3509 | a750fc0b | j_mayer | static void init_proc_7450 (CPUPPCState *env) |
3510 | a750fc0b | j_mayer | { |
3511 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3512 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3513 | a750fc0b | j_mayer | /* Time base */
|
3514 | a750fc0b | j_mayer | gen_tbl(env); |
3515 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
3516 | a750fc0b | j_mayer | gen_spr_74xx(env); |
3517 | a750fc0b | j_mayer | /* Level 3 cache control */
|
3518 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
3519 | a750fc0b | j_mayer | /* LDSTCR */
|
3520 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3521 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
3522 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3523 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3524 | a750fc0b | j_mayer | 0x00000000);
|
3525 | a750fc0b | j_mayer | /* ICTRL */
|
3526 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3527 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
3528 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3529 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3530 | a750fc0b | j_mayer | 0x00000000);
|
3531 | a750fc0b | j_mayer | /* MSSSR0 */
|
3532 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
3533 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3534 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3535 | a750fc0b | j_mayer | 0x00000000);
|
3536 | a750fc0b | j_mayer | /* PMC */
|
3537 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3538 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
3539 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3540 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3541 | a750fc0b | j_mayer | 0x00000000);
|
3542 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
3543 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3544 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3545 | a750fc0b | j_mayer | 0x00000000);
|
3546 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
3547 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3548 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3549 | a750fc0b | j_mayer | 0x00000000);
|
3550 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
3551 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3552 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3553 | a750fc0b | j_mayer | 0x00000000);
|
3554 | a750fc0b | j_mayer | /* Memory management */
|
3555 | a750fc0b | j_mayer | gen_low_BATs(env); |
3556 | a750fc0b | j_mayer | gen_74xx_soft_tlb(env); |
3557 | e1833e1f | j_mayer | init_excp_7450(env); |
3558 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3559 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3560 | a750fc0b | j_mayer | } |
3561 | a750fc0b | j_mayer | #endif /* TODO */ |
3562 | a750fc0b | j_mayer | |
3563 | a750fc0b | j_mayer | /* PowerPC 7445 (aka G4) */
|
3564 | a750fc0b | j_mayer | #if defined (TODO)
|
3565 | a750fc0b | j_mayer | #define POWERPC_INSNS_7445 (POWERPC_INSNS_WORKS | PPC_CACHE_DCBA | \
|
3566 | a750fc0b | j_mayer | PPC_EXTERN | PPC_74xx_TLB | PPC_MEM_TLBIA | \ |
3567 | a750fc0b | j_mayer | PPC_ALTIVEC) |
3568 | a750fc0b | j_mayer | #define POWERPC_MSRM_7445 (0x000000000205FF77ULL) |
3569 | a750fc0b | j_mayer | #define POWERPC_MMU_7445 (POWERPC_MMU_SOFT_74xx)
|
3570 | a750fc0b | j_mayer | #define POWERPC_EXCP_7445 (POWERPC_EXCP_74xx)
|
3571 | a750fc0b | j_mayer | #define POWERPC_INPUT_7445 (PPC_FLAGS_INPUT_6xx)
|
3572 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7445 (bfd_mach_ppc_7400)
|
3573 | a750fc0b | j_mayer | |
3574 | a750fc0b | j_mayer | static void init_proc_7445 (CPUPPCState *env) |
3575 | a750fc0b | j_mayer | { |
3576 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3577 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3578 | a750fc0b | j_mayer | /* Time base */
|
3579 | a750fc0b | j_mayer | gen_tbl(env); |
3580 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
3581 | a750fc0b | j_mayer | gen_spr_74xx(env); |
3582 | a750fc0b | j_mayer | /* LDSTCR */
|
3583 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3584 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
3585 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3586 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3587 | a750fc0b | j_mayer | 0x00000000);
|
3588 | a750fc0b | j_mayer | /* ICTRL */
|
3589 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3590 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
3591 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3592 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3593 | a750fc0b | j_mayer | 0x00000000);
|
3594 | a750fc0b | j_mayer | /* MSSSR0 */
|
3595 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
3596 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3597 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3598 | a750fc0b | j_mayer | 0x00000000);
|
3599 | a750fc0b | j_mayer | /* PMC */
|
3600 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3601 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
3602 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3603 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3604 | a750fc0b | j_mayer | 0x00000000);
|
3605 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
3606 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3607 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3608 | a750fc0b | j_mayer | 0x00000000);
|
3609 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
3610 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3611 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3612 | a750fc0b | j_mayer | 0x00000000);
|
3613 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
3614 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3615 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3616 | a750fc0b | j_mayer | 0x00000000);
|
3617 | a750fc0b | j_mayer | /* SPRGs */
|
3618 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
3619 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3620 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3621 | a750fc0b | j_mayer | 0x00000000);
|
3622 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
3623 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3624 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3625 | a750fc0b | j_mayer | 0x00000000);
|
3626 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
3627 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3628 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3629 | a750fc0b | j_mayer | 0x00000000);
|
3630 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
3631 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3632 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3633 | a750fc0b | j_mayer | 0x00000000);
|
3634 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
3635 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3636 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3637 | a750fc0b | j_mayer | 0x00000000);
|
3638 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
3639 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3640 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3641 | a750fc0b | j_mayer | 0x00000000);
|
3642 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
3643 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3644 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3645 | a750fc0b | j_mayer | 0x00000000);
|
3646 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
3647 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3648 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3649 | a750fc0b | j_mayer | 0x00000000);
|
3650 | a750fc0b | j_mayer | /* Memory management */
|
3651 | a750fc0b | j_mayer | gen_low_BATs(env); |
3652 | a750fc0b | j_mayer | gen_high_BATs(env); |
3653 | a750fc0b | j_mayer | gen_74xx_soft_tlb(env); |
3654 | e1833e1f | j_mayer | init_excp_7450(env); |
3655 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3656 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3657 | a750fc0b | j_mayer | } |
3658 | a750fc0b | j_mayer | #endif /* TODO */ |
3659 | a750fc0b | j_mayer | |
3660 | a750fc0b | j_mayer | /* PowerPC 7455 (aka G4) */
|
3661 | a750fc0b | j_mayer | #if defined (TODO)
|
3662 | a750fc0b | j_mayer | #define POWERPC_INSNS_7455 (POWERPC_INSNS_WORKS | PPC_CACHE_DCBA | \
|
3663 | a750fc0b | j_mayer | PPC_EXTERN | PPC_74xx_TLB | PPC_MEM_TLBIA | \ |
3664 | a750fc0b | j_mayer | PPC_ALTIVEC) |
3665 | a750fc0b | j_mayer | #define POWERPC_MSRM_7455 (0x000000000205FF77ULL) |
3666 | a750fc0b | j_mayer | #define POWERPC_MMU_7455 (POWERPC_MMU_SOFT_74xx)
|
3667 | a750fc0b | j_mayer | #define POWERPC_EXCP_7455 (POWERPC_EXCP_74xx)
|
3668 | a750fc0b | j_mayer | #define POWERPC_INPUT_7455 (PPC_FLAGS_INPUT_6xx)
|
3669 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7455 (bfd_mach_ppc_7400)
|
3670 | a750fc0b | j_mayer | |
3671 | a750fc0b | j_mayer | static void init_proc_7455 (CPUPPCState *env) |
3672 | a750fc0b | j_mayer | { |
3673 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3674 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3675 | a750fc0b | j_mayer | /* Time base */
|
3676 | a750fc0b | j_mayer | gen_tbl(env); |
3677 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
3678 | a750fc0b | j_mayer | gen_spr_74xx(env); |
3679 | a750fc0b | j_mayer | /* Level 3 cache control */
|
3680 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
3681 | a750fc0b | j_mayer | /* LDSTCR */
|
3682 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3683 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
3684 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3685 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3686 | a750fc0b | j_mayer | 0x00000000);
|
3687 | a750fc0b | j_mayer | /* ICTRL */
|
3688 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3689 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
3690 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3691 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3692 | a750fc0b | j_mayer | 0x00000000);
|
3693 | a750fc0b | j_mayer | /* MSSSR0 */
|
3694 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
3695 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3696 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3697 | a750fc0b | j_mayer | 0x00000000);
|
3698 | a750fc0b | j_mayer | /* PMC */
|
3699 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3700 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
3701 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3702 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3703 | a750fc0b | j_mayer | 0x00000000);
|
3704 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
3705 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3706 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3707 | a750fc0b | j_mayer | 0x00000000);
|
3708 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
3709 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3710 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3711 | a750fc0b | j_mayer | 0x00000000);
|
3712 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
3713 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3714 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3715 | a750fc0b | j_mayer | 0x00000000);
|
3716 | a750fc0b | j_mayer | /* SPRGs */
|
3717 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
3718 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3719 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3720 | a750fc0b | j_mayer | 0x00000000);
|
3721 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
3722 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3723 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3724 | a750fc0b | j_mayer | 0x00000000);
|
3725 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
3726 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3727 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3728 | a750fc0b | j_mayer | 0x00000000);
|
3729 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
3730 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3731 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3732 | a750fc0b | j_mayer | 0x00000000);
|
3733 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
3734 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3735 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3736 | a750fc0b | j_mayer | 0x00000000);
|
3737 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
3738 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3739 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3740 | a750fc0b | j_mayer | 0x00000000);
|
3741 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
3742 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3743 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3744 | a750fc0b | j_mayer | 0x00000000);
|
3745 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
3746 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3747 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
3748 | a750fc0b | j_mayer | 0x00000000);
|
3749 | a750fc0b | j_mayer | /* Memory management */
|
3750 | a750fc0b | j_mayer | gen_low_BATs(env); |
3751 | a750fc0b | j_mayer | gen_high_BATs(env); |
3752 | a750fc0b | j_mayer | gen_74xx_soft_tlb(env); |
3753 | e1833e1f | j_mayer | init_excp_7450(env); |
3754 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3755 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
3756 | a750fc0b | j_mayer | } |
3757 | a750fc0b | j_mayer | #endif /* TODO */ |
3758 | a750fc0b | j_mayer | |
3759 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
3760 | a750fc0b | j_mayer | /* PowerPC 970 */
|
3761 | a750fc0b | j_mayer | #define POWERPC_INSNS_970 (POWERPC_INSNS_WORKS | PPC_FLOAT_FSQRT | \
|
3762 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
3763 | a750fc0b | j_mayer | PPC_64_BRIDGE | PPC_SLBI) |
3764 | a750fc0b | j_mayer | #define POWERPC_MSRM_970 (0x900000000204FF36ULL) |
3765 | a750fc0b | j_mayer | #define POWERPC_MMU_970 (POWERPC_MMU_64BRIDGE)
|
3766 | a750fc0b | j_mayer | //#define POWERPC_EXCP_970 (POWERPC_EXCP_970)
|
3767 | a750fc0b | j_mayer | #define POWERPC_INPUT_970 (PPC_FLAGS_INPUT_970)
|
3768 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970 (bfd_mach_ppc64)
|
3769 | a750fc0b | j_mayer | |
3770 | a750fc0b | j_mayer | static void init_proc_970 (CPUPPCState *env) |
3771 | a750fc0b | j_mayer | { |
3772 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3773 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3774 | a750fc0b | j_mayer | /* Time base */
|
3775 | a750fc0b | j_mayer | gen_tbl(env); |
3776 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
3777 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3778 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3779 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3780 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3781 | a750fc0b | j_mayer | 0x00000000);
|
3782 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3783 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3784 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3785 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3786 | a750fc0b | j_mayer | 0x00000000);
|
3787 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3788 | a750fc0b | j_mayer | spr_register(env, SPR_750_HID2, "HID2",
|
3789 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3790 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3791 | a750fc0b | j_mayer | 0x00000000);
|
3792 | a750fc0b | j_mayer | /* Memory management */
|
3793 | a750fc0b | j_mayer | /* XXX: not correct */
|
3794 | a750fc0b | j_mayer | gen_low_BATs(env); |
3795 | a750fc0b | j_mayer | #if 0 // TODO
|
3796 | a750fc0b | j_mayer | env->slb_nr = 32;
|
3797 | a750fc0b | j_mayer | #endif
|
3798 | e1833e1f | j_mayer | init_excp_970(env); |
3799 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3800 | a750fc0b | j_mayer | ppc970_irq_init(env); |
3801 | a750fc0b | j_mayer | } |
3802 | a750fc0b | j_mayer | |
3803 | a750fc0b | j_mayer | /* PowerPC 970FX (aka G5) */
|
3804 | a750fc0b | j_mayer | #define POWERPC_INSNS_970FX (POWERPC_INSNS_WORKS | PPC_FLOAT_FSQRT | \
|
3805 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
3806 | a750fc0b | j_mayer | PPC_64_BRIDGE | PPC_SLBI) |
3807 | a750fc0b | j_mayer | #define POWERPC_MSRM_970FX (0x800000000204FF36ULL) |
3808 | a750fc0b | j_mayer | #define POWERPC_MMU_970FX (POWERPC_MMU_64BRIDGE)
|
3809 | a750fc0b | j_mayer | #define POWERPC_EXCP_970FX (POWERPC_EXCP_970)
|
3810 | a750fc0b | j_mayer | #define POWERPC_INPUT_970FX (PPC_FLAGS_INPUT_970)
|
3811 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970FX (bfd_mach_ppc64)
|
3812 | a750fc0b | j_mayer | |
3813 | a750fc0b | j_mayer | static void init_proc_970FX (CPUPPCState *env) |
3814 | a750fc0b | j_mayer | { |
3815 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3816 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3817 | a750fc0b | j_mayer | /* Time base */
|
3818 | a750fc0b | j_mayer | gen_tbl(env); |
3819 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
3820 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3821 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3822 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3823 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3824 | a750fc0b | j_mayer | 0x00000000);
|
3825 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3826 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3827 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3828 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3829 | a750fc0b | j_mayer | 0x00000000);
|
3830 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3831 | a750fc0b | j_mayer | spr_register(env, SPR_750_HID2, "HID2",
|
3832 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3833 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3834 | a750fc0b | j_mayer | 0x00000000);
|
3835 | a750fc0b | j_mayer | /* Memory management */
|
3836 | a750fc0b | j_mayer | /* XXX: not correct */
|
3837 | a750fc0b | j_mayer | gen_low_BATs(env); |
3838 | a750fc0b | j_mayer | #if 0 // TODO
|
3839 | a750fc0b | j_mayer | env->slb_nr = 32;
|
3840 | a750fc0b | j_mayer | #endif
|
3841 | e1833e1f | j_mayer | init_excp_970(env); |
3842 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3843 | a750fc0b | j_mayer | ppc970_irq_init(env); |
3844 | a750fc0b | j_mayer | } |
3845 | a750fc0b | j_mayer | |
3846 | a750fc0b | j_mayer | /* PowerPC 970 GX */
|
3847 | a750fc0b | j_mayer | #define POWERPC_INSNS_970GX (POWERPC_INSNS_WORKS | PPC_FLOAT_FSQRT | \
|
3848 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
3849 | a750fc0b | j_mayer | PPC_64_BRIDGE | PPC_SLBI) |
3850 | a750fc0b | j_mayer | #define POWERPC_MSRM_970GX (0x800000000204FF36ULL) |
3851 | a750fc0b | j_mayer | #define POWERPC_MMU_970GX (POWERPC_MMU_64BRIDGE)
|
3852 | a750fc0b | j_mayer | #define POWERPC_EXCP_970GX (POWERPC_EXCP_970)
|
3853 | a750fc0b | j_mayer | #define POWERPC_INPUT_970GX (PPC_FLAGS_INPUT_970)
|
3854 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970GX (bfd_mach_ppc64)
|
3855 | a750fc0b | j_mayer | |
3856 | a750fc0b | j_mayer | static void init_proc_970GX (CPUPPCState *env) |
3857 | a750fc0b | j_mayer | { |
3858 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3859 | a750fc0b | j_mayer | gen_spr_7xx(env); |
3860 | a750fc0b | j_mayer | /* Time base */
|
3861 | a750fc0b | j_mayer | gen_tbl(env); |
3862 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
3863 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3864 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3865 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3866 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3867 | a750fc0b | j_mayer | 0x00000000);
|
3868 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3869 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3870 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3871 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3872 | a750fc0b | j_mayer | 0x00000000);
|
3873 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3874 | a750fc0b | j_mayer | spr_register(env, SPR_750_HID2, "HID2",
|
3875 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3876 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3877 | a750fc0b | j_mayer | 0x00000000);
|
3878 | a750fc0b | j_mayer | /* Memory management */
|
3879 | a750fc0b | j_mayer | /* XXX: not correct */
|
3880 | a750fc0b | j_mayer | gen_low_BATs(env); |
3881 | a750fc0b | j_mayer | #if 0 // TODO
|
3882 | a750fc0b | j_mayer | env->slb_nr = 32;
|
3883 | a750fc0b | j_mayer | #endif
|
3884 | e1833e1f | j_mayer | init_excp_970(env); |
3885 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
3886 | a750fc0b | j_mayer | ppc970_irq_init(env); |
3887 | a750fc0b | j_mayer | } |
3888 | a750fc0b | j_mayer | |
3889 | a750fc0b | j_mayer | /* PowerPC 620 */
|
3890 | a750fc0b | j_mayer | #if defined (TODO)
|
3891 | a750fc0b | j_mayer | #define POWERPC_INSNS_620 (POWERPC_INSNS_WORKS | PPC_FLOAT_FSQRT | \
|
3892 | a750fc0b | j_mayer | PPC_64B | PPC_SLBI) |
3893 | a750fc0b | j_mayer | #define POWERPC_MSRM_620 (0x800000000005FF73ULL) |
3894 | a750fc0b | j_mayer | #define POWERPC_MMU_620 (POWERPC_MMU_64B)
|
3895 | a750fc0b | j_mayer | #define POWERPC_EXCP_620 (POWERPC_EXCP_970)
|
3896 | a750fc0b | j_mayer | #define POWERPC_INPUT_620 (PPC_FLAGS_INPUT_970)
|
3897 | 237c0af0 | j_mayer | #define POWERPC_BFDM_620 (bfd_mach_ppc64)
|
3898 | a750fc0b | j_mayer | |
3899 | a750fc0b | j_mayer | static void init_proc_620 (CPUPPCState *env) |
3900 | a750fc0b | j_mayer | { |
3901 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
3902 | a750fc0b | j_mayer | gen_spr_620(env); |
3903 | a750fc0b | j_mayer | /* Time base */
|
3904 | a750fc0b | j_mayer | gen_tbl(env); |
3905 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
3906 | a750fc0b | j_mayer | /* XXX : not implemented */
|
3907 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3908 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3909 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3910 | a750fc0b | j_mayer | 0x00000000);
|
3911 | a750fc0b | j_mayer | /* Memory management */
|
3912 | a750fc0b | j_mayer | gen_low_BATs(env); |
3913 | a750fc0b | j_mayer | gen_high_BATs(env); |
3914 | e1833e1f | j_mayer | init_excp_620(env); |
3915 | a750fc0b | j_mayer | /* XXX: TODO: initialize internal interrupt controller */
|
3916 | a750fc0b | j_mayer | } |
3917 | a750fc0b | j_mayer | #endif /* TODO */ |
3918 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
3919 | a750fc0b | j_mayer | |
3920 | a750fc0b | j_mayer | /* Default 32 bits PowerPC target will be 604 */
|
3921 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC32 CPU_POWERPC_604
|
3922 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC32 POWERPC_INSNS_604
|
3923 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC32 POWERPC_MSRM_604
|
3924 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC32 POWERPC_MMU_604
|
3925 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC32 POWERPC_EXCP_604
|
3926 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC32 POWERPC_INPUT_604
|
3927 | a750fc0b | j_mayer | #define init_proc_PPC32 init_proc_604
|
3928 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC32 POWERPC_BFDM_604
|
3929 | a750fc0b | j_mayer | |
3930 | a750fc0b | j_mayer | /* Default 64 bits PowerPC target will be 970 FX */
|
3931 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC64 CPU_POWERPC_970FX
|
3932 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC64 POWERPC_INSNS_970FX
|
3933 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC64 POWERPC_MSRM_970FX
|
3934 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC64 POWERPC_MMU_970FX
|
3935 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC64 POWERPC_EXCP_970FX
|
3936 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC64 POWERPC_INPUT_970FX
|
3937 | a750fc0b | j_mayer | #define init_proc_PPC64 init_proc_970FX
|
3938 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC64 POWERPC_BFDM_970FX
|
3939 | a750fc0b | j_mayer | |
3940 | a750fc0b | j_mayer | /* Default PowerPC target will be PowerPC 32 */
|
3941 | a750fc0b | j_mayer | #if defined (TARGET_PPC64) && 0 // XXX: TODO |
3942 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64
|
3943 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64
|
3944 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64
|
3945 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64
|
3946 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64
|
3947 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC64
|
3948 | d12f4c38 | j_mayer | #define init_proc_DEFAULT init_proc_PPC64
|
3949 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC64
|
3950 | a750fc0b | j_mayer | #else
|
3951 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32
|
3952 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32
|
3953 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32
|
3954 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32
|
3955 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
|
3956 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC32
|
3957 | d12f4c38 | j_mayer | #define init_proc_DEFAULT init_proc_PPC32
|
3958 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC32
|
3959 | a750fc0b | j_mayer | #endif
|
3960 | a750fc0b | j_mayer | |
3961 | a750fc0b | j_mayer | /*****************************************************************************/
|
3962 | a750fc0b | j_mayer | /* PVR definitions for most known PowerPC */
|
3963 | a750fc0b | j_mayer | enum {
|
3964 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
3965 | a750fc0b | j_mayer | /* Generic PowerPC 401 */
|
3966 | a750fc0b | j_mayer | #define CPU_POWERPC_401 CPU_POWERPC_401G2
|
3967 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
3968 | a750fc0b | j_mayer | CPU_POWERPC_401A1 = 0x00210000,
|
3969 | a750fc0b | j_mayer | CPU_POWERPC_401B2 = 0x00220000,
|
3970 | a750fc0b | j_mayer | #if 0
|
3971 | a750fc0b | j_mayer | CPU_POWERPC_401B3 = xxx,
|
3972 | a750fc0b | j_mayer | #endif
|
3973 | a750fc0b | j_mayer | CPU_POWERPC_401C2 = 0x00230000,
|
3974 | a750fc0b | j_mayer | CPU_POWERPC_401D2 = 0x00240000,
|
3975 | a750fc0b | j_mayer | CPU_POWERPC_401E2 = 0x00250000,
|
3976 | a750fc0b | j_mayer | CPU_POWERPC_401F2 = 0x00260000,
|
3977 | a750fc0b | j_mayer | CPU_POWERPC_401G2 = 0x00270000,
|
3978 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
3979 | a750fc0b | j_mayer | #if 0
|
3980 | a750fc0b | j_mayer | CPU_POWERPC_401GF = xxx,
|
3981 | a750fc0b | j_mayer | #endif
|
3982 | a750fc0b | j_mayer | #define CPU_POWERPC_IOP480 CPU_POWERPC_401B2
|
3983 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
3984 | a750fc0b | j_mayer | CPU_POWERPC_COBRA = 0x10100000, /* XXX: 405 ? */ |
3985 | a750fc0b | j_mayer | #if 0
|
3986 | a750fc0b | j_mayer | CPU_POWERPC_XIPCHIP = xxx,
|
3987 | a750fc0b | j_mayer | #endif
|
3988 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
3989 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
3990 | a750fc0b | j_mayer | #define CPU_POWERPC_403 CPU_POWERPC_403GC
|
3991 | a750fc0b | j_mayer | /* PowerPC 403 microcontrollers */
|
3992 | a750fc0b | j_mayer | CPU_POWERPC_403GA = 0x00200011,
|
3993 | a750fc0b | j_mayer | CPU_POWERPC_403GB = 0x00200100,
|
3994 | a750fc0b | j_mayer | CPU_POWERPC_403GC = 0x00200200,
|
3995 | a750fc0b | j_mayer | CPU_POWERPC_403GCX = 0x00201400,
|
3996 | a750fc0b | j_mayer | #if 0
|
3997 | a750fc0b | j_mayer | CPU_POWERPC_403GP = xxx,
|
3998 | a750fc0b | j_mayer | #endif
|
3999 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
4000 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
4001 | a750fc0b | j_mayer | #define CPU_POWERPC_405 CPU_POWERPC_405D4
|
4002 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
4003 | a750fc0b | j_mayer | #if 0
|
4004 | a750fc0b | j_mayer | CPU_POWERPC_405A3 = xxx,
|
4005 | a750fc0b | j_mayer | #endif
|
4006 | a750fc0b | j_mayer | #if 0
|
4007 | a750fc0b | j_mayer | CPU_POWERPC_405A4 = xxx,
|
4008 | a750fc0b | j_mayer | #endif
|
4009 | a750fc0b | j_mayer | #if 0
|
4010 | a750fc0b | j_mayer | CPU_POWERPC_405B3 = xxx,
|
4011 | a750fc0b | j_mayer | #endif
|
4012 | a750fc0b | j_mayer | #if 0
|
4013 | a750fc0b | j_mayer | CPU_POWERPC_405B4 = xxx,
|
4014 | a750fc0b | j_mayer | #endif
|
4015 | a750fc0b | j_mayer | #if 0
|
4016 | a750fc0b | j_mayer | CPU_POWERPC_405C3 = xxx,
|
4017 | a750fc0b | j_mayer | #endif
|
4018 | a750fc0b | j_mayer | #if 0
|
4019 | a750fc0b | j_mayer | CPU_POWERPC_405C4 = xxx,
|
4020 | a750fc0b | j_mayer | #endif
|
4021 | a750fc0b | j_mayer | CPU_POWERPC_405D2 = 0x20010000,
|
4022 | a750fc0b | j_mayer | #if 0
|
4023 | a750fc0b | j_mayer | CPU_POWERPC_405D3 = xxx,
|
4024 | a750fc0b | j_mayer | #endif
|
4025 | a750fc0b | j_mayer | CPU_POWERPC_405D4 = 0x41810000,
|
4026 | a750fc0b | j_mayer | #if 0
|
4027 | a750fc0b | j_mayer | CPU_POWERPC_405D5 = xxx,
|
4028 | a750fc0b | j_mayer | #endif
|
4029 | a750fc0b | j_mayer | #if 0
|
4030 | a750fc0b | j_mayer | CPU_POWERPC_405E4 = xxx,
|
4031 | a750fc0b | j_mayer | #endif
|
4032 | a750fc0b | j_mayer | #if 0
|
4033 | a750fc0b | j_mayer | CPU_POWERPC_405F4 = xxx,
|
4034 | a750fc0b | j_mayer | #endif
|
4035 | a750fc0b | j_mayer | #if 0
|
4036 | a750fc0b | j_mayer | CPU_POWERPC_405F5 = xxx,
|
4037 | a750fc0b | j_mayer | #endif
|
4038 | a750fc0b | j_mayer | #if 0
|
4039 | a750fc0b | j_mayer | CPU_POWERPC_405F6 = xxx,
|
4040 | a750fc0b | j_mayer | #endif
|
4041 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
4042 | a750fc0b | j_mayer | /* XXX: missing 0x200108a0 */
|
4043 | a750fc0b | j_mayer | #define CPU_POWERPC_405CR CPU_POWERPC_405CRc
|
4044 | a750fc0b | j_mayer | CPU_POWERPC_405CRa = 0x40110041,
|
4045 | a750fc0b | j_mayer | CPU_POWERPC_405CRb = 0x401100C5,
|
4046 | a750fc0b | j_mayer | CPU_POWERPC_405CRc = 0x40110145,
|
4047 | a750fc0b | j_mayer | CPU_POWERPC_405EP = 0x51210950,
|
4048 | a750fc0b | j_mayer | #if 0
|
4049 | a750fc0b | j_mayer | CPU_POWERPC_405EXr = xxx,
|
4050 | a750fc0b | j_mayer | #endif
|
4051 | a750fc0b | j_mayer | CPU_POWERPC_405EZ = 0x41511460, /* 0x51210950 ? */ |
4052 | a750fc0b | j_mayer | #if 0
|
4053 | a750fc0b | j_mayer | CPU_POWERPC_405FX = xxx,
|
4054 | a750fc0b | j_mayer | #endif
|
4055 | a750fc0b | j_mayer | #define CPU_POWERPC_405GP CPU_POWERPC_405GPd
|
4056 | a750fc0b | j_mayer | CPU_POWERPC_405GPa = 0x40110000,
|
4057 | a750fc0b | j_mayer | CPU_POWERPC_405GPb = 0x40110040,
|
4058 | a750fc0b | j_mayer | CPU_POWERPC_405GPc = 0x40110082,
|
4059 | a750fc0b | j_mayer | CPU_POWERPC_405GPd = 0x401100C4,
|
4060 | a750fc0b | j_mayer | #define CPU_POWERPC_405GPe CPU_POWERPC_405CRc
|
4061 | a750fc0b | j_mayer | CPU_POWERPC_405GPR = 0x50910951,
|
4062 | a750fc0b | j_mayer | #if 0
|
4063 | a750fc0b | j_mayer | CPU_POWERPC_405H = xxx,
|
4064 | a750fc0b | j_mayer | #endif
|
4065 | a750fc0b | j_mayer | #if 0
|
4066 | a750fc0b | j_mayer | CPU_POWERPC_405L = xxx,
|
4067 | a750fc0b | j_mayer | #endif
|
4068 | a750fc0b | j_mayer | CPU_POWERPC_405LP = 0x41F10000,
|
4069 | a750fc0b | j_mayer | #if 0
|
4070 | a750fc0b | j_mayer | CPU_POWERPC_405PM = xxx,
|
4071 | a750fc0b | j_mayer | #endif
|
4072 | a750fc0b | j_mayer | #if 0
|
4073 | a750fc0b | j_mayer | CPU_POWERPC_405PS = xxx,
|
4074 | a750fc0b | j_mayer | #endif
|
4075 | a750fc0b | j_mayer | #if 0
|
4076 | a750fc0b | j_mayer | CPU_POWERPC_405S = xxx,
|
4077 | a750fc0b | j_mayer | #endif
|
4078 | a750fc0b | j_mayer | /* IBM network processors */
|
4079 | a750fc0b | j_mayer | CPU_POWERPC_NPE405H = 0x414100C0,
|
4080 | a750fc0b | j_mayer | CPU_POWERPC_NPE405H2 = 0x41410140,
|
4081 | a750fc0b | j_mayer | CPU_POWERPC_NPE405L = 0x416100C0,
|
4082 | a750fc0b | j_mayer | CPU_POWERPC_NPE4GS3 = 0x40B10000,
|
4083 | a750fc0b | j_mayer | #if 0
|
4084 | a750fc0b | j_mayer | CPU_POWERPC_NPCxx1 = xxx,
|
4085 | a750fc0b | j_mayer | #endif
|
4086 | a750fc0b | j_mayer | #if 0
|
4087 | a750fc0b | j_mayer | CPU_POWERPC_NPR161 = xxx,
|
4088 | a750fc0b | j_mayer | #endif
|
4089 | a750fc0b | j_mayer | #if 0
|
4090 | a750fc0b | j_mayer | CPU_POWERPC_LC77700 = xxx,
|
4091 | a750fc0b | j_mayer | #endif
|
4092 | a750fc0b | j_mayer | /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
|
4093 | a750fc0b | j_mayer | #if 0
|
4094 | a750fc0b | j_mayer | CPU_POWERPC_STB01000 = xxx,
|
4095 | a750fc0b | j_mayer | #endif
|
4096 | a750fc0b | j_mayer | #if 0
|
4097 | a750fc0b | j_mayer | CPU_POWERPC_STB01010 = xxx,
|
4098 | a750fc0b | j_mayer | #endif
|
4099 | a750fc0b | j_mayer | #if 0
|
4100 | a750fc0b | j_mayer | CPU_POWERPC_STB0210 = xxx, /* 401B3 */
|
4101 | a750fc0b | j_mayer | #endif
|
4102 | a750fc0b | j_mayer | CPU_POWERPC_STB03 = 0x40310000, /* 0x40130000 ? */ |
4103 | a750fc0b | j_mayer | #if 0
|
4104 | a750fc0b | j_mayer | CPU_POWERPC_STB043 = xxx,
|
4105 | a750fc0b | j_mayer | #endif
|
4106 | a750fc0b | j_mayer | #if 0
|
4107 | a750fc0b | j_mayer | CPU_POWERPC_STB045 = xxx,
|
4108 | a750fc0b | j_mayer | #endif
|
4109 | a750fc0b | j_mayer | CPU_POWERPC_STB04 = 0x41810000,
|
4110 | a750fc0b | j_mayer | CPU_POWERPC_STB25 = 0x51510950,
|
4111 | a750fc0b | j_mayer | #if 0
|
4112 | a750fc0b | j_mayer | CPU_POWERPC_STB130 = xxx,
|
4113 | a750fc0b | j_mayer | #endif
|
4114 | a750fc0b | j_mayer | /* Xilinx cores */
|
4115 | a750fc0b | j_mayer | CPU_POWERPC_X2VP4 = 0x20010820,
|
4116 | a750fc0b | j_mayer | #define CPU_POWERPC_X2VP7 CPU_POWERPC_X2VP4
|
4117 | a750fc0b | j_mayer | CPU_POWERPC_X2VP20 = 0x20010860,
|
4118 | a750fc0b | j_mayer | #define CPU_POWERPC_X2VP50 CPU_POWERPC_X2VP20
|
4119 | a750fc0b | j_mayer | #if 0
|
4120 | a750fc0b | j_mayer | CPU_POWERPC_ZL10310 = xxx,
|
4121 | a750fc0b | j_mayer | #endif
|
4122 | a750fc0b | j_mayer | #if 0
|
4123 | a750fc0b | j_mayer | CPU_POWERPC_ZL10311 = xxx,
|
4124 | a750fc0b | j_mayer | #endif
|
4125 | a750fc0b | j_mayer | #if 0
|
4126 | a750fc0b | j_mayer | CPU_POWERPC_ZL10320 = xxx,
|
4127 | a750fc0b | j_mayer | #endif
|
4128 | a750fc0b | j_mayer | #if 0
|
4129 | a750fc0b | j_mayer | CPU_POWERPC_ZL10321 = xxx,
|
4130 | a750fc0b | j_mayer | #endif
|
4131 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
4132 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
4133 | a750fc0b | j_mayer | #define CPU_POWERPC_440 CPU_POWERPC_440GXf
|
4134 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
4135 | a750fc0b | j_mayer | #if 0
|
4136 | a750fc0b | j_mayer | CPU_POWERPC_440A4 = xxx,
|
4137 | a750fc0b | j_mayer | #endif
|
4138 | a750fc0b | j_mayer | #if 0
|
4139 | a750fc0b | j_mayer | CPU_POWERPC_440A5 = xxx,
|
4140 | a750fc0b | j_mayer | #endif
|
4141 | a750fc0b | j_mayer | #if 0
|
4142 | a750fc0b | j_mayer | CPU_POWERPC_440B4 = xxx,
|
4143 | a750fc0b | j_mayer | #endif
|
4144 | a750fc0b | j_mayer | #if 0
|
4145 | a750fc0b | j_mayer | CPU_POWERPC_440F5 = xxx,
|
4146 | a750fc0b | j_mayer | #endif
|
4147 | a750fc0b | j_mayer | #if 0
|
4148 | a750fc0b | j_mayer | CPU_POWERPC_440G5 = xxx,
|
4149 | a750fc0b | j_mayer | #endif
|
4150 | a750fc0b | j_mayer | #if 0
|
4151 | a750fc0b | j_mayer | CPU_POWERPC_440H4 = xxx,
|
4152 | a750fc0b | j_mayer | #endif
|
4153 | a750fc0b | j_mayer | #if 0
|
4154 | a750fc0b | j_mayer | CPU_POWERPC_440H6 = xxx,
|
4155 | a750fc0b | j_mayer | #endif
|
4156 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
4157 | a750fc0b | j_mayer | #define CPU_POWERPC_440EP CPU_POWERPC_440EPb
|
4158 | a750fc0b | j_mayer | CPU_POWERPC_440EPa = 0x42221850,
|
4159 | a750fc0b | j_mayer | CPU_POWERPC_440EPb = 0x422218D3,
|
4160 | a750fc0b | j_mayer | #define CPU_POWERPC_440GP CPU_POWERPC_440GPc
|
4161 | a750fc0b | j_mayer | CPU_POWERPC_440GPb = 0x40120440,
|
4162 | a750fc0b | j_mayer | CPU_POWERPC_440GPc = 0x40120481,
|
4163 | a750fc0b | j_mayer | #define CPU_POWERPC_440GR CPU_POWERPC_440GRa
|
4164 | a750fc0b | j_mayer | #define CPU_POWERPC_440GRa CPU_POWERPC_440EPb
|
4165 | a750fc0b | j_mayer | CPU_POWERPC_440GRX = 0x200008D0,
|
4166 | a750fc0b | j_mayer | #define CPU_POWERPC_440EPX CPU_POWERPC_440GRX
|
4167 | a750fc0b | j_mayer | #define CPU_POWERPC_440GX CPU_POWERPC_440GXf
|
4168 | a750fc0b | j_mayer | CPU_POWERPC_440GXa = 0x51B21850,
|
4169 | a750fc0b | j_mayer | CPU_POWERPC_440GXb = 0x51B21851,
|
4170 | a750fc0b | j_mayer | CPU_POWERPC_440GXc = 0x51B21892,
|
4171 | a750fc0b | j_mayer | CPU_POWERPC_440GXf = 0x51B21894,
|
4172 | a750fc0b | j_mayer | #if 0
|
4173 | a750fc0b | j_mayer | CPU_POWERPC_440S = xxx,
|
4174 | a750fc0b | j_mayer | #endif
|
4175 | a750fc0b | j_mayer | CPU_POWERPC_440SP = 0x53221850,
|
4176 | a750fc0b | j_mayer | CPU_POWERPC_440SP2 = 0x53221891,
|
4177 | a750fc0b | j_mayer | CPU_POWERPC_440SPE = 0x53421890,
|
4178 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
4179 | a750fc0b | j_mayer | #if 0
|
4180 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
4181 | a750fc0b | j_mayer | #define CPU_POWERPC_464 CPU_POWERPC_464H90
|
4182 | a750fc0b | j_mayer | #endif
|
4183 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
4184 | a750fc0b | j_mayer | #if 0
|
4185 | a750fc0b | j_mayer | CPU_POWERPC_464H90 = xxx,
|
4186 | a750fc0b | j_mayer | #endif
|
4187 | a750fc0b | j_mayer | #if 0
|
4188 | a750fc0b | j_mayer | CPU_POWERPC_464H90FP = xxx,
|
4189 | a750fc0b | j_mayer | #endif
|
4190 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
4191 | a750fc0b | j_mayer | /* e200 family */
|
4192 | a750fc0b | j_mayer | #define CPU_POWERPC_e200 CPU_POWERPC_e200z6
|
4193 | a750fc0b | j_mayer | #if 0
|
4194 | a750fc0b | j_mayer | CPU_POWERPC_e200z0 = xxx,
|
4195 | a750fc0b | j_mayer | #endif
|
4196 | a750fc0b | j_mayer | #if 0
|
4197 | a750fc0b | j_mayer | CPU_POWERPC_e200z3 = xxx,
|
4198 | a750fc0b | j_mayer | #endif
|
4199 | a750fc0b | j_mayer | CPU_POWERPC_e200z5 = 0x81000000,
|
4200 | a750fc0b | j_mayer | CPU_POWERPC_e200z6 = 0x81120000,
|
4201 | a750fc0b | j_mayer | /* e300 family */
|
4202 | a750fc0b | j_mayer | #define CPU_POWERPC_e300 CPU_POWERPC_e300c3
|
4203 | a750fc0b | j_mayer | CPU_POWERPC_e300c1 = 0x00830000,
|
4204 | a750fc0b | j_mayer | CPU_POWERPC_e300c2 = 0x00840000,
|
4205 | a750fc0b | j_mayer | CPU_POWERPC_e300c3 = 0x00850000,
|
4206 | a750fc0b | j_mayer | /* e500 family */
|
4207 | a750fc0b | j_mayer | #define CPU_POWERPC_e500 CPU_POWERPC_e500_v22
|
4208 | a750fc0b | j_mayer | CPU_POWERPC_e500_v11 = 0x80200010,
|
4209 | a750fc0b | j_mayer | CPU_POWERPC_e500_v12 = 0x80200020,
|
4210 | a750fc0b | j_mayer | CPU_POWERPC_e500_v21 = 0x80210010,
|
4211 | a750fc0b | j_mayer | CPU_POWERPC_e500_v22 = 0x80210020,
|
4212 | a750fc0b | j_mayer | #if 0
|
4213 | a750fc0b | j_mayer | CPU_POWERPC_e500mc = xxx,
|
4214 | a750fc0b | j_mayer | #endif
|
4215 | a750fc0b | j_mayer | /* e600 family */
|
4216 | a750fc0b | j_mayer | CPU_POWERPC_e600 = 0x80040010,
|
4217 | a750fc0b | j_mayer | /* PowerPC MPC 5xx cores */
|
4218 | a750fc0b | j_mayer | CPU_POWERPC_5xx = 0x00020020,
|
4219 | a750fc0b | j_mayer | /* PowerPC MPC 8xx cores (aka PowerQUICC) */
|
4220 | a750fc0b | j_mayer | CPU_POWERPC_8xx = 0x00500000,
|
4221 | a750fc0b | j_mayer | /* PowerPC MPC 8xxx cores (aka PowerQUICC-II) */
|
4222 | a750fc0b | j_mayer | CPU_POWERPC_82xx_HIP3 = 0x00810101,
|
4223 | a750fc0b | j_mayer | CPU_POWERPC_82xx_HIP4 = 0x80811014,
|
4224 | a750fc0b | j_mayer | CPU_POWERPC_827x = 0x80822013,
|
4225 | a750fc0b | j_mayer | /* PowerPC 6xx cores */
|
4226 | a750fc0b | j_mayer | CPU_POWERPC_601 = 0x00010001,
|
4227 | a750fc0b | j_mayer | CPU_POWERPC_601a = 0x00010002,
|
4228 | a750fc0b | j_mayer | CPU_POWERPC_602 = 0x00050100,
|
4229 | a750fc0b | j_mayer | CPU_POWERPC_603 = 0x00030100,
|
4230 | a750fc0b | j_mayer | #define CPU_POWERPC_603E CPU_POWERPC_603E_v41
|
4231 | a750fc0b | j_mayer | CPU_POWERPC_603E_v11 = 0x00060101,
|
4232 | a750fc0b | j_mayer | CPU_POWERPC_603E_v12 = 0x00060102,
|
4233 | a750fc0b | j_mayer | CPU_POWERPC_603E_v13 = 0x00060103,
|
4234 | a750fc0b | j_mayer | CPU_POWERPC_603E_v14 = 0x00060104,
|
4235 | a750fc0b | j_mayer | CPU_POWERPC_603E_v22 = 0x00060202,
|
4236 | a750fc0b | j_mayer | CPU_POWERPC_603E_v3 = 0x00060300,
|
4237 | a750fc0b | j_mayer | CPU_POWERPC_603E_v4 = 0x00060400,
|
4238 | a750fc0b | j_mayer | CPU_POWERPC_603E_v41 = 0x00060401,
|
4239 | a750fc0b | j_mayer | CPU_POWERPC_603E7t = 0x00071201,
|
4240 | a750fc0b | j_mayer | CPU_POWERPC_603E7v = 0x00070100,
|
4241 | a750fc0b | j_mayer | CPU_POWERPC_603E7v1 = 0x00070101,
|
4242 | a750fc0b | j_mayer | CPU_POWERPC_603E7v2 = 0x00070201,
|
4243 | a750fc0b | j_mayer | CPU_POWERPC_603E7 = 0x00070200,
|
4244 | a750fc0b | j_mayer | CPU_POWERPC_603P = 0x00070000,
|
4245 | a750fc0b | j_mayer | #define CPU_POWERPC_603R CPU_POWERPC_603E7t
|
4246 | a750fc0b | j_mayer | CPU_POWERPC_G2 = 0x00810011,
|
4247 | a750fc0b | j_mayer | #if 0 // Linux pretends the MSB is zero...
|
4248 | a750fc0b | j_mayer | CPU_POWERPC_G2H4 = 0x80811010,
|
4249 | a750fc0b | j_mayer | CPU_POWERPC_G2gp = 0x80821010,
|
4250 | a750fc0b | j_mayer | CPU_POWERPC_G2ls = 0x90810010,
|
4251 | a750fc0b | j_mayer | CPU_POWERPC_G2LE = 0x80820010,
|
4252 | a750fc0b | j_mayer | CPU_POWERPC_G2LEgp = 0x80822010,
|
4253 | a750fc0b | j_mayer | CPU_POWERPC_G2LEls = 0xA0822010,
|
4254 | a750fc0b | j_mayer | #else
|
4255 | a750fc0b | j_mayer | CPU_POWERPC_G2H4 = 0x00811010,
|
4256 | a750fc0b | j_mayer | CPU_POWERPC_G2gp = 0x00821010,
|
4257 | a750fc0b | j_mayer | CPU_POWERPC_G2ls = 0x10810010,
|
4258 | a750fc0b | j_mayer | CPU_POWERPC_G2LE = 0x00820010,
|
4259 | a750fc0b | j_mayer | CPU_POWERPC_G2LEgp = 0x00822010,
|
4260 | a750fc0b | j_mayer | CPU_POWERPC_G2LEls = 0x20822010,
|
4261 | a750fc0b | j_mayer | #endif
|
4262 | a750fc0b | j_mayer | CPU_POWERPC_604 = 0x00040103,
|
4263 | a750fc0b | j_mayer | #define CPU_POWERPC_604E CPU_POWERPC_604E_v24
|
4264 | a750fc0b | j_mayer | CPU_POWERPC_604E_v10 = 0x00090100, /* Also 2110 & 2120 */ |
4265 | a750fc0b | j_mayer | CPU_POWERPC_604E_v22 = 0x00090202,
|
4266 | a750fc0b | j_mayer | CPU_POWERPC_604E_v24 = 0x00090204,
|
4267 | a750fc0b | j_mayer | CPU_POWERPC_604R = 0x000a0101, /* Also 0x00093102 */ |
4268 | a750fc0b | j_mayer | #if 0
|
4269 | a750fc0b | j_mayer | CPU_POWERPC_604EV = xxx,
|
4270 | a750fc0b | j_mayer | #endif
|
4271 | a750fc0b | j_mayer | /* PowerPC 740/750 cores (aka G3) */
|
4272 | a750fc0b | j_mayer | /* XXX: missing 0x00084202 */
|
4273 | a750fc0b | j_mayer | #define CPU_POWERPC_7x0 CPU_POWERPC_7x0_v31
|
4274 | a750fc0b | j_mayer | CPU_POWERPC_7x0_v20 = 0x00080200,
|
4275 | a750fc0b | j_mayer | CPU_POWERPC_7x0_v21 = 0x00080201,
|
4276 | a750fc0b | j_mayer | CPU_POWERPC_7x0_v22 = 0x00080202,
|
4277 | a750fc0b | j_mayer | CPU_POWERPC_7x0_v30 = 0x00080300,
|
4278 | a750fc0b | j_mayer | CPU_POWERPC_7x0_v31 = 0x00080301,
|
4279 | a750fc0b | j_mayer | CPU_POWERPC_740E = 0x00080100,
|
4280 | a750fc0b | j_mayer | CPU_POWERPC_7x0P = 0x10080000,
|
4281 | a750fc0b | j_mayer | /* XXX: missing 0x00087010 (CL ?) */
|
4282 | a750fc0b | j_mayer | CPU_POWERPC_750CL = 0x00087200,
|
4283 | a750fc0b | j_mayer | #define CPU_POWERPC_750CX CPU_POWERPC_750CX_v22
|
4284 | a750fc0b | j_mayer | CPU_POWERPC_750CX_v21 = 0x00082201,
|
4285 | a750fc0b | j_mayer | CPU_POWERPC_750CX_v22 = 0x00082202,
|
4286 | a750fc0b | j_mayer | #define CPU_POWERPC_750CXE CPU_POWERPC_750CXE_v31b
|
4287 | a750fc0b | j_mayer | CPU_POWERPC_750CXE_v21 = 0x00082211,
|
4288 | a750fc0b | j_mayer | CPU_POWERPC_750CXE_v22 = 0x00082212,
|
4289 | a750fc0b | j_mayer | CPU_POWERPC_750CXE_v23 = 0x00082213,
|
4290 | a750fc0b | j_mayer | CPU_POWERPC_750CXE_v24 = 0x00082214,
|
4291 | a750fc0b | j_mayer | CPU_POWERPC_750CXE_v24b = 0x00083214,
|
4292 | a750fc0b | j_mayer | CPU_POWERPC_750CXE_v31 = 0x00083211,
|
4293 | a750fc0b | j_mayer | CPU_POWERPC_750CXE_v31b = 0x00083311,
|
4294 | a750fc0b | j_mayer | CPU_POWERPC_750CXR = 0x00083410,
|
4295 | a750fc0b | j_mayer | CPU_POWERPC_750E = 0x00080200,
|
4296 | a750fc0b | j_mayer | CPU_POWERPC_750FL = 0x700A0203,
|
4297 | a750fc0b | j_mayer | #define CPU_POWERPC_750FX CPU_POWERPC_750FX_v23
|
4298 | a750fc0b | j_mayer | CPU_POWERPC_750FX_v10 = 0x70000100,
|
4299 | a750fc0b | j_mayer | CPU_POWERPC_750FX_v20 = 0x70000200,
|
4300 | a750fc0b | j_mayer | CPU_POWERPC_750FX_v21 = 0x70000201,
|
4301 | a750fc0b | j_mayer | CPU_POWERPC_750FX_v22 = 0x70000202,
|
4302 | a750fc0b | j_mayer | CPU_POWERPC_750FX_v23 = 0x70000203,
|
4303 | a750fc0b | j_mayer | CPU_POWERPC_750GL = 0x70020102,
|
4304 | a750fc0b | j_mayer | #define CPU_POWERPC_750GX CPU_POWERPC_750GX_v12
|
4305 | a750fc0b | j_mayer | CPU_POWERPC_750GX_v10 = 0x70020100,
|
4306 | a750fc0b | j_mayer | CPU_POWERPC_750GX_v11 = 0x70020101,
|
4307 | a750fc0b | j_mayer | CPU_POWERPC_750GX_v12 = 0x70020102,
|
4308 | a750fc0b | j_mayer | #define CPU_POWERPC_750L CPU_POWERPC_750L_v32 /* Aka LoneStar */ |
4309 | a750fc0b | j_mayer | CPU_POWERPC_750L_v22 = 0x00088202,
|
4310 | a750fc0b | j_mayer | CPU_POWERPC_750L_v30 = 0x00088300,
|
4311 | a750fc0b | j_mayer | CPU_POWERPC_750L_v32 = 0x00088302,
|
4312 | a750fc0b | j_mayer | /* PowerPC 745/755 cores */
|
4313 | a750fc0b | j_mayer | #define CPU_POWERPC_7x5 CPU_POWERPC_7x5_v28
|
4314 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v10 = 0x00083100,
|
4315 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v11 = 0x00083101,
|
4316 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v20 = 0x00083200,
|
4317 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v21 = 0x00083201,
|
4318 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v22 = 0x00083202, /* aka D */ |
4319 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v23 = 0x00083203, /* aka E */ |
4320 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v24 = 0x00083204,
|
4321 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v25 = 0x00083205,
|
4322 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v26 = 0x00083206,
|
4323 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v27 = 0x00083207,
|
4324 | a750fc0b | j_mayer | CPU_POWERPC_7x5_v28 = 0x00083208,
|
4325 | a750fc0b | j_mayer | #if 0
|
4326 | a750fc0b | j_mayer | CPU_POWERPC_7x5P = xxx,
|
4327 | a750fc0b | j_mayer | #endif
|
4328 | a750fc0b | j_mayer | /* PowerPC 74xx cores (aka G4) */
|
4329 | a750fc0b | j_mayer | /* XXX: missing 0x000C1101 */
|
4330 | a750fc0b | j_mayer | #define CPU_POWERPC_7400 CPU_POWERPC_7400_v29
|
4331 | a750fc0b | j_mayer | CPU_POWERPC_7400_v10 = 0x000C0100,
|
4332 | a750fc0b | j_mayer | CPU_POWERPC_7400_v11 = 0x000C0101,
|
4333 | a750fc0b | j_mayer | CPU_POWERPC_7400_v20 = 0x000C0200,
|
4334 | a750fc0b | j_mayer | CPU_POWERPC_7400_v22 = 0x000C0202,
|
4335 | a750fc0b | j_mayer | CPU_POWERPC_7400_v26 = 0x000C0206,
|
4336 | a750fc0b | j_mayer | CPU_POWERPC_7400_v27 = 0x000C0207,
|
4337 | a750fc0b | j_mayer | CPU_POWERPC_7400_v28 = 0x000C0208,
|
4338 | a750fc0b | j_mayer | CPU_POWERPC_7400_v29 = 0x000C0209,
|
4339 | a750fc0b | j_mayer | #define CPU_POWERPC_7410 CPU_POWERPC_7410_v14
|
4340 | a750fc0b | j_mayer | CPU_POWERPC_7410_v10 = 0x800C1100,
|
4341 | a750fc0b | j_mayer | CPU_POWERPC_7410_v11 = 0x800C1101,
|
4342 | a750fc0b | j_mayer | CPU_POWERPC_7410_v12 = 0x800C1102, /* aka C */ |
4343 | a750fc0b | j_mayer | CPU_POWERPC_7410_v13 = 0x800C1103, /* aka D */ |
4344 | a750fc0b | j_mayer | CPU_POWERPC_7410_v14 = 0x800C1104, /* aka E */ |
4345 | a750fc0b | j_mayer | #define CPU_POWERPC_7448 CPU_POWERPC_7448_v21
|
4346 | a750fc0b | j_mayer | CPU_POWERPC_7448_v10 = 0x80040100,
|
4347 | a750fc0b | j_mayer | CPU_POWERPC_7448_v11 = 0x80040101,
|
4348 | a750fc0b | j_mayer | CPU_POWERPC_7448_v20 = 0x80040200,
|
4349 | a750fc0b | j_mayer | CPU_POWERPC_7448_v21 = 0x80040201,
|
4350 | a750fc0b | j_mayer | #define CPU_POWERPC_7450 CPU_POWERPC_7450_v21
|
4351 | a750fc0b | j_mayer | CPU_POWERPC_7450_v10 = 0x80000100,
|
4352 | a750fc0b | j_mayer | CPU_POWERPC_7450_v11 = 0x80000101,
|
4353 | a750fc0b | j_mayer | CPU_POWERPC_7450_v12 = 0x80000102,
|
4354 | a750fc0b | j_mayer | CPU_POWERPC_7450_v20 = 0x80000200, /* aka D: 2.04 */ |
4355 | a750fc0b | j_mayer | CPU_POWERPC_7450_v21 = 0x80000201, /* aka E */ |
4356 | a750fc0b | j_mayer | CPU_POWERPC_74x1 = 0x80000203,
|
4357 | a750fc0b | j_mayer | CPU_POWERPC_74x1G = 0x80000210, /* aka G: 2.3 */ |
4358 | a750fc0b | j_mayer | /* XXX: missing 0x80010200 */
|
4359 | a750fc0b | j_mayer | #define CPU_POWERPC_74x5 CPU_POWERPC_74x5_v32
|
4360 | a750fc0b | j_mayer | CPU_POWERPC_74x5_v10 = 0x80010100,
|
4361 | a750fc0b | j_mayer | CPU_POWERPC_74x5_v21 = 0x80010201, /* aka C: 2.1 */ |
4362 | a750fc0b | j_mayer | CPU_POWERPC_74x5_v32 = 0x80010302,
|
4363 | a750fc0b | j_mayer | CPU_POWERPC_74x5_v33 = 0x80010303, /* aka F: 3.3 */ |
4364 | a750fc0b | j_mayer | CPU_POWERPC_74x5_v34 = 0x80010304, /* aka G: 3.4 */ |
4365 | a750fc0b | j_mayer | #define CPU_POWERPC_74x7 CPU_POWERPC_74x7_v12
|
4366 | a750fc0b | j_mayer | CPU_POWERPC_74x7_v10 = 0x80020100, /* aka A: 1.0 */ |
4367 | a750fc0b | j_mayer | CPU_POWERPC_74x7_v11 = 0x80030101, /* aka B: 1.1 */ |
4368 | a750fc0b | j_mayer | CPU_POWERPC_74x7_v12 = 0x80020102, /* aka C: 1.2 */ |
4369 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
4370 | a750fc0b | j_mayer | CPU_POWERPC_620 = 0x00140000,
|
4371 | a750fc0b | j_mayer | CPU_POWERPC_630 = 0x00400000,
|
4372 | a750fc0b | j_mayer | CPU_POWERPC_631 = 0x00410104,
|
4373 | a750fc0b | j_mayer | CPU_POWERPC_POWER4 = 0x00350000,
|
4374 | a750fc0b | j_mayer | CPU_POWERPC_POWER4P = 0x00380000,
|
4375 | a750fc0b | j_mayer | CPU_POWERPC_POWER5 = 0x003A0203,
|
4376 | a750fc0b | j_mayer | #define CPU_POWERPC_POWER5GR CPU_POWERPC_POWER5
|
4377 | a750fc0b | j_mayer | CPU_POWERPC_POWER5P = 0x003B0000,
|
4378 | a750fc0b | j_mayer | #define CPU_POWERPC_POWER5GS CPU_POWERPC_POWER5P
|
4379 | a750fc0b | j_mayer | CPU_POWERPC_POWER6 = 0x003E0000,
|
4380 | a750fc0b | j_mayer | CPU_POWERPC_POWER6_5 = 0x0F000001, /* POWER6 running POWER5 mode */ |
4381 | a750fc0b | j_mayer | CPU_POWERPC_POWER6A = 0x0F000002,
|
4382 | a750fc0b | j_mayer | CPU_POWERPC_970 = 0x00390202,
|
4383 | a750fc0b | j_mayer | #define CPU_POWERPC_970FX CPU_POWERPC_970FX_v31
|
4384 | a750fc0b | j_mayer | CPU_POWERPC_970FX_v10 = 0x00391100,
|
4385 | a750fc0b | j_mayer | CPU_POWERPC_970FX_v20 = 0x003C0200,
|
4386 | a750fc0b | j_mayer | CPU_POWERPC_970FX_v21 = 0x003C0201,
|
4387 | a750fc0b | j_mayer | CPU_POWERPC_970FX_v30 = 0x003C0300,
|
4388 | a750fc0b | j_mayer | CPU_POWERPC_970FX_v31 = 0x003C0301,
|
4389 | a750fc0b | j_mayer | CPU_POWERPC_970GX = 0x00450000,
|
4390 | a750fc0b | j_mayer | #define CPU_POWERPC_970MP CPU_POWERPC_970MP_v11
|
4391 | a750fc0b | j_mayer | CPU_POWERPC_970MP_v10 = 0x00440100,
|
4392 | a750fc0b | j_mayer | CPU_POWERPC_970MP_v11 = 0x00440101,
|
4393 | a750fc0b | j_mayer | #define CPU_POWERPC_CELL CPU_POWERPC_CELL_v32
|
4394 | a750fc0b | j_mayer | CPU_POWERPC_CELL_v10 = 0x00700100,
|
4395 | a750fc0b | j_mayer | CPU_POWERPC_CELL_v20 = 0x00700400,
|
4396 | a750fc0b | j_mayer | CPU_POWERPC_CELL_v30 = 0x00700500,
|
4397 | a750fc0b | j_mayer | CPU_POWERPC_CELL_v31 = 0x00700501,
|
4398 | a750fc0b | j_mayer | #define CPU_POWERPC_CELL_v32 CPU_POWERPC_CELL_v31
|
4399 | a750fc0b | j_mayer | CPU_POWERPC_RS64 = 0x00330000,
|
4400 | a750fc0b | j_mayer | CPU_POWERPC_RS64II = 0x00340000,
|
4401 | a750fc0b | j_mayer | CPU_POWERPC_RS64III = 0x00360000,
|
4402 | a750fc0b | j_mayer | CPU_POWERPC_RS64IV = 0x00370000,
|
4403 | a750fc0b | j_mayer | /* Original POWER */
|
4404 | a750fc0b | j_mayer | /* XXX: should be POWER (RIOS), RSC3308, RSC4608,
|
4405 | a750fc0b | j_mayer | * POWER2 (RIOS2) & RSC2 (P2SC) here
|
4406 | a750fc0b | j_mayer | */
|
4407 | a750fc0b | j_mayer | #if 0
|
4408 | a750fc0b | j_mayer | CPU_POWER = xxx, /* 0x20000 ? 0x30000 for RSC ? */
|
4409 | a750fc0b | j_mayer | #endif
|
4410 | a750fc0b | j_mayer | #if 0
|
4411 | a750fc0b | j_mayer | CPU_POWER2 = xxx, /* 0x40000 ? */
|
4412 | a750fc0b | j_mayer | #endif
|
4413 | a750fc0b | j_mayer | /* PA Semi core */
|
4414 | a750fc0b | j_mayer | CPU_POWERPC_PA6T = 0x00900000,
|
4415 | a750fc0b | j_mayer | }; |
4416 | a750fc0b | j_mayer | |
4417 | a750fc0b | j_mayer | /* System version register (used on MPC 8xxx) */
|
4418 | a750fc0b | j_mayer | enum {
|
4419 | a750fc0b | j_mayer | PPC_SVR_8540 = 0x80300000,
|
4420 | a750fc0b | j_mayer | PPC_SVR_8541E = 0x807A0010,
|
4421 | a750fc0b | j_mayer | PPC_SVR_8543v10 = 0x80320010,
|
4422 | a750fc0b | j_mayer | PPC_SVR_8543v11 = 0x80320011,
|
4423 | a750fc0b | j_mayer | PPC_SVR_8543v20 = 0x80320020,
|
4424 | a750fc0b | j_mayer | PPC_SVR_8543Ev10 = 0x803A0010,
|
4425 | a750fc0b | j_mayer | PPC_SVR_8543Ev11 = 0x803A0011,
|
4426 | a750fc0b | j_mayer | PPC_SVR_8543Ev20 = 0x803A0020,
|
4427 | a750fc0b | j_mayer | PPC_SVR_8545 = 0x80310220,
|
4428 | a750fc0b | j_mayer | PPC_SVR_8545E = 0x80390220,
|
4429 | a750fc0b | j_mayer | PPC_SVR_8547E = 0x80390120,
|
4430 | a750fc0b | j_mayer | PPC_SCR_8548v10 = 0x80310010,
|
4431 | a750fc0b | j_mayer | PPC_SCR_8548v11 = 0x80310011,
|
4432 | a750fc0b | j_mayer | PPC_SCR_8548v20 = 0x80310020,
|
4433 | a750fc0b | j_mayer | PPC_SVR_8548Ev10 = 0x80390010,
|
4434 | a750fc0b | j_mayer | PPC_SVR_8548Ev11 = 0x80390011,
|
4435 | a750fc0b | j_mayer | PPC_SVR_8548Ev20 = 0x80390020,
|
4436 | a750fc0b | j_mayer | PPC_SVR_8555E = 0x80790010,
|
4437 | a750fc0b | j_mayer | PPC_SVR_8560v10 = 0x80700010,
|
4438 | a750fc0b | j_mayer | PPC_SVR_8560v20 = 0x80700020,
|
4439 | a750fc0b | j_mayer | }; |
4440 | a750fc0b | j_mayer | |
4441 | 3fc6c082 | bellard | /*****************************************************************************/
|
4442 | a750fc0b | j_mayer | /* PowerPC CPU definitions */
|
4443 | a750fc0b | j_mayer | #define POWERPC_DEF(_name, _pvr, _pvr_mask, _type) \
|
4444 | a750fc0b | j_mayer | { \ |
4445 | a750fc0b | j_mayer | .name = _name, \ |
4446 | a750fc0b | j_mayer | .pvr = _pvr, \ |
4447 | a750fc0b | j_mayer | .pvr_mask = _pvr_mask, \ |
4448 | a750fc0b | j_mayer | .insns_flags = glue(POWERPC_INSNS_,_type), \ |
4449 | a750fc0b | j_mayer | .msr_mask = glue(POWERPC_MSRM_,_type), \ |
4450 | a750fc0b | j_mayer | .mmu_model = glue(POWERPC_MMU_,_type), \ |
4451 | a750fc0b | j_mayer | .excp_model = glue(POWERPC_EXCP_,_type), \ |
4452 | a750fc0b | j_mayer | .bus_model = glue(POWERPC_INPUT_,_type), \ |
4453 | 237c0af0 | j_mayer | .bfd_mach = glue(POWERPC_BFDM_,_type), \ |
4454 | a750fc0b | j_mayer | .init_proc = &glue(init_proc_,_type), \ |
4455 | a750fc0b | j_mayer | } |
4456 | a750fc0b | j_mayer | |
4457 | 3a607854 | j_mayer | static ppc_def_t ppc_defs[] = {
|
4458 | a750fc0b | j_mayer | /* Embedded PowerPC */
|
4459 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
4460 | 2662a059 | j_mayer | /* Generic PowerPC 401 */
|
4461 | a750fc0b | j_mayer | POWERPC_DEF("401", CPU_POWERPC_401, 0xFFFF0000, 401), |
4462 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
4463 | 2662a059 | j_mayer | /* PowerPC 401A1 */
|
4464 | a750fc0b | j_mayer | POWERPC_DEF("401A1", CPU_POWERPC_401A1, 0xFFFFFFFF, 401), |
4465 | a750fc0b | j_mayer | /* PowerPC 401B2 */
|
4466 | a750fc0b | j_mayer | POWERPC_DEF("401B2", CPU_POWERPC_401B2, 0xFFFFFFFF, 401x2), |
4467 | 2662a059 | j_mayer | #if defined (TODO)
|
4468 | a750fc0b | j_mayer | /* PowerPC 401B3 */
|
4469 | a750fc0b | j_mayer | POWERPC_DEF("401B3", CPU_POWERPC_401B3, 0xFFFFFFFF, 401x3), |
4470 | a750fc0b | j_mayer | #endif
|
4471 | a750fc0b | j_mayer | /* PowerPC 401C2 */
|
4472 | a750fc0b | j_mayer | POWERPC_DEF("401C2", CPU_POWERPC_401C2, 0xFFFFFFFF, 401x2), |
4473 | a750fc0b | j_mayer | /* PowerPC 401D2 */
|
4474 | a750fc0b | j_mayer | POWERPC_DEF("401D2", CPU_POWERPC_401D2, 0xFFFFFFFF, 401x2), |
4475 | a750fc0b | j_mayer | /* PowerPC 401E2 */
|
4476 | a750fc0b | j_mayer | POWERPC_DEF("401E2", CPU_POWERPC_401E2, 0xFFFFFFFF, 401x2), |
4477 | a750fc0b | j_mayer | /* PowerPC 401F2 */
|
4478 | a750fc0b | j_mayer | POWERPC_DEF("401F2", CPU_POWERPC_401F2, 0xFFFFFFFF, 401x2), |
4479 | a750fc0b | j_mayer | /* PowerPC 401G2 */
|
4480 | a750fc0b | j_mayer | /* XXX: to be checked */
|
4481 | a750fc0b | j_mayer | POWERPC_DEF("401G2", CPU_POWERPC_401G2, 0xFFFFFFFF, 401x2), |
4482 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
4483 | 2662a059 | j_mayer | #if defined (TODO)
|
4484 | a750fc0b | j_mayer | /* PowerPC 401GF */
|
4485 | a750fc0b | j_mayer | POWERPC_DEF("401GF", CPU_POWERPC_401GF, 0xFFFFFFFF, 401), |
4486 | 3fc6c082 | bellard | #endif
|
4487 | a750fc0b | j_mayer | /* IOP480 (401 microcontroler) */
|
4488 | a750fc0b | j_mayer | POWERPC_DEF("IOP480", CPU_POWERPC_IOP480, 0xFFFFFFFF, IOP480), |
4489 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
4490 | a750fc0b | j_mayer | POWERPC_DEF("Cobra", CPU_POWERPC_COBRA, 0xFFFFFFFF, 401), |
4491 | 3fc6c082 | bellard | #if defined (TODO)
|
4492 | a750fc0b | j_mayer | POWERPC_DEF("Xipchip", CPU_POWERPC_XIPCHIP, 0xFFFFFFFF, 401), |
4493 | 3fc6c082 | bellard | #endif
|
4494 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
4495 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
4496 | a750fc0b | j_mayer | POWERPC_DEF("403", CPU_POWERPC_403, 0xFFFF0000, 403), |
4497 | a750fc0b | j_mayer | /* PowerPC 403 microcontrolers */
|
4498 | a750fc0b | j_mayer | /* PowerPC 403 GA */
|
4499 | a750fc0b | j_mayer | POWERPC_DEF("403GA", CPU_POWERPC_403GA, 0xFFFFFFFF, 403), |
4500 | a750fc0b | j_mayer | /* PowerPC 403 GB */
|
4501 | a750fc0b | j_mayer | POWERPC_DEF("403GB", CPU_POWERPC_403GB, 0xFFFFFFFF, 403), |
4502 | a750fc0b | j_mayer | /* PowerPC 403 GC */
|
4503 | a750fc0b | j_mayer | POWERPC_DEF("403GC", CPU_POWERPC_403GC, 0xFFFFFFFF, 403), |
4504 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
4505 | a750fc0b | j_mayer | POWERPC_DEF("403GCX", CPU_POWERPC_403GCX, 0xFFFFFFFF, 403GCX), |
4506 | 3fc6c082 | bellard | #if defined (TODO)
|
4507 | a750fc0b | j_mayer | /* PowerPC 403 GP */
|
4508 | a750fc0b | j_mayer | POWERPC_DEF("403GP", CPU_POWERPC_403GP, 0xFFFFFFFF, 403), |
4509 | 3fc6c082 | bellard | #endif
|
4510 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
4511 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
4512 | a750fc0b | j_mayer | POWERPC_DEF("405", CPU_POWERPC_405, 0xFFFF0000, 405), |
4513 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
4514 | 2662a059 | j_mayer | #if defined (TODO)
|
4515 | a750fc0b | j_mayer | /* PowerPC 405 A3 */
|
4516 | a750fc0b | j_mayer | POWERPC_DEF("405A3", CPU_POWERPC_405A3, 0xFFFFFFFF, 405), |
4517 | 3a607854 | j_mayer | #endif
|
4518 | 3a607854 | j_mayer | #if defined (TODO)
|
4519 | a750fc0b | j_mayer | /* PowerPC 405 A4 */
|
4520 | a750fc0b | j_mayer | POWERPC_DEF("405A4", CPU_POWERPC_405A4, 0xFFFFFFFF, 405), |
4521 | 3a607854 | j_mayer | #endif
|
4522 | 3a607854 | j_mayer | #if defined (TODO)
|
4523 | a750fc0b | j_mayer | /* PowerPC 405 B3 */
|
4524 | a750fc0b | j_mayer | POWERPC_DEF("405B3", CPU_POWERPC_405B3, 0xFFFFFFFF, 405), |
4525 | 3fc6c082 | bellard | #endif
|
4526 | 3fc6c082 | bellard | #if defined (TODO)
|
4527 | a750fc0b | j_mayer | /* PowerPC 405 B4 */
|
4528 | a750fc0b | j_mayer | POWERPC_DEF("405B4", CPU_POWERPC_405B4, 0xFFFFFFFF, 405), |
4529 | a750fc0b | j_mayer | #endif
|
4530 | a750fc0b | j_mayer | #if defined (TODO)
|
4531 | a750fc0b | j_mayer | /* PowerPC 405 C3 */
|
4532 | a750fc0b | j_mayer | POWERPC_DEF("405C3", CPU_POWERPC_405C3, 0xFFFFFFFF, 405), |
4533 | a750fc0b | j_mayer | #endif
|
4534 | a750fc0b | j_mayer | #if defined (TODO)
|
4535 | a750fc0b | j_mayer | /* PowerPC 405 C4 */
|
4536 | a750fc0b | j_mayer | POWERPC_DEF("405C4", CPU_POWERPC_405C4, 0xFFFFFFFF, 405), |
4537 | a750fc0b | j_mayer | #endif
|
4538 | a750fc0b | j_mayer | /* PowerPC 405 D2 */
|
4539 | a750fc0b | j_mayer | POWERPC_DEF("405D2", CPU_POWERPC_405D2, 0xFFFFFFFF, 405), |
4540 | a750fc0b | j_mayer | #if defined (TODO)
|
4541 | a750fc0b | j_mayer | /* PowerPC 405 D3 */
|
4542 | a750fc0b | j_mayer | POWERPC_DEF("405D3", CPU_POWERPC_405D3, 0xFFFFFFFF, 405), |
4543 | a750fc0b | j_mayer | #endif
|
4544 | a750fc0b | j_mayer | /* PowerPC 405 D4 */
|
4545 | a750fc0b | j_mayer | POWERPC_DEF("405D4", CPU_POWERPC_405D4, 0xFFFFFFFF, 405), |
4546 | a750fc0b | j_mayer | #if defined (TODO)
|
4547 | a750fc0b | j_mayer | /* PowerPC 405 D5 */
|
4548 | a750fc0b | j_mayer | POWERPC_DEF("405D5", CPU_POWERPC_405D5, 0xFFFFFFFF, 405), |
4549 | a750fc0b | j_mayer | #endif
|
4550 | a750fc0b | j_mayer | #if defined (TODO)
|
4551 | a750fc0b | j_mayer | /* PowerPC 405 E4 */
|
4552 | a750fc0b | j_mayer | POWERPC_DEF("405E4", CPU_POWERPC_405E4, 0xFFFFFFFF, 405), |
4553 | a750fc0b | j_mayer | #endif
|
4554 | a750fc0b | j_mayer | #if defined (TODO)
|
4555 | a750fc0b | j_mayer | /* PowerPC 405 F4 */
|
4556 | a750fc0b | j_mayer | POWERPC_DEF("405F4", CPU_POWERPC_405F4, 0xFFFFFFFF, 405), |
4557 | a750fc0b | j_mayer | #endif
|
4558 | a750fc0b | j_mayer | #if defined (TODO)
|
4559 | a750fc0b | j_mayer | /* PowerPC 405 F5 */
|
4560 | a750fc0b | j_mayer | POWERPC_DEF("405F5", CPU_POWERPC_405F5, 0xFFFFFFFF, 405), |
4561 | a750fc0b | j_mayer | #endif
|
4562 | a750fc0b | j_mayer | #if defined (TODO)
|
4563 | a750fc0b | j_mayer | /* PowerPC 405 F6 */
|
4564 | a750fc0b | j_mayer | POWERPC_DEF("405F6", CPU_POWERPC_405F6, 0xFFFFFFFF, 405), |
4565 | a750fc0b | j_mayer | #endif
|
4566 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
4567 | a750fc0b | j_mayer | /* PowerPC 405 CR */
|
4568 | a750fc0b | j_mayer | POWERPC_DEF("405CR", CPU_POWERPC_405CR, 0xFFFFFFFF, 405), |
4569 | a750fc0b | j_mayer | /* PowerPC 405 CRa */
|
4570 | a750fc0b | j_mayer | POWERPC_DEF("405CRa", CPU_POWERPC_405CRa, 0xFFFFFFFF, 405), |
4571 | a750fc0b | j_mayer | /* PowerPC 405 CRb */
|
4572 | a750fc0b | j_mayer | POWERPC_DEF("405CRb", CPU_POWERPC_405CRb, 0xFFFFFFFF, 405), |
4573 | a750fc0b | j_mayer | /* PowerPC 405 CRc */
|
4574 | a750fc0b | j_mayer | POWERPC_DEF("405CRc", CPU_POWERPC_405CRc, 0xFFFFFFFF, 405), |
4575 | a750fc0b | j_mayer | /* PowerPC 405 EP */
|
4576 | a750fc0b | j_mayer | POWERPC_DEF("405EP", CPU_POWERPC_405EP, 0xFFFFFFFF, 405), |
4577 | a750fc0b | j_mayer | #if defined(TODO)
|
4578 | a750fc0b | j_mayer | /* PowerPC 405 EXr */
|
4579 | a750fc0b | j_mayer | POWERPC_DEF("405EXr", CPU_POWERPC_405EXr, 0xFFFFFFFF, 405), |
4580 | a750fc0b | j_mayer | #endif
|
4581 | a750fc0b | j_mayer | /* PowerPC 405 EZ */
|
4582 | a750fc0b | j_mayer | POWERPC_DEF("405EZ", CPU_POWERPC_405EZ, 0xFFFFFFFF, 405), |
4583 | a750fc0b | j_mayer | #if defined(TODO)
|
4584 | a750fc0b | j_mayer | /* PowerPC 405 FX */
|
4585 | a750fc0b | j_mayer | POWERPC_DEF("405FX", CPU_POWERPC_405FX, 0xFFFFFFFF, 405), |
4586 | a750fc0b | j_mayer | #endif
|
4587 | a750fc0b | j_mayer | /* PowerPC 405 GP */
|
4588 | a750fc0b | j_mayer | POWERPC_DEF("405GP", CPU_POWERPC_405GP, 0xFFFFFFFF, 405), |
4589 | a750fc0b | j_mayer | /* PowerPC 405 GPa */
|
4590 | a750fc0b | j_mayer | POWERPC_DEF("405GPa", CPU_POWERPC_405GPa, 0xFFFFFFFF, 405), |
4591 | a750fc0b | j_mayer | /* PowerPC 405 GPb */
|
4592 | a750fc0b | j_mayer | POWERPC_DEF("405GPb", CPU_POWERPC_405GPb, 0xFFFFFFFF, 405), |
4593 | a750fc0b | j_mayer | /* PowerPC 405 GPc */
|
4594 | a750fc0b | j_mayer | POWERPC_DEF("405GPc", CPU_POWERPC_405GPc, 0xFFFFFFFF, 405), |
4595 | a750fc0b | j_mayer | /* PowerPC 405 GPd */
|
4596 | a750fc0b | j_mayer | POWERPC_DEF("405GPd", CPU_POWERPC_405GPd, 0xFFFFFFFF, 405), |
4597 | a750fc0b | j_mayer | /* PowerPC 405 GPe */
|
4598 | a750fc0b | j_mayer | POWERPC_DEF("405GPe", CPU_POWERPC_405GPe, 0xFFFFFFFF, 405), |
4599 | a750fc0b | j_mayer | /* PowerPC 405 GPR */
|
4600 | a750fc0b | j_mayer | POWERPC_DEF("405GPR", CPU_POWERPC_405GPR, 0xFFFFFFFF, 405), |
4601 | a750fc0b | j_mayer | #if defined(TODO)
|
4602 | a750fc0b | j_mayer | /* PowerPC 405 H */
|
4603 | a750fc0b | j_mayer | POWERPC_DEF("405H", CPU_POWERPC_405H, 0xFFFFFFFF, 405), |
4604 | a750fc0b | j_mayer | #endif
|
4605 | a750fc0b | j_mayer | #if defined(TODO)
|
4606 | a750fc0b | j_mayer | /* PowerPC 405 L */
|
4607 | a750fc0b | j_mayer | POWERPC_DEF("405L", CPU_POWERPC_405L, 0xFFFFFFFF, 405), |
4608 | a750fc0b | j_mayer | #endif
|
4609 | a750fc0b | j_mayer | /* PowerPC 405 LP */
|
4610 | a750fc0b | j_mayer | POWERPC_DEF("405LP", CPU_POWERPC_405LP, 0xFFFFFFFF, 405), |
4611 | a750fc0b | j_mayer | #if defined(TODO)
|
4612 | a750fc0b | j_mayer | /* PowerPC 405 PM */
|
4613 | a750fc0b | j_mayer | POWERPC_DEF("405PM", CPU_POWERPC_405PM, 0xFFFFFFFF, 405), |
4614 | a750fc0b | j_mayer | #endif
|
4615 | a750fc0b | j_mayer | #if defined(TODO)
|
4616 | a750fc0b | j_mayer | /* PowerPC 405 PS */
|
4617 | a750fc0b | j_mayer | POWERPC_DEF("405PS", CPU_POWERPC_405PS, 0xFFFFFFFF, 405), |
4618 | a750fc0b | j_mayer | #endif
|
4619 | a750fc0b | j_mayer | #if defined(TODO)
|
4620 | a750fc0b | j_mayer | /* PowerPC 405 S */
|
4621 | a750fc0b | j_mayer | POWERPC_DEF("405S", CPU_POWERPC_405S, 0xFFFFFFFF, 405), |
4622 | a750fc0b | j_mayer | #endif
|
4623 | a750fc0b | j_mayer | /* Npe405 H */
|
4624 | a750fc0b | j_mayer | POWERPC_DEF("Npe405H", CPU_POWERPC_NPE405H, 0xFFFFFFFF, 405), |
4625 | a750fc0b | j_mayer | /* Npe405 H2 */
|
4626 | a750fc0b | j_mayer | POWERPC_DEF("Npe405H2", CPU_POWERPC_NPE405H2, 0xFFFFFFFF, 405), |
4627 | a750fc0b | j_mayer | /* Npe405 L */
|
4628 | a750fc0b | j_mayer | POWERPC_DEF("Npe405L", CPU_POWERPC_NPE405L, 0xFFFFFFFF, 405), |
4629 | a750fc0b | j_mayer | /* Npe4GS3 */
|
4630 | a750fc0b | j_mayer | POWERPC_DEF("Npe4GS3", CPU_POWERPC_NPE4GS3, 0xFFFFFFFF, 405), |
4631 | a750fc0b | j_mayer | #if defined (TODO)
|
4632 | a750fc0b | j_mayer | POWERPC_DEF("Npcxx1", CPU_POWERPC_NPCxx1, 0xFFFFFFFF, 405), |
4633 | a750fc0b | j_mayer | #endif
|
4634 | a750fc0b | j_mayer | #if defined (TODO)
|
4635 | a750fc0b | j_mayer | POWERPC_DEF("Npr161", CPU_POWERPC_NPR161, 0xFFFFFFFF, 405), |
4636 | a750fc0b | j_mayer | #endif
|
4637 | a750fc0b | j_mayer | #if defined (TODO)
|
4638 | a750fc0b | j_mayer | /* PowerPC LC77700 (Sanyo) */
|
4639 | a750fc0b | j_mayer | POWERPC_DEF("LC77700", CPU_POWERPC_LC77700, 0xFFFFFFFF, 405), |
4640 | a750fc0b | j_mayer | #endif
|
4641 | a750fc0b | j_mayer | /* PowerPC 401/403/405 based set-top-box microcontrolers */
|
4642 | a750fc0b | j_mayer | #if defined (TODO)
|
4643 | a750fc0b | j_mayer | /* STB010000 */
|
4644 | a750fc0b | j_mayer | POWERPC_DEF("STB01000", CPU_POWERPC_STB01000, 0xFFFFFFFF, 401x2), |
4645 | a750fc0b | j_mayer | #endif
|
4646 | a750fc0b | j_mayer | #if defined (TODO)
|
4647 | a750fc0b | j_mayer | /* STB01010 */
|
4648 | a750fc0b | j_mayer | POWERPC_DEF("STB01010", CPU_POWERPC_STB01010, 0xFFFFFFFF, 401x2), |
4649 | a750fc0b | j_mayer | #endif
|
4650 | a750fc0b | j_mayer | #if defined (TODO)
|
4651 | a750fc0b | j_mayer | /* STB0210 */
|
4652 | a750fc0b | j_mayer | POWERPC_DEF("STB0210", CPU_POWERPC_STB0210, 0xFFFFFFFF, 401x3), |
4653 | a750fc0b | j_mayer | #endif
|
4654 | a750fc0b | j_mayer | /* STB03xx */
|
4655 | a750fc0b | j_mayer | POWERPC_DEF("STB03", CPU_POWERPC_STB03, 0xFFFFFFFF, 405), |
4656 | a750fc0b | j_mayer | #if defined (TODO)
|
4657 | a750fc0b | j_mayer | /* STB043x */
|
4658 | a750fc0b | j_mayer | POWERPC_DEF("STB043", CPU_POWERPC_STB043, 0xFFFFFFFF, 405), |
4659 | a750fc0b | j_mayer | #endif
|
4660 | a750fc0b | j_mayer | #if defined (TODO)
|
4661 | a750fc0b | j_mayer | /* STB045x */
|
4662 | a750fc0b | j_mayer | POWERPC_DEF("STB045", CPU_POWERPC_STB045, 0xFFFFFFFF, 405), |
4663 | a750fc0b | j_mayer | #endif
|
4664 | a750fc0b | j_mayer | /* STB04xx */
|
4665 | a750fc0b | j_mayer | POWERPC_DEF("STB04", CPU_POWERPC_STB04, 0xFFFF0000, 405), |
4666 | a750fc0b | j_mayer | /* STB25xx */
|
4667 | a750fc0b | j_mayer | POWERPC_DEF("STB25", CPU_POWERPC_STB25, 0xFFFFFFFF, 405), |
4668 | a750fc0b | j_mayer | #if defined (TODO)
|
4669 | a750fc0b | j_mayer | /* STB130 */
|
4670 | a750fc0b | j_mayer | POWERPC_DEF("STB130", CPU_POWERPC_STB130, 0xFFFFFFFF, 405), |
4671 | a750fc0b | j_mayer | #endif
|
4672 | a750fc0b | j_mayer | /* Xilinx PowerPC 405 cores */
|
4673 | a750fc0b | j_mayer | POWERPC_DEF("x2vp4", CPU_POWERPC_X2VP4, 0xFFFFFFFF, 405), |
4674 | a750fc0b | j_mayer | POWERPC_DEF("x2vp7", CPU_POWERPC_X2VP7, 0xFFFFFFFF, 405), |
4675 | a750fc0b | j_mayer | POWERPC_DEF("x2vp20", CPU_POWERPC_X2VP20, 0xFFFFFFFF, 405), |
4676 | a750fc0b | j_mayer | POWERPC_DEF("x2vp50", CPU_POWERPC_X2VP50, 0xFFFFFFFF, 405), |
4677 | a750fc0b | j_mayer | #if defined (TODO)
|
4678 | a750fc0b | j_mayer | /* Zarlink ZL10310 */
|
4679 | a750fc0b | j_mayer | POWERPC_DEF("zl10310", CPU_POWERPC_ZL10310, 0xFFFFFFFF, 405), |
4680 | a750fc0b | j_mayer | #endif
|
4681 | a750fc0b | j_mayer | #if defined (TODO)
|
4682 | a750fc0b | j_mayer | /* Zarlink ZL10311 */
|
4683 | a750fc0b | j_mayer | POWERPC_DEF("zl10311", CPU_POWERPC_ZL10311, 0xFFFFFFFF, 405), |
4684 | a750fc0b | j_mayer | #endif
|
4685 | a750fc0b | j_mayer | #if defined (TODO)
|
4686 | a750fc0b | j_mayer | /* Zarlink ZL10320 */
|
4687 | a750fc0b | j_mayer | POWERPC_DEF("zl10320", CPU_POWERPC_ZL10320, 0xFFFFFFFF, 405), |
4688 | a750fc0b | j_mayer | #endif
|
4689 | a750fc0b | j_mayer | #if defined (TODO)
|
4690 | a750fc0b | j_mayer | /* Zarlink ZL10321 */
|
4691 | a750fc0b | j_mayer | POWERPC_DEF("zl10321", CPU_POWERPC_ZL10321, 0xFFFFFFFF, 405), |
4692 | a750fc0b | j_mayer | #endif
|
4693 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
4694 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
4695 | a750fc0b | j_mayer | POWERPC_DEF("440", CPU_POWERPC_440, 0xFFFFFFFF, 440GP), |
4696 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
4697 | a750fc0b | j_mayer | #if defined (TODO)
|
4698 | a750fc0b | j_mayer | /* PowerPC 440 A4 */
|
4699 | a750fc0b | j_mayer | POWERPC_DEF("440A4", CPU_POWERPC_440A4, 0xFFFFFFFF, 440x4), |
4700 | a750fc0b | j_mayer | #endif
|
4701 | a750fc0b | j_mayer | #if defined (TODO)
|
4702 | a750fc0b | j_mayer | /* PowerPC 440 A5 */
|
4703 | a750fc0b | j_mayer | POWERPC_DEF("440A5", CPU_POWERPC_440A5, 0xFFFFFFFF, 440x5), |
4704 | a750fc0b | j_mayer | #endif
|
4705 | a750fc0b | j_mayer | #if defined (TODO)
|
4706 | a750fc0b | j_mayer | /* PowerPC 440 B4 */
|
4707 | a750fc0b | j_mayer | POWERPC_DEF("440B4", CPU_POWERPC_440B4, 0xFFFFFFFF, 440x4), |
4708 | a750fc0b | j_mayer | #endif
|
4709 | a750fc0b | j_mayer | #if defined (TODO)
|
4710 | a750fc0b | j_mayer | /* PowerPC 440 G4 */
|
4711 | a750fc0b | j_mayer | POWERPC_DEF("440G4", CPU_POWERPC_440G4, 0xFFFFFFFF, 440x4), |
4712 | a750fc0b | j_mayer | #endif
|
4713 | a750fc0b | j_mayer | #if defined (TODO)
|
4714 | a750fc0b | j_mayer | /* PowerPC 440 F5 */
|
4715 | a750fc0b | j_mayer | POWERPC_DEF("440F5", CPU_POWERPC_440F5, 0xFFFFFFFF, 440x5), |
4716 | a750fc0b | j_mayer | #endif
|
4717 | a750fc0b | j_mayer | #if defined (TODO)
|
4718 | a750fc0b | j_mayer | /* PowerPC 440 G5 */
|
4719 | a750fc0b | j_mayer | POWERPC_DEF("440G5", CPU_POWERPC_440G5, 0xFFFFFFFF, 440x5), |
4720 | a750fc0b | j_mayer | #endif
|
4721 | a750fc0b | j_mayer | #if defined (TODO)
|
4722 | a750fc0b | j_mayer | /* PowerPC 440H4 */
|
4723 | a750fc0b | j_mayer | POWERPC_DEF("440H4", CPU_POWERPC_440H4, 0xFFFFFFFF, 440x4), |
4724 | a750fc0b | j_mayer | #endif
|
4725 | a750fc0b | j_mayer | #if defined (TODO)
|
4726 | a750fc0b | j_mayer | /* PowerPC 440H6 */
|
4727 | a750fc0b | j_mayer | POWERPC_DEF("440H6", CPU_POWERPC_440H6, 0xFFFFFFFF, 440Gx5), |
4728 | a750fc0b | j_mayer | #endif
|
4729 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
4730 | a750fc0b | j_mayer | /* PowerPC 440 EP */
|
4731 | a750fc0b | j_mayer | POWERPC_DEF("440EP", CPU_POWERPC_440EP, 0xFFFFFFFF, 440EP), |
4732 | a750fc0b | j_mayer | /* PowerPC 440 EPa */
|
4733 | a750fc0b | j_mayer | POWERPC_DEF("440EPa", CPU_POWERPC_440EPa, 0xFFFFFFFF, 440EP), |
4734 | a750fc0b | j_mayer | /* PowerPC 440 EPb */
|
4735 | a750fc0b | j_mayer | POWERPC_DEF("440EPb", CPU_POWERPC_440EPb, 0xFFFFFFFF, 440EP), |
4736 | a750fc0b | j_mayer | /* PowerPC 440 EPX */
|
4737 | a750fc0b | j_mayer | POWERPC_DEF("440EPX", CPU_POWERPC_440EPX, 0xFFFFFFFF, 440EP), |
4738 | a750fc0b | j_mayer | /* PowerPC 440 GP */
|
4739 | a750fc0b | j_mayer | POWERPC_DEF("440GP", CPU_POWERPC_440GP, 0xFFFFFFFF, 440GP), |
4740 | a750fc0b | j_mayer | /* PowerPC 440 GPb */
|
4741 | a750fc0b | j_mayer | POWERPC_DEF("440GPb", CPU_POWERPC_440GPb, 0xFFFFFFFF, 440GP), |
4742 | a750fc0b | j_mayer | /* PowerPC 440 GPc */
|
4743 | a750fc0b | j_mayer | POWERPC_DEF("440GPc", CPU_POWERPC_440GPc, 0xFFFFFFFF, 440GP), |
4744 | a750fc0b | j_mayer | /* PowerPC 440 GR */
|
4745 | a750fc0b | j_mayer | POWERPC_DEF("440GR", CPU_POWERPC_440GR, 0xFFFFFFFF, 440x5), |
4746 | a750fc0b | j_mayer | /* PowerPC 440 GRa */
|
4747 | a750fc0b | j_mayer | POWERPC_DEF("440GRa", CPU_POWERPC_440GRa, 0xFFFFFFFF, 440x5), |
4748 | a750fc0b | j_mayer | /* PowerPC 440 GRX */
|
4749 | a750fc0b | j_mayer | POWERPC_DEF("440GRX", CPU_POWERPC_440GRX, 0xFFFFFFFF, 440x5), |
4750 | a750fc0b | j_mayer | /* PowerPC 440 GX */
|
4751 | a750fc0b | j_mayer | POWERPC_DEF("440GX", CPU_POWERPC_440GX, 0xFFFFFFFF, 440EP), |
4752 | a750fc0b | j_mayer | /* PowerPC 440 GXa */
|
4753 | a750fc0b | j_mayer | POWERPC_DEF("440GXa", CPU_POWERPC_440GXa, 0xFFFFFFFF, 440EP), |
4754 | a750fc0b | j_mayer | /* PowerPC 440 GXb */
|
4755 | a750fc0b | j_mayer | POWERPC_DEF("440GXb", CPU_POWERPC_440GXb, 0xFFFFFFFF, 440EP), |
4756 | a750fc0b | j_mayer | /* PowerPC 440 GXc */
|
4757 | a750fc0b | j_mayer | POWERPC_DEF("440GXc", CPU_POWERPC_440GXc, 0xFFFFFFFF, 440EP), |
4758 | a750fc0b | j_mayer | /* PowerPC 440 GXf */
|
4759 | a750fc0b | j_mayer | POWERPC_DEF("440GXf", CPU_POWERPC_440GXf, 0xFFFFFFFF, 440EP), |
4760 | a750fc0b | j_mayer | #if defined(TODO)
|
4761 | a750fc0b | j_mayer | /* PowerPC 440 S */
|
4762 | a750fc0b | j_mayer | POWERPC_DEF("440S", CPU_POWERPC_440S, 0xFFFFFFFF, 440), |
4763 | a750fc0b | j_mayer | #endif
|
4764 | a750fc0b | j_mayer | /* PowerPC 440 SP */
|
4765 | a750fc0b | j_mayer | POWERPC_DEF("440SP", CPU_POWERPC_440SP, 0xFFFFFFFF, 440EP), |
4766 | a750fc0b | j_mayer | /* PowerPC 440 SP2 */
|
4767 | a750fc0b | j_mayer | POWERPC_DEF("440SP2", CPU_POWERPC_440SP2, 0xFFFFFFFF, 440EP), |
4768 | a750fc0b | j_mayer | /* PowerPC 440 SPE */
|
4769 | a750fc0b | j_mayer | POWERPC_DEF("440SPE", CPU_POWERPC_440SPE, 0xFFFFFFFF, 440EP), |
4770 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
4771 | a750fc0b | j_mayer | #if defined (TODO)
|
4772 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
4773 | a750fc0b | j_mayer | POWERPC_DEF("464", CPU_POWERPC_464, 0xFFFFFFFF, 460), |
4774 | a750fc0b | j_mayer | #endif
|
4775 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
4776 | a750fc0b | j_mayer | #if defined (TODO)
|
4777 | a750fc0b | j_mayer | /* PowerPC 464H90 */
|
4778 | a750fc0b | j_mayer | POWERPC_DEF("464H90", CPU_POWERPC_464H90, 0xFFFFFFFF, 460), |
4779 | a750fc0b | j_mayer | #endif
|
4780 | a750fc0b | j_mayer | #if defined (TODO)
|
4781 | a750fc0b | j_mayer | /* PowerPC 464H90F */
|
4782 | a750fc0b | j_mayer | POWERPC_DEF("464H90F", CPU_POWERPC_464H90F, 0xFFFFFFFF, 460F), |
4783 | a750fc0b | j_mayer | #endif
|
4784 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
4785 | a750fc0b | j_mayer | /* e200 family */
|
4786 | a750fc0b | j_mayer | #if defined (TODO)
|
4787 | a750fc0b | j_mayer | /* Generic PowerPC e200 core */
|
4788 | a750fc0b | j_mayer | POWERPC_DEF("e200", CPU_POWERPC_e200, 0xFFFFFFFF, e200), |
4789 | a750fc0b | j_mayer | #endif
|
4790 | a750fc0b | j_mayer | #if defined (TODO)
|
4791 | a750fc0b | j_mayer | /* PowerPC e200z5 core */
|
4792 | a750fc0b | j_mayer | POWERPC_DEF("e200z5", CPU_POWERPC_e200z5, 0xFFFFFFFF, e200), |
4793 | a750fc0b | j_mayer | #endif
|
4794 | a750fc0b | j_mayer | #if defined (TODO)
|
4795 | a750fc0b | j_mayer | /* PowerPC e200z6 core */
|
4796 | a750fc0b | j_mayer | POWERPC_DEF("e200z6", CPU_POWERPC_e200z6, 0xFFFFFFFF, e200), |
4797 | a750fc0b | j_mayer | #endif
|
4798 | a750fc0b | j_mayer | /* e300 family */
|
4799 | a750fc0b | j_mayer | #if defined (TODO)
|
4800 | a750fc0b | j_mayer | /* Generic PowerPC e300 core */
|
4801 | a750fc0b | j_mayer | POWERPC_DEF("e300", CPU_POWERPC_e300, 0xFFFFFFFF, e300), |
4802 | a750fc0b | j_mayer | #endif
|
4803 | a750fc0b | j_mayer | #if defined (TODO)
|
4804 | a750fc0b | j_mayer | /* PowerPC e300c1 core */
|
4805 | a750fc0b | j_mayer | POWERPC_DEF("e300c1", CPU_POWERPC_e300c1, 0xFFFFFFFF, e300), |
4806 | a750fc0b | j_mayer | #endif
|
4807 | a750fc0b | j_mayer | #if defined (TODO)
|
4808 | a750fc0b | j_mayer | /* PowerPC e300c2 core */
|
4809 | a750fc0b | j_mayer | POWERPC_DEF("e300c2", CPU_POWERPC_e300c2, 0xFFFFFFFF, e300), |
4810 | a750fc0b | j_mayer | #endif
|
4811 | a750fc0b | j_mayer | #if defined (TODO)
|
4812 | a750fc0b | j_mayer | /* PowerPC e300c3 core */
|
4813 | a750fc0b | j_mayer | POWERPC_DEF("e300c3", CPU_POWERPC_e300c3, 0xFFFFFFFF, e300), |
4814 | a750fc0b | j_mayer | #endif
|
4815 | a750fc0b | j_mayer | /* e500 family */
|
4816 | a750fc0b | j_mayer | #if defined (TODO)
|
4817 | a750fc0b | j_mayer | /* PowerPC e500 core */
|
4818 | a750fc0b | j_mayer | POWERPC_DEF("e500", CPU_POWERPC_e500, 0xFFFFFFFF, e500), |
4819 | a750fc0b | j_mayer | #endif
|
4820 | a750fc0b | j_mayer | #if defined (TODO)
|
4821 | a750fc0b | j_mayer | /* PowerPC e500 v1.1 core */
|
4822 | a750fc0b | j_mayer | POWERPC_DEF("e500v1.1", CPU_POWERPC_e500_v11, 0xFFFFFFFF, e500), |
4823 | a750fc0b | j_mayer | #endif
|
4824 | a750fc0b | j_mayer | #if defined (TODO)
|
4825 | a750fc0b | j_mayer | /* PowerPC e500 v1.2 core */
|
4826 | a750fc0b | j_mayer | POWERPC_DEF("e500v1.2", CPU_POWERPC_e500_v12, 0xFFFFFFFF, e500), |
4827 | a750fc0b | j_mayer | #endif
|
4828 | a750fc0b | j_mayer | #if defined (TODO)
|
4829 | a750fc0b | j_mayer | /* PowerPC e500 v2.1 core */
|
4830 | a750fc0b | j_mayer | POWERPC_DEF("e500v2.1", CPU_POWERPC_e500_v21, 0xFFFFFFFF, e500), |
4831 | a750fc0b | j_mayer | #endif
|
4832 | a750fc0b | j_mayer | #if defined (TODO)
|
4833 | a750fc0b | j_mayer | /* PowerPC e500 v2.2 core */
|
4834 | a750fc0b | j_mayer | POWERPC_DEF("e500v2.2", CPU_POWERPC_e500_v22, 0xFFFFFFFF, e500), |
4835 | a750fc0b | j_mayer | #endif
|
4836 | a750fc0b | j_mayer | /* e600 family */
|
4837 | a750fc0b | j_mayer | #if defined (TODO)
|
4838 | a750fc0b | j_mayer | /* PowerPC e600 core */
|
4839 | a750fc0b | j_mayer | POWERPC_DEF("e600", CPU_POWERPC_e600, 0xFFFFFFFF, e600), |
4840 | a750fc0b | j_mayer | #endif
|
4841 | a750fc0b | j_mayer | /* PowerPC MPC 5xx cores */
|
4842 | a750fc0b | j_mayer | #if defined (TODO)
|
4843 | a750fc0b | j_mayer | /* PowerPC MPC 5xx */
|
4844 | a750fc0b | j_mayer | POWERPC_DEF("mpc5xx", CPU_POWERPC_5xx, 0xFFFFFFFF, 5xx), |
4845 | a750fc0b | j_mayer | #endif
|
4846 | a750fc0b | j_mayer | /* PowerPC MPC 8xx cores */
|
4847 | a750fc0b | j_mayer | #if defined (TODO)
|
4848 | a750fc0b | j_mayer | /* PowerPC MPC 8xx */
|
4849 | a750fc0b | j_mayer | POWERPC_DEF("mpc8xx", CPU_POWERPC_8xx, 0xFFFFFFFF, 8xx), |
4850 | a750fc0b | j_mayer | #endif
|
4851 | a750fc0b | j_mayer | /* PowerPC MPC 8xxx cores */
|
4852 | a750fc0b | j_mayer | #if defined (TODO)
|
4853 | a750fc0b | j_mayer | /* PowerPC MPC 82xx HIP3 */
|
4854 | a750fc0b | j_mayer | POWERPC_DEF("mpc82xxhip3", CPU_POWERPC_82xx_HIP3, 0xFFFFFFFF, 82xx), |
4855 | a750fc0b | j_mayer | #endif
|
4856 | a750fc0b | j_mayer | #if defined (TODO)
|
4857 | a750fc0b | j_mayer | /* PowerPC MPC 82xx HIP4 */
|
4858 | a750fc0b | j_mayer | POWERPC_DEF("mpc82xxhip4", CPU_POWERPC_82xx_HIP4, 0xFFFFFFFF, 82xx), |
4859 | a750fc0b | j_mayer | #endif
|
4860 | a750fc0b | j_mayer | #if defined (TODO)
|
4861 | a750fc0b | j_mayer | /* PowerPC MPC 827x */
|
4862 | a750fc0b | j_mayer | POWERPC_DEF("mpc827x", CPU_POWERPC_827x, 0xFFFFFFFF, 827x), |
4863 | a750fc0b | j_mayer | #endif
|
4864 | a750fc0b | j_mayer | |
4865 | a750fc0b | j_mayer | /* 32 bits "classic" PowerPC */
|
4866 | a750fc0b | j_mayer | /* PowerPC 6xx family */
|
4867 | a750fc0b | j_mayer | /* PowerPC 601 */
|
4868 | a750fc0b | j_mayer | POWERPC_DEF("601", CPU_POWERPC_601, 0xFFFFFFFF, 601), |
4869 | a750fc0b | j_mayer | /* PowerPC 601v2 */
|
4870 | a750fc0b | j_mayer | POWERPC_DEF("601a", CPU_POWERPC_601a, 0xFFFFFFFF, 601), |
4871 | a750fc0b | j_mayer | /* PowerPC 602 */
|
4872 | a750fc0b | j_mayer | POWERPC_DEF("602", CPU_POWERPC_602, 0xFFFFFFFF, 602), |
4873 | a750fc0b | j_mayer | /* PowerPC 603 */
|
4874 | a750fc0b | j_mayer | POWERPC_DEF("603", CPU_POWERPC_603, 0xFFFFFFFF, 603), |
4875 | a750fc0b | j_mayer | /* Code name for PowerPC 603 */
|
4876 | a750fc0b | j_mayer | POWERPC_DEF("Vanilla", CPU_POWERPC_603, 0xFFFFFFFF, 603), |
4877 | a750fc0b | j_mayer | /* PowerPC 603e */
|
4878 | a750fc0b | j_mayer | POWERPC_DEF("603e", CPU_POWERPC_603E, 0xFFFFFFFF, 603E), |
4879 | a750fc0b | j_mayer | /* Code name for PowerPC 603e */
|
4880 | a750fc0b | j_mayer | POWERPC_DEF("Stretch", CPU_POWERPC_603E, 0xFFFFFFFF, 603E), |
4881 | a750fc0b | j_mayer | /* PowerPC 603e v1.1 */
|
4882 | a750fc0b | j_mayer | POWERPC_DEF("603e1.1", CPU_POWERPC_603E_v11, 0xFFFFFFFF, 603E), |
4883 | a750fc0b | j_mayer | /* PowerPC 603e v1.2 */
|
4884 | a750fc0b | j_mayer | POWERPC_DEF("603e1.2", CPU_POWERPC_603E_v12, 0xFFFFFFFF, 603E), |
4885 | a750fc0b | j_mayer | /* PowerPC 603e v1.3 */
|
4886 | a750fc0b | j_mayer | POWERPC_DEF("603e1.3", CPU_POWERPC_603E_v13, 0xFFFFFFFF, 603E), |
4887 | a750fc0b | j_mayer | /* PowerPC 603e v1.4 */
|
4888 | a750fc0b | j_mayer | POWERPC_DEF("603e1.4", CPU_POWERPC_603E_v14, 0xFFFFFFFF, 603E), |
4889 | a750fc0b | j_mayer | /* PowerPC 603e v2.2 */
|
4890 | a750fc0b | j_mayer | POWERPC_DEF("603e2.2", CPU_POWERPC_603E_v22, 0xFFFFFFFF, 603E), |
4891 | a750fc0b | j_mayer | /* PowerPC 603e v3 */
|
4892 | a750fc0b | j_mayer | POWERPC_DEF("603e3", CPU_POWERPC_603E_v3, 0xFFFFFFFF, 603E), |
4893 | a750fc0b | j_mayer | /* PowerPC 603e v4 */
|
4894 | a750fc0b | j_mayer | POWERPC_DEF("603e4", CPU_POWERPC_603E_v4, 0xFFFFFFFF, 603E), |
4895 | a750fc0b | j_mayer | /* PowerPC 603e v4.1 */
|
4896 | a750fc0b | j_mayer | POWERPC_DEF("603e4.1", CPU_POWERPC_603E_v41, 0xFFFFFFFF, 603E), |
4897 | a750fc0b | j_mayer | /* PowerPC 603e */
|
4898 | a750fc0b | j_mayer | POWERPC_DEF("603e7", CPU_POWERPC_603E7, 0xFFFFFFFF, 603E), |
4899 | a750fc0b | j_mayer | /* PowerPC 603e7t */
|
4900 | a750fc0b | j_mayer | POWERPC_DEF("603e7t", CPU_POWERPC_603E7t, 0xFFFFFFFF, 603E), |
4901 | a750fc0b | j_mayer | /* PowerPC 603e7v */
|
4902 | a750fc0b | j_mayer | POWERPC_DEF("603e7v", CPU_POWERPC_603E7v, 0xFFFFFFFF, 603E), |
4903 | a750fc0b | j_mayer | /* Code name for PowerPC 603ev */
|
4904 | a750fc0b | j_mayer | POWERPC_DEF("Vaillant", CPU_POWERPC_603E7v, 0xFFFFFFFF, 603E), |
4905 | a750fc0b | j_mayer | /* PowerPC 603e7v1 */
|
4906 | a750fc0b | j_mayer | POWERPC_DEF("603e7v1", CPU_POWERPC_603E7v1, 0xFFFFFFFF, 603E), |
4907 | a750fc0b | j_mayer | /* PowerPC 603e7v2 */
|
4908 | a750fc0b | j_mayer | POWERPC_DEF("603e7v2", CPU_POWERPC_603E7v2, 0xFFFFFFFF, 603E), |
4909 | a750fc0b | j_mayer | /* PowerPC 603p */
|
4910 | a750fc0b | j_mayer | /* to be checked */
|
4911 | a750fc0b | j_mayer | POWERPC_DEF("603p", CPU_POWERPC_603P, 0xFFFFFFFF, 603), |
4912 | a750fc0b | j_mayer | /* PowerPC 603r */
|
4913 | a750fc0b | j_mayer | POWERPC_DEF("603r", CPU_POWERPC_603R, 0xFFFFFFFF, 603E), |
4914 | a750fc0b | j_mayer | /* Code name for PowerPC 603r */
|
4915 | a750fc0b | j_mayer | POWERPC_DEF("Goldeneye", CPU_POWERPC_603R, 0xFFFFFFFF, 603E), |
4916 | a750fc0b | j_mayer | /* PowerPC G2 core */
|
4917 | a750fc0b | j_mayer | POWERPC_DEF("G2", CPU_POWERPC_G2, 0xFFFFFFFF, G2), |
4918 | a750fc0b | j_mayer | /* PowerPC G2 H4 */
|
4919 | a750fc0b | j_mayer | POWERPC_DEF("G2H4", CPU_POWERPC_G2H4, 0xFFFFFFFF, G2), |
4920 | a750fc0b | j_mayer | /* PowerPC G2 GP */
|
4921 | a750fc0b | j_mayer | POWERPC_DEF("G2GP", CPU_POWERPC_G2gp, 0xFFFFFFFF, G2), |
4922 | a750fc0b | j_mayer | /* PowerPC G2 LS */
|
4923 | a750fc0b | j_mayer | POWERPC_DEF("G2LS", CPU_POWERPC_G2ls, 0xFFFFFFFF, G2), |
4924 | a750fc0b | j_mayer | /* PowerPC G2LE */
|
4925 | a750fc0b | j_mayer | /* Same as G2, with little-endian mode support */
|
4926 | a750fc0b | j_mayer | POWERPC_DEF("G2le", CPU_POWERPC_G2LE, 0xFFFFFFFF, G2LE), |
4927 | a750fc0b | j_mayer | /* PowerPC G2LE GP */
|
4928 | a750fc0b | j_mayer | POWERPC_DEF("G2leGP", CPU_POWERPC_G2LEgp, 0xFFFFFFFF, G2LE), |
4929 | a750fc0b | j_mayer | /* PowerPC G2LE LS */
|
4930 | a750fc0b | j_mayer | POWERPC_DEF("G2leLS", CPU_POWERPC_G2LEls, 0xFFFFFFFF, G2LE), |
4931 | a750fc0b | j_mayer | /* PowerPC 604 */
|
4932 | a750fc0b | j_mayer | POWERPC_DEF("604", CPU_POWERPC_604, 0xFFFFFFFF, 604), |
4933 | a750fc0b | j_mayer | /* PowerPC 604e */
|
4934 | a750fc0b | j_mayer | POWERPC_DEF("604e", CPU_POWERPC_604E, 0xFFFFFFFF, 604), |
4935 | a750fc0b | j_mayer | /* PowerPC 604e v1.0 */
|
4936 | a750fc0b | j_mayer | POWERPC_DEF("604e1.0", CPU_POWERPC_604E_v10, 0xFFFFFFFF, 604), |
4937 | a750fc0b | j_mayer | /* PowerPC 604e v2.2 */
|
4938 | a750fc0b | j_mayer | POWERPC_DEF("604e2.2", CPU_POWERPC_604E_v22, 0xFFFFFFFF, 604), |
4939 | a750fc0b | j_mayer | /* PowerPC 604e v2.4 */
|
4940 | a750fc0b | j_mayer | POWERPC_DEF("604e2.4", CPU_POWERPC_604E_v24, 0xFFFFFFFF, 604), |
4941 | a750fc0b | j_mayer | /* PowerPC 604r */
|
4942 | a750fc0b | j_mayer | POWERPC_DEF("604r", CPU_POWERPC_604R, 0xFFFFFFFF, 604), |
4943 | a750fc0b | j_mayer | #if defined(TODO)
|
4944 | a750fc0b | j_mayer | /* PowerPC 604ev */
|
4945 | a750fc0b | j_mayer | POWERPC_DEF("604ev", CPU_POWERPC_604EV, 0xFFFFFFFF, 604), |
4946 | a750fc0b | j_mayer | #endif
|
4947 | a750fc0b | j_mayer | /* PowerPC 7xx family */
|
4948 | a750fc0b | j_mayer | /* Generic PowerPC 740 (G3) */
|
4949 | a750fc0b | j_mayer | POWERPC_DEF("740", CPU_POWERPC_7x0, 0xFFFFFFFF, 7x0), |
4950 | a750fc0b | j_mayer | /* Generic PowerPC 750 (G3) */
|
4951 | a750fc0b | j_mayer | POWERPC_DEF("750", CPU_POWERPC_7x0, 0xFFFFFFFF, 7x0), |
4952 | a750fc0b | j_mayer | /* Code name for generic PowerPC 740/750 (G3) */
|
4953 | a750fc0b | j_mayer | POWERPC_DEF("Arthur", CPU_POWERPC_7x0, 0xFFFFFFFF, 7x0), |
4954 | a750fc0b | j_mayer | /* PowerPC 740/750 is also known as G3 */
|
4955 | a750fc0b | j_mayer | POWERPC_DEF("G3", CPU_POWERPC_7x0, 0xFFFFFFFF, 7x0), |
4956 | a750fc0b | j_mayer | /* PowerPC 740 v2.0 (G3) */
|
4957 | a750fc0b | j_mayer | POWERPC_DEF("740v2.0", CPU_POWERPC_7x0_v20, 0xFFFFFFFF, 7x0), |
4958 | a750fc0b | j_mayer | /* PowerPC 750 v2.0 (G3) */
|
4959 | a750fc0b | j_mayer | POWERPC_DEF("750v2.0", CPU_POWERPC_7x0_v20, 0xFFFFFFFF, 7x0), |
4960 | a750fc0b | j_mayer | /* PowerPC 740 v2.1 (G3) */
|
4961 | a750fc0b | j_mayer | POWERPC_DEF("740v2.1", CPU_POWERPC_7x0_v21, 0xFFFFFFFF, 7x0), |
4962 | a750fc0b | j_mayer | /* PowerPC 750 v2.1 (G3) */
|
4963 | a750fc0b | j_mayer | POWERPC_DEF("750v2.1", CPU_POWERPC_7x0_v21, 0xFFFFFFFF, 7x0), |
4964 | a750fc0b | j_mayer | /* PowerPC 740 v2.2 (G3) */
|
4965 | a750fc0b | j_mayer | POWERPC_DEF("740v2.2", CPU_POWERPC_7x0_v22, 0xFFFFFFFF, 7x0), |
4966 | a750fc0b | j_mayer | /* PowerPC 750 v2.2 (G3) */
|
4967 | a750fc0b | j_mayer | POWERPC_DEF("750v2.2", CPU_POWERPC_7x0_v22, 0xFFFFFFFF, 7x0), |
4968 | a750fc0b | j_mayer | /* PowerPC 740 v3.0 (G3) */
|
4969 | a750fc0b | j_mayer | POWERPC_DEF("740v3.0", CPU_POWERPC_7x0_v30, 0xFFFFFFFF, 7x0), |
4970 | a750fc0b | j_mayer | /* PowerPC 750 v3.0 (G3) */
|
4971 | a750fc0b | j_mayer | POWERPC_DEF("750v3.0", CPU_POWERPC_7x0_v30, 0xFFFFFFFF, 7x0), |
4972 | a750fc0b | j_mayer | /* PowerPC 740 v3.1 (G3) */
|
4973 | a750fc0b | j_mayer | POWERPC_DEF("740v3.1", CPU_POWERPC_7x0_v31, 0xFFFFFFFF, 7x0), |
4974 | a750fc0b | j_mayer | /* PowerPC 750 v3.1 (G3) */
|
4975 | a750fc0b | j_mayer | POWERPC_DEF("750v3.1", CPU_POWERPC_7x0_v31, 0xFFFFFFFF, 7x0), |
4976 | a750fc0b | j_mayer | /* PowerPC 740E (G3) */
|
4977 | a750fc0b | j_mayer | POWERPC_DEF("740e", CPU_POWERPC_740E, 0xFFFFFFFF, 7x0), |
4978 | a750fc0b | j_mayer | /* PowerPC 740P (G3) */
|
4979 | a750fc0b | j_mayer | POWERPC_DEF("740p", CPU_POWERPC_7x0P, 0xFFFFFFFF, 7x0), |
4980 | a750fc0b | j_mayer | /* PowerPC 750P (G3) */
|
4981 | a750fc0b | j_mayer | POWERPC_DEF("750p", CPU_POWERPC_7x0P, 0xFFFFFFFF, 7x0), |
4982 | a750fc0b | j_mayer | /* Code name for PowerPC 740P/750P (G3) */
|
4983 | a750fc0b | j_mayer | POWERPC_DEF("Conan/Doyle", CPU_POWERPC_7x0P, 0xFFFFFFFF, 7x0), |
4984 | a750fc0b | j_mayer | /* PowerPC 750CL (G3 embedded) */
|
4985 | a750fc0b | j_mayer | POWERPC_DEF("750cl", CPU_POWERPC_750CL, 0xFFFFFFFF, 7x0), |
4986 | a750fc0b | j_mayer | /* PowerPC 750CX (G3 embedded) */
|
4987 | a750fc0b | j_mayer | POWERPC_DEF("750cx", CPU_POWERPC_750CX, 0xFFFFFFFF, 7x0), |
4988 | a750fc0b | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
4989 | a750fc0b | j_mayer | POWERPC_DEF("750cx2.1", CPU_POWERPC_750CX_v21, 0xFFFFFFFF, 7x0), |
4990 | a750fc0b | j_mayer | /* PowerPC 750CX v2.2 (G3 embedded) */
|
4991 | a750fc0b | j_mayer | POWERPC_DEF("750cx2.2", CPU_POWERPC_750CX_v22, 0xFFFFFFFF, 7x0), |
4992 | a750fc0b | j_mayer | /* PowerPC 750CXe (G3 embedded) */
|
4993 | a750fc0b | j_mayer | POWERPC_DEF("750cxe", CPU_POWERPC_750CXE, 0xFFFFFFFF, 7x0), |
4994 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.1 (G3 embedded) */
|
4995 | a750fc0b | j_mayer | POWERPC_DEF("750cxe21", CPU_POWERPC_750CXE_v21, 0xFFFFFFFF, 7x0), |
4996 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.2 (G3 embedded) */
|
4997 | a750fc0b | j_mayer | POWERPC_DEF("750cxe22", CPU_POWERPC_750CXE_v22, 0xFFFFFFFF, 7x0), |
4998 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.3 (G3 embedded) */
|
4999 | a750fc0b | j_mayer | POWERPC_DEF("750cxe23", CPU_POWERPC_750CXE_v23, 0xFFFFFFFF, 7x0), |
5000 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4 (G3 embedded) */
|
5001 | a750fc0b | j_mayer | POWERPC_DEF("750cxe24", CPU_POWERPC_750CXE_v24, 0xFFFFFFFF, 7x0), |
5002 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4b (G3 embedded) */
|
5003 | a750fc0b | j_mayer | POWERPC_DEF("750cxe24b", CPU_POWERPC_750CXE_v24b, 0xFFFFFFFF, 7x0), |
5004 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1 (G3 embedded) */
|
5005 | a750fc0b | j_mayer | POWERPC_DEF("750cxe31", CPU_POWERPC_750CXE_v31, 0xFFFFFFFF, 7x0), |
5006 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1b (G3 embedded) */
|
5007 | a750fc0b | j_mayer | POWERPC_DEF("750cxe3.1b", CPU_POWERPC_750CXE_v31b, 0xFFFFFFFF, 7x0), |
5008 | a750fc0b | j_mayer | /* PowerPC 750CXr (G3 embedded) */
|
5009 | a750fc0b | j_mayer | POWERPC_DEF("750cxr", CPU_POWERPC_750CXR, 0xFFFFFFFF, 7x0), |
5010 | a750fc0b | j_mayer | /* PowerPC 750E (G3) */
|
5011 | a750fc0b | j_mayer | POWERPC_DEF("750e", CPU_POWERPC_750E, 0xFFFFFFFF, 7x0), |
5012 | a750fc0b | j_mayer | /* PowerPC 750FL (G3 embedded) */
|
5013 | d12f4c38 | j_mayer | POWERPC_DEF("750fl", CPU_POWERPC_750FL, 0xFFFFFFFF, 750fx), |
5014 | a750fc0b | j_mayer | /* PowerPC 750FX (G3 embedded) */
|
5015 | a750fc0b | j_mayer | POWERPC_DEF("750fx", CPU_POWERPC_750FX, 0xFFFFFFFF, 750fx), |
5016 | a750fc0b | j_mayer | /* PowerPC 750FX v1.0 (G3 embedded) */
|
5017 | a750fc0b | j_mayer | POWERPC_DEF("750fx1.0", CPU_POWERPC_750FX_v10, 0xFFFFFFFF, 750fx), |
5018 | a750fc0b | j_mayer | /* PowerPC 750FX v2.0 (G3 embedded) */
|
5019 | a750fc0b | j_mayer | POWERPC_DEF("750fx2.0", CPU_POWERPC_750FX_v20, 0xFFFFFFFF, 750fx), |
5020 | a750fc0b | j_mayer | /* PowerPC 750FX v2.1 (G3 embedded) */
|
5021 | a750fc0b | j_mayer | POWERPC_DEF("750fx2.1", CPU_POWERPC_750FX_v21, 0xFFFFFFFF, 750fx), |
5022 | a750fc0b | j_mayer | /* PowerPC 750FX v2.2 (G3 embedded) */
|
5023 | a750fc0b | j_mayer | POWERPC_DEF("750fx2.2", CPU_POWERPC_750FX_v22, 0xFFFFFFFF, 750fx), |
5024 | a750fc0b | j_mayer | /* PowerPC 750FX v2.3 (G3 embedded) */
|
5025 | a750fc0b | j_mayer | POWERPC_DEF("750fx2.3", CPU_POWERPC_750FX_v23, 0xFFFFFFFF, 750fx), |
5026 | a750fc0b | j_mayer | /* PowerPC 750GL (G3 embedded) */
|
5027 | d12f4c38 | j_mayer | POWERPC_DEF("750gl", CPU_POWERPC_750GL, 0xFFFFFFFF, 750fx), |
5028 | a750fc0b | j_mayer | /* PowerPC 750GX (G3 embedded) */
|
5029 | a750fc0b | j_mayer | POWERPC_DEF("750gx", CPU_POWERPC_750GX, 0xFFFFFFFF, 750fx), |
5030 | a750fc0b | j_mayer | /* PowerPC 750GX v1.0 (G3 embedded) */
|
5031 | a750fc0b | j_mayer | POWERPC_DEF("750gx1.0", CPU_POWERPC_750GX_v10, 0xFFFFFFFF, 750fx), |
5032 | a750fc0b | j_mayer | /* PowerPC 750GX v1.1 (G3 embedded) */
|
5033 | a750fc0b | j_mayer | POWERPC_DEF("750gx1.1", CPU_POWERPC_750GX_v11, 0xFFFFFFFF, 750fx), |
5034 | a750fc0b | j_mayer | /* PowerPC 750GX v1.2 (G3 embedded) */
|
5035 | a750fc0b | j_mayer | POWERPC_DEF("750gx1.2", CPU_POWERPC_750GX_v12, 0xFFFFFFFF, 750fx), |
5036 | a750fc0b | j_mayer | /* PowerPC 750L (G3 embedded) */
|
5037 | a750fc0b | j_mayer | POWERPC_DEF("750l", CPU_POWERPC_750L, 0xFFFFFFFF, 7x0), |
5038 | a750fc0b | j_mayer | /* Code name for PowerPC 750L (G3 embedded) */
|
5039 | a750fc0b | j_mayer | POWERPC_DEF("LoneStar", CPU_POWERPC_750L, 0xFFFFFFFF, 7x0), |
5040 | a750fc0b | j_mayer | /* PowerPC 750L v2.2 (G3 embedded) */
|
5041 | a750fc0b | j_mayer | POWERPC_DEF("750l2.2", CPU_POWERPC_750L_v22, 0xFFFFFFFF, 7x0), |
5042 | a750fc0b | j_mayer | /* PowerPC 750L v3.0 (G3 embedded) */
|
5043 | a750fc0b | j_mayer | POWERPC_DEF("750l3.0", CPU_POWERPC_750L_v30, 0xFFFFFFFF, 7x0), |
5044 | a750fc0b | j_mayer | /* PowerPC 750L v3.2 (G3 embedded) */
|
5045 | a750fc0b | j_mayer | POWERPC_DEF("750l3.2", CPU_POWERPC_750L_v32, 0xFFFFFFFF, 7x0), |
5046 | a750fc0b | j_mayer | /* Generic PowerPC 745 */
|
5047 | a750fc0b | j_mayer | POWERPC_DEF("745", CPU_POWERPC_7x5, 0xFFFFFFFF, 7x5), |
5048 | a750fc0b | j_mayer | /* Generic PowerPC 755 */
|
5049 | a750fc0b | j_mayer | POWERPC_DEF("755", CPU_POWERPC_7x5, 0xFFFFFFFF, 7x5), |
5050 | a750fc0b | j_mayer | /* Code name for PowerPC 745/755 */
|
5051 | a750fc0b | j_mayer | POWERPC_DEF("Goldfinger", CPU_POWERPC_7x5, 0xFFFFFFFF, 7x5), |
5052 | a750fc0b | j_mayer | /* PowerPC 745 v1.0 */
|
5053 | a750fc0b | j_mayer | POWERPC_DEF("745v1.0", CPU_POWERPC_7x5_v10, 0xFFFFFFFF, 7x5), |
5054 | a750fc0b | j_mayer | /* PowerPC 755 v1.0 */
|
5055 | a750fc0b | j_mayer | POWERPC_DEF("755v1.0", CPU_POWERPC_7x5_v10, 0xFFFFFFFF, 7x5), |
5056 | a750fc0b | j_mayer | /* PowerPC 745 v1.1 */
|
5057 | a750fc0b | j_mayer | POWERPC_DEF("745v1.1", CPU_POWERPC_7x5_v11, 0xFFFFFFFF, 7x5), |
5058 | a750fc0b | j_mayer | /* PowerPC 755 v1.1 */
|
5059 | a750fc0b | j_mayer | POWERPC_DEF("755v1.1", CPU_POWERPC_7x5_v11, 0xFFFFFFFF, 7x5), |
5060 | a750fc0b | j_mayer | /* PowerPC 745 v2.0 */
|
5061 | a750fc0b | j_mayer | POWERPC_DEF("745v2.0", CPU_POWERPC_7x5_v20, 0xFFFFFFFF, 7x5), |
5062 | a750fc0b | j_mayer | /* PowerPC 755 v2.0 */
|
5063 | a750fc0b | j_mayer | POWERPC_DEF("755v2.0", CPU_POWERPC_7x5_v20, 0xFFFFFFFF, 7x5), |
5064 | a750fc0b | j_mayer | /* PowerPC 745 v2.1 */
|
5065 | a750fc0b | j_mayer | POWERPC_DEF("745v2.1", CPU_POWERPC_7x5_v21, 0xFFFFFFFF, 7x5), |
5066 | a750fc0b | j_mayer | /* PowerPC 755 v2.1 */
|
5067 | a750fc0b | j_mayer | POWERPC_DEF("755v2.1", CPU_POWERPC_7x5_v21, 0xFFFFFFFF, 7x5), |
5068 | a750fc0b | j_mayer | /* PowerPC 745 v2.2 */
|
5069 | a750fc0b | j_mayer | POWERPC_DEF("745v2.2", CPU_POWERPC_7x5_v22, 0xFFFFFFFF, 7x5), |
5070 | a750fc0b | j_mayer | /* PowerPC 755 v2.2 */
|
5071 | a750fc0b | j_mayer | POWERPC_DEF("755v2.2", CPU_POWERPC_7x5_v22, 0xFFFFFFFF, 7x5), |
5072 | a750fc0b | j_mayer | /* PowerPC 745 v2.3 */
|
5073 | a750fc0b | j_mayer | POWERPC_DEF("745v2.3", CPU_POWERPC_7x5_v23, 0xFFFFFFFF, 7x5), |
5074 | a750fc0b | j_mayer | /* PowerPC 755 v2.3 */
|
5075 | a750fc0b | j_mayer | POWERPC_DEF("755v2.3", CPU_POWERPC_7x5_v23, 0xFFFFFFFF, 7x5), |
5076 | a750fc0b | j_mayer | /* PowerPC 745 v2.4 */
|
5077 | a750fc0b | j_mayer | POWERPC_DEF("745v2.4", CPU_POWERPC_7x5_v24, 0xFFFFFFFF, 7x5), |
5078 | a750fc0b | j_mayer | /* PowerPC 755 v2.4 */
|
5079 | a750fc0b | j_mayer | POWERPC_DEF("755v2.4", CPU_POWERPC_7x5_v24, 0xFFFFFFFF, 7x5), |
5080 | a750fc0b | j_mayer | /* PowerPC 745 v2.5 */
|
5081 | a750fc0b | j_mayer | POWERPC_DEF("745v2.5", CPU_POWERPC_7x5_v25, 0xFFFFFFFF, 7x5), |
5082 | a750fc0b | j_mayer | /* PowerPC 755 v2.5 */
|
5083 | a750fc0b | j_mayer | POWERPC_DEF("755v2.5", CPU_POWERPC_7x5_v25, 0xFFFFFFFF, 7x5), |
5084 | a750fc0b | j_mayer | /* PowerPC 745 v2.6 */
|
5085 | a750fc0b | j_mayer | POWERPC_DEF("745v2.6", CPU_POWERPC_7x5_v26, 0xFFFFFFFF, 7x5), |
5086 | a750fc0b | j_mayer | /* PowerPC 755 v2.6 */
|
5087 | a750fc0b | j_mayer | POWERPC_DEF("755v2.6", CPU_POWERPC_7x5_v26, 0xFFFFFFFF, 7x5), |
5088 | a750fc0b | j_mayer | /* PowerPC 745 v2.7 */
|
5089 | a750fc0b | j_mayer | POWERPC_DEF("745v2.7", CPU_POWERPC_7x5_v27, 0xFFFFFFFF, 7x5), |
5090 | a750fc0b | j_mayer | /* PowerPC 755 v2.7 */
|
5091 | a750fc0b | j_mayer | POWERPC_DEF("755v2.7", CPU_POWERPC_7x5_v27, 0xFFFFFFFF, 7x5), |
5092 | a750fc0b | j_mayer | /* PowerPC 745 v2.8 */
|
5093 | a750fc0b | j_mayer | POWERPC_DEF("745v2.8", CPU_POWERPC_7x5_v28, 0xFFFFFFFF, 7x5), |
5094 | a750fc0b | j_mayer | /* PowerPC 755 v2.8 */
|
5095 | a750fc0b | j_mayer | POWERPC_DEF("755v2.8", CPU_POWERPC_7x5_v28, 0xFFFFFFFF, 7x5), |
5096 | a750fc0b | j_mayer | #if defined (TODO)
|
5097 | a750fc0b | j_mayer | /* PowerPC 745P (G3) */
|
5098 | a750fc0b | j_mayer | POWERPC_DEF("745p", CPU_POWERPC_7x5P, 0xFFFFFFFF, 7x5), |
5099 | a750fc0b | j_mayer | /* PowerPC 755P (G3) */
|
5100 | a750fc0b | j_mayer | POWERPC_DEF("755p", CPU_POWERPC_7x5P, 0xFFFFFFFF, 7x5), |
5101 | a750fc0b | j_mayer | #endif
|
5102 | a750fc0b | j_mayer | /* PowerPC 74xx family */
|
5103 | a750fc0b | j_mayer | /* PowerPC 7400 (G4) */
|
5104 | a750fc0b | j_mayer | POWERPC_DEF("7400", CPU_POWERPC_7400, 0xFFFFFFFF, 7400), |
5105 | a750fc0b | j_mayer | /* Code name for PowerPC 7400 */
|
5106 | a750fc0b | j_mayer | POWERPC_DEF("Max", CPU_POWERPC_7400, 0xFFFFFFFF, 7400), |
5107 | a750fc0b | j_mayer | /* PowerPC 74xx is also well known as G4 */
|
5108 | a750fc0b | j_mayer | POWERPC_DEF("G4", CPU_POWERPC_7400, 0xFFFFFFFF, 7400), |
5109 | a750fc0b | j_mayer | /* PowerPC 7400 v1.0 (G4) */
|
5110 | a750fc0b | j_mayer | POWERPC_DEF("7400v1.0", CPU_POWERPC_7400_v10, 0xFFFFFFFF, 7400), |
5111 | a750fc0b | j_mayer | /* PowerPC 7400 v1.1 (G4) */
|
5112 | a750fc0b | j_mayer | POWERPC_DEF("7400v1.1", CPU_POWERPC_7400_v11, 0xFFFFFFFF, 7400), |
5113 | a750fc0b | j_mayer | /* PowerPC 7400 v2.0 (G4) */
|
5114 | a750fc0b | j_mayer | POWERPC_DEF("7400v2.0", CPU_POWERPC_7400_v20, 0xFFFFFFFF, 7400), |
5115 | a750fc0b | j_mayer | /* PowerPC 7400 v2.2 (G4) */
|
5116 | a750fc0b | j_mayer | POWERPC_DEF("7400v2.2", CPU_POWERPC_7400_v22, 0xFFFFFFFF, 7400), |
5117 | a750fc0b | j_mayer | /* PowerPC 7400 v2.6 (G4) */
|
5118 | a750fc0b | j_mayer | POWERPC_DEF("7400v2.6", CPU_POWERPC_7400_v26, 0xFFFFFFFF, 7400), |
5119 | a750fc0b | j_mayer | /* PowerPC 7400 v2.7 (G4) */
|
5120 | a750fc0b | j_mayer | POWERPC_DEF("7400v2.7", CPU_POWERPC_7400_v27, 0xFFFFFFFF, 7400), |
5121 | a750fc0b | j_mayer | /* PowerPC 7400 v2.8 (G4) */
|
5122 | a750fc0b | j_mayer | POWERPC_DEF("7400v2.8", CPU_POWERPC_7400_v28, 0xFFFFFFFF, 7400), |
5123 | a750fc0b | j_mayer | /* PowerPC 7400 v2.9 (G4) */
|
5124 | a750fc0b | j_mayer | POWERPC_DEF("7400v2.9", CPU_POWERPC_7400_v29, 0xFFFFFFFF, 7400), |
5125 | a750fc0b | j_mayer | /* PowerPC 7410 (G4) */
|
5126 | a750fc0b | j_mayer | POWERPC_DEF("7410", CPU_POWERPC_7410, 0xFFFFFFFF, 7410), |
5127 | a750fc0b | j_mayer | /* Code name for PowerPC 7410 */
|
5128 | a750fc0b | j_mayer | POWERPC_DEF("Nitro", CPU_POWERPC_7410, 0xFFFFFFFF, 7410), |
5129 | a750fc0b | j_mayer | /* PowerPC 7410 v1.0 (G4) */
|
5130 | a750fc0b | j_mayer | POWERPC_DEF("7410v1.0", CPU_POWERPC_7410_v10, 0xFFFFFFFF, 7410), |
5131 | a750fc0b | j_mayer | /* PowerPC 7410 v1.1 (G4) */
|
5132 | a750fc0b | j_mayer | POWERPC_DEF("7410v1.1", CPU_POWERPC_7410_v11, 0xFFFFFFFF, 7410), |
5133 | a750fc0b | j_mayer | /* PowerPC 7410 v1.2 (G4) */
|
5134 | a750fc0b | j_mayer | POWERPC_DEF("7410v1.2", CPU_POWERPC_7410_v12, 0xFFFFFFFF, 7410), |
5135 | a750fc0b | j_mayer | /* PowerPC 7410 v1.3 (G4) */
|
5136 | a750fc0b | j_mayer | POWERPC_DEF("7410v1.3", CPU_POWERPC_7410_v13, 0xFFFFFFFF, 7410), |
5137 | a750fc0b | j_mayer | /* PowerPC 7410 v1.4 (G4) */
|
5138 | a750fc0b | j_mayer | POWERPC_DEF("7410v1.4", CPU_POWERPC_7410_v14, 0xFFFFFFFF, 7410), |
5139 | a750fc0b | j_mayer | /* PowerPC 7448 (G4) */
|
5140 | a750fc0b | j_mayer | POWERPC_DEF("7448", CPU_POWERPC_7448, 0xFFFFFFFF, 7400), |
5141 | a750fc0b | j_mayer | /* PowerPC 7448 v1.0 (G4) */
|
5142 | a750fc0b | j_mayer | POWERPC_DEF("7448v1.0", CPU_POWERPC_7448_v10, 0xFFFFFFFF, 7400), |
5143 | a750fc0b | j_mayer | /* PowerPC 7448 v1.1 (G4) */
|
5144 | a750fc0b | j_mayer | POWERPC_DEF("7448v1.1", CPU_POWERPC_7448_v11, 0xFFFFFFFF, 7400), |
5145 | a750fc0b | j_mayer | /* PowerPC 7448 v2.0 (G4) */
|
5146 | a750fc0b | j_mayer | POWERPC_DEF("7448v2.0", CPU_POWERPC_7448_v20, 0xFFFFFFFF, 7400), |
5147 | a750fc0b | j_mayer | /* PowerPC 7448 v2.1 (G4) */
|
5148 | a750fc0b | j_mayer | POWERPC_DEF("7448v2.1", CPU_POWERPC_7448_v21, 0xFFFFFFFF, 7400), |
5149 | a750fc0b | j_mayer | #if defined (TODO)
|
5150 | a750fc0b | j_mayer | /* PowerPC 7450 (G4) */
|
5151 | a750fc0b | j_mayer | POWERPC_DEF("7450", CPU_POWERPC_7450, 0xFFFFFFFF, 7450), |
5152 | a750fc0b | j_mayer | /* Code name for PowerPC 7450 */
|
5153 | a750fc0b | j_mayer | POWERPC_DEF("Vger", CPU_POWERPC_7450, 0xFFFFFFFF, 7450), |
5154 | a750fc0b | j_mayer | #endif
|
5155 | a750fc0b | j_mayer | #if defined (TODO)
|
5156 | a750fc0b | j_mayer | /* PowerPC 7450 v1.0 (G4) */
|
5157 | a750fc0b | j_mayer | POWERPC_DEF("7450v1.0", CPU_POWERPC_7450_v10, 0xFFFFFFFF, 7450), |
5158 | a750fc0b | j_mayer | #endif
|
5159 | a750fc0b | j_mayer | #if defined (TODO)
|
5160 | a750fc0b | j_mayer | /* PowerPC 7450 v1.1 (G4) */
|
5161 | a750fc0b | j_mayer | POWERPC_DEF("7450v1.1", CPU_POWERPC_7450_v11, 0xFFFFFFFF, 7450), |
5162 | a750fc0b | j_mayer | #endif
|
5163 | a750fc0b | j_mayer | #if defined (TODO)
|
5164 | a750fc0b | j_mayer | /* PowerPC 7450 v1.2 (G4) */
|
5165 | a750fc0b | j_mayer | POWERPC_DEF("7450v1.2", CPU_POWERPC_7450_v12, 0xFFFFFFFF, 7450), |
5166 | a750fc0b | j_mayer | #endif
|
5167 | a750fc0b | j_mayer | #if defined (TODO)
|
5168 | a750fc0b | j_mayer | /* PowerPC 7450 v2.0 (G4) */
|
5169 | a750fc0b | j_mayer | POWERPC_DEF("7450v2.0", CPU_POWERPC_7450_v20, 0xFFFFFFFF, 7450), |
5170 | a750fc0b | j_mayer | #endif
|
5171 | a750fc0b | j_mayer | #if defined (TODO)
|
5172 | a750fc0b | j_mayer | /* PowerPC 7450 v2.1 (G4) */
|
5173 | a750fc0b | j_mayer | POWERPC_DEF("7450v2.1", CPU_POWERPC_7450_v21, 0xFFFFFFFF, 7450), |
5174 | a750fc0b | j_mayer | #endif
|
5175 | a750fc0b | j_mayer | #if defined (TODO)
|
5176 | a750fc0b | j_mayer | /* PowerPC 7441 (G4) */
|
5177 | a750fc0b | j_mayer | POWERPC_DEF("7441", CPU_POWERPC_74x1, 0xFFFFFFFF, 7440), |
5178 | a750fc0b | j_mayer | /* PowerPC 7451 (G4) */
|
5179 | a750fc0b | j_mayer | POWERPC_DEF("7451", CPU_POWERPC_74x1, 0xFFFFFFFF, 7450), |
5180 | a750fc0b | j_mayer | #endif
|
5181 | 3fc6c082 | bellard | #if defined (TODO)
|
5182 | a750fc0b | j_mayer | /* PowerPC 7441g (G4) */
|
5183 | a750fc0b | j_mayer | POWERPC_DEF("7441g", CPU_POWERPC_74x1G, 0xFFFFFFFF, 7440), |
5184 | a750fc0b | j_mayer | /* PowerPC 7451g (G4) */
|
5185 | a750fc0b | j_mayer | POWERPC_DEF("7451g", CPU_POWERPC_74x1G, 0xFFFFFFFF, 7450), |
5186 | 2662a059 | j_mayer | #endif
|
5187 | 2662a059 | j_mayer | #if defined (TODO)
|
5188 | a750fc0b | j_mayer | /* PowerPC 7445 (G4) */
|
5189 | a750fc0b | j_mayer | POWERPC_DEF("7445", CPU_POWERPC_74x5, 0xFFFFFFFF, 7445), |
5190 | a750fc0b | j_mayer | /* PowerPC 7455 (G4) */
|
5191 | a750fc0b | j_mayer | POWERPC_DEF("7455", CPU_POWERPC_74x5, 0xFFFFFFFF, 7455), |
5192 | a750fc0b | j_mayer | /* Code name for PowerPC 7445/7455 */
|
5193 | a750fc0b | j_mayer | POWERPC_DEF("Apollo6", CPU_POWERPC_74x5, 0xFFFFFFFF, 7455), |
5194 | 2662a059 | j_mayer | #endif
|
5195 | 2662a059 | j_mayer | #if defined (TODO)
|
5196 | a750fc0b | j_mayer | /* PowerPC 7445 v1.0 (G4) */
|
5197 | a750fc0b | j_mayer | POWERPC_DEF("7445v1.0", CPU_POWERPC_74x5_v10, 0xFFFFFFFF, 7445), |
5198 | a750fc0b | j_mayer | /* PowerPC 7455 v1.0 (G4) */
|
5199 | a750fc0b | j_mayer | POWERPC_DEF("7455v1.0", CPU_POWERPC_74x5_v10, 0xFFFFFFFF, 7455), |
5200 | a750fc0b | j_mayer | #endif
|
5201 | 2662a059 | j_mayer | #if defined (TODO)
|
5202 | a750fc0b | j_mayer | /* PowerPC 7445 v2.1 (G4) */
|
5203 | a750fc0b | j_mayer | POWERPC_DEF("7445v2.1", CPU_POWERPC_74x5_v21, 0xFFFFFFFF, 7445), |
5204 | a750fc0b | j_mayer | /* PowerPC 7455 v2.1 (G4) */
|
5205 | a750fc0b | j_mayer | POWERPC_DEF("7455v2.1", CPU_POWERPC_74x5_v21, 0xFFFFFFFF, 7455), |
5206 | 2662a059 | j_mayer | #endif
|
5207 | 2662a059 | j_mayer | #if defined (TODO)
|
5208 | a750fc0b | j_mayer | /* PowerPC 7445 v3.2 (G4) */
|
5209 | a750fc0b | j_mayer | POWERPC_DEF("7445v3.2", CPU_POWERPC_74x5_v32, 0xFFFFFFFF, 7445), |
5210 | a750fc0b | j_mayer | /* PowerPC 7455 v3.2 (G4) */
|
5211 | a750fc0b | j_mayer | POWERPC_DEF("7455v3.2", CPU_POWERPC_74x5_v32, 0xFFFFFFFF, 7455), |
5212 | 2662a059 | j_mayer | #endif
|
5213 | 2662a059 | j_mayer | #if defined (TODO)
|
5214 | a750fc0b | j_mayer | /* PowerPC 7445 v3.3 (G4) */
|
5215 | a750fc0b | j_mayer | POWERPC_DEF("7445v3.3", CPU_POWERPC_74x5_v33, 0xFFFFFFFF, 7445), |
5216 | a750fc0b | j_mayer | /* PowerPC 7455 v3.3 (G4) */
|
5217 | a750fc0b | j_mayer | POWERPC_DEF("7455v3.3", CPU_POWERPC_74x5_v33, 0xFFFFFFFF, 7455), |
5218 | 3fc6c082 | bellard | #endif
|
5219 | 3fc6c082 | bellard | #if defined (TODO)
|
5220 | a750fc0b | j_mayer | /* PowerPC 7445 v3.4 (G4) */
|
5221 | a750fc0b | j_mayer | POWERPC_DEF("7445v3.4", CPU_POWERPC_74x5_v34, 0xFFFFFFFF, 7445), |
5222 | a750fc0b | j_mayer | /* PowerPC 7455 v3.4 (G4) */
|
5223 | a750fc0b | j_mayer | POWERPC_DEF("7455v3.4", CPU_POWERPC_74x5_v34, 0xFFFFFFFF, 7455), |
5224 | 3a607854 | j_mayer | #endif
|
5225 | 04f20795 | j_mayer | #if defined (TODO)
|
5226 | a750fc0b | j_mayer | /* PowerPC 7447 (G4) */
|
5227 | a750fc0b | j_mayer | POWERPC_DEF("7447", CPU_POWERPC_74x7, 0xFFFFFFFF, 7445), |
5228 | a750fc0b | j_mayer | /* PowerPC 7457 (G4) */
|
5229 | a750fc0b | j_mayer | POWERPC_DEF("7457", CPU_POWERPC_74x7, 0xFFFFFFFF, 7455), |
5230 | a750fc0b | j_mayer | /* Code name for PowerPC 7447/7457 */
|
5231 | a750fc0b | j_mayer | POWERPC_DEF("Apollo7", CPU_POWERPC_74x7, 0xFFFFFFFF, 7455), |
5232 | 3fc6c082 | bellard | #endif
|
5233 | 3fc6c082 | bellard | #if defined (TODO)
|
5234 | a750fc0b | j_mayer | /* PowerPC 7447 v1.0 (G4) */
|
5235 | a750fc0b | j_mayer | POWERPC_DEF("7447v1.0", CPU_POWERPC_74x7_v10, 0xFFFFFFFF, 7445), |
5236 | a750fc0b | j_mayer | /* PowerPC 7457 v1.0 (G4) */
|
5237 | a750fc0b | j_mayer | POWERPC_DEF("7457v1.0", CPU_POWERPC_74x7_v10, 0xFFFFFFFF, 7455), |
5238 | a750fc0b | j_mayer | /* Code name for PowerPC 7447A/7457A */
|
5239 | a750fc0b | j_mayer | POWERPC_DEF("Apollo7PM", CPU_POWERPC_74x7_v10, 0xFFFFFFFF, 7455), |
5240 | 3a607854 | j_mayer | #endif
|
5241 | 3a607854 | j_mayer | #if defined (TODO)
|
5242 | a750fc0b | j_mayer | /* PowerPC 7447 v1.1 (G4) */
|
5243 | a750fc0b | j_mayer | POWERPC_DEF("7447v1.1", CPU_POWERPC_74x7_v11, 0xFFFFFFFF, 7445), |
5244 | a750fc0b | j_mayer | /* PowerPC 7457 v1.1 (G4) */
|
5245 | a750fc0b | j_mayer | POWERPC_DEF("7457v1.1", CPU_POWERPC_74x7_v11, 0xFFFFFFFF, 7455), |
5246 | 3a607854 | j_mayer | #endif
|
5247 | 3a607854 | j_mayer | #if defined (TODO)
|
5248 | a750fc0b | j_mayer | /* PowerPC 7447 v1.2 (G4) */
|
5249 | a750fc0b | j_mayer | POWERPC_DEF("7447v1.2", CPU_POWERPC_74x7_v12, 0xFFFFFFFF, 7445), |
5250 | a750fc0b | j_mayer | /* PowerPC 7457 v1.2 (G4) */
|
5251 | a750fc0b | j_mayer | POWERPC_DEF("7457v1.2", CPU_POWERPC_74x7_v12, 0xFFFFFFFF, 7455), |
5252 | a750fc0b | j_mayer | #endif
|
5253 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
5254 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
5255 | 3fc6c082 | bellard | #if defined (TODO)
|
5256 | a750fc0b | j_mayer | /* PowerPC 620 */
|
5257 | a750fc0b | j_mayer | POWERPC_DEF("620", CPU_POWERPC_620, 0xFFFFFFFF, 620), |
5258 | a750fc0b | j_mayer | #endif
|
5259 | 3fc6c082 | bellard | #if defined (TODO)
|
5260 | a750fc0b | j_mayer | /* PowerPC 630 (POWER3) */
|
5261 | a750fc0b | j_mayer | POWERPC_DEF("630", CPU_POWERPC_630, 0xFFFFFFFF, 630), |
5262 | a750fc0b | j_mayer | POWERPC_DEF("POWER3", CPU_POWERPC_630, 0xFFFFFFFF, 630), |
5263 | a750fc0b | j_mayer | #endif
|
5264 | 3a607854 | j_mayer | #if defined (TODO)
|
5265 | a750fc0b | j_mayer | /* PowerPC 631 (Power 3+) */
|
5266 | a750fc0b | j_mayer | POWERPC_DEF("631", CPU_POWERPC_631, 0xFFFFFFFF, 631), |
5267 | a750fc0b | j_mayer | POWERPC_DEF("POWER3+", CPU_POWERPC_631, 0xFFFFFFFF, 631), |
5268 | 3a607854 | j_mayer | #endif
|
5269 | 3a607854 | j_mayer | #if defined (TODO)
|
5270 | a750fc0b | j_mayer | /* POWER4 */
|
5271 | a750fc0b | j_mayer | POWERPC_DEF("POWER4", CPU_POWERPC_POWER4, 0xFFFFFFFF, POWER4), |
5272 | a750fc0b | j_mayer | #endif
|
5273 | 3a607854 | j_mayer | #if defined (TODO)
|
5274 | a750fc0b | j_mayer | /* POWER4p */
|
5275 | a750fc0b | j_mayer | POWERPC_DEF("POWER4+", CPU_POWERPC_POWER4P, 0xFFFFFFFF, POWER4P), |
5276 | a750fc0b | j_mayer | #endif
|
5277 | 3a607854 | j_mayer | #if defined (TODO)
|
5278 | a750fc0b | j_mayer | /* POWER5 */
|
5279 | a750fc0b | j_mayer | POWERPC_DEF("POWER5", CPU_POWERPC_POWER5, 0xFFFFFFFF, POWER5), |
5280 | a750fc0b | j_mayer | /* POWER5GR */
|
5281 | a750fc0b | j_mayer | POWERPC_DEF("POWER5gr", CPU_POWERPC_POWER5GR, 0xFFFFFFFF, POWER5), |
5282 | 2662a059 | j_mayer | #endif
|
5283 | 2662a059 | j_mayer | #if defined (TODO)
|
5284 | a750fc0b | j_mayer | /* POWER5+ */
|
5285 | a750fc0b | j_mayer | POWERPC_DEF("POWER5+", CPU_POWERPC_POWER5P, 0xFFFFFFFF, POWER5P), |
5286 | a750fc0b | j_mayer | /* POWER5GS */
|
5287 | a750fc0b | j_mayer | POWERPC_DEF("POWER5gs", CPU_POWERPC_POWER5GS, 0xFFFFFFFF, POWER5P), |
5288 | a750fc0b | j_mayer | #endif
|
5289 | 2662a059 | j_mayer | #if defined (TODO)
|
5290 | a750fc0b | j_mayer | /* POWER6 */
|
5291 | a750fc0b | j_mayer | POWERPC_DEF("POWER6", CPU_POWERPC_POWER6, 0xFFFFFFFF, POWER6), |
5292 | a750fc0b | j_mayer | /* POWER6 running in POWER5 mode */
|
5293 | a750fc0b | j_mayer | POWERPC_DEF("POWER6_5", CPU_POWERPC_POWER6_5, 0xFFFFFFFF, POWER5), |
5294 | a750fc0b | j_mayer | /* POWER6A */
|
5295 | a750fc0b | j_mayer | POWERPC_DEF("POWER6A", CPU_POWERPC_POWER6A, 0xFFFFFFFF, POWER6), |
5296 | 2662a059 | j_mayer | #endif
|
5297 | a750fc0b | j_mayer | /* PowerPC 970 */
|
5298 | a750fc0b | j_mayer | POWERPC_DEF("970", CPU_POWERPC_970, 0xFFFFFFFF, 970), |
5299 | a750fc0b | j_mayer | /* PowerPC 970FX (G5) */
|
5300 | a750fc0b | j_mayer | POWERPC_DEF("970fx", CPU_POWERPC_970FX, 0xFFFFFFFF, 970FX), |
5301 | a750fc0b | j_mayer | /* PowerPC 970FX v1.0 (G5) */
|
5302 | a750fc0b | j_mayer | POWERPC_DEF("970fx1.0", CPU_POWERPC_970FX_v10, 0xFFFFFFFF, 970FX), |
5303 | a750fc0b | j_mayer | /* PowerPC 970FX v2.0 (G5) */
|
5304 | a750fc0b | j_mayer | POWERPC_DEF("970fx2.0", CPU_POWERPC_970FX_v20, 0xFFFFFFFF, 970FX), |
5305 | a750fc0b | j_mayer | /* PowerPC 970FX v2.1 (G5) */
|
5306 | a750fc0b | j_mayer | POWERPC_DEF("970fx2.1", CPU_POWERPC_970FX_v21, 0xFFFFFFFF, 970FX), |
5307 | a750fc0b | j_mayer | /* PowerPC 970FX v3.0 (G5) */
|
5308 | a750fc0b | j_mayer | POWERPC_DEF("970fx3.0", CPU_POWERPC_970FX_v30, 0xFFFFFFFF, 970FX), |
5309 | a750fc0b | j_mayer | /* PowerPC 970FX v3.1 (G5) */
|
5310 | a750fc0b | j_mayer | POWERPC_DEF("970fx3.1", CPU_POWERPC_970FX_v31, 0xFFFFFFFF, 970FX), |
5311 | a750fc0b | j_mayer | /* PowerPC 970GX (G5) */
|
5312 | a750fc0b | j_mayer | POWERPC_DEF("970gx", CPU_POWERPC_970GX, 0xFFFFFFFF, 970GX), |
5313 | a750fc0b | j_mayer | /* PowerPC 970MP */
|
5314 | a750fc0b | j_mayer | POWERPC_DEF("970mp", CPU_POWERPC_970MP, 0xFFFFFFFF, 970), |
5315 | a750fc0b | j_mayer | /* PowerPC 970MP v1.0 */
|
5316 | a750fc0b | j_mayer | POWERPC_DEF("970mp1.0", CPU_POWERPC_970MP_v10, 0xFFFFFFFF, 970), |
5317 | a750fc0b | j_mayer | /* PowerPC 970MP v1.1 */
|
5318 | a750fc0b | j_mayer | POWERPC_DEF("970mp1.1", CPU_POWERPC_970MP_v11, 0xFFFFFFFF, 970), |
5319 | 3a607854 | j_mayer | #if defined (TODO)
|
5320 | a750fc0b | j_mayer | /* PowerPC Cell */
|
5321 | a750fc0b | j_mayer | POWERPC_DEF("Cell", CPU_POWERPC_CELL, 0xFFFFFFFF, 970), |
5322 | 2662a059 | j_mayer | #endif
|
5323 | 2662a059 | j_mayer | #if defined (TODO)
|
5324 | a750fc0b | j_mayer | /* PowerPC Cell v1.0 */
|
5325 | a750fc0b | j_mayer | POWERPC_DEF("Cell1.0", CPU_POWERPC_CELL_v10, 0xFFFFFFFF, 970), |
5326 | 2662a059 | j_mayer | #endif
|
5327 | 2662a059 | j_mayer | #if defined (TODO)
|
5328 | a750fc0b | j_mayer | /* PowerPC Cell v2.0 */
|
5329 | a750fc0b | j_mayer | POWERPC_DEF("Cell2.0", CPU_POWERPC_CELL_v20, 0xFFFFFFFF, 970), |
5330 | 2662a059 | j_mayer | #endif
|
5331 | 2662a059 | j_mayer | #if defined (TODO)
|
5332 | a750fc0b | j_mayer | /* PowerPC Cell v3.0 */
|
5333 | a750fc0b | j_mayer | POWERPC_DEF("Cell3.0", CPU_POWERPC_CELL_v30, 0xFFFFFFFF, 970), |
5334 | 3a607854 | j_mayer | #endif
|
5335 | 3a607854 | j_mayer | #if defined (TODO)
|
5336 | a750fc0b | j_mayer | /* PowerPC Cell v3.1 */
|
5337 | a750fc0b | j_mayer | POWERPC_DEF("Cell3.1", CPU_POWERPC_CELL_v31, 0xFFFFFFFF, 970), |
5338 | 2662a059 | j_mayer | #endif
|
5339 | 2662a059 | j_mayer | #if defined (TODO)
|
5340 | a750fc0b | j_mayer | /* PowerPC Cell v3.2 */
|
5341 | a750fc0b | j_mayer | POWERPC_DEF("Cell3.2", CPU_POWERPC_CELL_v32, 0xFFFFFFFF, 970), |
5342 | 2662a059 | j_mayer | #endif
|
5343 | 2662a059 | j_mayer | #if defined (TODO)
|
5344 | a750fc0b | j_mayer | /* RS64 (Apache/A35) */
|
5345 | a750fc0b | j_mayer | /* This one seems to support the whole POWER2 instruction set
|
5346 | a750fc0b | j_mayer | * and the PowerPC 64 one.
|
5347 | a750fc0b | j_mayer | */
|
5348 | a750fc0b | j_mayer | /* What about A10 & A30 ? */
|
5349 | a750fc0b | j_mayer | POWERPC_DEF("RS64", CPU_POWERPC_RS64, 0xFFFFFFFF, RS64), |
5350 | a750fc0b | j_mayer | POWERPC_DEF("Apache", CPU_POWERPC_RS64, 0xFFFFFFFF, RS64), |
5351 | a750fc0b | j_mayer | POWERPC_DEF("A35", CPU_POWERPC_RS64, 0xFFFFFFFF, RS64), |
5352 | 3a607854 | j_mayer | #endif
|
5353 | 3a607854 | j_mayer | #if defined (TODO)
|
5354 | a750fc0b | j_mayer | /* RS64-II (NorthStar/A50) */
|
5355 | a750fc0b | j_mayer | POWERPC_DEF("RS64-II", CPU_POWERPC_RS64II, 0xFFFFFFFF, RS64), |
5356 | a750fc0b | j_mayer | POWERPC_DEF("NorthStar", CPU_POWERPC_RS64II, 0xFFFFFFFF, RS64), |
5357 | a750fc0b | j_mayer | POWERPC_DEF("A50", CPU_POWERPC_RS64II, 0xFFFFFFFF, RS64), |
5358 | 3a607854 | j_mayer | #endif
|
5359 | 3a607854 | j_mayer | #if defined (TODO)
|
5360 | a750fc0b | j_mayer | /* RS64-III (Pulsar) */
|
5361 | a750fc0b | j_mayer | POWERPC_DEF("RS64-III", CPU_POWERPC_RS64III, 0xFFFFFFFF, RS64), |
5362 | a750fc0b | j_mayer | POWERPC_DEF("Pulsar", CPU_POWERPC_RS64III, 0xFFFFFFFF, RS64), |
5363 | 2662a059 | j_mayer | #endif
|
5364 | 2662a059 | j_mayer | #if defined (TODO)
|
5365 | a750fc0b | j_mayer | /* RS64-IV (IceStar/IStar/SStar) */
|
5366 | a750fc0b | j_mayer | POWERPC_DEF("RS64-IV", CPU_POWERPC_RS64IV, 0xFFFFFFFF, RS64), |
5367 | a750fc0b | j_mayer | POWERPC_DEF("IceStar", CPU_POWERPC_RS64IV, 0xFFFFFFFF, RS64), |
5368 | a750fc0b | j_mayer | POWERPC_DEF("IStar", CPU_POWERPC_RS64IV, 0xFFFFFFFF, RS64), |
5369 | a750fc0b | j_mayer | POWERPC_DEF("SStar", CPU_POWERPC_RS64IV, 0xFFFFFFFF, RS64), |
5370 | 3a607854 | j_mayer | #endif
|
5371 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
5372 | a750fc0b | j_mayer | /* POWER */
|
5373 | 3fc6c082 | bellard | #if defined (TODO)
|
5374 | a750fc0b | j_mayer | /* Original POWER */
|
5375 | a750fc0b | j_mayer | POWERPC_DEF("POWER", CPU_POWERPC_POWER, 0xFFFFFFFF, POWER), |
5376 | a750fc0b | j_mayer | POWERPC_DEF("RIOS", CPU_POWERPC_POWER, 0xFFFFFFFF, POWER), |
5377 | a750fc0b | j_mayer | POWERPC_DEF("RSC", CPU_POWERPC_POWER, 0xFFFFFFFF, POWER), |
5378 | a750fc0b | j_mayer | POWERPC_DEF("RSC3308", CPU_POWERPC_POWER, 0xFFFFFFFF, POWER), |
5379 | a750fc0b | j_mayer | POWERPC_DEF("RSC4608", CPU_POWERPC_POWER, 0xFFFFFFFF, POWER), |
5380 | 76a66253 | j_mayer | #endif
|
5381 | 76a66253 | j_mayer | #if defined (TODO)
|
5382 | a750fc0b | j_mayer | /* POWER2 */
|
5383 | a750fc0b | j_mayer | POWERPC_DEF("POWER2", CPU_POWERPC_POWER2, 0xFFFFFFFF, POWER), |
5384 | a750fc0b | j_mayer | POWERPC_DEF("RSC2", CPU_POWERPC_POWER2, 0xFFFFFFFF, POWER), |
5385 | a750fc0b | j_mayer | POWERPC_DEF("P2SC", CPU_POWERPC_POWER2, 0xFFFFFFFF, POWER), |
5386 | a750fc0b | j_mayer | #endif
|
5387 | a750fc0b | j_mayer | /* PA semi cores */
|
5388 | a750fc0b | j_mayer | #if defined (TODO)
|
5389 | a750fc0b | j_mayer | /* PA PA6T */
|
5390 | a750fc0b | j_mayer | POWERPC_DEF("PA6T", CPU_POWERPC_PA6T, 0xFFFFFFFF, PA6T), |
5391 | a750fc0b | j_mayer | #endif
|
5392 | a750fc0b | j_mayer | /* Generic PowerPCs */
|
5393 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
5394 | a750fc0b | j_mayer | #if defined (TODO)
|
5395 | a750fc0b | j_mayer | POWERPC_DEF("ppc64", CPU_POWERPC_PPC64, 0xFFFFFFFF, PPC64), |
5396 | a750fc0b | j_mayer | #endif
|
5397 | a750fc0b | j_mayer | #endif
|
5398 | a750fc0b | j_mayer | POWERPC_DEF("ppc32", CPU_POWERPC_PPC32, 0xFFFFFFFF, PPC32), |
5399 | d12f4c38 | j_mayer | POWERPC_DEF("ppc", CPU_POWERPC_DEFAULT, 0xFFFFFFFF, DEFAULT), |
5400 | a750fc0b | j_mayer | /* Fallback */
|
5401 | d12f4c38 | j_mayer | POWERPC_DEF("default", CPU_POWERPC_DEFAULT, 0xFFFFFFFF, DEFAULT), |
5402 | a750fc0b | j_mayer | }; |
5403 | a750fc0b | j_mayer | |
5404 | a750fc0b | j_mayer | /*****************************************************************************/
|
5405 | a750fc0b | j_mayer | /* Generic CPU instanciation routine */
|
5406 | a750fc0b | j_mayer | static void init_ppc_proc (CPUPPCState *env, ppc_def_t *def) |
5407 | a750fc0b | j_mayer | { |
5408 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5409 | e1833e1f | j_mayer | int i;
|
5410 | e1833e1f | j_mayer | |
5411 | a750fc0b | j_mayer | env->irq_inputs = NULL;
|
5412 | e1833e1f | j_mayer | /* Set all exception vectors to an invalid address */
|
5413 | e1833e1f | j_mayer | for (i = 0; i < POWERPC_EXCP_NB; i++) |
5414 | e1833e1f | j_mayer | env->excp_vectors[i] = (target_ulong)(-1ULL);
|
5415 | e1833e1f | j_mayer | env->excp_prefix = 0x00000000;
|
5416 | e1833e1f | j_mayer | env->ivor_mask = 0x00000000;
|
5417 | e1833e1f | j_mayer | env->ivpr_mask = 0x00000000;
|
5418 | a750fc0b | j_mayer | #endif
|
5419 | a750fc0b | j_mayer | /* Default MMU definitions */
|
5420 | a750fc0b | j_mayer | env->nb_BATs = 0;
|
5421 | a750fc0b | j_mayer | env->nb_tlb = 0;
|
5422 | a750fc0b | j_mayer | env->nb_ways = 0;
|
5423 | a750fc0b | j_mayer | /* Register SPR common to all PowerPC implementations */
|
5424 | a750fc0b | j_mayer | gen_spr_generic(env); |
5425 | a750fc0b | j_mayer | spr_register(env, SPR_PVR, "PVR",
|
5426 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5427 | a750fc0b | j_mayer | &spr_read_generic, SPR_NOACCESS, |
5428 | a750fc0b | j_mayer | def->pvr); |
5429 | a750fc0b | j_mayer | /* PowerPC implementation specific initialisations (SPRs, timers, ...) */
|
5430 | a750fc0b | j_mayer | (*def->init_proc)(env); |
5431 | a750fc0b | j_mayer | /* Allocate TLBs buffer when needed */
|
5432 | a750fc0b | j_mayer | if (env->nb_tlb != 0) { |
5433 | a750fc0b | j_mayer | int nb_tlb = env->nb_tlb;
|
5434 | a750fc0b | j_mayer | if (env->id_tlbs != 0) |
5435 | a750fc0b | j_mayer | nb_tlb *= 2;
|
5436 | a750fc0b | j_mayer | env->tlb = qemu_mallocz(nb_tlb * sizeof(ppc_tlb_t));
|
5437 | a750fc0b | j_mayer | /* Pre-compute some useful values */
|
5438 | a750fc0b | j_mayer | env->tlb_per_way = env->nb_tlb / env->nb_ways; |
5439 | a750fc0b | j_mayer | } |
5440 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5441 | a750fc0b | j_mayer | if (env->irq_inputs == NULL) { |
5442 | a750fc0b | j_mayer | fprintf(stderr, "WARNING: no internal IRQ controller registered.\n"
|
5443 | a750fc0b | j_mayer | " Attempt Qemu to crash very soon !\n");
|
5444 | a750fc0b | j_mayer | } |
5445 | a750fc0b | j_mayer | #endif
|
5446 | a750fc0b | j_mayer | } |
5447 | a750fc0b | j_mayer | |
5448 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
5449 | a750fc0b | j_mayer | static void dump_ppc_sprs (CPUPPCState *env) |
5450 | a750fc0b | j_mayer | { |
5451 | a750fc0b | j_mayer | ppc_spr_t *spr; |
5452 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5453 | a750fc0b | j_mayer | uint32_t sr, sw; |
5454 | a750fc0b | j_mayer | #endif
|
5455 | a750fc0b | j_mayer | uint32_t ur, uw; |
5456 | a750fc0b | j_mayer | int i, j, n;
|
5457 | a750fc0b | j_mayer | |
5458 | a750fc0b | j_mayer | printf("Special purpose registers:\n");
|
5459 | a750fc0b | j_mayer | for (i = 0; i < 32; i++) { |
5460 | a750fc0b | j_mayer | for (j = 0; j < 32; j++) { |
5461 | a750fc0b | j_mayer | n = (i << 5) | j;
|
5462 | a750fc0b | j_mayer | spr = &env->spr_cb[n]; |
5463 | a750fc0b | j_mayer | uw = spr->uea_write != NULL && spr->uea_write != SPR_NOACCESS;
|
5464 | a750fc0b | j_mayer | ur = spr->uea_read != NULL && spr->uea_read != SPR_NOACCESS;
|
5465 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5466 | a750fc0b | j_mayer | sw = spr->oea_write != NULL && spr->oea_write != SPR_NOACCESS;
|
5467 | a750fc0b | j_mayer | sr = spr->oea_read != NULL && spr->oea_read != SPR_NOACCESS;
|
5468 | a750fc0b | j_mayer | if (sw || sr || uw || ur) {
|
5469 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s s%c%c u%c%c\n",
|
5470 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
5471 | a750fc0b | j_mayer | sw ? 'w' : '-', sr ? 'r' : '-', |
5472 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
5473 | a750fc0b | j_mayer | } |
5474 | a750fc0b | j_mayer | #else
|
5475 | a750fc0b | j_mayer | if (uw || ur) {
|
5476 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s u%c%c\n",
|
5477 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
5478 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
5479 | a750fc0b | j_mayer | } |
5480 | a750fc0b | j_mayer | #endif
|
5481 | a750fc0b | j_mayer | } |
5482 | a750fc0b | j_mayer | } |
5483 | a750fc0b | j_mayer | fflush(stdout); |
5484 | a750fc0b | j_mayer | fflush(stderr); |
5485 | a750fc0b | j_mayer | } |
5486 | a750fc0b | j_mayer | #endif
|
5487 | a750fc0b | j_mayer | |
5488 | a750fc0b | j_mayer | /*****************************************************************************/
|
5489 | a750fc0b | j_mayer | #include <stdlib.h> |
5490 | a750fc0b | j_mayer | #include <string.h> |
5491 | a750fc0b | j_mayer | |
5492 | a750fc0b | j_mayer | int fflush (FILE *stream);
|
5493 | a750fc0b | j_mayer | |
5494 | a750fc0b | j_mayer | /* Opcode types */
|
5495 | a750fc0b | j_mayer | enum {
|
5496 | a750fc0b | j_mayer | PPC_DIRECT = 0, /* Opcode routine */ |
5497 | a750fc0b | j_mayer | PPC_INDIRECT = 1, /* Indirect opcode table */ |
5498 | a750fc0b | j_mayer | }; |
5499 | a750fc0b | j_mayer | |
5500 | a750fc0b | j_mayer | static inline int is_indirect_opcode (void *handler) |
5501 | a750fc0b | j_mayer | { |
5502 | a750fc0b | j_mayer | return ((unsigned long)handler & 0x03) == PPC_INDIRECT; |
5503 | a750fc0b | j_mayer | } |
5504 | a750fc0b | j_mayer | |
5505 | a750fc0b | j_mayer | static inline opc_handler_t **ind_table(void *handler) |
5506 | a750fc0b | j_mayer | { |
5507 | a750fc0b | j_mayer | return (opc_handler_t **)((unsigned long)handler & ~3); |
5508 | a750fc0b | j_mayer | } |
5509 | a750fc0b | j_mayer | |
5510 | a750fc0b | j_mayer | /* Instruction table creation */
|
5511 | a750fc0b | j_mayer | /* Opcodes tables creation */
|
5512 | a750fc0b | j_mayer | static void fill_new_table (opc_handler_t **table, int len) |
5513 | a750fc0b | j_mayer | { |
5514 | a750fc0b | j_mayer | int i;
|
5515 | a750fc0b | j_mayer | |
5516 | a750fc0b | j_mayer | for (i = 0; i < len; i++) |
5517 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
5518 | a750fc0b | j_mayer | } |
5519 | a750fc0b | j_mayer | |
5520 | a750fc0b | j_mayer | static int create_new_table (opc_handler_t **table, unsigned char idx) |
5521 | a750fc0b | j_mayer | { |
5522 | a750fc0b | j_mayer | opc_handler_t **tmp; |
5523 | a750fc0b | j_mayer | |
5524 | a750fc0b | j_mayer | tmp = malloc(0x20 * sizeof(opc_handler_t)); |
5525 | a750fc0b | j_mayer | if (tmp == NULL) |
5526 | a750fc0b | j_mayer | return -1; |
5527 | a750fc0b | j_mayer | fill_new_table(tmp, 0x20);
|
5528 | a750fc0b | j_mayer | table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT); |
5529 | a750fc0b | j_mayer | |
5530 | a750fc0b | j_mayer | return 0; |
5531 | a750fc0b | j_mayer | } |
5532 | a750fc0b | j_mayer | |
5533 | a750fc0b | j_mayer | static int insert_in_table (opc_handler_t **table, unsigned char idx, |
5534 | a750fc0b | j_mayer | opc_handler_t *handler) |
5535 | a750fc0b | j_mayer | { |
5536 | a750fc0b | j_mayer | if (table[idx] != &invalid_handler)
|
5537 | a750fc0b | j_mayer | return -1; |
5538 | a750fc0b | j_mayer | table[idx] = handler; |
5539 | a750fc0b | j_mayer | |
5540 | a750fc0b | j_mayer | return 0; |
5541 | a750fc0b | j_mayer | } |
5542 | a750fc0b | j_mayer | |
5543 | a750fc0b | j_mayer | static int register_direct_insn (opc_handler_t **ppc_opcodes, |
5544 | a750fc0b | j_mayer | unsigned char idx, opc_handler_t *handler) |
5545 | a750fc0b | j_mayer | { |
5546 | a750fc0b | j_mayer | if (insert_in_table(ppc_opcodes, idx, handler) < 0) { |
5547 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in main "
|
5548 | a750fc0b | j_mayer | "opcode table\n", idx);
|
5549 | a750fc0b | j_mayer | return -1; |
5550 | a750fc0b | j_mayer | } |
5551 | a750fc0b | j_mayer | |
5552 | a750fc0b | j_mayer | return 0; |
5553 | a750fc0b | j_mayer | } |
5554 | a750fc0b | j_mayer | |
5555 | a750fc0b | j_mayer | static int register_ind_in_table (opc_handler_t **table, |
5556 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
5557 | a750fc0b | j_mayer | opc_handler_t *handler) |
5558 | a750fc0b | j_mayer | { |
5559 | a750fc0b | j_mayer | if (table[idx1] == &invalid_handler) {
|
5560 | a750fc0b | j_mayer | if (create_new_table(table, idx1) < 0) { |
5561 | a750fc0b | j_mayer | printf("*** ERROR: unable to create indirect table "
|
5562 | a750fc0b | j_mayer | "idx=%02x\n", idx1);
|
5563 | a750fc0b | j_mayer | return -1; |
5564 | a750fc0b | j_mayer | } |
5565 | a750fc0b | j_mayer | } else {
|
5566 | a750fc0b | j_mayer | if (!is_indirect_opcode(table[idx1])) {
|
5567 | a750fc0b | j_mayer | printf("*** ERROR: idx %02x already assigned to a direct "
|
5568 | a750fc0b | j_mayer | "opcode\n", idx1);
|
5569 | a750fc0b | j_mayer | return -1; |
5570 | a750fc0b | j_mayer | } |
5571 | 3a607854 | j_mayer | } |
5572 | a750fc0b | j_mayer | if (handler != NULL && |
5573 | a750fc0b | j_mayer | insert_in_table(ind_table(table[idx1]), idx2, handler) < 0) {
|
5574 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in "
|
5575 | a750fc0b | j_mayer | "opcode table %02x\n", idx2, idx1);
|
5576 | a750fc0b | j_mayer | return -1; |
5577 | 3a607854 | j_mayer | } |
5578 | a750fc0b | j_mayer | |
5579 | a750fc0b | j_mayer | return 0; |
5580 | a750fc0b | j_mayer | } |
5581 | a750fc0b | j_mayer | |
5582 | a750fc0b | j_mayer | static int register_ind_insn (opc_handler_t **ppc_opcodes, |
5583 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
5584 | a750fc0b | j_mayer | opc_handler_t *handler) |
5585 | a750fc0b | j_mayer | { |
5586 | a750fc0b | j_mayer | int ret;
|
5587 | a750fc0b | j_mayer | |
5588 | a750fc0b | j_mayer | ret = register_ind_in_table(ppc_opcodes, idx1, idx2, handler); |
5589 | a750fc0b | j_mayer | |
5590 | a750fc0b | j_mayer | return ret;
|
5591 | a750fc0b | j_mayer | } |
5592 | a750fc0b | j_mayer | |
5593 | a750fc0b | j_mayer | static int register_dblind_insn (opc_handler_t **ppc_opcodes, |
5594 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
5595 | a750fc0b | j_mayer | unsigned char idx3, opc_handler_t *handler) |
5596 | a750fc0b | j_mayer | { |
5597 | a750fc0b | j_mayer | if (register_ind_in_table(ppc_opcodes, idx1, idx2, NULL) < 0) { |
5598 | a750fc0b | j_mayer | printf("*** ERROR: unable to join indirect table idx "
|
5599 | a750fc0b | j_mayer | "[%02x-%02x]\n", idx1, idx2);
|
5600 | a750fc0b | j_mayer | return -1; |
5601 | a750fc0b | j_mayer | } |
5602 | a750fc0b | j_mayer | if (register_ind_in_table(ind_table(ppc_opcodes[idx1]), idx2, idx3,
|
5603 | a750fc0b | j_mayer | handler) < 0) {
|
5604 | a750fc0b | j_mayer | printf("*** ERROR: unable to insert opcode "
|
5605 | a750fc0b | j_mayer | "[%02x-%02x-%02x]\n", idx1, idx2, idx3);
|
5606 | a750fc0b | j_mayer | return -1; |
5607 | a750fc0b | j_mayer | } |
5608 | a750fc0b | j_mayer | |
5609 | a750fc0b | j_mayer | return 0; |
5610 | a750fc0b | j_mayer | } |
5611 | a750fc0b | j_mayer | |
5612 | a750fc0b | j_mayer | static int register_insn (opc_handler_t **ppc_opcodes, opcode_t *insn) |
5613 | a750fc0b | j_mayer | { |
5614 | a750fc0b | j_mayer | if (insn->opc2 != 0xFF) { |
5615 | a750fc0b | j_mayer | if (insn->opc3 != 0xFF) { |
5616 | a750fc0b | j_mayer | if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,
|
5617 | a750fc0b | j_mayer | insn->opc3, &insn->handler) < 0)
|
5618 | a750fc0b | j_mayer | return -1; |
5619 | a750fc0b | j_mayer | } else {
|
5620 | a750fc0b | j_mayer | if (register_ind_insn(ppc_opcodes, insn->opc1,
|
5621 | a750fc0b | j_mayer | insn->opc2, &insn->handler) < 0)
|
5622 | a750fc0b | j_mayer | return -1; |
5623 | a750fc0b | j_mayer | } |
5624 | a750fc0b | j_mayer | } else {
|
5625 | a750fc0b | j_mayer | if (register_direct_insn(ppc_opcodes, insn->opc1, &insn->handler) < 0) |
5626 | a750fc0b | j_mayer | return -1; |
5627 | a750fc0b | j_mayer | } |
5628 | a750fc0b | j_mayer | |
5629 | a750fc0b | j_mayer | return 0; |
5630 | a750fc0b | j_mayer | } |
5631 | a750fc0b | j_mayer | |
5632 | a750fc0b | j_mayer | static int test_opcode_table (opc_handler_t **table, int len) |
5633 | a750fc0b | j_mayer | { |
5634 | a750fc0b | j_mayer | int i, count, tmp;
|
5635 | a750fc0b | j_mayer | |
5636 | a750fc0b | j_mayer | for (i = 0, count = 0; i < len; i++) { |
5637 | a750fc0b | j_mayer | /* Consistency fixup */
|
5638 | a750fc0b | j_mayer | if (table[i] == NULL) |
5639 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
5640 | a750fc0b | j_mayer | if (table[i] != &invalid_handler) {
|
5641 | a750fc0b | j_mayer | if (is_indirect_opcode(table[i])) {
|
5642 | a750fc0b | j_mayer | tmp = test_opcode_table(ind_table(table[i]), 0x20);
|
5643 | a750fc0b | j_mayer | if (tmp == 0) { |
5644 | a750fc0b | j_mayer | free(table[i]); |
5645 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
5646 | a750fc0b | j_mayer | } else {
|
5647 | a750fc0b | j_mayer | count++; |
5648 | a750fc0b | j_mayer | } |
5649 | a750fc0b | j_mayer | } else {
|
5650 | a750fc0b | j_mayer | count++; |
5651 | a750fc0b | j_mayer | } |
5652 | a750fc0b | j_mayer | } |
5653 | a750fc0b | j_mayer | } |
5654 | a750fc0b | j_mayer | |
5655 | a750fc0b | j_mayer | return count;
|
5656 | a750fc0b | j_mayer | } |
5657 | a750fc0b | j_mayer | |
5658 | a750fc0b | j_mayer | static void fix_opcode_tables (opc_handler_t **ppc_opcodes) |
5659 | a750fc0b | j_mayer | { |
5660 | a750fc0b | j_mayer | if (test_opcode_table(ppc_opcodes, 0x40) == 0) |
5661 | a750fc0b | j_mayer | printf("*** WARNING: no opcode defined !\n");
|
5662 | a750fc0b | j_mayer | } |
5663 | a750fc0b | j_mayer | |
5664 | a750fc0b | j_mayer | /*****************************************************************************/
|
5665 | a750fc0b | j_mayer | static int create_ppc_opcodes (CPUPPCState *env, ppc_def_t *def) |
5666 | a750fc0b | j_mayer | { |
5667 | a750fc0b | j_mayer | opcode_t *opc, *start, *end; |
5668 | a750fc0b | j_mayer | |
5669 | a750fc0b | j_mayer | fill_new_table(env->opcodes, 0x40);
|
5670 | a750fc0b | j_mayer | if (&opc_start < &opc_end) {
|
5671 | a750fc0b | j_mayer | start = &opc_start; |
5672 | a750fc0b | j_mayer | end = &opc_end; |
5673 | a750fc0b | j_mayer | } else {
|
5674 | a750fc0b | j_mayer | start = &opc_end; |
5675 | a750fc0b | j_mayer | end = &opc_start; |
5676 | a750fc0b | j_mayer | } |
5677 | a750fc0b | j_mayer | for (opc = start + 1; opc != end; opc++) { |
5678 | a750fc0b | j_mayer | if ((opc->handler.type & def->insns_flags) != 0) { |
5679 | a750fc0b | j_mayer | if (register_insn(env->opcodes, opc) < 0) { |
5680 | a750fc0b | j_mayer | printf("*** ERROR initializing PowerPC instruction "
|
5681 | a750fc0b | j_mayer | "0x%02x 0x%02x 0x%02x\n", opc->opc1, opc->opc2,
|
5682 | a750fc0b | j_mayer | opc->opc3); |
5683 | a750fc0b | j_mayer | return -1; |
5684 | a750fc0b | j_mayer | } |
5685 | a750fc0b | j_mayer | } |
5686 | a750fc0b | j_mayer | } |
5687 | a750fc0b | j_mayer | fix_opcode_tables(env->opcodes); |
5688 | a750fc0b | j_mayer | fflush(stdout); |
5689 | a750fc0b | j_mayer | fflush(stderr); |
5690 | a750fc0b | j_mayer | |
5691 | a750fc0b | j_mayer | return 0; |
5692 | a750fc0b | j_mayer | } |
5693 | a750fc0b | j_mayer | |
5694 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
5695 | a750fc0b | j_mayer | static int dump_ppc_insns (CPUPPCState *env) |
5696 | a750fc0b | j_mayer | { |
5697 | a750fc0b | j_mayer | opc_handler_t **table, *handler; |
5698 | a750fc0b | j_mayer | uint8_t opc1, opc2, opc3; |
5699 | a750fc0b | j_mayer | |
5700 | a750fc0b | j_mayer | printf("Instructions set:\n");
|
5701 | a750fc0b | j_mayer | /* opc1 is 6 bits long */
|
5702 | a750fc0b | j_mayer | for (opc1 = 0x00; opc1 < 0x40; opc1++) { |
5703 | a750fc0b | j_mayer | table = env->opcodes; |
5704 | a750fc0b | j_mayer | handler = table[opc1]; |
5705 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
5706 | a750fc0b | j_mayer | /* opc2 is 5 bits long */
|
5707 | a750fc0b | j_mayer | for (opc2 = 0; opc2 < 0x20; opc2++) { |
5708 | a750fc0b | j_mayer | table = env->opcodes; |
5709 | a750fc0b | j_mayer | handler = env->opcodes[opc1]; |
5710 | a750fc0b | j_mayer | table = ind_table(handler); |
5711 | a750fc0b | j_mayer | handler = table[opc2]; |
5712 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
5713 | a750fc0b | j_mayer | table = ind_table(handler); |
5714 | a750fc0b | j_mayer | /* opc3 is 5 bits long */
|
5715 | a750fc0b | j_mayer | for (opc3 = 0; opc3 < 0x20; opc3++) { |
5716 | a750fc0b | j_mayer | handler = table[opc3]; |
5717 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
5718 | a750fc0b | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : %s\n",
|
5719 | a750fc0b | j_mayer | opc1, opc2, opc3, opc1, (opc3 << 5) | opc2,
|
5720 | a750fc0b | j_mayer | handler->oname); |
5721 | a750fc0b | j_mayer | } |
5722 | a750fc0b | j_mayer | } |
5723 | a750fc0b | j_mayer | } else {
|
5724 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
5725 | a750fc0b | j_mayer | printf("INSN: %02x %02x -- (%02d %04d) : %s\n",
|
5726 | a750fc0b | j_mayer | opc1, opc2, opc1, opc2, handler->oname); |
5727 | a750fc0b | j_mayer | } |
5728 | a750fc0b | j_mayer | } |
5729 | a750fc0b | j_mayer | } |
5730 | a750fc0b | j_mayer | } else {
|
5731 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
5732 | a750fc0b | j_mayer | printf("INSN: %02x -- -- (%02d ----) : %s\n",
|
5733 | a750fc0b | j_mayer | opc1, opc1, handler->oname); |
5734 | a750fc0b | j_mayer | } |
5735 | a750fc0b | j_mayer | } |
5736 | a750fc0b | j_mayer | } |
5737 | a750fc0b | j_mayer | } |
5738 | 3a607854 | j_mayer | #endif
|
5739 | a750fc0b | j_mayer | |
5740 | a750fc0b | j_mayer | int cpu_ppc_register (CPUPPCState *env, ppc_def_t *def)
|
5741 | a750fc0b | j_mayer | { |
5742 | a750fc0b | j_mayer | env->msr_mask = def->msr_mask; |
5743 | a750fc0b | j_mayer | env->mmu_model = def->mmu_model; |
5744 | a750fc0b | j_mayer | env->excp_model = def->excp_model; |
5745 | a750fc0b | j_mayer | env->bus_model = def->bus_model; |
5746 | 237c0af0 | j_mayer | env->bfd_mach = def->bfd_mach; |
5747 | a750fc0b | j_mayer | if (create_ppc_opcodes(env, def) < 0) |
5748 | a750fc0b | j_mayer | return -1; |
5749 | a750fc0b | j_mayer | init_ppc_proc(env, def); |
5750 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
5751 | 3a607854 | j_mayer | { |
5752 | a750fc0b | j_mayer | const unsigned char *mmu_model, *excp_model, *bus_model; |
5753 | a750fc0b | j_mayer | switch (env->mmu_model) {
|
5754 | a750fc0b | j_mayer | case POWERPC_MMU_32B:
|
5755 | a750fc0b | j_mayer | mmu_model = "PowerPC 32";
|
5756 | a750fc0b | j_mayer | break;
|
5757 | a750fc0b | j_mayer | case POWERPC_MMU_64B:
|
5758 | a750fc0b | j_mayer | mmu_model = "PowerPC 64";
|
5759 | a750fc0b | j_mayer | break;
|
5760 | a750fc0b | j_mayer | case POWERPC_MMU_601:
|
5761 | a750fc0b | j_mayer | mmu_model = "PowerPC 601";
|
5762 | a750fc0b | j_mayer | break;
|
5763 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_6xx:
|
5764 | a750fc0b | j_mayer | mmu_model = "PowerPC 6xx/7xx with software driven TLBs";
|
5765 | a750fc0b | j_mayer | break;
|
5766 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_74xx:
|
5767 | a750fc0b | j_mayer | mmu_model = "PowerPC 74xx with software driven TLBs";
|
5768 | a750fc0b | j_mayer | break;
|
5769 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx:
|
5770 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs";
|
5771 | a750fc0b | j_mayer | break;
|
5772 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx_Z:
|
5773 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs "
|
5774 | a750fc0b | j_mayer | "and zones protections";
|
5775 | a750fc0b | j_mayer | break;
|
5776 | a750fc0b | j_mayer | case POWERPC_MMU_REAL_4xx:
|
5777 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx real mode only";
|
5778 | a750fc0b | j_mayer | break;
|
5779 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE:
|
5780 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE";
|
5781 | a750fc0b | j_mayer | break;
|
5782 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE_FSL:
|
5783 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE FSL";
|
5784 | a750fc0b | j_mayer | break;
|
5785 | a750fc0b | j_mayer | case POWERPC_MMU_64BRIDGE:
|
5786 | a750fc0b | j_mayer | mmu_model = "PowerPC 64 bridge";
|
5787 | a750fc0b | j_mayer | break;
|
5788 | a750fc0b | j_mayer | default:
|
5789 | a750fc0b | j_mayer | mmu_model = "Unknown or invalid";
|
5790 | a750fc0b | j_mayer | break;
|
5791 | a750fc0b | j_mayer | } |
5792 | a750fc0b | j_mayer | switch (env->excp_model) {
|
5793 | a750fc0b | j_mayer | case POWERPC_EXCP_STD:
|
5794 | a750fc0b | j_mayer | excp_model = "PowerPC";
|
5795 | a750fc0b | j_mayer | break;
|
5796 | a750fc0b | j_mayer | case POWERPC_EXCP_40x:
|
5797 | a750fc0b | j_mayer | excp_model = "PowerPC 40x";
|
5798 | a750fc0b | j_mayer | break;
|
5799 | a750fc0b | j_mayer | case POWERPC_EXCP_601:
|
5800 | a750fc0b | j_mayer | excp_model = "PowerPC 601";
|
5801 | a750fc0b | j_mayer | break;
|
5802 | a750fc0b | j_mayer | case POWERPC_EXCP_602:
|
5803 | a750fc0b | j_mayer | excp_model = "PowerPC 602";
|
5804 | a750fc0b | j_mayer | break;
|
5805 | a750fc0b | j_mayer | case POWERPC_EXCP_603:
|
5806 | a750fc0b | j_mayer | excp_model = "PowerPC 603";
|
5807 | a750fc0b | j_mayer | break;
|
5808 | a750fc0b | j_mayer | case POWERPC_EXCP_603E:
|
5809 | a750fc0b | j_mayer | excp_model = "PowerPC 603e";
|
5810 | a750fc0b | j_mayer | break;
|
5811 | a750fc0b | j_mayer | case POWERPC_EXCP_604:
|
5812 | a750fc0b | j_mayer | excp_model = "PowerPC 604";
|
5813 | a750fc0b | j_mayer | break;
|
5814 | a750fc0b | j_mayer | case POWERPC_EXCP_7x0:
|
5815 | a750fc0b | j_mayer | excp_model = "PowerPC 740/750";
|
5816 | a750fc0b | j_mayer | break;
|
5817 | a750fc0b | j_mayer | case POWERPC_EXCP_7x5:
|
5818 | a750fc0b | j_mayer | excp_model = "PowerPC 745/755";
|
5819 | a750fc0b | j_mayer | break;
|
5820 | a750fc0b | j_mayer | case POWERPC_EXCP_74xx:
|
5821 | a750fc0b | j_mayer | excp_model = "PowerPC 74xx";
|
5822 | a750fc0b | j_mayer | break;
|
5823 | a750fc0b | j_mayer | case POWERPC_EXCP_970:
|
5824 | a750fc0b | j_mayer | excp_model = "PowerPC 970";
|
5825 | a750fc0b | j_mayer | break;
|
5826 | a750fc0b | j_mayer | case POWERPC_EXCP_BOOKE:
|
5827 | a750fc0b | j_mayer | excp_model = "PowerPC BookE";
|
5828 | a750fc0b | j_mayer | break;
|
5829 | a750fc0b | j_mayer | default:
|
5830 | a750fc0b | j_mayer | excp_model = "Unknown or invalid";
|
5831 | a750fc0b | j_mayer | break;
|
5832 | a750fc0b | j_mayer | } |
5833 | a750fc0b | j_mayer | switch (env->bus_model) {
|
5834 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_6xx:
|
5835 | a750fc0b | j_mayer | bus_model = "PowerPC 6xx";
|
5836 | a750fc0b | j_mayer | break;
|
5837 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_BookE:
|
5838 | a750fc0b | j_mayer | bus_model = "PowerPC BookE";
|
5839 | a750fc0b | j_mayer | break;
|
5840 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_405:
|
5841 | a750fc0b | j_mayer | bus_model = "PowerPC 405";
|
5842 | a750fc0b | j_mayer | break;
|
5843 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_970:
|
5844 | a750fc0b | j_mayer | bus_model = "PowerPC 970";
|
5845 | a750fc0b | j_mayer | break;
|
5846 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_401:
|
5847 | a750fc0b | j_mayer | bus_model = "PowerPC 401/403";
|
5848 | a750fc0b | j_mayer | break;
|
5849 | a750fc0b | j_mayer | default:
|
5850 | a750fc0b | j_mayer | bus_model = "Unknown or invalid";
|
5851 | a750fc0b | j_mayer | break;
|
5852 | a750fc0b | j_mayer | } |
5853 | a750fc0b | j_mayer | printf("PowerPC %-12s : PVR %08x MSR %016" PRIx64 "\n" |
5854 | a750fc0b | j_mayer | " MMU model : %s\n",
|
5855 | a750fc0b | j_mayer | def->name, def->pvr, def->msr_mask, mmu_model); |
5856 | a750fc0b | j_mayer | if (env->tlb != NULL) { |
5857 | a750fc0b | j_mayer | printf(" %d %s TLB in %d ways\n",
|
5858 | a750fc0b | j_mayer | env->nb_tlb, env->id_tlbs ? "splitted" : "merged", |
5859 | a750fc0b | j_mayer | env->nb_ways); |
5860 | a750fc0b | j_mayer | } |
5861 | a750fc0b | j_mayer | printf(" Exceptions model : %s\n"
|
5862 | a750fc0b | j_mayer | " Bus model : %s\n",
|
5863 | a750fc0b | j_mayer | excp_model, bus_model); |
5864 | a750fc0b | j_mayer | } |
5865 | a750fc0b | j_mayer | dump_ppc_insns(env); |
5866 | a750fc0b | j_mayer | dump_ppc_sprs(env); |
5867 | a750fc0b | j_mayer | fflush(stdout); |
5868 | 3a607854 | j_mayer | #endif
|
5869 | a750fc0b | j_mayer | |
5870 | a750fc0b | j_mayer | return 0; |
5871 | a750fc0b | j_mayer | } |
5872 | 3fc6c082 | bellard | |
5873 | 3fc6c082 | bellard | int ppc_find_by_name (const unsigned char *name, ppc_def_t **def) |
5874 | 3fc6c082 | bellard | { |
5875 | 3fc6c082 | bellard | int i, ret;
|
5876 | 3fc6c082 | bellard | |
5877 | 3fc6c082 | bellard | ret = -1;
|
5878 | 3fc6c082 | bellard | *def = NULL;
|
5879 | d12f4c38 | j_mayer | for (i = 0; strcmp(ppc_defs[i].name, "default") != 0; i++) { |
5880 | 3fc6c082 | bellard | if (strcasecmp(name, ppc_defs[i].name) == 0) { |
5881 | 3fc6c082 | bellard | *def = &ppc_defs[i]; |
5882 | 3fc6c082 | bellard | ret = 0;
|
5883 | 3fc6c082 | bellard | break;
|
5884 | 3fc6c082 | bellard | } |
5885 | 3fc6c082 | bellard | } |
5886 | 3fc6c082 | bellard | |
5887 | 3fc6c082 | bellard | return ret;
|
5888 | 3fc6c082 | bellard | } |
5889 | 3fc6c082 | bellard | |
5890 | 3fc6c082 | bellard | int ppc_find_by_pvr (uint32_t pvr, ppc_def_t **def)
|
5891 | 3fc6c082 | bellard | { |
5892 | 3fc6c082 | bellard | int i, ret;
|
5893 | 3fc6c082 | bellard | |
5894 | 3fc6c082 | bellard | ret = -1;
|
5895 | 3fc6c082 | bellard | *def = NULL;
|
5896 | 3fc6c082 | bellard | for (i = 0; ppc_defs[i].name != NULL; i++) { |
5897 | 3fc6c082 | bellard | if ((pvr & ppc_defs[i].pvr_mask) ==
|
5898 | 3fc6c082 | bellard | (ppc_defs[i].pvr & ppc_defs[i].pvr_mask)) { |
5899 | 3fc6c082 | bellard | *def = &ppc_defs[i]; |
5900 | 3fc6c082 | bellard | ret = 0;
|
5901 | 3fc6c082 | bellard | break;
|
5902 | 3fc6c082 | bellard | } |
5903 | 3fc6c082 | bellard | } |
5904 | 3fc6c082 | bellard | |
5905 | 3fc6c082 | bellard | return ret;
|
5906 | 3fc6c082 | bellard | } |
5907 | 3fc6c082 | bellard | |
5908 | 3fc6c082 | bellard | void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) |
5909 | 3fc6c082 | bellard | { |
5910 | 3fc6c082 | bellard | int i;
|
5911 | 3fc6c082 | bellard | |
5912 | 3fc6c082 | bellard | for (i = 0; ; i++) { |
5913 | a750fc0b | j_mayer | (*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n",
|
5914 | a750fc0b | j_mayer | ppc_defs[i].name, ppc_defs[i].pvr); |
5915 | d12f4c38 | j_mayer | if (strcmp(ppc_defs[i].name, "default") == 0) |
5916 | 3fc6c082 | bellard | break;
|
5917 | 3fc6c082 | bellard | } |
5918 | 3fc6c082 | bellard | } |