root / target-ppc / translate_init.c @ 1add6e23
History | View | Annotate | Download (406.6 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 | fad6cb1a | aurel32 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 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 | ee4e83ed | j_mayer | #include "host-utils.h" |
28 | 237c0af0 | j_mayer | |
29 | 3fc6c082 | bellard | //#define PPC_DUMP_CPU
|
30 | 3fc6c082 | bellard | //#define PPC_DEBUG_SPR
|
31 | 80d11f44 | j_mayer | //#define PPC_DUMP_SPR_ACCESSES
|
32 | 80d11f44 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
33 | 80d11f44 | j_mayer | #define TODO_USER_ONLY 1 |
34 | 80d11f44 | j_mayer | #endif
|
35 | 3fc6c082 | bellard | |
36 | 3fc6c082 | bellard | struct ppc_def_t {
|
37 | b55266b5 | blueswir1 | const char *name; |
38 | 3fc6c082 | bellard | uint32_t pvr; |
39 | 80d11f44 | j_mayer | uint32_t svr; |
40 | 0487d6a8 | j_mayer | uint64_t insns_flags; |
41 | 3fc6c082 | bellard | uint64_t msr_mask; |
42 | 7820dbf3 | j_mayer | powerpc_mmu_t mmu_model; |
43 | 7820dbf3 | j_mayer | powerpc_excp_t excp_model; |
44 | 7820dbf3 | j_mayer | powerpc_input_t bus_model; |
45 | d26bfc9a | j_mayer | uint32_t flags; |
46 | 237c0af0 | j_mayer | int bfd_mach;
|
47 | a750fc0b | j_mayer | void (*init_proc)(CPUPPCState *env);
|
48 | 4c1b1bfe | j_mayer | int (*check_pow)(CPUPPCState *env);
|
49 | 3fc6c082 | bellard | }; |
50 | 3fc6c082 | bellard | |
51 | e9df014c | j_mayer | /* For user-mode emulation, we don't emulate any IRQ controller */
|
52 | e9df014c | j_mayer | #if defined(CONFIG_USER_ONLY)
|
53 | a750fc0b | j_mayer | #define PPC_IRQ_INIT_FN(name) \
|
54 | a750fc0b | j_mayer | static inline void glue(glue(ppc, name),_irq_init) (CPUPPCState *env) \ |
55 | a750fc0b | j_mayer | { \ |
56 | e9df014c | j_mayer | } |
57 | e9df014c | j_mayer | #else
|
58 | a750fc0b | j_mayer | #define PPC_IRQ_INIT_FN(name) \
|
59 | e9df014c | j_mayer | void glue(glue(ppc, name),_irq_init) (CPUPPCState *env);
|
60 | e9df014c | j_mayer | #endif
|
61 | a750fc0b | j_mayer | |
62 | 4e290a0b | j_mayer | PPC_IRQ_INIT_FN(40x);
|
63 | e9df014c | j_mayer | PPC_IRQ_INIT_FN(6xx);
|
64 | d0dfae6e | j_mayer | PPC_IRQ_INIT_FN(970);
|
65 | e9df014c | j_mayer | |
66 | 3fc6c082 | bellard | /* Generic callbacks:
|
67 | 3fc6c082 | bellard | * do nothing but store/retrieve spr value
|
68 | 3fc6c082 | bellard | */
|
69 | 45d827d2 | aurel32 | static void spr_read_generic (void *opaque, int gprn, int sprn) |
70 | a496775f | j_mayer | { |
71 | 45d827d2 | aurel32 | gen_load_spr(cpu_gpr[gprn], sprn); |
72 | 45d827d2 | aurel32 | #ifdef PPC_DUMP_SPR_ACCESSES
|
73 | 45d827d2 | aurel32 | { |
74 | 45d827d2 | aurel32 | TCGv t0 = tcg_const_i32(sprn); |
75 | 45d827d2 | aurel32 | gen_helper_load_dump_spr(t0); |
76 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
77 | 45d827d2 | aurel32 | } |
78 | 45d827d2 | aurel32 | #endif
|
79 | a496775f | j_mayer | } |
80 | a496775f | j_mayer | |
81 | 45d827d2 | aurel32 | static void spr_write_generic (void *opaque, int sprn, int gprn) |
82 | a496775f | j_mayer | { |
83 | 45d827d2 | aurel32 | gen_store_spr(sprn, cpu_gpr[gprn]); |
84 | 45d827d2 | aurel32 | #ifdef PPC_DUMP_SPR_ACCESSES
|
85 | 45d827d2 | aurel32 | { |
86 | 45d827d2 | aurel32 | TCGv t0 = tcg_const_i32(sprn); |
87 | 45d827d2 | aurel32 | gen_helper_store_dump_spr(t0); |
88 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
89 | 45d827d2 | aurel32 | } |
90 | 04f20795 | j_mayer | #endif
|
91 | 45d827d2 | aurel32 | } |
92 | a496775f | j_mayer | |
93 | a496775f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
94 | 45d827d2 | aurel32 | static void spr_write_clear (void *opaque, int sprn, int gprn) |
95 | a496775f | j_mayer | { |
96 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
97 | 45d827d2 | aurel32 | TCGv t1 = tcg_temp_new(); |
98 | 45d827d2 | aurel32 | gen_load_spr(t0, sprn); |
99 | 45d827d2 | aurel32 | tcg_gen_neg_tl(t1, cpu_gpr[gprn]); |
100 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, t1); |
101 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
102 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
103 | 45d827d2 | aurel32 | tcg_temp_free(t1); |
104 | a496775f | j_mayer | } |
105 | a496775f | j_mayer | #endif
|
106 | a496775f | j_mayer | |
107 | 76a66253 | j_mayer | /* SPR common to all PowerPC */
|
108 | 3fc6c082 | bellard | /* XER */
|
109 | 45d827d2 | aurel32 | static void spr_read_xer (void *opaque, int gprn, int sprn) |
110 | 3fc6c082 | bellard | { |
111 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_xer); |
112 | 3fc6c082 | bellard | } |
113 | 3fc6c082 | bellard | |
114 | 45d827d2 | aurel32 | static void spr_write_xer (void *opaque, int sprn, int gprn) |
115 | 3fc6c082 | bellard | { |
116 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_xer, cpu_gpr[gprn]); |
117 | 3fc6c082 | bellard | } |
118 | 3fc6c082 | bellard | |
119 | 3fc6c082 | bellard | /* LR */
|
120 | 45d827d2 | aurel32 | static void spr_read_lr (void *opaque, int gprn, int sprn) |
121 | 3fc6c082 | bellard | { |
122 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_lr); |
123 | 3fc6c082 | bellard | } |
124 | 3fc6c082 | bellard | |
125 | 45d827d2 | aurel32 | static void spr_write_lr (void *opaque, int sprn, int gprn) |
126 | 3fc6c082 | bellard | { |
127 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_lr, cpu_gpr[gprn]); |
128 | 3fc6c082 | bellard | } |
129 | 3fc6c082 | bellard | |
130 | 3fc6c082 | bellard | /* CTR */
|
131 | 45d827d2 | aurel32 | static void spr_read_ctr (void *opaque, int gprn, int sprn) |
132 | 3fc6c082 | bellard | { |
133 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_ctr); |
134 | 3fc6c082 | bellard | } |
135 | 3fc6c082 | bellard | |
136 | 45d827d2 | aurel32 | static void spr_write_ctr (void *opaque, int sprn, int gprn) |
137 | 3fc6c082 | bellard | { |
138 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_ctr, cpu_gpr[gprn]); |
139 | 3fc6c082 | bellard | } |
140 | 3fc6c082 | bellard | |
141 | 3fc6c082 | bellard | /* User read access to SPR */
|
142 | 3fc6c082 | bellard | /* USPRx */
|
143 | 3fc6c082 | bellard | /* UMMCRx */
|
144 | 3fc6c082 | bellard | /* UPMCx */
|
145 | 3fc6c082 | bellard | /* USIA */
|
146 | 3fc6c082 | bellard | /* UDECR */
|
147 | 45d827d2 | aurel32 | static void spr_read_ureg (void *opaque, int gprn, int sprn) |
148 | 3fc6c082 | bellard | { |
149 | 45d827d2 | aurel32 | gen_load_spr(cpu_gpr[gprn], sprn + 0x10);
|
150 | 3fc6c082 | bellard | } |
151 | 3fc6c082 | bellard | |
152 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC */
|
153 | 3fc6c082 | bellard | /* DECR */
|
154 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
155 | 45d827d2 | aurel32 | static void spr_read_decr (void *opaque, int gprn, int sprn) |
156 | 3fc6c082 | bellard | { |
157 | 45d827d2 | aurel32 | gen_helper_load_decr(cpu_gpr[gprn]); |
158 | 3fc6c082 | bellard | } |
159 | 3fc6c082 | bellard | |
160 | 45d827d2 | aurel32 | static void spr_write_decr (void *opaque, int sprn, int gprn) |
161 | 3fc6c082 | bellard | { |
162 | 45d827d2 | aurel32 | gen_helper_store_decr(cpu_gpr[gprn]); |
163 | 3fc6c082 | bellard | } |
164 | 76a66253 | j_mayer | #endif
|
165 | 3fc6c082 | bellard | |
166 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC, except 601 */
|
167 | 3fc6c082 | bellard | /* Time base */
|
168 | 45d827d2 | aurel32 | static void spr_read_tbl (void *opaque, int gprn, int sprn) |
169 | 3fc6c082 | bellard | { |
170 | 45d827d2 | aurel32 | gen_helper_load_tbl(cpu_gpr[gprn]); |
171 | 3fc6c082 | bellard | } |
172 | 3fc6c082 | bellard | |
173 | 45d827d2 | aurel32 | static void spr_read_tbu (void *opaque, int gprn, int sprn) |
174 | 3fc6c082 | bellard | { |
175 | 45d827d2 | aurel32 | gen_helper_load_tbu(cpu_gpr[gprn]); |
176 | 3fc6c082 | bellard | } |
177 | 3fc6c082 | bellard | |
178 | a062e36c | j_mayer | __attribute__ (( unused )) |
179 | 45d827d2 | aurel32 | static void spr_read_atbl (void *opaque, int gprn, int sprn) |
180 | a062e36c | j_mayer | { |
181 | 45d827d2 | aurel32 | gen_helper_load_atbl(cpu_gpr[gprn]); |
182 | a062e36c | j_mayer | } |
183 | a062e36c | j_mayer | |
184 | a062e36c | j_mayer | __attribute__ (( unused )) |
185 | 45d827d2 | aurel32 | static void spr_read_atbu (void *opaque, int gprn, int sprn) |
186 | a062e36c | j_mayer | { |
187 | 45d827d2 | aurel32 | gen_helper_load_atbu(cpu_gpr[gprn]); |
188 | a062e36c | j_mayer | } |
189 | a062e36c | j_mayer | |
190 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
191 | 45d827d2 | aurel32 | static void spr_write_tbl (void *opaque, int sprn, int gprn) |
192 | 3fc6c082 | bellard | { |
193 | 45d827d2 | aurel32 | gen_helper_store_tbl(cpu_gpr[gprn]); |
194 | 3fc6c082 | bellard | } |
195 | 3fc6c082 | bellard | |
196 | 45d827d2 | aurel32 | static void spr_write_tbu (void *opaque, int sprn, int gprn) |
197 | 3fc6c082 | bellard | { |
198 | 45d827d2 | aurel32 | gen_helper_store_tbu(cpu_gpr[gprn]); |
199 | 3fc6c082 | bellard | } |
200 | a062e36c | j_mayer | |
201 | a062e36c | j_mayer | __attribute__ (( unused )) |
202 | 45d827d2 | aurel32 | static void spr_write_atbl (void *opaque, int sprn, int gprn) |
203 | a062e36c | j_mayer | { |
204 | 45d827d2 | aurel32 | gen_helper_store_atbl(cpu_gpr[gprn]); |
205 | a062e36c | j_mayer | } |
206 | a062e36c | j_mayer | |
207 | a062e36c | j_mayer | __attribute__ (( unused )) |
208 | 45d827d2 | aurel32 | static void spr_write_atbu (void *opaque, int sprn, int gprn) |
209 | a062e36c | j_mayer | { |
210 | 45d827d2 | aurel32 | gen_helper_store_atbu(cpu_gpr[gprn]); |
211 | a062e36c | j_mayer | } |
212 | 76a66253 | j_mayer | #endif
|
213 | 3fc6c082 | bellard | |
214 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
215 | 3fc6c082 | bellard | /* IBAT0U...IBAT0U */
|
216 | 3fc6c082 | bellard | /* IBAT0L...IBAT7L */
|
217 | 45d827d2 | aurel32 | static void spr_read_ibat (void *opaque, int gprn, int sprn) |
218 | 3fc6c082 | bellard | { |
219 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT0U) / 2])); |
220 | 3fc6c082 | bellard | } |
221 | 3fc6c082 | bellard | |
222 | 45d827d2 | aurel32 | static void spr_read_ibat_h (void *opaque, int gprn, int sprn) |
223 | 3fc6c082 | bellard | { |
224 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT4U) / 2])); |
225 | 3fc6c082 | bellard | } |
226 | 3fc6c082 | bellard | |
227 | 45d827d2 | aurel32 | static void spr_write_ibatu (void *opaque, int sprn, int gprn) |
228 | 3fc6c082 | bellard | { |
229 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
230 | 45d827d2 | aurel32 | gen_helper_store_ibatu(t0, cpu_gpr[gprn]); |
231 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
232 | 3fc6c082 | bellard | } |
233 | 3fc6c082 | bellard | |
234 | 45d827d2 | aurel32 | static void spr_write_ibatu_h (void *opaque, int sprn, int gprn) |
235 | 3fc6c082 | bellard | { |
236 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT4U) / 2);
|
237 | 45d827d2 | aurel32 | gen_helper_store_ibatu(t0, cpu_gpr[gprn]); |
238 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
239 | 3fc6c082 | bellard | } |
240 | 3fc6c082 | bellard | |
241 | 45d827d2 | aurel32 | static void spr_write_ibatl (void *opaque, int sprn, int gprn) |
242 | 3fc6c082 | bellard | { |
243 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0L) / 2);
|
244 | 45d827d2 | aurel32 | gen_helper_store_ibatl(t0, cpu_gpr[gprn]); |
245 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
246 | 3fc6c082 | bellard | } |
247 | 3fc6c082 | bellard | |
248 | 45d827d2 | aurel32 | static void spr_write_ibatl_h (void *opaque, int sprn, int gprn) |
249 | 3fc6c082 | bellard | { |
250 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT4L) / 2);
|
251 | 45d827d2 | aurel32 | gen_helper_store_ibatl(t0, cpu_gpr[gprn]); |
252 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
253 | 3fc6c082 | bellard | } |
254 | 3fc6c082 | bellard | |
255 | 3fc6c082 | bellard | /* DBAT0U...DBAT7U */
|
256 | 3fc6c082 | bellard | /* DBAT0L...DBAT7L */
|
257 | 45d827d2 | aurel32 | static void spr_read_dbat (void *opaque, int gprn, int sprn) |
258 | 3fc6c082 | bellard | { |
259 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, DBAT[sprn & 1][(sprn - SPR_DBAT0U) / 2])); |
260 | 3fc6c082 | bellard | } |
261 | 3fc6c082 | bellard | |
262 | 45d827d2 | aurel32 | static void spr_read_dbat_h (void *opaque, int gprn, int sprn) |
263 | 3fc6c082 | bellard | { |
264 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, DBAT[sprn & 1][((sprn - SPR_DBAT4U) / 2) + 4])); |
265 | 3fc6c082 | bellard | } |
266 | 3fc6c082 | bellard | |
267 | 45d827d2 | aurel32 | static void spr_write_dbatu (void *opaque, int sprn, int gprn) |
268 | 3fc6c082 | bellard | { |
269 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_DBAT0U) / 2);
|
270 | 45d827d2 | aurel32 | gen_helper_store_dbatu(t0, cpu_gpr[gprn]); |
271 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
272 | 3fc6c082 | bellard | } |
273 | 3fc6c082 | bellard | |
274 | 45d827d2 | aurel32 | static void spr_write_dbatu_h (void *opaque, int sprn, int gprn) |
275 | 3fc6c082 | bellard | { |
276 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_DBAT4U) / 2) + 4); |
277 | 45d827d2 | aurel32 | gen_helper_store_dbatu(t0, cpu_gpr[gprn]); |
278 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
279 | 3fc6c082 | bellard | } |
280 | 3fc6c082 | bellard | |
281 | 45d827d2 | aurel32 | static void spr_write_dbatl (void *opaque, int sprn, int gprn) |
282 | 3fc6c082 | bellard | { |
283 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_DBAT0L) / 2);
|
284 | 45d827d2 | aurel32 | gen_helper_store_dbatl(t0, cpu_gpr[gprn]); |
285 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
286 | 3fc6c082 | bellard | } |
287 | 3fc6c082 | bellard | |
288 | 45d827d2 | aurel32 | static void spr_write_dbatl_h (void *opaque, int sprn, int gprn) |
289 | 3fc6c082 | bellard | { |
290 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_DBAT4L) / 2) + 4); |
291 | 45d827d2 | aurel32 | gen_helper_store_dbatl(t0, cpu_gpr[gprn]); |
292 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
293 | 3fc6c082 | bellard | } |
294 | 3fc6c082 | bellard | |
295 | 3fc6c082 | bellard | /* SDR1 */
|
296 | 45d827d2 | aurel32 | static void spr_read_sdr1 (void *opaque, int gprn, int sprn) |
297 | 3fc6c082 | bellard | { |
298 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, sdr1)); |
299 | 3fc6c082 | bellard | } |
300 | 3fc6c082 | bellard | |
301 | 45d827d2 | aurel32 | static void spr_write_sdr1 (void *opaque, int sprn, int gprn) |
302 | 3fc6c082 | bellard | { |
303 | 45d827d2 | aurel32 | gen_helper_store_sdr1(cpu_gpr[gprn]); |
304 | 3fc6c082 | bellard | } |
305 | 3fc6c082 | bellard | |
306 | 76a66253 | j_mayer | /* 64 bits PowerPC specific SPRs */
|
307 | 76a66253 | j_mayer | /* ASR */
|
308 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
309 | 45d827d2 | aurel32 | static void spr_read_asr (void *opaque, int gprn, int sprn) |
310 | 76a66253 | j_mayer | { |
311 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, asr)); |
312 | 76a66253 | j_mayer | } |
313 | 76a66253 | j_mayer | |
314 | 45d827d2 | aurel32 | static void spr_write_asr (void *opaque, int sprn, int gprn) |
315 | 76a66253 | j_mayer | { |
316 | 45d827d2 | aurel32 | gen_helper_store_asr(cpu_gpr[gprn]); |
317 | 76a66253 | j_mayer | } |
318 | 76a66253 | j_mayer | #endif
|
319 | a750fc0b | j_mayer | #endif
|
320 | 76a66253 | j_mayer | |
321 | 76a66253 | j_mayer | /* PowerPC 601 specific registers */
|
322 | 76a66253 | j_mayer | /* RTC */
|
323 | 45d827d2 | aurel32 | static void spr_read_601_rtcl (void *opaque, int gprn, int sprn) |
324 | 76a66253 | j_mayer | { |
325 | 45d827d2 | aurel32 | gen_helper_load_601_rtcl(cpu_gpr[gprn]); |
326 | 76a66253 | j_mayer | } |
327 | 76a66253 | j_mayer | |
328 | 45d827d2 | aurel32 | static void spr_read_601_rtcu (void *opaque, int gprn, int sprn) |
329 | 76a66253 | j_mayer | { |
330 | 45d827d2 | aurel32 | gen_helper_load_601_rtcu(cpu_gpr[gprn]); |
331 | 76a66253 | j_mayer | } |
332 | 76a66253 | j_mayer | |
333 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
334 | 45d827d2 | aurel32 | static void spr_write_601_rtcu (void *opaque, int sprn, int gprn) |
335 | 76a66253 | j_mayer | { |
336 | 45d827d2 | aurel32 | gen_helper_store_601_rtcu(cpu_gpr[gprn]); |
337 | 76a66253 | j_mayer | } |
338 | 76a66253 | j_mayer | |
339 | 45d827d2 | aurel32 | static void spr_write_601_rtcl (void *opaque, int sprn, int gprn) |
340 | 76a66253 | j_mayer | { |
341 | 45d827d2 | aurel32 | gen_helper_store_601_rtcl(cpu_gpr[gprn]); |
342 | 76a66253 | j_mayer | } |
343 | 056401ea | j_mayer | |
344 | 45d827d2 | aurel32 | static void spr_write_hid0_601 (void *opaque, int sprn, int gprn) |
345 | 056401ea | j_mayer | { |
346 | 056401ea | j_mayer | DisasContext *ctx = opaque; |
347 | 056401ea | j_mayer | |
348 | 45d827d2 | aurel32 | gen_helper_store_hid0_601(cpu_gpr[gprn]); |
349 | 056401ea | j_mayer | /* Must stop the translation as endianness may have changed */
|
350 | e06fcd75 | aurel32 | gen_stop_exception(ctx); |
351 | 056401ea | j_mayer | } |
352 | 76a66253 | j_mayer | #endif
|
353 | 76a66253 | j_mayer | |
354 | 76a66253 | j_mayer | /* Unified bats */
|
355 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
356 | 45d827d2 | aurel32 | static void spr_read_601_ubat (void *opaque, int gprn, int sprn) |
357 | 76a66253 | j_mayer | { |
358 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT0U) / 2])); |
359 | 76a66253 | j_mayer | } |
360 | 76a66253 | j_mayer | |
361 | 45d827d2 | aurel32 | static void spr_write_601_ubatu (void *opaque, int sprn, int gprn) |
362 | 76a66253 | j_mayer | { |
363 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
364 | 45d827d2 | aurel32 | gen_helper_store_601_batl(t0, cpu_gpr[gprn]); |
365 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
366 | 76a66253 | j_mayer | } |
367 | 76a66253 | j_mayer | |
368 | 45d827d2 | aurel32 | static void spr_write_601_ubatl (void *opaque, int sprn, int gprn) |
369 | 76a66253 | j_mayer | { |
370 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
371 | 45d827d2 | aurel32 | gen_helper_store_601_batu(t0, cpu_gpr[gprn]); |
372 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
373 | 76a66253 | j_mayer | } |
374 | 76a66253 | j_mayer | #endif
|
375 | 76a66253 | j_mayer | |
376 | 76a66253 | j_mayer | /* PowerPC 40x specific registers */
|
377 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
378 | 45d827d2 | aurel32 | static void spr_read_40x_pit (void *opaque, int gprn, int sprn) |
379 | 76a66253 | j_mayer | { |
380 | 45d827d2 | aurel32 | gen_helper_load_40x_pit(cpu_gpr[gprn]); |
381 | 76a66253 | j_mayer | } |
382 | 76a66253 | j_mayer | |
383 | 45d827d2 | aurel32 | static void spr_write_40x_pit (void *opaque, int sprn, int gprn) |
384 | 76a66253 | j_mayer | { |
385 | 45d827d2 | aurel32 | gen_helper_store_40x_pit(cpu_gpr[gprn]); |
386 | 76a66253 | j_mayer | } |
387 | 76a66253 | j_mayer | |
388 | 45d827d2 | aurel32 | static void spr_write_40x_dbcr0 (void *opaque, int sprn, int gprn) |
389 | 8ecc7913 | j_mayer | { |
390 | 8ecc7913 | j_mayer | DisasContext *ctx = opaque; |
391 | 8ecc7913 | j_mayer | |
392 | 45d827d2 | aurel32 | gen_helper_store_40x_dbcr0(cpu_gpr[gprn]); |
393 | 8ecc7913 | j_mayer | /* We must stop translation as we may have rebooted */
|
394 | e06fcd75 | aurel32 | gen_stop_exception(ctx); |
395 | 8ecc7913 | j_mayer | } |
396 | 8ecc7913 | j_mayer | |
397 | 45d827d2 | aurel32 | static void spr_write_40x_sler (void *opaque, int sprn, int gprn) |
398 | c294fc58 | j_mayer | { |
399 | 45d827d2 | aurel32 | gen_helper_store_40x_sler(cpu_gpr[gprn]); |
400 | c294fc58 | j_mayer | } |
401 | c294fc58 | j_mayer | |
402 | 45d827d2 | aurel32 | static void spr_write_booke_tcr (void *opaque, int sprn, int gprn) |
403 | 76a66253 | j_mayer | { |
404 | 45d827d2 | aurel32 | gen_helper_store_booke_tcr(cpu_gpr[gprn]); |
405 | 76a66253 | j_mayer | } |
406 | 76a66253 | j_mayer | |
407 | 45d827d2 | aurel32 | static void spr_write_booke_tsr (void *opaque, int sprn, int gprn) |
408 | 76a66253 | j_mayer | { |
409 | 45d827d2 | aurel32 | gen_helper_store_booke_tsr(cpu_gpr[gprn]); |
410 | 76a66253 | j_mayer | } |
411 | 76a66253 | j_mayer | #endif
|
412 | 76a66253 | j_mayer | |
413 | 76a66253 | j_mayer | /* PowerPC 403 specific registers */
|
414 | 76a66253 | j_mayer | /* PBL1 / PBU1 / PBL2 / PBU2 */
|
415 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
416 | 45d827d2 | aurel32 | static void spr_read_403_pbr (void *opaque, int gprn, int sprn) |
417 | 76a66253 | j_mayer | { |
418 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, pb[sprn - SPR_403_PBL1])); |
419 | 76a66253 | j_mayer | } |
420 | 76a66253 | j_mayer | |
421 | 45d827d2 | aurel32 | static void spr_write_403_pbr (void *opaque, int sprn, int gprn) |
422 | 76a66253 | j_mayer | { |
423 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(sprn - SPR_403_PBL1); |
424 | 45d827d2 | aurel32 | gen_helper_store_403_pbr(t0, cpu_gpr[gprn]); |
425 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
426 | 76a66253 | j_mayer | } |
427 | 76a66253 | j_mayer | |
428 | 45d827d2 | aurel32 | static void spr_write_pir (void *opaque, int sprn, int gprn) |
429 | 3fc6c082 | bellard | { |
430 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
431 | 45d827d2 | aurel32 | tcg_gen_andi_tl(t0, cpu_gpr[gprn], 0xF);
|
432 | 45d827d2 | aurel32 | gen_store_spr(SPR_PIR, t0); |
433 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
434 | 3fc6c082 | bellard | } |
435 | 76a66253 | j_mayer | #endif
|
436 | 3fc6c082 | bellard | |
437 | 6f5d427d | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
438 | 6f5d427d | j_mayer | /* Callback used to write the exception vector base */
|
439 | 45d827d2 | aurel32 | static void spr_write_excp_prefix (void *opaque, int sprn, int gprn) |
440 | 6f5d427d | j_mayer | { |
441 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
442 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivpr_mask)); |
443 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
444 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_prefix)); |
445 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
446 | 6f5d427d | j_mayer | } |
447 | 6f5d427d | j_mayer | |
448 | 45d827d2 | aurel32 | static void spr_write_excp_vector (void *opaque, int sprn, int gprn) |
449 | 6f5d427d | j_mayer | { |
450 | 6f5d427d | j_mayer | DisasContext *ctx = opaque; |
451 | 6f5d427d | j_mayer | |
452 | 6f5d427d | j_mayer | if (sprn >= SPR_BOOKE_IVOR0 && sprn <= SPR_BOOKE_IVOR15) {
|
453 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
454 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivor_mask)); |
455 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
456 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_vectors[sprn - SPR_BOOKE_IVOR0])); |
457 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
458 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
459 | 6f5d427d | j_mayer | } else if (sprn >= SPR_BOOKE_IVOR32 && sprn <= SPR_BOOKE_IVOR37) { |
460 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
461 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivor_mask)); |
462 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
463 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_vectors[sprn - SPR_BOOKE_IVOR32 + 32]));
|
464 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
465 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
466 | 6f5d427d | j_mayer | } else {
|
467 | 6f5d427d | j_mayer | printf("Trying to write an unknown exception vector %d %03x\n",
|
468 | 6f5d427d | j_mayer | sprn, sprn); |
469 | e06fcd75 | aurel32 | gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); |
470 | 6f5d427d | j_mayer | } |
471 | 6f5d427d | j_mayer | } |
472 | 6f5d427d | j_mayer | #endif
|
473 | 6f5d427d | j_mayer | |
474 | 76a66253 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
475 | 76a66253 | j_mayer | #define spr_register(env, num, name, uea_read, uea_write, \
|
476 | 76a66253 | j_mayer | oea_read, oea_write, initial_value) \ |
477 | 76a66253 | j_mayer | do { \
|
478 | 76a66253 | j_mayer | _spr_register(env, num, name, uea_read, uea_write, initial_value); \ |
479 | 76a66253 | j_mayer | } while (0) |
480 | 76a66253 | j_mayer | static inline void _spr_register (CPUPPCState *env, int num, |
481 | b55266b5 | blueswir1 | const char *name, |
482 | 45d827d2 | aurel32 | void (*uea_read)(void *opaque, int gprn, int sprn), |
483 | 45d827d2 | aurel32 | void (*uea_write)(void *opaque, int sprn, int gprn), |
484 | 76a66253 | j_mayer | target_ulong initial_value) |
485 | 76a66253 | j_mayer | #else
|
486 | 3fc6c082 | bellard | static inline void spr_register (CPUPPCState *env, int num, |
487 | b55266b5 | blueswir1 | const char *name, |
488 | 45d827d2 | aurel32 | void (*uea_read)(void *opaque, int gprn, int sprn), |
489 | 45d827d2 | aurel32 | void (*uea_write)(void *opaque, int sprn, int gprn), |
490 | 45d827d2 | aurel32 | void (*oea_read)(void *opaque, int gprn, int sprn), |
491 | 45d827d2 | aurel32 | void (*oea_write)(void *opaque, int sprn, int gprn), |
492 | 3fc6c082 | bellard | target_ulong initial_value) |
493 | 76a66253 | j_mayer | #endif
|
494 | 3fc6c082 | bellard | { |
495 | 3fc6c082 | bellard | ppc_spr_t *spr; |
496 | 3fc6c082 | bellard | |
497 | 3fc6c082 | bellard | spr = &env->spr_cb[num]; |
498 | 3fc6c082 | bellard | if (spr->name != NULL ||env-> spr[num] != 0x00000000 || |
499 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
500 | 76a66253 | j_mayer | spr->oea_read != NULL || spr->oea_write != NULL || |
501 | 76a66253 | j_mayer | #endif
|
502 | 76a66253 | j_mayer | spr->uea_read != NULL || spr->uea_write != NULL) { |
503 | 3fc6c082 | bellard | printf("Error: Trying to register SPR %d (%03x) twice !\n", num, num);
|
504 | 3fc6c082 | bellard | exit(1);
|
505 | 3fc6c082 | bellard | } |
506 | 3fc6c082 | bellard | #if defined(PPC_DEBUG_SPR)
|
507 | 1b9eb036 | j_mayer | printf("*** register spr %d (%03x) %s val " ADDRX "\n", num, num, name, |
508 | 76a66253 | j_mayer | initial_value); |
509 | 3fc6c082 | bellard | #endif
|
510 | 3fc6c082 | bellard | spr->name = name; |
511 | 3fc6c082 | bellard | spr->uea_read = uea_read; |
512 | 3fc6c082 | bellard | spr->uea_write = uea_write; |
513 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
514 | 3fc6c082 | bellard | spr->oea_read = oea_read; |
515 | 3fc6c082 | bellard | spr->oea_write = oea_write; |
516 | 76a66253 | j_mayer | #endif
|
517 | 3fc6c082 | bellard | env->spr[num] = initial_value; |
518 | 3fc6c082 | bellard | } |
519 | 3fc6c082 | bellard | |
520 | 3fc6c082 | bellard | /* Generic PowerPC SPRs */
|
521 | 3fc6c082 | bellard | static void gen_spr_generic (CPUPPCState *env) |
522 | 3fc6c082 | bellard | { |
523 | 3fc6c082 | bellard | /* Integer processing */
|
524 | 3fc6c082 | bellard | spr_register(env, SPR_XER, "XER",
|
525 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
526 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
527 | 3fc6c082 | bellard | 0x00000000);
|
528 | 3fc6c082 | bellard | /* Branch contol */
|
529 | 3fc6c082 | bellard | spr_register(env, SPR_LR, "LR",
|
530 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
531 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
532 | 3fc6c082 | bellard | 0x00000000);
|
533 | 3fc6c082 | bellard | spr_register(env, SPR_CTR, "CTR",
|
534 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
535 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
536 | 3fc6c082 | bellard | 0x00000000);
|
537 | 3fc6c082 | bellard | /* Interrupt processing */
|
538 | 3fc6c082 | bellard | spr_register(env, SPR_SRR0, "SRR0",
|
539 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
540 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
541 | 3fc6c082 | bellard | 0x00000000);
|
542 | 3fc6c082 | bellard | spr_register(env, SPR_SRR1, "SRR1",
|
543 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
544 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
545 | 3fc6c082 | bellard | 0x00000000);
|
546 | 3fc6c082 | bellard | /* Processor control */
|
547 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG0, "SPRG0",
|
548 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
549 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
550 | 3fc6c082 | bellard | 0x00000000);
|
551 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG1, "SPRG1",
|
552 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
553 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
554 | 3fc6c082 | bellard | 0x00000000);
|
555 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG2, "SPRG2",
|
556 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
557 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
558 | 3fc6c082 | bellard | 0x00000000);
|
559 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG3, "SPRG3",
|
560 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
561 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
562 | 3fc6c082 | bellard | 0x00000000);
|
563 | 3fc6c082 | bellard | } |
564 | 3fc6c082 | bellard | |
565 | 3fc6c082 | bellard | /* SPR common to all non-embedded PowerPC, including 601 */
|
566 | 3fc6c082 | bellard | static void gen_spr_ne_601 (CPUPPCState *env) |
567 | 3fc6c082 | bellard | { |
568 | 3fc6c082 | bellard | /* Exception processing */
|
569 | 3fc6c082 | bellard | spr_register(env, SPR_DSISR, "DSISR",
|
570 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
571 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
572 | 3fc6c082 | bellard | 0x00000000);
|
573 | 3fc6c082 | bellard | spr_register(env, SPR_DAR, "DAR",
|
574 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
575 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
576 | 3fc6c082 | bellard | 0x00000000);
|
577 | 3fc6c082 | bellard | /* Timer */
|
578 | 3fc6c082 | bellard | spr_register(env, SPR_DECR, "DECR",
|
579 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
580 | 3fc6c082 | bellard | &spr_read_decr, &spr_write_decr, |
581 | 3fc6c082 | bellard | 0x00000000);
|
582 | 3fc6c082 | bellard | /* Memory management */
|
583 | 3fc6c082 | bellard | spr_register(env, SPR_SDR1, "SDR1",
|
584 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
585 | 3fc6c082 | bellard | &spr_read_sdr1, &spr_write_sdr1, |
586 | 3fc6c082 | bellard | 0x00000000);
|
587 | 3fc6c082 | bellard | } |
588 | 3fc6c082 | bellard | |
589 | 3fc6c082 | bellard | /* BATs 0-3 */
|
590 | 3fc6c082 | bellard | static void gen_low_BATs (CPUPPCState *env) |
591 | 3fc6c082 | bellard | { |
592 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
593 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
594 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
595 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
596 | 3fc6c082 | bellard | 0x00000000);
|
597 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
598 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
599 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
600 | 3fc6c082 | bellard | 0x00000000);
|
601 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
602 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
603 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
604 | 3fc6c082 | bellard | 0x00000000);
|
605 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
606 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
607 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
608 | 3fc6c082 | bellard | 0x00000000);
|
609 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
610 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
611 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
612 | 3fc6c082 | bellard | 0x00000000);
|
613 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
614 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
615 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
616 | 3fc6c082 | bellard | 0x00000000);
|
617 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
618 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
619 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
620 | 3fc6c082 | bellard | 0x00000000);
|
621 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
622 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
623 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
624 | 3fc6c082 | bellard | 0x00000000);
|
625 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0U, "DBAT0U",
|
626 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
627 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
628 | 3fc6c082 | bellard | 0x00000000);
|
629 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0L, "DBAT0L",
|
630 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
631 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
632 | 3fc6c082 | bellard | 0x00000000);
|
633 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1U, "DBAT1U",
|
634 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
635 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
636 | 3fc6c082 | bellard | 0x00000000);
|
637 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1L, "DBAT1L",
|
638 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
639 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
640 | 3fc6c082 | bellard | 0x00000000);
|
641 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2U, "DBAT2U",
|
642 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
643 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
644 | 3fc6c082 | bellard | 0x00000000);
|
645 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2L, "DBAT2L",
|
646 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
647 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
648 | 3fc6c082 | bellard | 0x00000000);
|
649 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3U, "DBAT3U",
|
650 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
651 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
652 | 3fc6c082 | bellard | 0x00000000);
|
653 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3L, "DBAT3L",
|
654 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
655 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
656 | 3fc6c082 | bellard | 0x00000000);
|
657 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
658 | f2e63a42 | j_mayer | #endif
|
659 | 3fc6c082 | bellard | } |
660 | 3fc6c082 | bellard | |
661 | 3fc6c082 | bellard | /* BATs 4-7 */
|
662 | 3fc6c082 | bellard | static void gen_high_BATs (CPUPPCState *env) |
663 | 3fc6c082 | bellard | { |
664 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
665 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4U, "IBAT4U",
|
666 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
667 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
668 | 3fc6c082 | bellard | 0x00000000);
|
669 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4L, "IBAT4L",
|
670 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
671 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
672 | 3fc6c082 | bellard | 0x00000000);
|
673 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5U, "IBAT5U",
|
674 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
675 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
676 | 3fc6c082 | bellard | 0x00000000);
|
677 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5L, "IBAT5L",
|
678 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
679 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
680 | 3fc6c082 | bellard | 0x00000000);
|
681 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6U, "IBAT6U",
|
682 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
683 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
684 | 3fc6c082 | bellard | 0x00000000);
|
685 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6L, "IBAT6L",
|
686 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
687 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
688 | 3fc6c082 | bellard | 0x00000000);
|
689 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7U, "IBAT7U",
|
690 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
691 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
692 | 3fc6c082 | bellard | 0x00000000);
|
693 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7L, "IBAT7L",
|
694 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
695 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
696 | 3fc6c082 | bellard | 0x00000000);
|
697 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4U, "DBAT4U",
|
698 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
699 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
700 | 3fc6c082 | bellard | 0x00000000);
|
701 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4L, "DBAT4L",
|
702 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
703 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
704 | 3fc6c082 | bellard | 0x00000000);
|
705 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5U, "DBAT5U",
|
706 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
707 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
708 | 3fc6c082 | bellard | 0x00000000);
|
709 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5L, "DBAT5L",
|
710 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
711 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
712 | 3fc6c082 | bellard | 0x00000000);
|
713 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6U, "DBAT6U",
|
714 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
715 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
716 | 3fc6c082 | bellard | 0x00000000);
|
717 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6L, "DBAT6L",
|
718 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
719 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
720 | 3fc6c082 | bellard | 0x00000000);
|
721 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7U, "DBAT7U",
|
722 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
723 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
724 | 3fc6c082 | bellard | 0x00000000);
|
725 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7L, "DBAT7L",
|
726 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
727 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
728 | 3fc6c082 | bellard | 0x00000000);
|
729 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
730 | f2e63a42 | j_mayer | #endif
|
731 | 3fc6c082 | bellard | } |
732 | 3fc6c082 | bellard | |
733 | 3fc6c082 | bellard | /* Generic PowerPC time base */
|
734 | 3fc6c082 | bellard | static void gen_tbl (CPUPPCState *env) |
735 | 3fc6c082 | bellard | { |
736 | 3fc6c082 | bellard | spr_register(env, SPR_VTBL, "TBL",
|
737 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
738 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
739 | 3fc6c082 | bellard | 0x00000000);
|
740 | 3fc6c082 | bellard | spr_register(env, SPR_TBL, "TBL",
|
741 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
742 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbl, |
743 | 3fc6c082 | bellard | 0x00000000);
|
744 | 3fc6c082 | bellard | spr_register(env, SPR_VTBU, "TBU",
|
745 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
746 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
747 | 3fc6c082 | bellard | 0x00000000);
|
748 | 3fc6c082 | bellard | spr_register(env, SPR_TBU, "TBU",
|
749 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
750 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbu, |
751 | 3fc6c082 | bellard | 0x00000000);
|
752 | 3fc6c082 | bellard | } |
753 | 3fc6c082 | bellard | |
754 | 76a66253 | j_mayer | /* Softare table search registers */
|
755 | 76a66253 | j_mayer | static void gen_6xx_7xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
756 | 76a66253 | j_mayer | { |
757 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
758 | 76a66253 | j_mayer | env->nb_tlb = nb_tlbs; |
759 | 76a66253 | j_mayer | env->nb_ways = nb_ways; |
760 | 76a66253 | j_mayer | env->id_tlbs = 1;
|
761 | 76a66253 | j_mayer | spr_register(env, SPR_DMISS, "DMISS",
|
762 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
763 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
764 | 76a66253 | j_mayer | 0x00000000);
|
765 | 76a66253 | j_mayer | spr_register(env, SPR_DCMP, "DCMP",
|
766 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
767 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
768 | 76a66253 | j_mayer | 0x00000000);
|
769 | 76a66253 | j_mayer | spr_register(env, SPR_HASH1, "HASH1",
|
770 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
771 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
772 | 76a66253 | j_mayer | 0x00000000);
|
773 | 76a66253 | j_mayer | spr_register(env, SPR_HASH2, "HASH2",
|
774 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
775 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
776 | 76a66253 | j_mayer | 0x00000000);
|
777 | 76a66253 | j_mayer | spr_register(env, SPR_IMISS, "IMISS",
|
778 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
779 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
780 | 76a66253 | j_mayer | 0x00000000);
|
781 | 76a66253 | j_mayer | spr_register(env, SPR_ICMP, "ICMP",
|
782 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
783 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
784 | 76a66253 | j_mayer | 0x00000000);
|
785 | 76a66253 | j_mayer | spr_register(env, SPR_RPA, "RPA",
|
786 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
787 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
788 | 76a66253 | j_mayer | 0x00000000);
|
789 | f2e63a42 | j_mayer | #endif
|
790 | 76a66253 | j_mayer | } |
791 | 76a66253 | j_mayer | |
792 | 76a66253 | j_mayer | /* SPR common to MPC755 and G2 */
|
793 | 76a66253 | j_mayer | static void gen_spr_G2_755 (CPUPPCState *env) |
794 | 76a66253 | j_mayer | { |
795 | 76a66253 | j_mayer | /* SGPRs */
|
796 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
797 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
798 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
799 | 76a66253 | j_mayer | 0x00000000);
|
800 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
801 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
802 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
803 | 76a66253 | j_mayer | 0x00000000);
|
804 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
805 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
806 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
807 | 76a66253 | j_mayer | 0x00000000);
|
808 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
809 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
810 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
811 | 76a66253 | j_mayer | 0x00000000);
|
812 | 76a66253 | j_mayer | } |
813 | 76a66253 | j_mayer | |
814 | 3fc6c082 | bellard | /* SPR common to all 7xx PowerPC implementations */
|
815 | 3fc6c082 | bellard | static void gen_spr_7xx (CPUPPCState *env) |
816 | 3fc6c082 | bellard | { |
817 | 3fc6c082 | bellard | /* Breakpoints */
|
818 | 3fc6c082 | bellard | /* XXX : not implemented */
|
819 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
820 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
821 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
822 | 3fc6c082 | bellard | 0x00000000);
|
823 | 3fc6c082 | bellard | /* XXX : not implemented */
|
824 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
825 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
826 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
827 | 3fc6c082 | bellard | 0x00000000);
|
828 | 3fc6c082 | bellard | /* Cache management */
|
829 | 3fc6c082 | bellard | /* XXX : not implemented */
|
830 | 3fc6c082 | bellard | spr_register(env, SPR_ICTC, "ICTC",
|
831 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
832 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
833 | 3fc6c082 | bellard | 0x00000000);
|
834 | 3fc6c082 | bellard | /* Performance monitors */
|
835 | 3fc6c082 | bellard | /* XXX : not implemented */
|
836 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
837 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
838 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
839 | 3fc6c082 | bellard | 0x00000000);
|
840 | 3fc6c082 | bellard | /* XXX : not implemented */
|
841 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR1, "MMCR1",
|
842 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
843 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
844 | 3fc6c082 | bellard | 0x00000000);
|
845 | 3fc6c082 | bellard | /* XXX : not implemented */
|
846 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
847 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
848 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
849 | 3fc6c082 | bellard | 0x00000000);
|
850 | 3fc6c082 | bellard | /* XXX : not implemented */
|
851 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
852 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
853 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
854 | 3fc6c082 | bellard | 0x00000000);
|
855 | 3fc6c082 | bellard | /* XXX : not implemented */
|
856 | 3fc6c082 | bellard | spr_register(env, SPR_PMC3, "PMC3",
|
857 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
858 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
859 | 3fc6c082 | bellard | 0x00000000);
|
860 | 3fc6c082 | bellard | /* XXX : not implemented */
|
861 | 3fc6c082 | bellard | spr_register(env, SPR_PMC4, "PMC4",
|
862 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
863 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
864 | 3fc6c082 | bellard | 0x00000000);
|
865 | 3fc6c082 | bellard | /* XXX : not implemented */
|
866 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
867 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
868 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
869 | 3fc6c082 | bellard | 0x00000000);
|
870 | 578bb252 | j_mayer | /* XXX : not implemented */
|
871 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR0, "UMMCR0",
|
872 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
873 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
874 | 3fc6c082 | bellard | 0x00000000);
|
875 | 578bb252 | j_mayer | /* XXX : not implemented */
|
876 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR1, "UMMCR1",
|
877 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
878 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
879 | 3fc6c082 | bellard | 0x00000000);
|
880 | 578bb252 | j_mayer | /* XXX : not implemented */
|
881 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC1, "UPMC1",
|
882 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
883 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
884 | 3fc6c082 | bellard | 0x00000000);
|
885 | 578bb252 | j_mayer | /* XXX : not implemented */
|
886 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC2, "UPMC2",
|
887 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
888 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
889 | 3fc6c082 | bellard | 0x00000000);
|
890 | 578bb252 | j_mayer | /* XXX : not implemented */
|
891 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC3, "UPMC3",
|
892 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
893 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
894 | 3fc6c082 | bellard | 0x00000000);
|
895 | 578bb252 | j_mayer | /* XXX : not implemented */
|
896 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC4, "UPMC4",
|
897 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
898 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
899 | 3fc6c082 | bellard | 0x00000000);
|
900 | 578bb252 | j_mayer | /* XXX : not implemented */
|
901 | a750fc0b | j_mayer | spr_register(env, SPR_USIAR, "USIAR",
|
902 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
903 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
904 | 3fc6c082 | bellard | 0x00000000);
|
905 | a750fc0b | j_mayer | /* External access control */
|
906 | 3fc6c082 | bellard | /* XXX : not implemented */
|
907 | a750fc0b | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
908 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
909 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
910 | 3fc6c082 | bellard | 0x00000000);
|
911 | a750fc0b | j_mayer | } |
912 | a750fc0b | j_mayer | |
913 | a750fc0b | j_mayer | static void gen_spr_thrm (CPUPPCState *env) |
914 | a750fc0b | j_mayer | { |
915 | a750fc0b | j_mayer | /* Thermal management */
|
916 | 3fc6c082 | bellard | /* XXX : not implemented */
|
917 | a750fc0b | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
918 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
919 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
920 | 3fc6c082 | bellard | 0x00000000);
|
921 | 3fc6c082 | bellard | /* XXX : not implemented */
|
922 | a750fc0b | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
923 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
924 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
925 | 3fc6c082 | bellard | 0x00000000);
|
926 | 3fc6c082 | bellard | /* XXX : not implemented */
|
927 | a750fc0b | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
928 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
929 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
930 | 3fc6c082 | bellard | 0x00000000);
|
931 | 3fc6c082 | bellard | } |
932 | 3fc6c082 | bellard | |
933 | 3fc6c082 | bellard | /* SPR specific to PowerPC 604 implementation */
|
934 | 3fc6c082 | bellard | static void gen_spr_604 (CPUPPCState *env) |
935 | 3fc6c082 | bellard | { |
936 | 3fc6c082 | bellard | /* Processor identification */
|
937 | 3fc6c082 | bellard | spr_register(env, SPR_PIR, "PIR",
|
938 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
939 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_pir, |
940 | 3fc6c082 | bellard | 0x00000000);
|
941 | 3fc6c082 | bellard | /* Breakpoints */
|
942 | 3fc6c082 | bellard | /* XXX : not implemented */
|
943 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
944 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
945 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
946 | 3fc6c082 | bellard | 0x00000000);
|
947 | 3fc6c082 | bellard | /* XXX : not implemented */
|
948 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
949 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
950 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
951 | 3fc6c082 | bellard | 0x00000000);
|
952 | 3fc6c082 | bellard | /* Performance counters */
|
953 | 3fc6c082 | bellard | /* XXX : not implemented */
|
954 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
955 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
956 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
957 | 3fc6c082 | bellard | 0x00000000);
|
958 | 3fc6c082 | bellard | /* XXX : not implemented */
|
959 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
960 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
961 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
962 | 3fc6c082 | bellard | 0x00000000);
|
963 | 3fc6c082 | bellard | /* XXX : not implemented */
|
964 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
965 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
966 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
967 | 3fc6c082 | bellard | 0x00000000);
|
968 | 3fc6c082 | bellard | /* XXX : not implemented */
|
969 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
970 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
971 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
972 | 3fc6c082 | bellard | 0x00000000);
|
973 | 3fc6c082 | bellard | /* XXX : not implemented */
|
974 | 3fc6c082 | bellard | spr_register(env, SPR_SDA, "SDA",
|
975 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
976 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
977 | 3fc6c082 | bellard | 0x00000000);
|
978 | 3fc6c082 | bellard | /* External access control */
|
979 | 3fc6c082 | bellard | /* XXX : not implemented */
|
980 | 3fc6c082 | bellard | spr_register(env, SPR_EAR, "EAR",
|
981 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
982 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
983 | 3fc6c082 | bellard | 0x00000000);
|
984 | 3fc6c082 | bellard | } |
985 | 3fc6c082 | bellard | |
986 | 76a66253 | j_mayer | /* SPR specific to PowerPC 603 implementation */
|
987 | 76a66253 | j_mayer | static void gen_spr_603 (CPUPPCState *env) |
988 | 3fc6c082 | bellard | { |
989 | 76a66253 | j_mayer | /* External access control */
|
990 | 76a66253 | j_mayer | /* XXX : not implemented */
|
991 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
992 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
993 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
994 | 76a66253 | j_mayer | 0x00000000);
|
995 | 3fc6c082 | bellard | } |
996 | 3fc6c082 | bellard | |
997 | 76a66253 | j_mayer | /* SPR specific to PowerPC G2 implementation */
|
998 | 76a66253 | j_mayer | static void gen_spr_G2 (CPUPPCState *env) |
999 | 3fc6c082 | bellard | { |
1000 | 76a66253 | j_mayer | /* Memory base address */
|
1001 | 76a66253 | j_mayer | /* MBAR */
|
1002 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1003 | 76a66253 | j_mayer | spr_register(env, SPR_MBAR, "MBAR",
|
1004 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1005 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1006 | 76a66253 | j_mayer | 0x00000000);
|
1007 | 76a66253 | j_mayer | /* Exception processing */
|
1008 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1009 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1010 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1011 | 76a66253 | j_mayer | 0x00000000);
|
1012 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
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 | /* Breakpoints */
|
1017 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1018 | 76a66253 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
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 | /* XXX : not implemented */
|
1023 | 76a66253 | j_mayer | spr_register(env, SPR_DABR2, "DABR2",
|
1024 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1025 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1026 | 76a66253 | j_mayer | 0x00000000);
|
1027 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1028 | 76a66253 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1029 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1030 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1031 | 76a66253 | j_mayer | 0x00000000);
|
1032 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1033 | 76a66253 | j_mayer | spr_register(env, SPR_IABR2, "IABR2",
|
1034 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1035 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1036 | 76a66253 | j_mayer | 0x00000000);
|
1037 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1038 | 76a66253 | j_mayer | spr_register(env, SPR_IBCR, "IBCR",
|
1039 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1040 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1041 | 76a66253 | j_mayer | 0x00000000);
|
1042 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1043 | 76a66253 | j_mayer | spr_register(env, SPR_DBCR, "DBCR",
|
1044 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1045 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1046 | 76a66253 | j_mayer | 0x00000000);
|
1047 | 76a66253 | j_mayer | } |
1048 | 76a66253 | j_mayer | |
1049 | 76a66253 | j_mayer | /* SPR specific to PowerPC 602 implementation */
|
1050 | 76a66253 | j_mayer | static void gen_spr_602 (CPUPPCState *env) |
1051 | 76a66253 | j_mayer | { |
1052 | 76a66253 | j_mayer | /* ESA registers */
|
1053 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1054 | 76a66253 | j_mayer | spr_register(env, SPR_SER, "SER",
|
1055 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1056 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1057 | 76a66253 | j_mayer | 0x00000000);
|
1058 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1059 | 76a66253 | j_mayer | spr_register(env, SPR_SEBR, "SEBR",
|
1060 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1061 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1062 | 76a66253 | j_mayer | 0x00000000);
|
1063 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1064 | a750fc0b | j_mayer | spr_register(env, SPR_ESASRR, "ESASRR",
|
1065 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1066 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1067 | 76a66253 | j_mayer | 0x00000000);
|
1068 | 76a66253 | j_mayer | /* Floating point status */
|
1069 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1070 | 76a66253 | j_mayer | spr_register(env, SPR_SP, "SP",
|
1071 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1072 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1073 | 76a66253 | j_mayer | 0x00000000);
|
1074 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1075 | 76a66253 | j_mayer | spr_register(env, SPR_LT, "LT",
|
1076 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1077 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1078 | 76a66253 | j_mayer | 0x00000000);
|
1079 | 76a66253 | j_mayer | /* Watchdog timer */
|
1080 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1081 | 76a66253 | j_mayer | spr_register(env, SPR_TCR, "TCR",
|
1082 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1083 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1084 | 76a66253 | j_mayer | 0x00000000);
|
1085 | 76a66253 | j_mayer | /* Interrupt base */
|
1086 | 76a66253 | j_mayer | spr_register(env, SPR_IBR, "IBR",
|
1087 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1088 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1089 | 76a66253 | j_mayer | 0x00000000);
|
1090 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1091 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1092 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1093 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1094 | a750fc0b | j_mayer | 0x00000000);
|
1095 | 76a66253 | j_mayer | } |
1096 | 76a66253 | j_mayer | |
1097 | 76a66253 | j_mayer | /* SPR specific to PowerPC 601 implementation */
|
1098 | 76a66253 | j_mayer | static void gen_spr_601 (CPUPPCState *env) |
1099 | 76a66253 | j_mayer | { |
1100 | 76a66253 | j_mayer | /* Multiplication/division register */
|
1101 | 76a66253 | j_mayer | /* MQ */
|
1102 | 76a66253 | j_mayer | spr_register(env, SPR_MQ, "MQ",
|
1103 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1104 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1105 | 76a66253 | j_mayer | 0x00000000);
|
1106 | 76a66253 | j_mayer | /* RTC registers */
|
1107 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCU, "RTCU",
|
1108 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1109 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcu, |
1110 | 76a66253 | j_mayer | 0x00000000);
|
1111 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCU, "RTCU",
|
1112 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1113 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1114 | 76a66253 | j_mayer | 0x00000000);
|
1115 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCL, "RTCL",
|
1116 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1117 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcl, |
1118 | 76a66253 | j_mayer | 0x00000000);
|
1119 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCL, "RTCL",
|
1120 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1121 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1122 | 76a66253 | j_mayer | 0x00000000);
|
1123 | 76a66253 | j_mayer | /* Timer */
|
1124 | 76a66253 | j_mayer | #if 0 /* ? */
|
1125 | 76a66253 | j_mayer | spr_register(env, SPR_601_UDECR, "UDECR",
|
1126 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1127 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1128 | 76a66253 | j_mayer | 0x00000000);
|
1129 | 76a66253 | j_mayer | #endif
|
1130 | 76a66253 | j_mayer | /* External access control */
|
1131 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1132 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1133 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1134 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1135 | 76a66253 | j_mayer | 0x00000000);
|
1136 | 76a66253 | j_mayer | /* Memory management */
|
1137 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1138 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
1139 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1140 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1141 | 76a66253 | j_mayer | 0x00000000);
|
1142 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
1143 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1144 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1145 | 76a66253 | j_mayer | 0x00000000);
|
1146 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
1147 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1148 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1149 | 76a66253 | j_mayer | 0x00000000);
|
1150 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
1151 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1152 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1153 | 76a66253 | j_mayer | 0x00000000);
|
1154 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
1155 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1156 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1157 | 76a66253 | j_mayer | 0x00000000);
|
1158 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
1159 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1160 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1161 | 76a66253 | j_mayer | 0x00000000);
|
1162 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
1163 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1164 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1165 | 76a66253 | j_mayer | 0x00000000);
|
1166 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
1167 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1168 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1169 | 76a66253 | j_mayer | 0x00000000);
|
1170 | a750fc0b | j_mayer | env->nb_BATs = 4;
|
1171 | f2e63a42 | j_mayer | #endif
|
1172 | a750fc0b | j_mayer | } |
1173 | a750fc0b | j_mayer | |
1174 | a750fc0b | j_mayer | static void gen_spr_74xx (CPUPPCState *env) |
1175 | a750fc0b | j_mayer | { |
1176 | a750fc0b | j_mayer | /* Processor identification */
|
1177 | a750fc0b | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
1178 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1179 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_pir, |
1180 | a750fc0b | j_mayer | 0x00000000);
|
1181 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1182 | a750fc0b | j_mayer | spr_register(env, SPR_MMCR2, "MMCR2",
|
1183 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1184 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1185 | a750fc0b | j_mayer | 0x00000000);
|
1186 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1187 | a750fc0b | j_mayer | spr_register(env, SPR_UMMCR2, "UMMCR2",
|
1188 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1189 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1190 | a750fc0b | j_mayer | 0x00000000);
|
1191 | a750fc0b | j_mayer | /* XXX: not implemented */
|
1192 | a750fc0b | j_mayer | spr_register(env, SPR_BAMR, "BAMR",
|
1193 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1194 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1195 | a750fc0b | j_mayer | 0x00000000);
|
1196 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1197 | a750fc0b | j_mayer | spr_register(env, SPR_MSSCR0, "MSSCR0",
|
1198 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1199 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1200 | a750fc0b | j_mayer | 0x00000000);
|
1201 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
1202 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1203 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
1204 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1205 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1206 | a750fc0b | j_mayer | 0x00000000);
|
1207 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1208 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
1209 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1210 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1211 | a750fc0b | j_mayer | 0x00000000);
|
1212 | a750fc0b | j_mayer | /* Altivec */
|
1213 | a750fc0b | j_mayer | spr_register(env, SPR_VRSAVE, "VRSAVE",
|
1214 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1215 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1216 | a750fc0b | j_mayer | 0x00000000);
|
1217 | bd928eba | j_mayer | /* XXX : not implemented */
|
1218 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
1219 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1220 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
1221 | bd928eba | j_mayer | 0x00000000);
|
1222 | a750fc0b | j_mayer | } |
1223 | a750fc0b | j_mayer | |
1224 | a750fc0b | j_mayer | static void gen_l3_ctrl (CPUPPCState *env) |
1225 | a750fc0b | j_mayer | { |
1226 | a750fc0b | j_mayer | /* L3CR */
|
1227 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1228 | a750fc0b | j_mayer | spr_register(env, SPR_L3CR, "L3CR",
|
1229 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1230 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1231 | a750fc0b | j_mayer | 0x00000000);
|
1232 | a750fc0b | j_mayer | /* L3ITCR0 */
|
1233 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1234 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR0, "L3ITCR0",
|
1235 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1236 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1237 | a750fc0b | j_mayer | 0x00000000);
|
1238 | a750fc0b | j_mayer | /* L3PM */
|
1239 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1240 | a750fc0b | j_mayer | spr_register(env, SPR_L3PM, "L3PM",
|
1241 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1242 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1243 | a750fc0b | j_mayer | 0x00000000);
|
1244 | a750fc0b | j_mayer | } |
1245 | a750fc0b | j_mayer | |
1246 | 578bb252 | j_mayer | static void gen_74xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
1247 | a750fc0b | j_mayer | { |
1248 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1249 | 578bb252 | j_mayer | env->nb_tlb = nb_tlbs; |
1250 | 578bb252 | j_mayer | env->nb_ways = nb_ways; |
1251 | 578bb252 | j_mayer | env->id_tlbs = 1;
|
1252 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1253 | a750fc0b | j_mayer | spr_register(env, SPR_PTEHI, "PTEHI",
|
1254 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1255 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1256 | a750fc0b | j_mayer | 0x00000000);
|
1257 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1258 | a750fc0b | j_mayer | spr_register(env, SPR_PTELO, "PTELO",
|
1259 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1260 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1261 | a750fc0b | j_mayer | 0x00000000);
|
1262 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1263 | a750fc0b | j_mayer | spr_register(env, SPR_TLBMISS, "TLBMISS",
|
1264 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1265 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1266 | a750fc0b | j_mayer | 0x00000000);
|
1267 | f2e63a42 | j_mayer | #endif
|
1268 | 76a66253 | j_mayer | } |
1269 | 76a66253 | j_mayer | |
1270 | 80d11f44 | j_mayer | static void gen_spr_usprgh (CPUPPCState *env) |
1271 | 76a66253 | j_mayer | { |
1272 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
1273 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1274 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1275 | 80d11f44 | j_mayer | 0x00000000);
|
1276 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
1277 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1278 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1279 | 80d11f44 | j_mayer | 0x00000000);
|
1280 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
1281 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1282 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1283 | 80d11f44 | j_mayer | 0x00000000);
|
1284 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
1285 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1286 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1287 | 76a66253 | j_mayer | 0x00000000);
|
1288 | 80d11f44 | j_mayer | } |
1289 | 80d11f44 | j_mayer | |
1290 | 80d11f44 | j_mayer | /* PowerPC BookE SPR */
|
1291 | 80d11f44 | j_mayer | static void gen_spr_BookE (CPUPPCState *env, uint64_t ivor_mask) |
1292 | 80d11f44 | j_mayer | { |
1293 | b55266b5 | blueswir1 | const char *ivor_names[64] = { |
1294 | 80d11f44 | j_mayer | "IVOR0", "IVOR1", "IVOR2", "IVOR3", |
1295 | 80d11f44 | j_mayer | "IVOR4", "IVOR5", "IVOR6", "IVOR7", |
1296 | 80d11f44 | j_mayer | "IVOR8", "IVOR9", "IVOR10", "IVOR11", |
1297 | 80d11f44 | j_mayer | "IVOR12", "IVOR13", "IVOR14", "IVOR15", |
1298 | 80d11f44 | j_mayer | "IVOR16", "IVOR17", "IVOR18", "IVOR19", |
1299 | 80d11f44 | j_mayer | "IVOR20", "IVOR21", "IVOR22", "IVOR23", |
1300 | 80d11f44 | j_mayer | "IVOR24", "IVOR25", "IVOR26", "IVOR27", |
1301 | 80d11f44 | j_mayer | "IVOR28", "IVOR29", "IVOR30", "IVOR31", |
1302 | 80d11f44 | j_mayer | "IVOR32", "IVOR33", "IVOR34", "IVOR35", |
1303 | 80d11f44 | j_mayer | "IVOR36", "IVOR37", "IVOR38", "IVOR39", |
1304 | 80d11f44 | j_mayer | "IVOR40", "IVOR41", "IVOR42", "IVOR43", |
1305 | 80d11f44 | j_mayer | "IVOR44", "IVOR45", "IVOR46", "IVOR47", |
1306 | 80d11f44 | j_mayer | "IVOR48", "IVOR49", "IVOR50", "IVOR51", |
1307 | 80d11f44 | j_mayer | "IVOR52", "IVOR53", "IVOR54", "IVOR55", |
1308 | 80d11f44 | j_mayer | "IVOR56", "IVOR57", "IVOR58", "IVOR59", |
1309 | 80d11f44 | j_mayer | "IVOR60", "IVOR61", "IVOR62", "IVOR63", |
1310 | 80d11f44 | j_mayer | }; |
1311 | 80d11f44 | j_mayer | #define SPR_BOOKE_IVORxx (-1) |
1312 | 80d11f44 | j_mayer | int ivor_sprn[64] = { |
1313 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR0, SPR_BOOKE_IVOR1, SPR_BOOKE_IVOR2, SPR_BOOKE_IVOR3, |
1314 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR4, SPR_BOOKE_IVOR5, SPR_BOOKE_IVOR6, SPR_BOOKE_IVOR7, |
1315 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR8, SPR_BOOKE_IVOR9, SPR_BOOKE_IVOR10, SPR_BOOKE_IVOR11, |
1316 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR12, SPR_BOOKE_IVOR13, SPR_BOOKE_IVOR14, SPR_BOOKE_IVOR15, |
1317 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1318 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1319 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1320 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1321 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR32, SPR_BOOKE_IVOR33, SPR_BOOKE_IVOR34, SPR_BOOKE_IVOR35, |
1322 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR36, SPR_BOOKE_IVOR37, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1323 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1324 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1325 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1326 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1327 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1328 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1329 | 80d11f44 | j_mayer | }; |
1330 | 80d11f44 | j_mayer | int i;
|
1331 | 80d11f44 | j_mayer | |
1332 | 76a66253 | j_mayer | /* Interrupt processing */
|
1333 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1334 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1335 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1336 | 76a66253 | j_mayer | 0x00000000);
|
1337 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1338 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1339 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1340 | 363be49c | j_mayer | 0x00000000);
|
1341 | 76a66253 | j_mayer | /* Debug */
|
1342 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1343 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC1, "IAC1",
|
1344 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1345 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1346 | 76a66253 | j_mayer | 0x00000000);
|
1347 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1348 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC2, "IAC2",
|
1349 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1350 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1351 | 76a66253 | j_mayer | 0x00000000);
|
1352 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1353 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC1, "DAC1",
|
1354 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1355 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1356 | 76a66253 | j_mayer | 0x00000000);
|
1357 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1358 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC2, "DAC2",
|
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 | /* XXX : not implemented */
|
1363 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR0, "DBCR0",
|
1364 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1365 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1366 | 76a66253 | j_mayer | 0x00000000);
|
1367 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1368 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR1, "DBCR1",
|
1369 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1370 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1371 | 76a66253 | j_mayer | 0x00000000);
|
1372 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1373 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR2, "DBCR2",
|
1374 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1375 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1376 | 76a66253 | j_mayer | 0x00000000);
|
1377 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1378 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBSR, "DBSR",
|
1379 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1380 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1381 | 76a66253 | j_mayer | 0x00000000);
|
1382 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DEAR, "DEAR",
|
1383 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1384 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1385 | 76a66253 | j_mayer | 0x00000000);
|
1386 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_ESR, "ESR",
|
1387 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1388 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1389 | 76a66253 | j_mayer | 0x00000000);
|
1390 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVPR, "IVPR",
|
1391 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1392 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1393 | 363be49c | j_mayer | 0x00000000);
|
1394 | 363be49c | j_mayer | /* Exception vectors */
|
1395 | 80d11f44 | j_mayer | for (i = 0; i < 64; i++) { |
1396 | 80d11f44 | j_mayer | if (ivor_mask & (1ULL << i)) { |
1397 | 80d11f44 | j_mayer | if (ivor_sprn[i] == SPR_BOOKE_IVORxx) {
|
1398 | 80d11f44 | j_mayer | fprintf(stderr, "ERROR: IVOR %d SPR is not defined\n", i);
|
1399 | 80d11f44 | j_mayer | exit(1);
|
1400 | 80d11f44 | j_mayer | } |
1401 | 80d11f44 | j_mayer | spr_register(env, ivor_sprn[i], ivor_names[i], |
1402 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1403 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_excp_vector, |
1404 | 80d11f44 | j_mayer | 0x00000000);
|
1405 | 80d11f44 | j_mayer | } |
1406 | 80d11f44 | j_mayer | } |
1407 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_PID, "PID",
|
1408 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1409 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1410 | 76a66253 | j_mayer | 0x00000000);
|
1411 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TCR, "TCR",
|
1412 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1413 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1414 | 76a66253 | j_mayer | 0x00000000);
|
1415 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TSR, "TSR",
|
1416 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1417 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1418 | 76a66253 | j_mayer | 0x00000000);
|
1419 | 76a66253 | j_mayer | /* Timer */
|
1420 | 76a66253 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
1421 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1422 | 76a66253 | j_mayer | &spr_read_decr, &spr_write_decr, |
1423 | 76a66253 | j_mayer | 0x00000000);
|
1424 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DECAR, "DECAR",
|
1425 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1426 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
1427 | 76a66253 | j_mayer | 0x00000000);
|
1428 | 76a66253 | j_mayer | /* SPRGs */
|
1429 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1430 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1431 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1432 | 76a66253 | j_mayer | 0x00000000);
|
1433 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1434 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1435 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1436 | 76a66253 | j_mayer | 0x00000000);
|
1437 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1438 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1439 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1440 | 76a66253 | j_mayer | 0x00000000);
|
1441 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1442 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1443 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1444 | 76a66253 | j_mayer | 0x00000000);
|
1445 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1446 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1447 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1448 | 76a66253 | j_mayer | 0x00000000);
|
1449 | 76a66253 | j_mayer | } |
1450 | 76a66253 | j_mayer | |
1451 | 363be49c | j_mayer | /* FSL storage control registers */
|
1452 | 80d11f44 | j_mayer | static void gen_spr_BookE_FSL (CPUPPCState *env, uint32_t mas_mask) |
1453 | 363be49c | j_mayer | { |
1454 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1455 | b55266b5 | blueswir1 | const char *mas_names[8] = { |
1456 | 80d11f44 | j_mayer | "MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7", |
1457 | 80d11f44 | j_mayer | }; |
1458 | 80d11f44 | j_mayer | int mas_sprn[8] = { |
1459 | 80d11f44 | j_mayer | SPR_BOOKE_MAS0, SPR_BOOKE_MAS1, SPR_BOOKE_MAS2, SPR_BOOKE_MAS3, |
1460 | 80d11f44 | j_mayer | SPR_BOOKE_MAS4, SPR_BOOKE_MAS5, SPR_BOOKE_MAS6, SPR_BOOKE_MAS7, |
1461 | 80d11f44 | j_mayer | }; |
1462 | 80d11f44 | j_mayer | int i;
|
1463 | 80d11f44 | j_mayer | |
1464 | 363be49c | j_mayer | /* TLB assist registers */
|
1465 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1466 | 80d11f44 | j_mayer | for (i = 0; i < 8; i++) { |
1467 | 80d11f44 | j_mayer | if (mas_mask & (1 << i)) { |
1468 | 80d11f44 | j_mayer | spr_register(env, mas_sprn[i], mas_names[i], |
1469 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1470 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
1471 | 80d11f44 | j_mayer | 0x00000000);
|
1472 | 80d11f44 | j_mayer | } |
1473 | 80d11f44 | j_mayer | } |
1474 | 363be49c | j_mayer | if (env->nb_pids > 1) { |
1475 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1476 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID1, "PID1",
|
1477 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1478 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1479 | 363be49c | j_mayer | 0x00000000);
|
1480 | 363be49c | j_mayer | } |
1481 | 363be49c | j_mayer | if (env->nb_pids > 2) { |
1482 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1483 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID2, "PID2",
|
1484 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1485 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1486 | 363be49c | j_mayer | 0x00000000);
|
1487 | 363be49c | j_mayer | } |
1488 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1489 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
1490 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1491 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1492 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1493 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1494 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
1495 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1496 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1497 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1498 | 363be49c | j_mayer | switch (env->nb_ways) {
|
1499 | 363be49c | j_mayer | case 4: |
1500 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1501 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB3CFG, "TLB3CFG",
|
1502 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1503 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1504 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1505 | 363be49c | j_mayer | /* Fallthru */
|
1506 | 363be49c | j_mayer | case 3: |
1507 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1508 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB2CFG, "TLB2CFG",
|
1509 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1510 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1511 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1512 | 363be49c | j_mayer | /* Fallthru */
|
1513 | 363be49c | j_mayer | case 2: |
1514 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1515 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
1516 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1517 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1518 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1519 | 363be49c | j_mayer | /* Fallthru */
|
1520 | 363be49c | j_mayer | case 1: |
1521 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1522 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
1523 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1524 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1525 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1526 | 363be49c | j_mayer | /* Fallthru */
|
1527 | 363be49c | j_mayer | case 0: |
1528 | 363be49c | j_mayer | default:
|
1529 | 363be49c | j_mayer | break;
|
1530 | 363be49c | j_mayer | } |
1531 | f2e63a42 | j_mayer | #endif
|
1532 | 363be49c | j_mayer | } |
1533 | 363be49c | j_mayer | |
1534 | 76a66253 | j_mayer | /* SPR specific to PowerPC 440 implementation */
|
1535 | 76a66253 | j_mayer | static void gen_spr_440 (CPUPPCState *env) |
1536 | 76a66253 | j_mayer | { |
1537 | 76a66253 | j_mayer | /* Cache control */
|
1538 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1539 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV0, "DNV0",
|
1540 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1541 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1542 | 76a66253 | j_mayer | 0x00000000);
|
1543 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1544 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV1, "DNV1",
|
1545 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1546 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1547 | 76a66253 | j_mayer | 0x00000000);
|
1548 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1549 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV2, "DNV2",
|
1550 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1551 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1552 | 76a66253 | j_mayer | 0x00000000);
|
1553 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1554 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV3, "DNV3",
|
1555 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1556 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1557 | 76a66253 | j_mayer | 0x00000000);
|
1558 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1559 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV0, "DTV0",
|
1560 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1561 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1562 | 76a66253 | j_mayer | 0x00000000);
|
1563 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1564 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV1, "DTV1",
|
1565 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1566 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1567 | 76a66253 | j_mayer | 0x00000000);
|
1568 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1569 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV2, "DTV2",
|
1570 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1571 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1572 | 76a66253 | j_mayer | 0x00000000);
|
1573 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1574 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV3, "DTV3",
|
1575 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1576 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1577 | 76a66253 | j_mayer | 0x00000000);
|
1578 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1579 | 76a66253 | j_mayer | spr_register(env, SPR_440_DVLIM, "DVLIM",
|
1580 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1581 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1582 | 76a66253 | j_mayer | 0x00000000);
|
1583 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1584 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV0, "INV0",
|
1585 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1586 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1587 | 76a66253 | j_mayer | 0x00000000);
|
1588 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1589 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV1, "INV1",
|
1590 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1591 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1592 | 76a66253 | j_mayer | 0x00000000);
|
1593 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1594 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV2, "INV2",
|
1595 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1596 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1597 | 76a66253 | j_mayer | 0x00000000);
|
1598 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1599 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV3, "INV3",
|
1600 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1601 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1602 | 76a66253 | j_mayer | 0x00000000);
|
1603 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1604 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV0, "ITV0",
|
1605 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1606 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1607 | 76a66253 | j_mayer | 0x00000000);
|
1608 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1609 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV1, "ITV1",
|
1610 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1611 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1612 | 76a66253 | j_mayer | 0x00000000);
|
1613 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1614 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV2, "ITV2",
|
1615 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1616 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1617 | 76a66253 | j_mayer | 0x00000000);
|
1618 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1619 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV3, "ITV3",
|
1620 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1621 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1622 | 76a66253 | j_mayer | 0x00000000);
|
1623 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1624 | 76a66253 | j_mayer | spr_register(env, SPR_440_IVLIM, "IVLIM",
|
1625 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1626 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1627 | 76a66253 | j_mayer | 0x00000000);
|
1628 | 76a66253 | j_mayer | /* Cache debug */
|
1629 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1630 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRH, "DCDBTRH",
|
1631 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1632 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1633 | 76a66253 | j_mayer | 0x00000000);
|
1634 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1635 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRL, "DCDBTRL",
|
1636 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1637 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1638 | 76a66253 | j_mayer | 0x00000000);
|
1639 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1640 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1641 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1642 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1643 | 76a66253 | j_mayer | 0x00000000);
|
1644 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1645 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRH, "ICDBTRH",
|
1646 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1647 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1648 | 76a66253 | j_mayer | 0x00000000);
|
1649 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1650 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRL, "ICDBTRL",
|
1651 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1652 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1653 | 76a66253 | j_mayer | 0x00000000);
|
1654 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1655 | 76a66253 | j_mayer | spr_register(env, SPR_440_DBDR, "DBDR",
|
1656 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1657 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1658 | 76a66253 | j_mayer | 0x00000000);
|
1659 | 76a66253 | j_mayer | /* Processor control */
|
1660 | 76a66253 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1661 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1662 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1663 | 76a66253 | j_mayer | 0x00000000);
|
1664 | 76a66253 | j_mayer | spr_register(env, SPR_440_RSTCFG, "RSTCFG",
|
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 | /* Storage control */
|
1669 | 76a66253 | j_mayer | spr_register(env, SPR_440_MMUCR, "MMUCR",
|
1670 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1671 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1672 | 76a66253 | j_mayer | 0x00000000);
|
1673 | 76a66253 | j_mayer | } |
1674 | 76a66253 | j_mayer | |
1675 | 76a66253 | j_mayer | /* SPR shared between PowerPC 40x implementations */
|
1676 | 76a66253 | j_mayer | static void gen_spr_40x (CPUPPCState *env) |
1677 | 76a66253 | j_mayer | { |
1678 | 76a66253 | j_mayer | /* Cache */
|
1679 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1680 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DCCR, "DCCR",
|
1681 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1682 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1683 | 76a66253 | j_mayer | 0x00000000);
|
1684 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1685 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ICCR, "ICCR",
|
1686 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1687 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1688 | 76a66253 | j_mayer | 0x00000000);
|
1689 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1690 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1691 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1692 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1693 | 76a66253 | j_mayer | 0x00000000);
|
1694 | 76a66253 | j_mayer | /* Exception */
|
1695 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DEAR, "DEAR",
|
1696 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1697 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1698 | 76a66253 | j_mayer | 0x00000000);
|
1699 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ESR, "ESR",
|
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 | spr_register(env, SPR_40x_EVPR, "EVPR",
|
1704 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1705 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1706 | 76a66253 | j_mayer | 0x00000000);
|
1707 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR2, "SRR2",
|
1708 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1709 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1710 | 76a66253 | j_mayer | 0x00000000);
|
1711 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR3, "SRR3",
|
1712 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1713 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1714 | 76a66253 | j_mayer | 0x00000000);
|
1715 | 76a66253 | j_mayer | /* Timers */
|
1716 | 76a66253 | j_mayer | spr_register(env, SPR_40x_PIT, "PIT",
|
1717 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1718 | 76a66253 | j_mayer | &spr_read_40x_pit, &spr_write_40x_pit, |
1719 | 76a66253 | j_mayer | 0x00000000);
|
1720 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TCR, "TCR",
|
1721 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1722 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1723 | 76a66253 | j_mayer | 0x00000000);
|
1724 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TSR, "TSR",
|
1725 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1726 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1727 | 76a66253 | j_mayer | 0x00000000);
|
1728 | 2662a059 | j_mayer | } |
1729 | 2662a059 | j_mayer | |
1730 | 2662a059 | j_mayer | /* SPR specific to PowerPC 405 implementation */
|
1731 | 2662a059 | j_mayer | static void gen_spr_405 (CPUPPCState *env) |
1732 | 2662a059 | j_mayer | { |
1733 | 2662a059 | j_mayer | /* MMU */
|
1734 | 2662a059 | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1735 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1736 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1737 | 76a66253 | j_mayer | 0x00000000);
|
1738 | 2662a059 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1739 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1740 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1741 | 2662a059 | j_mayer | 0x00700000);
|
1742 | 2662a059 | j_mayer | /* Debug interface */
|
1743 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1744 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1745 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1746 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1747 | 76a66253 | j_mayer | 0x00000000);
|
1748 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1749 | 2662a059 | j_mayer | spr_register(env, SPR_405_DBCR1, "DBCR1",
|
1750 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1751 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1752 | 2662a059 | j_mayer | 0x00000000);
|
1753 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1754 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1755 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1756 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1757 | 8ecc7913 | j_mayer | /* Last reset was system reset */
|
1758 | 76a66253 | j_mayer | 0x00000300);
|
1759 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1760 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1761 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1762 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1763 | 76a66253 | j_mayer | 0x00000000);
|
1764 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1765 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1766 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1767 | 76a66253 | j_mayer | 0x00000000);
|
1768 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1769 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC1, "DVC1",
|
1770 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1771 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1772 | 2662a059 | j_mayer | 0x00000000);
|
1773 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1774 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC2, "DVC2",
|
1775 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1776 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1777 | 76a66253 | j_mayer | 0x00000000);
|
1778 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1779 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
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_IAC2, "IAC2",
|
1784 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1785 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1786 | 76a66253 | j_mayer | 0x00000000);
|
1787 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1788 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC3, "IAC3",
|
1789 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1790 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1791 | 76a66253 | j_mayer | 0x00000000);
|
1792 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1793 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC4, "IAC4",
|
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 | /* Storage control */
|
1798 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1799 | 76a66253 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1800 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1801 | c294fc58 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1802 | 76a66253 | j_mayer | 0x00000000);
|
1803 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1804 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1805 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1806 | 2662a059 | j_mayer | 0x00000000);
|
1807 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1808 | 76a66253 | j_mayer | spr_register(env, SPR_405_SU0R, "SU0R",
|
1809 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1810 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1811 | 76a66253 | j_mayer | 0x00000000);
|
1812 | 76a66253 | j_mayer | /* SPRG */
|
1813 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1814 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1815 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1816 | 76a66253 | j_mayer | 0x00000000);
|
1817 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1818 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1819 | 04f20795 | j_mayer | &spr_read_generic, &spr_write_generic, |
1820 | 76a66253 | j_mayer | 0x00000000);
|
1821 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1822 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1823 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1824 | 76a66253 | j_mayer | 0x00000000);
|
1825 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1826 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1827 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1828 | 76a66253 | j_mayer | 0x00000000);
|
1829 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1830 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1831 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1832 | 76a66253 | j_mayer | 0x00000000);
|
1833 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
1834 | 76a66253 | j_mayer | } |
1835 | 76a66253 | j_mayer | |
1836 | 76a66253 | j_mayer | /* SPR shared between PowerPC 401 & 403 implementations */
|
1837 | 76a66253 | j_mayer | static void gen_spr_401_403 (CPUPPCState *env) |
1838 | 76a66253 | j_mayer | { |
1839 | 76a66253 | j_mayer | /* Time base */
|
1840 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBL, "TBL",
|
1841 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1842 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1843 | 76a66253 | j_mayer | 0x00000000);
|
1844 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBL, "TBL",
|
1845 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1846 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbl, |
1847 | 76a66253 | j_mayer | 0x00000000);
|
1848 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBU, "TBU",
|
1849 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1850 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1851 | 76a66253 | j_mayer | 0x00000000);
|
1852 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBU, "TBU",
|
1853 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1854 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbu, |
1855 | 76a66253 | j_mayer | 0x00000000);
|
1856 | 76a66253 | j_mayer | /* Debug */
|
1857 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1858 | 76a66253 | j_mayer | spr_register(env, SPR_403_CDBCR, "CDBCR",
|
1859 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1860 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1861 | 76a66253 | j_mayer | 0x00000000);
|
1862 | 76a66253 | j_mayer | } |
1863 | 76a66253 | j_mayer | |
1864 | 2662a059 | j_mayer | /* SPR specific to PowerPC 401 implementation */
|
1865 | 2662a059 | j_mayer | static void gen_spr_401 (CPUPPCState *env) |
1866 | 2662a059 | j_mayer | { |
1867 | 2662a059 | j_mayer | /* Debug interface */
|
1868 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1869 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR",
|
1870 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1871 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1872 | 2662a059 | j_mayer | 0x00000000);
|
1873 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1874 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1875 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1876 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1877 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1878 | 2662a059 | j_mayer | 0x00000300);
|
1879 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1880 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC",
|
1881 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1882 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1883 | 2662a059 | j_mayer | 0x00000000);
|
1884 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1885 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC",
|
1886 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1887 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1888 | 2662a059 | j_mayer | 0x00000000);
|
1889 | 2662a059 | j_mayer | /* Storage control */
|
1890 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1891 | 2662a059 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1892 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1893 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1894 | 2662a059 | j_mayer | 0x00000000);
|
1895 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
1896 | 035feb88 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
1897 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1898 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1899 | 035feb88 | j_mayer | 0xFFFFFFFF);
|
1900 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1901 | 035feb88 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
1902 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1903 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1904 | 035feb88 | j_mayer | 0x00000000);
|
1905 | 2662a059 | j_mayer | } |
1906 | 2662a059 | j_mayer | |
1907 | a750fc0b | j_mayer | static void gen_spr_401x2 (CPUPPCState *env) |
1908 | a750fc0b | j_mayer | { |
1909 | a750fc0b | j_mayer | gen_spr_401(env); |
1910 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1911 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1912 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1913 | a750fc0b | j_mayer | 0x00000000);
|
1914 | a750fc0b | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1915 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1916 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1917 | a750fc0b | j_mayer | 0x00000000);
|
1918 | a750fc0b | j_mayer | } |
1919 | a750fc0b | j_mayer | |
1920 | 76a66253 | j_mayer | /* SPR specific to PowerPC 403 implementation */
|
1921 | 76a66253 | j_mayer | static void gen_spr_403 (CPUPPCState *env) |
1922 | 76a66253 | j_mayer | { |
1923 | 2662a059 | j_mayer | /* Debug interface */
|
1924 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1925 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1926 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1927 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1928 | 2662a059 | j_mayer | 0x00000000);
|
1929 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1930 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1931 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1932 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1933 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1934 | 2662a059 | j_mayer | 0x00000300);
|
1935 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1936 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1937 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1938 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1939 | 2662a059 | j_mayer | 0x00000000);
|
1940 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1941 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1942 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1943 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1944 | 2662a059 | j_mayer | 0x00000000);
|
1945 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1946 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1947 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1948 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1949 | 2662a059 | j_mayer | 0x00000000);
|
1950 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1951 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1952 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1953 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1954 | 2662a059 | j_mayer | 0x00000000);
|
1955 | a750fc0b | j_mayer | } |
1956 | a750fc0b | j_mayer | |
1957 | a750fc0b | j_mayer | static void gen_spr_403_real (CPUPPCState *env) |
1958 | a750fc0b | j_mayer | { |
1959 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL1, "PBL1",
|
1960 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1961 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1962 | 76a66253 | j_mayer | 0x00000000);
|
1963 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU1, "PBU1",
|
1964 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1965 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1966 | 76a66253 | j_mayer | 0x00000000);
|
1967 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL2, "PBL2",
|
1968 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1969 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1970 | 76a66253 | j_mayer | 0x00000000);
|
1971 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU2, "PBU2",
|
1972 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1973 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1974 | 76a66253 | j_mayer | 0x00000000);
|
1975 | a750fc0b | j_mayer | } |
1976 | a750fc0b | j_mayer | |
1977 | a750fc0b | j_mayer | static void gen_spr_403_mmu (CPUPPCState *env) |
1978 | a750fc0b | j_mayer | { |
1979 | a750fc0b | j_mayer | /* MMU */
|
1980 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1981 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1982 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1983 | a750fc0b | j_mayer | 0x00000000);
|
1984 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1985 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1986 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1987 | 76a66253 | j_mayer | 0x00000000);
|
1988 | 76a66253 | j_mayer | } |
1989 | 76a66253 | j_mayer | |
1990 | 76a66253 | j_mayer | /* SPR specific to PowerPC compression coprocessor extension */
|
1991 | 76a66253 | j_mayer | static void gen_spr_compress (CPUPPCState *env) |
1992 | 76a66253 | j_mayer | { |
1993 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1994 | 76a66253 | j_mayer | spr_register(env, SPR_401_SKR, "SKR",
|
1995 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1996 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1997 | 76a66253 | j_mayer | 0x00000000);
|
1998 | 76a66253 | j_mayer | } |
1999 | a750fc0b | j_mayer | |
2000 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
2001 | a750fc0b | j_mayer | /* SPR specific to PowerPC 620 */
|
2002 | a750fc0b | j_mayer | static void gen_spr_620 (CPUPPCState *env) |
2003 | a750fc0b | j_mayer | { |
2004 | 082c6681 | j_mayer | /* Processor identification */
|
2005 | 082c6681 | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
2006 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2007 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_pir, |
2008 | 082c6681 | j_mayer | 0x00000000);
|
2009 | 082c6681 | j_mayer | spr_register(env, SPR_ASR, "ASR",
|
2010 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2011 | 082c6681 | j_mayer | &spr_read_asr, &spr_write_asr, |
2012 | 082c6681 | j_mayer | 0x00000000);
|
2013 | 082c6681 | j_mayer | /* Breakpoints */
|
2014 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2015 | 082c6681 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
2016 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2017 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2018 | 082c6681 | j_mayer | 0x00000000);
|
2019 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2020 | 082c6681 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
2021 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2022 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2023 | 082c6681 | j_mayer | 0x00000000);
|
2024 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2025 | 082c6681 | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
2026 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2027 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2028 | 082c6681 | j_mayer | 0x00000000);
|
2029 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2030 | 082c6681 | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
2031 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2032 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2033 | 082c6681 | j_mayer | 0x00000000);
|
2034 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2035 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1R, "PMC1",
|
2036 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2037 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2038 | 082c6681 | j_mayer | 0x00000000);
|
2039 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1W, "PMC1",
|
2040 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2041 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2042 | 082c6681 | j_mayer | 0x00000000);
|
2043 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2044 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2R, "PMC2",
|
2045 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2046 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2047 | 082c6681 | j_mayer | 0x00000000);
|
2048 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2W, "PMC2",
|
2049 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2050 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2051 | 082c6681 | j_mayer | 0x00000000);
|
2052 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2053 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0R, "MMCR0",
|
2054 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2055 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2056 | 082c6681 | j_mayer | 0x00000000);
|
2057 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0W, "MMCR0",
|
2058 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2059 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2060 | 082c6681 | j_mayer | 0x00000000);
|
2061 | 082c6681 | j_mayer | /* External access control */
|
2062 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2063 | 082c6681 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
2064 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2065 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2066 | 082c6681 | j_mayer | 0x00000000);
|
2067 | 082c6681 | j_mayer | #if 0 // XXX: check this
|
2068 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2069 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR0, "PMR0",
|
2070 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2071 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2072 | a750fc0b | j_mayer | 0x00000000);
|
2073 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2074 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR1, "PMR1",
|
2075 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2076 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2077 | a750fc0b | j_mayer | 0x00000000);
|
2078 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2079 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR2, "PMR2",
|
2080 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2081 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2082 | a750fc0b | j_mayer | 0x00000000);
|
2083 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2084 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR3, "PMR3",
|
2085 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2086 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2087 | a750fc0b | j_mayer | 0x00000000);
|
2088 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2089 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR4, "PMR4",
|
2090 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2091 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2092 | a750fc0b | j_mayer | 0x00000000);
|
2093 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2094 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR5, "PMR5",
|
2095 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2096 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2097 | a750fc0b | j_mayer | 0x00000000);
|
2098 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2099 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR6, "PMR6",
|
2100 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2101 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2102 | a750fc0b | j_mayer | 0x00000000);
|
2103 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2104 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR7, "PMR7",
|
2105 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2106 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2107 | a750fc0b | j_mayer | 0x00000000);
|
2108 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2109 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR8, "PMR8",
|
2110 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2111 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2112 | a750fc0b | j_mayer | 0x00000000);
|
2113 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2114 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR9, "PMR9",
|
2115 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2116 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2117 | a750fc0b | j_mayer | 0x00000000);
|
2118 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2119 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRA, "PMR10",
|
2120 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2121 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2122 | a750fc0b | j_mayer | 0x00000000);
|
2123 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2124 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRB, "PMR11",
|
2125 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2126 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2127 | a750fc0b | j_mayer | 0x00000000);
|
2128 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2129 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRC, "PMR12",
|
2130 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2131 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2132 | a750fc0b | j_mayer | 0x00000000);
|
2133 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2134 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRD, "PMR13",
|
2135 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2136 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2137 | a750fc0b | j_mayer | 0x00000000);
|
2138 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2139 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRE, "PMR14",
|
2140 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2141 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2142 | a750fc0b | j_mayer | 0x00000000);
|
2143 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2144 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRF, "PMR15",
|
2145 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2146 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2147 | a750fc0b | j_mayer | 0x00000000);
|
2148 | 082c6681 | j_mayer | #endif
|
2149 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2150 | 082c6681 | j_mayer | spr_register(env, SPR_620_BUSCSR, "BUSCSR",
|
2151 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2152 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2153 | a750fc0b | j_mayer | 0x00000000);
|
2154 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2155 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2CR, "L2CR",
|
2156 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2157 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2158 | 082c6681 | j_mayer | 0x00000000);
|
2159 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2160 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2SR, "L2SR",
|
2161 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2162 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2163 | a750fc0b | j_mayer | 0x00000000);
|
2164 | a750fc0b | j_mayer | } |
2165 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
2166 | 76a66253 | j_mayer | |
2167 | 80d11f44 | j_mayer | static void gen_spr_5xx_8xx (CPUPPCState *env) |
2168 | e1833e1f | j_mayer | { |
2169 | 80d11f44 | j_mayer | /* Exception processing */
|
2170 | 80d11f44 | j_mayer | spr_register(env, SPR_DSISR, "DSISR",
|
2171 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2172 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2173 | 80d11f44 | j_mayer | 0x00000000);
|
2174 | 80d11f44 | j_mayer | spr_register(env, SPR_DAR, "DAR",
|
2175 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2176 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2177 | 80d11f44 | j_mayer | 0x00000000);
|
2178 | 80d11f44 | j_mayer | /* Timer */
|
2179 | 80d11f44 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
2180 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2181 | 80d11f44 | j_mayer | &spr_read_decr, &spr_write_decr, |
2182 | 80d11f44 | j_mayer | 0x00000000);
|
2183 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2184 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EIE, "EIE",
|
2185 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2186 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2187 | 80d11f44 | j_mayer | 0x00000000);
|
2188 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2189 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EID, "EID",
|
2190 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2191 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2192 | 80d11f44 | j_mayer | 0x00000000);
|
2193 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2194 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_NRI, "NRI",
|
2195 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2196 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2197 | 80d11f44 | j_mayer | 0x00000000);
|
2198 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2199 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPA, "CMPA",
|
2200 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2201 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2202 | 80d11f44 | j_mayer | 0x00000000);
|
2203 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2204 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPB, "CMPB",
|
2205 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2206 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2207 | 80d11f44 | j_mayer | 0x00000000);
|
2208 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2209 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPC, "CMPC",
|
2210 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2211 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2212 | 80d11f44 | j_mayer | 0x00000000);
|
2213 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2214 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPD, "CMPD",
|
2215 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2216 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2217 | 80d11f44 | j_mayer | 0x00000000);
|
2218 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2219 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_ECR, "ECR",
|
2220 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2221 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2222 | 80d11f44 | j_mayer | 0x00000000);
|
2223 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2224 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DER, "DER",
|
2225 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2226 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2227 | 80d11f44 | j_mayer | 0x00000000);
|
2228 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2229 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTA, "COUNTA",
|
2230 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2231 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2232 | 80d11f44 | j_mayer | 0x00000000);
|
2233 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2234 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTB, "COUNTB",
|
2235 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2236 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2237 | 80d11f44 | j_mayer | 0x00000000);
|
2238 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2239 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPE, "CMPE",
|
2240 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2241 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2242 | 80d11f44 | j_mayer | 0x00000000);
|
2243 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2244 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPF, "CMPF",
|
2245 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2246 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2247 | 80d11f44 | j_mayer | 0x00000000);
|
2248 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2249 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPG, "CMPG",
|
2250 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2251 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2252 | 80d11f44 | j_mayer | 0x00000000);
|
2253 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2254 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPH, "CMPH",
|
2255 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2256 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2257 | 80d11f44 | j_mayer | 0x00000000);
|
2258 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2259 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL1, "LCTRL1",
|
2260 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2261 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2262 | 80d11f44 | j_mayer | 0x00000000);
|
2263 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2264 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL2, "LCTRL2",
|
2265 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2266 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2267 | 80d11f44 | j_mayer | 0x00000000);
|
2268 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2269 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_BAR, "BAR",
|
2270 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2271 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2272 | 80d11f44 | j_mayer | 0x00000000);
|
2273 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2274 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DPDR, "DPDR",
|
2275 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2276 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2277 | 80d11f44 | j_mayer | 0x00000000);
|
2278 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2279 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IMMR, "IMMR",
|
2280 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2281 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2282 | 80d11f44 | j_mayer | 0x00000000);
|
2283 | 80d11f44 | j_mayer | } |
2284 | 80d11f44 | j_mayer | |
2285 | 80d11f44 | j_mayer | static void gen_spr_5xx (CPUPPCState *env) |
2286 | 80d11f44 | j_mayer | { |
2287 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2288 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_GRA, "MI_GRA",
|
2289 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2290 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2291 | 80d11f44 | j_mayer | 0x00000000);
|
2292 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2293 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_GRA, "L2U_GRA",
|
2294 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2295 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2296 | 80d11f44 | j_mayer | 0x00000000);
|
2297 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2298 | 80d11f44 | j_mayer | spr_register(env, SPR_RPCU_BBCMCR, "L2U_BBCMCR",
|
2299 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2300 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2301 | 80d11f44 | j_mayer | 0x00000000);
|
2302 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2303 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_MCR, "L2U_MCR",
|
2304 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2305 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2306 | 80d11f44 | j_mayer | 0x00000000);
|
2307 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2308 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA0, "MI_RBA0",
|
2309 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2310 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2311 | 80d11f44 | j_mayer | 0x00000000);
|
2312 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2313 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA1, "MI_RBA1",
|
2314 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2315 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2316 | 80d11f44 | j_mayer | 0x00000000);
|
2317 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2318 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA2, "MI_RBA2",
|
2319 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2320 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2321 | 80d11f44 | j_mayer | 0x00000000);
|
2322 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2323 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA3, "MI_RBA3",
|
2324 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2325 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2326 | 80d11f44 | j_mayer | 0x00000000);
|
2327 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2328 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA0, "L2U_RBA0",
|
2329 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2330 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2331 | 80d11f44 | j_mayer | 0x00000000);
|
2332 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2333 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA1, "L2U_RBA1",
|
2334 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2335 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2336 | 80d11f44 | j_mayer | 0x00000000);
|
2337 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2338 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA2, "L2U_RBA2",
|
2339 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2340 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2341 | 80d11f44 | j_mayer | 0x00000000);
|
2342 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2343 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA3, "L2U_RBA3",
|
2344 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2345 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2346 | 80d11f44 | j_mayer | 0x00000000);
|
2347 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2348 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA0, "MI_RA0",
|
2349 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2350 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2351 | 80d11f44 | j_mayer | 0x00000000);
|
2352 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2353 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA1, "MI_RA1",
|
2354 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2355 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2356 | 80d11f44 | j_mayer | 0x00000000);
|
2357 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2358 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA2, "MI_RA2",
|
2359 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2360 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2361 | 80d11f44 | j_mayer | 0x00000000);
|
2362 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2363 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA3, "MI_RA3",
|
2364 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2365 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2366 | 80d11f44 | j_mayer | 0x00000000);
|
2367 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2368 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA0, "L2U_RA0",
|
2369 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2370 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2371 | 80d11f44 | j_mayer | 0x00000000);
|
2372 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2373 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA1, "L2U_RA1",
|
2374 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2375 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2376 | 80d11f44 | j_mayer | 0x00000000);
|
2377 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2378 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA2, "L2U_RA2",
|
2379 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2380 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2381 | 80d11f44 | j_mayer | 0x00000000);
|
2382 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2383 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA3, "L2U_RA3",
|
2384 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2385 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2386 | 80d11f44 | j_mayer | 0x00000000);
|
2387 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2388 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_FPECR, "FPECR",
|
2389 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2390 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2391 | 80d11f44 | j_mayer | 0x00000000);
|
2392 | 80d11f44 | j_mayer | } |
2393 | 80d11f44 | j_mayer | |
2394 | 80d11f44 | j_mayer | static void gen_spr_8xx (CPUPPCState *env) |
2395 | 80d11f44 | j_mayer | { |
2396 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2397 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_CST, "IC_CST",
|
2398 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2399 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2400 | 80d11f44 | j_mayer | 0x00000000);
|
2401 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2402 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_ADR, "IC_ADR",
|
2403 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2404 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2405 | 80d11f44 | j_mayer | 0x00000000);
|
2406 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2407 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_DAT, "IC_DAT",
|
2408 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2409 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2410 | 80d11f44 | j_mayer | 0x00000000);
|
2411 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2412 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_CST, "DC_CST",
|
2413 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2414 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2415 | 80d11f44 | j_mayer | 0x00000000);
|
2416 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2417 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_ADR, "DC_ADR",
|
2418 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2419 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2420 | 80d11f44 | j_mayer | 0x00000000);
|
2421 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2422 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_DAT, "DC_DAT",
|
2423 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2424 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2425 | 80d11f44 | j_mayer | 0x00000000);
|
2426 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2427 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_CTR, "MI_CTR",
|
2428 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2429 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2430 | 80d11f44 | j_mayer | 0x00000000);
|
2431 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2432 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_AP, "MI_AP",
|
2433 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2434 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2435 | 80d11f44 | j_mayer | 0x00000000);
|
2436 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2437 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_EPN, "MI_EPN",
|
2438 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2439 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2440 | 80d11f44 | j_mayer | 0x00000000);
|
2441 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2442 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_TWC, "MI_TWC",
|
2443 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2444 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2445 | 80d11f44 | j_mayer | 0x00000000);
|
2446 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2447 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_RPN, "MI_RPN",
|
2448 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2449 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2450 | 80d11f44 | j_mayer | 0x00000000);
|
2451 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2452 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBCAM, "MI_DBCAM",
|
2453 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2454 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2455 | 80d11f44 | j_mayer | 0x00000000);
|
2456 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2457 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBRAM0, "MI_DBRAM0",
|
2458 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2459 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2460 | 80d11f44 | j_mayer | 0x00000000);
|
2461 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2462 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBRAM1, "MI_DBRAM1",
|
2463 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2464 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2465 | 80d11f44 | j_mayer | 0x00000000);
|
2466 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2467 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CTR, "MD_CTR",
|
2468 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2469 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2470 | 80d11f44 | j_mayer | 0x00000000);
|
2471 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2472 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CASID, "MD_CASID",
|
2473 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2474 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2475 | 80d11f44 | j_mayer | 0x00000000);
|
2476 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2477 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_AP, "MD_AP",
|
2478 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2479 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2480 | 80d11f44 | j_mayer | 0x00000000);
|
2481 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2482 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_EPN, "MD_EPN",
|
2483 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2484 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2485 | 80d11f44 | j_mayer | 0x00000000);
|
2486 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2487 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWB, "MD_TWB",
|
2488 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2489 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2490 | 80d11f44 | j_mayer | 0x00000000);
|
2491 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2492 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWC, "MD_TWC",
|
2493 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2494 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2495 | 80d11f44 | j_mayer | 0x00000000);
|
2496 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2497 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_RPN, "MD_RPN",
|
2498 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2499 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2500 | 80d11f44 | j_mayer | 0x00000000);
|
2501 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2502 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TW, "MD_TW",
|
2503 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2504 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2505 | 80d11f44 | j_mayer | 0x00000000);
|
2506 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2507 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBCAM, "MD_DBCAM",
|
2508 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2509 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2510 | 80d11f44 | j_mayer | 0x00000000);
|
2511 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2512 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM0, "MD_DBRAM0",
|
2513 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2514 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2515 | 80d11f44 | j_mayer | 0x00000000);
|
2516 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2517 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM1, "MD_DBRAM1",
|
2518 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2519 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2520 | 80d11f44 | j_mayer | 0x00000000);
|
2521 | 80d11f44 | j_mayer | } |
2522 | 80d11f44 | j_mayer | |
2523 | 80d11f44 | j_mayer | // XXX: TODO
|
2524 | 80d11f44 | j_mayer | /*
|
2525 | 80d11f44 | j_mayer | * AMR => SPR 29 (Power 2.04)
|
2526 | 80d11f44 | j_mayer | * CTRL => SPR 136 (Power 2.04)
|
2527 | 80d11f44 | j_mayer | * CTRL => SPR 152 (Power 2.04)
|
2528 | 80d11f44 | j_mayer | * SCOMC => SPR 276 (64 bits ?)
|
2529 | 80d11f44 | j_mayer | * SCOMD => SPR 277 (64 bits ?)
|
2530 | 80d11f44 | j_mayer | * TBU40 => SPR 286 (Power 2.04 hypv)
|
2531 | 80d11f44 | j_mayer | * HSPRG0 => SPR 304 (Power 2.04 hypv)
|
2532 | 80d11f44 | j_mayer | * HSPRG1 => SPR 305 (Power 2.04 hypv)
|
2533 | 80d11f44 | j_mayer | * HDSISR => SPR 306 (Power 2.04 hypv)
|
2534 | 80d11f44 | j_mayer | * HDAR => SPR 307 (Power 2.04 hypv)
|
2535 | 80d11f44 | j_mayer | * PURR => SPR 309 (Power 2.04 hypv)
|
2536 | 80d11f44 | j_mayer | * HDEC => SPR 310 (Power 2.04 hypv)
|
2537 | 80d11f44 | j_mayer | * HIOR => SPR 311 (hypv)
|
2538 | 80d11f44 | j_mayer | * RMOR => SPR 312 (970)
|
2539 | 80d11f44 | j_mayer | * HRMOR => SPR 313 (Power 2.04 hypv)
|
2540 | 80d11f44 | j_mayer | * HSRR0 => SPR 314 (Power 2.04 hypv)
|
2541 | 80d11f44 | j_mayer | * HSRR1 => SPR 315 (Power 2.04 hypv)
|
2542 | 80d11f44 | j_mayer | * LPCR => SPR 316 (970)
|
2543 | 80d11f44 | j_mayer | * LPIDR => SPR 317 (970)
|
2544 | 80d11f44 | j_mayer | * SPEFSCR => SPR 512 (Power 2.04 emb)
|
2545 | 80d11f44 | j_mayer | * EPR => SPR 702 (Power 2.04 emb)
|
2546 | 80d11f44 | j_mayer | * perf => 768-783 (Power 2.04)
|
2547 | 80d11f44 | j_mayer | * perf => 784-799 (Power 2.04)
|
2548 | 80d11f44 | j_mayer | * PPR => SPR 896 (Power 2.04)
|
2549 | 80d11f44 | j_mayer | * EPLC => SPR 947 (Power 2.04 emb)
|
2550 | 80d11f44 | j_mayer | * EPSC => SPR 948 (Power 2.04 emb)
|
2551 | 80d11f44 | j_mayer | * DABRX => 1015 (Power 2.04 hypv)
|
2552 | 80d11f44 | j_mayer | * FPECR => SPR 1022 (?)
|
2553 | 80d11f44 | j_mayer | * ... and more (thermal management, performance counters, ...)
|
2554 | 80d11f44 | j_mayer | */
|
2555 | 80d11f44 | j_mayer | |
2556 | 80d11f44 | j_mayer | /*****************************************************************************/
|
2557 | 80d11f44 | j_mayer | /* Exception vectors models */
|
2558 | 80d11f44 | j_mayer | static void init_excp_4xx_real (CPUPPCState *env) |
2559 | 80d11f44 | j_mayer | { |
2560 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2561 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2562 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2563 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2564 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2565 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2566 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2567 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2568 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2569 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2570 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2571 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2572 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2573 | faadf50e | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2574 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2575 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2576 | e1833e1f | j_mayer | #endif
|
2577 | e1833e1f | j_mayer | } |
2578 | e1833e1f | j_mayer | |
2579 | 80d11f44 | j_mayer | static void init_excp_4xx_softmmu (CPUPPCState *env) |
2580 | 80d11f44 | j_mayer | { |
2581 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2582 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2583 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2584 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2585 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2586 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2587 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2588 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2589 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2590 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2591 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2592 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2593 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001100;
|
2594 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001200;
|
2595 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2596 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2597 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2598 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2599 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2600 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2601 | 80d11f44 | j_mayer | #endif
|
2602 | 80d11f44 | j_mayer | } |
2603 | 80d11f44 | j_mayer | |
2604 | 80d11f44 | j_mayer | static void init_excp_MPC5xx (CPUPPCState *env) |
2605 | 80d11f44 | j_mayer | { |
2606 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2607 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2608 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2609 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2610 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2611 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2612 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2613 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2614 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2615 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2616 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2617 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2618 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2619 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2620 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2621 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2622 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2623 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2624 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2625 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2626 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2627 | 80d11f44 | j_mayer | #endif
|
2628 | 80d11f44 | j_mayer | } |
2629 | 80d11f44 | j_mayer | |
2630 | 80d11f44 | j_mayer | static void init_excp_MPC8xx (CPUPPCState *env) |
2631 | e1833e1f | j_mayer | { |
2632 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2633 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2634 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2635 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2636 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2637 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2638 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2639 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2640 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2641 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2642 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2643 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2644 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2645 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2646 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001100;
|
2647 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001200;
|
2648 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLBE] = 0x00001300;
|
2649 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLBE] = 0x00001400;
|
2650 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2651 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2652 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2653 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2654 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2655 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2656 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2657 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2658 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2659 | e1833e1f | j_mayer | #endif
|
2660 | e1833e1f | j_mayer | } |
2661 | e1833e1f | j_mayer | |
2662 | 80d11f44 | j_mayer | static void init_excp_G2 (CPUPPCState *env) |
2663 | e1833e1f | j_mayer | { |
2664 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2665 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2666 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2667 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2668 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2669 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2670 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2671 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2672 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2673 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2674 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000A00;
|
2675 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2676 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2677 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2678 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2679 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2680 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2681 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2682 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2683 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2684 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2685 | 80d11f44 | j_mayer | #endif
|
2686 | 80d11f44 | j_mayer | } |
2687 | 80d11f44 | j_mayer | |
2688 | 80d11f44 | j_mayer | static void init_excp_e200 (CPUPPCState *env) |
2689 | 80d11f44 | j_mayer | { |
2690 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2691 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000FFC;
|
2692 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2693 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2694 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2695 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2696 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2697 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2698 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2699 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2700 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2701 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2702 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2703 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2704 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2705 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2706 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2707 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2708 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SPEU] = 0x00000000;
|
2709 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPDI] = 0x00000000;
|
2710 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPRI] = 0x00000000;
|
2711 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2712 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF7UL;
|
2713 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2714 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2715 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2716 | 80d11f44 | j_mayer | #endif
|
2717 | 80d11f44 | j_mayer | } |
2718 | 80d11f44 | j_mayer | |
2719 | 80d11f44 | j_mayer | static void init_excp_BookE (CPUPPCState *env) |
2720 | 80d11f44 | j_mayer | { |
2721 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2722 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2723 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2724 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2725 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2726 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2727 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2728 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2729 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2730 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2731 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2732 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2733 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2734 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2735 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2736 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2737 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2738 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2739 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFE0UL;
|
2740 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2741 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2742 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2743 | 80d11f44 | j_mayer | #endif
|
2744 | 80d11f44 | j_mayer | } |
2745 | 80d11f44 | j_mayer | |
2746 | 80d11f44 | j_mayer | static void init_excp_601 (CPUPPCState *env) |
2747 | 80d11f44 | j_mayer | { |
2748 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2749 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2750 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2751 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2752 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2753 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2754 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2755 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2756 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2757 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2758 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IO] = 0x00000A00;
|
2759 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2760 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RUNM] = 0x00002000;
|
2761 | faadf50e | j_mayer | env->excp_prefix = 0xFFF00000UL;
|
2762 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2763 | 80d11f44 | j_mayer | env->hreset_vector = 0x00000100UL;
|
2764 | e1833e1f | j_mayer | #endif
|
2765 | e1833e1f | j_mayer | } |
2766 | e1833e1f | j_mayer | |
2767 | 80d11f44 | j_mayer | static void init_excp_602 (CPUPPCState *env) |
2768 | e1833e1f | j_mayer | { |
2769 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2770 | 082c6681 | j_mayer | /* XXX: exception prefix has a special behavior on 602 */
|
2771 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2772 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2773 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2774 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2775 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2776 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2777 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2778 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2779 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2780 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2781 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2782 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2783 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2784 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2785 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2786 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2787 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001500;
|
2788 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001600;
|
2789 | 80d11f44 | j_mayer | env->excp_prefix = 0xFFF00000UL;
|
2790 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2791 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2792 | e1833e1f | j_mayer | #endif
|
2793 | e1833e1f | j_mayer | } |
2794 | e1833e1f | j_mayer | |
2795 | 80d11f44 | j_mayer | static void init_excp_603 (CPUPPCState *env) |
2796 | e1833e1f | j_mayer | { |
2797 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2798 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2799 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2800 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2801 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2802 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2803 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2804 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2805 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2806 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2807 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2808 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2809 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2810 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2811 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2812 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2813 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2814 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2815 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2816 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2817 | e1833e1f | j_mayer | #endif
|
2818 | e1833e1f | j_mayer | } |
2819 | e1833e1f | j_mayer | |
2820 | e1833e1f | j_mayer | static void init_excp_604 (CPUPPCState *env) |
2821 | e1833e1f | j_mayer | { |
2822 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2823 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2824 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2825 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2826 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2827 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2828 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2829 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2830 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2831 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2832 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2833 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2834 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2835 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2836 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2837 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2838 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2839 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2840 | e1833e1f | j_mayer | #endif
|
2841 | e1833e1f | j_mayer | } |
2842 | e1833e1f | j_mayer | |
2843 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
2844 | e1833e1f | j_mayer | static void init_excp_620 (CPUPPCState *env) |
2845 | e1833e1f | j_mayer | { |
2846 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2847 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2848 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2849 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2850 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2851 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2852 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2853 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2854 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2855 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2856 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2857 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2858 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2859 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2860 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2861 | faadf50e | j_mayer | env->excp_prefix = 0xFFF00000UL;
|
2862 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2863 | faadf50e | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
2864 | e1833e1f | j_mayer | #endif
|
2865 | e1833e1f | j_mayer | } |
2866 | 578bb252 | j_mayer | #endif /* defined(TARGET_PPC64) */ |
2867 | e1833e1f | j_mayer | |
2868 | e1833e1f | j_mayer | static void init_excp_7x0 (CPUPPCState *env) |
2869 | e1833e1f | j_mayer | { |
2870 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2871 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2872 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2873 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2874 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2875 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2876 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2877 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2878 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2879 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2880 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2881 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2882 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2883 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2884 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2885 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2886 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2887 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2888 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2889 | e1833e1f | j_mayer | #endif
|
2890 | e1833e1f | j_mayer | } |
2891 | e1833e1f | j_mayer | |
2892 | bd928eba | j_mayer | static void init_excp_750cl (CPUPPCState *env) |
2893 | e1833e1f | j_mayer | { |
2894 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2895 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2896 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2897 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2898 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2899 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2900 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2901 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2902 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2903 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2904 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2905 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2906 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2907 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2908 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2909 | bd928eba | j_mayer | env->excp_prefix = 0x00000000UL;
|
2910 | bd928eba | j_mayer | /* Hardware reset vector */
|
2911 | bd928eba | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2912 | bd928eba | j_mayer | #endif
|
2913 | bd928eba | j_mayer | } |
2914 | bd928eba | j_mayer | |
2915 | bd928eba | j_mayer | static void init_excp_750cx (CPUPPCState *env) |
2916 | bd928eba | j_mayer | { |
2917 | bd928eba | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2918 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2919 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2920 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2921 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2922 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2923 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2924 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2925 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2926 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2927 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2928 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2929 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2930 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2931 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2932 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2933 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2934 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2935 | e1833e1f | j_mayer | #endif
|
2936 | e1833e1f | j_mayer | } |
2937 | e1833e1f | j_mayer | |
2938 | 7a3a6927 | j_mayer | /* XXX: Check if this is correct */
|
2939 | 7a3a6927 | j_mayer | static void init_excp_7x5 (CPUPPCState *env) |
2940 | 7a3a6927 | j_mayer | { |
2941 | 7a3a6927 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2942 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2943 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2944 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2945 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2946 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2947 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2948 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2949 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2950 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2951 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2952 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2953 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2954 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2955 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2956 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2957 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2958 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2959 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2960 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2961 | 7a3a6927 | j_mayer | /* Hardware reset vector */
|
2962 | 7a3a6927 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2963 | 7a3a6927 | j_mayer | #endif
|
2964 | 7a3a6927 | j_mayer | } |
2965 | 7a3a6927 | j_mayer | |
2966 | e1833e1f | j_mayer | static void init_excp_7400 (CPUPPCState *env) |
2967 | e1833e1f | j_mayer | { |
2968 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2969 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2970 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2971 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2972 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2973 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2974 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2975 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2976 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2977 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2978 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2979 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2980 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2981 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
2982 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2983 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2984 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
2985 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2986 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2987 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2988 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2989 | e1833e1f | j_mayer | #endif
|
2990 | e1833e1f | j_mayer | } |
2991 | e1833e1f | j_mayer | |
2992 | e1833e1f | j_mayer | static void init_excp_7450 (CPUPPCState *env) |
2993 | e1833e1f | j_mayer | { |
2994 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2995 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2996 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2997 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2998 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2999 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3000 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3001 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3002 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3003 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3004 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3005 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3006 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3007 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3008 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
3009 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
3010 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
3011 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3012 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3013 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
3014 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
3015 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3016 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3017 | e1833e1f | j_mayer | #endif
|
3018 | e1833e1f | j_mayer | } |
3019 | e1833e1f | j_mayer | |
3020 | e1833e1f | j_mayer | #if defined (TARGET_PPC64)
|
3021 | e1833e1f | j_mayer | static void init_excp_970 (CPUPPCState *env) |
3022 | e1833e1f | j_mayer | { |
3023 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3024 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3025 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3026 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3027 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSEG] = 0x00000380;
|
3028 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3029 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISEG] = 0x00000480;
|
3030 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3031 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3032 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3033 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3034 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3035 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_HDECR] = 0x00000980;
|
3036 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3037 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3038 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3039 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3040 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3041 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MAINT] = 0x00001600;
|
3042 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001700;
|
3043 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001800;
|
3044 | faadf50e | j_mayer | env->excp_prefix = 0x00000000FFF00000ULL;
|
3045 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3046 | 1c27f8fb | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
3047 | e1833e1f | j_mayer | #endif
|
3048 | e1833e1f | j_mayer | } |
3049 | e1833e1f | j_mayer | #endif
|
3050 | e1833e1f | j_mayer | |
3051 | e1833e1f | j_mayer | /*****************************************************************************/
|
3052 | 2f462816 | j_mayer | /* Power management enable checks */
|
3053 | 2f462816 | j_mayer | static int check_pow_none (CPUPPCState *env) |
3054 | 2f462816 | j_mayer | { |
3055 | 2f462816 | j_mayer | return 0; |
3056 | 2f462816 | j_mayer | } |
3057 | 2f462816 | j_mayer | |
3058 | 2f462816 | j_mayer | static int check_pow_nocheck (CPUPPCState *env) |
3059 | 2f462816 | j_mayer | { |
3060 | 2f462816 | j_mayer | return 1; |
3061 | 2f462816 | j_mayer | } |
3062 | 2f462816 | j_mayer | |
3063 | 2f462816 | j_mayer | static int check_pow_hid0 (CPUPPCState *env) |
3064 | 2f462816 | j_mayer | { |
3065 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00E00000) |
3066 | 2f462816 | j_mayer | return 1; |
3067 | 2f462816 | j_mayer | |
3068 | 2f462816 | j_mayer | return 0; |
3069 | 2f462816 | j_mayer | } |
3070 | 2f462816 | j_mayer | |
3071 | 4e777442 | j_mayer | static int check_pow_hid0_74xx (CPUPPCState *env) |
3072 | 4e777442 | j_mayer | { |
3073 | 4e777442 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
3074 | 4e777442 | j_mayer | return 1; |
3075 | 4e777442 | j_mayer | |
3076 | 4e777442 | j_mayer | return 0; |
3077 | 4e777442 | j_mayer | } |
3078 | 4e777442 | j_mayer | |
3079 | 2f462816 | j_mayer | /*****************************************************************************/
|
3080 | a750fc0b | j_mayer | /* PowerPC implementations definitions */
|
3081 | 76a66253 | j_mayer | |
3082 | a750fc0b | j_mayer | /* PowerPC 401 */
|
3083 | 082c6681 | j_mayer | #define POWERPC_INSNS_401 (PPC_INSNS_BASE | PPC_STRING | \
|
3084 | 082c6681 | j_mayer | PPC_WRTEE | PPC_DCR | \ |
3085 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3086 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3087 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3088 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3089 | a750fc0b | j_mayer | #define POWERPC_MSRM_401 (0x00000000000FD201ULL) |
3090 | b4095fed | j_mayer | #define POWERPC_MMU_401 (POWERPC_MMU_REAL)
|
3091 | a750fc0b | j_mayer | #define POWERPC_EXCP_401 (POWERPC_EXCP_40x)
|
3092 | a750fc0b | j_mayer | #define POWERPC_INPUT_401 (PPC_FLAGS_INPUT_401)
|
3093 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401 (bfd_mach_ppc_403)
|
3094 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3095 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3096 | 2f462816 | j_mayer | #define check_pow_401 check_pow_nocheck
|
3097 | 76a66253 | j_mayer | |
3098 | a750fc0b | j_mayer | static void init_proc_401 (CPUPPCState *env) |
3099 | a750fc0b | j_mayer | { |
3100 | a750fc0b | j_mayer | gen_spr_40x(env); |
3101 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3102 | a750fc0b | j_mayer | gen_spr_401(env); |
3103 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3104 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3105 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3106 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3107 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3108 | a750fc0b | j_mayer | } |
3109 | 76a66253 | j_mayer | |
3110 | a750fc0b | j_mayer | /* PowerPC 401x2 */
|
3111 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3112 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3113 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3114 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3115 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3116 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3117 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3118 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x2 (0x00000000001FD231ULL) |
3119 | a750fc0b | j_mayer | #define POWERPC_MMU_401x2 (POWERPC_MMU_SOFT_4xx_Z)
|
3120 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x2 (POWERPC_EXCP_40x)
|
3121 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x2 (PPC_FLAGS_INPUT_401)
|
3122 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x2 (bfd_mach_ppc_403)
|
3123 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x2 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3124 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3125 | 2f462816 | j_mayer | #define check_pow_401x2 check_pow_nocheck
|
3126 | a750fc0b | j_mayer | |
3127 | a750fc0b | j_mayer | static void init_proc_401x2 (CPUPPCState *env) |
3128 | a750fc0b | j_mayer | { |
3129 | a750fc0b | j_mayer | gen_spr_40x(env); |
3130 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3131 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3132 | a750fc0b | j_mayer | gen_spr_compress(env); |
3133 | a750fc0b | j_mayer | /* Memory management */
|
3134 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3135 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3136 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3137 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3138 | f2e63a42 | j_mayer | #endif
|
3139 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3140 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3141 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3142 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3143 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3144 | 76a66253 | j_mayer | } |
3145 | 76a66253 | j_mayer | |
3146 | a750fc0b | j_mayer | /* PowerPC 401x3 */
|
3147 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x3 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3148 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3149 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3150 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3151 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3152 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3153 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3154 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x3 (0x00000000001FD631ULL) |
3155 | a750fc0b | j_mayer | #define POWERPC_MMU_401x3 (POWERPC_MMU_SOFT_4xx_Z)
|
3156 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x3 (POWERPC_EXCP_40x)
|
3157 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x3 (PPC_FLAGS_INPUT_401)
|
3158 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x3 (bfd_mach_ppc_403)
|
3159 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x3 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3160 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3161 | 2f462816 | j_mayer | #define check_pow_401x3 check_pow_nocheck
|
3162 | a750fc0b | j_mayer | |
3163 | 578bb252 | j_mayer | __attribute__ (( unused )) |
3164 | e1833e1f | j_mayer | static void init_proc_401x3 (CPUPPCState *env) |
3165 | 76a66253 | j_mayer | { |
3166 | 4e290a0b | j_mayer | gen_spr_40x(env); |
3167 | 4e290a0b | j_mayer | gen_spr_401_403(env); |
3168 | 4e290a0b | j_mayer | gen_spr_401(env); |
3169 | 4e290a0b | j_mayer | gen_spr_401x2(env); |
3170 | 4e290a0b | j_mayer | gen_spr_compress(env); |
3171 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3172 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3173 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3174 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3175 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3176 | 3fc6c082 | bellard | } |
3177 | a750fc0b | j_mayer | |
3178 | a750fc0b | j_mayer | /* IOP480 */
|
3179 | 082c6681 | j_mayer | #define POWERPC_INSNS_IOP480 (PPC_INSNS_BASE | PPC_STRING | \
|
3180 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3181 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3182 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3183 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3184 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3185 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3186 | a750fc0b | j_mayer | #define POWERPC_MSRM_IOP480 (0x00000000001FD231ULL) |
3187 | a750fc0b | j_mayer | #define POWERPC_MMU_IOP480 (POWERPC_MMU_SOFT_4xx_Z)
|
3188 | a750fc0b | j_mayer | #define POWERPC_EXCP_IOP480 (POWERPC_EXCP_40x)
|
3189 | a750fc0b | j_mayer | #define POWERPC_INPUT_IOP480 (PPC_FLAGS_INPUT_401)
|
3190 | 237c0af0 | j_mayer | #define POWERPC_BFDM_IOP480 (bfd_mach_ppc_403)
|
3191 | 4018bae9 | j_mayer | #define POWERPC_FLAG_IOP480 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3192 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3193 | 2f462816 | j_mayer | #define check_pow_IOP480 check_pow_nocheck
|
3194 | a750fc0b | j_mayer | |
3195 | a750fc0b | j_mayer | static void init_proc_IOP480 (CPUPPCState *env) |
3196 | 3fc6c082 | bellard | { |
3197 | a750fc0b | j_mayer | gen_spr_40x(env); |
3198 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3199 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3200 | a750fc0b | j_mayer | gen_spr_compress(env); |
3201 | a750fc0b | j_mayer | /* Memory management */
|
3202 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3203 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3204 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3205 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3206 | f2e63a42 | j_mayer | #endif
|
3207 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3208 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3209 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3210 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3211 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3212 | 3fc6c082 | bellard | } |
3213 | 3fc6c082 | bellard | |
3214 | a750fc0b | j_mayer | /* PowerPC 403 */
|
3215 | 082c6681 | j_mayer | #define POWERPC_INSNS_403 (PPC_INSNS_BASE | PPC_STRING | \
|
3216 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3217 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3218 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3219 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3220 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3221 | a750fc0b | j_mayer | #define POWERPC_MSRM_403 (0x000000000007D00DULL) |
3222 | b4095fed | j_mayer | #define POWERPC_MMU_403 (POWERPC_MMU_REAL)
|
3223 | a750fc0b | j_mayer | #define POWERPC_EXCP_403 (POWERPC_EXCP_40x)
|
3224 | a750fc0b | j_mayer | #define POWERPC_INPUT_403 (PPC_FLAGS_INPUT_401)
|
3225 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403 (bfd_mach_ppc_403)
|
3226 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403 (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3227 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3228 | 2f462816 | j_mayer | #define check_pow_403 check_pow_nocheck
|
3229 | a750fc0b | j_mayer | |
3230 | a750fc0b | j_mayer | static void init_proc_403 (CPUPPCState *env) |
3231 | 3fc6c082 | bellard | { |
3232 | a750fc0b | j_mayer | gen_spr_40x(env); |
3233 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3234 | a750fc0b | j_mayer | gen_spr_403(env); |
3235 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3236 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3237 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3238 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3239 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3240 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3241 | 3fc6c082 | bellard | } |
3242 | 3fc6c082 | bellard | |
3243 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
3244 | 082c6681 | j_mayer | #define POWERPC_INSNS_403GCX (PPC_INSNS_BASE | PPC_STRING | \
|
3245 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3246 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3247 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3248 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3249 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3250 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3251 | a750fc0b | j_mayer | #define POWERPC_MSRM_403GCX (0x000000000007D00DULL) |
3252 | a750fc0b | j_mayer | #define POWERPC_MMU_403GCX (POWERPC_MMU_SOFT_4xx_Z)
|
3253 | a750fc0b | j_mayer | #define POWERPC_EXCP_403GCX (POWERPC_EXCP_40x)
|
3254 | a750fc0b | j_mayer | #define POWERPC_INPUT_403GCX (PPC_FLAGS_INPUT_401)
|
3255 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403GCX (bfd_mach_ppc_403)
|
3256 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403GCX (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3257 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3258 | 2f462816 | j_mayer | #define check_pow_403GCX check_pow_nocheck
|
3259 | a750fc0b | j_mayer | |
3260 | a750fc0b | j_mayer | static void init_proc_403GCX (CPUPPCState *env) |
3261 | 3fc6c082 | bellard | { |
3262 | a750fc0b | j_mayer | gen_spr_40x(env); |
3263 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3264 | a750fc0b | j_mayer | gen_spr_403(env); |
3265 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3266 | a750fc0b | j_mayer | gen_spr_403_mmu(env); |
3267 | a750fc0b | j_mayer | /* Bus access control */
|
3268 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3269 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3270 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3271 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3272 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
3273 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3274 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3275 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3276 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3277 | a750fc0b | j_mayer | 0x00000000);
|
3278 | a750fc0b | j_mayer | /* Memory management */
|
3279 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3280 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3281 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3282 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3283 | f2e63a42 | j_mayer | #endif
|
3284 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3285 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3286 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3287 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3288 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3289 | 80d11f44 | j_mayer | } |
3290 | 80d11f44 | j_mayer | |
3291 | 80d11f44 | j_mayer | /* PowerPC 405 */
|
3292 | 082c6681 | j_mayer | #define POWERPC_INSNS_405 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3293 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3294 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3295 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3296 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3297 | 80d11f44 | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3298 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_405_MAC | PPC_40x_EXCP) |
3299 | 80d11f44 | j_mayer | #define POWERPC_MSRM_405 (0x000000000006E630ULL) |
3300 | 80d11f44 | j_mayer | #define POWERPC_MMU_405 (POWERPC_MMU_SOFT_4xx)
|
3301 | 80d11f44 | j_mayer | #define POWERPC_EXCP_405 (POWERPC_EXCP_40x)
|
3302 | 80d11f44 | j_mayer | #define POWERPC_INPUT_405 (PPC_FLAGS_INPUT_405)
|
3303 | 80d11f44 | j_mayer | #define POWERPC_BFDM_405 (bfd_mach_ppc_403)
|
3304 | 80d11f44 | j_mayer | #define POWERPC_FLAG_405 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3305 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3306 | 80d11f44 | j_mayer | #define check_pow_405 check_pow_nocheck
|
3307 | 80d11f44 | j_mayer | |
3308 | 80d11f44 | j_mayer | static void init_proc_405 (CPUPPCState *env) |
3309 | 80d11f44 | j_mayer | { |
3310 | 80d11f44 | j_mayer | /* Time base */
|
3311 | 80d11f44 | j_mayer | gen_tbl(env); |
3312 | 80d11f44 | j_mayer | gen_spr_40x(env); |
3313 | 80d11f44 | j_mayer | gen_spr_405(env); |
3314 | 80d11f44 | j_mayer | /* Bus access control */
|
3315 | 80d11f44 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3316 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3317 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3318 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3319 | 80d11f44 | j_mayer | 0xFFFFFFFF);
|
3320 | 80d11f44 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3321 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3322 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3323 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3324 | 80d11f44 | j_mayer | 0x00000000);
|
3325 | 80d11f44 | j_mayer | /* Memory management */
|
3326 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3327 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3328 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3329 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3330 | 80d11f44 | j_mayer | #endif
|
3331 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3332 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3333 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3334 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3335 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3336 | 80d11f44 | j_mayer | } |
3337 | 80d11f44 | j_mayer | |
3338 | 80d11f44 | j_mayer | /* PowerPC 440 EP */
|
3339 | 082c6681 | j_mayer | #define POWERPC_INSNS_440EP (PPC_INSNS_BASE | PPC_STRING | \
|
3340 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3341 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3342 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3343 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3344 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3345 | 082c6681 | j_mayer | PPC_440_SPEC) |
3346 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440EP (0x000000000006D630ULL) |
3347 | 80d11f44 | j_mayer | #define POWERPC_MMU_440EP (POWERPC_MMU_BOOKE)
|
3348 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440EP (POWERPC_EXCP_BOOKE)
|
3349 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440EP (PPC_FLAGS_INPUT_BookE)
|
3350 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440EP (bfd_mach_ppc_403)
|
3351 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440EP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3352 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3353 | 80d11f44 | j_mayer | #define check_pow_440EP check_pow_nocheck
|
3354 | 80d11f44 | j_mayer | |
3355 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3356 | 80d11f44 | j_mayer | static void init_proc_440EP (CPUPPCState *env) |
3357 | 80d11f44 | j_mayer | { |
3358 | 80d11f44 | j_mayer | /* Time base */
|
3359 | 80d11f44 | j_mayer | gen_tbl(env); |
3360 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3361 | 80d11f44 | j_mayer | gen_spr_440(env); |
3362 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3363 | 80d11f44 | j_mayer | /* Processor identification */
|
3364 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3365 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3366 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3367 | 80d11f44 | j_mayer | 0x00000000);
|
3368 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3369 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3370 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3371 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3372 | 80d11f44 | j_mayer | 0x00000000);
|
3373 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3374 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3375 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3376 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3377 | 80d11f44 | j_mayer | 0x00000000);
|
3378 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3379 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3380 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3381 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3382 | 80d11f44 | j_mayer | 0x00000000);
|
3383 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3384 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3385 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3386 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3387 | 80d11f44 | j_mayer | 0x00000000);
|
3388 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3389 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3390 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3391 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3392 | 80d11f44 | j_mayer | 0x00000000);
|
3393 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3394 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3395 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3396 | 80d11f44 | j_mayer | 0x00000000);
|
3397 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3398 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3399 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3400 | 80d11f44 | j_mayer | 0x00000000);
|
3401 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3402 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3403 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3404 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3405 | 80d11f44 | j_mayer | 0x00000000);
|
3406 | 80d11f44 | j_mayer | /* Memory management */
|
3407 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3408 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3409 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3410 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3411 | 80d11f44 | j_mayer | #endif
|
3412 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3413 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3414 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3415 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3416 | 80d11f44 | j_mayer | } |
3417 | 80d11f44 | j_mayer | |
3418 | 80d11f44 | j_mayer | /* PowerPC 440 GP */
|
3419 | 082c6681 | j_mayer | #define POWERPC_INSNS_440GP (PPC_INSNS_BASE | PPC_STRING | \
|
3420 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_WRTEE | PPC_MFAPIDI | \ |
3421 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3422 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3423 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3424 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3425 | 082c6681 | j_mayer | PPC_440_SPEC) |
3426 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440GP (0x000000000006FF30ULL) |
3427 | 80d11f44 | j_mayer | #define POWERPC_MMU_440GP (POWERPC_MMU_BOOKE)
|
3428 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440GP (POWERPC_EXCP_BOOKE)
|
3429 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440GP (PPC_FLAGS_INPUT_BookE)
|
3430 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440GP (bfd_mach_ppc_403)
|
3431 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440GP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3432 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3433 | 80d11f44 | j_mayer | #define check_pow_440GP check_pow_nocheck
|
3434 | 80d11f44 | j_mayer | |
3435 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3436 | 80d11f44 | j_mayer | static void init_proc_440GP (CPUPPCState *env) |
3437 | 80d11f44 | j_mayer | { |
3438 | 80d11f44 | j_mayer | /* Time base */
|
3439 | 80d11f44 | j_mayer | gen_tbl(env); |
3440 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3441 | 80d11f44 | j_mayer | gen_spr_440(env); |
3442 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3443 | 80d11f44 | j_mayer | /* Processor identification */
|
3444 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3445 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3446 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3447 | 80d11f44 | j_mayer | 0x00000000);
|
3448 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3449 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3450 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3451 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3452 | 80d11f44 | j_mayer | 0x00000000);
|
3453 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3454 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3455 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3456 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3457 | 80d11f44 | j_mayer | 0x00000000);
|
3458 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3459 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3460 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3461 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3462 | 80d11f44 | j_mayer | 0x00000000);
|
3463 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3464 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3465 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3466 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3467 | 80d11f44 | j_mayer | 0x00000000);
|
3468 | 80d11f44 | j_mayer | /* Memory management */
|
3469 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3470 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3471 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3472 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3473 | 80d11f44 | j_mayer | #endif
|
3474 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3475 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3476 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3477 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3478 | 80d11f44 | j_mayer | } |
3479 | 80d11f44 | j_mayer | |
3480 | 80d11f44 | j_mayer | /* PowerPC 440x4 */
|
3481 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x4 (PPC_INSNS_BASE | PPC_STRING | \
|
3482 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3483 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3484 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3485 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3486 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3487 | 80d11f44 | j_mayer | PPC_440_SPEC) |
3488 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x4 (0x000000000006FF30ULL) |
3489 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x4 (POWERPC_MMU_BOOKE)
|
3490 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x4 (POWERPC_EXCP_BOOKE)
|
3491 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x4 (PPC_FLAGS_INPUT_BookE)
|
3492 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x4 (bfd_mach_ppc_403)
|
3493 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x4 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3494 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3495 | 80d11f44 | j_mayer | #define check_pow_440x4 check_pow_nocheck
|
3496 | 80d11f44 | j_mayer | |
3497 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3498 | 80d11f44 | j_mayer | static void init_proc_440x4 (CPUPPCState *env) |
3499 | 80d11f44 | j_mayer | { |
3500 | 80d11f44 | j_mayer | /* Time base */
|
3501 | 80d11f44 | j_mayer | gen_tbl(env); |
3502 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3503 | 80d11f44 | j_mayer | gen_spr_440(env); |
3504 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3505 | 80d11f44 | j_mayer | /* Processor identification */
|
3506 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3507 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3508 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3509 | 80d11f44 | j_mayer | 0x00000000);
|
3510 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3511 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3512 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3513 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3514 | 80d11f44 | j_mayer | 0x00000000);
|
3515 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3516 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3517 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3518 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3519 | 80d11f44 | j_mayer | 0x00000000);
|
3520 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3521 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3522 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3523 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3524 | 80d11f44 | j_mayer | 0x00000000);
|
3525 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3526 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3527 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3528 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3529 | 80d11f44 | j_mayer | 0x00000000);
|
3530 | 80d11f44 | j_mayer | /* Memory management */
|
3531 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3532 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3533 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3534 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3535 | 80d11f44 | j_mayer | #endif
|
3536 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3537 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3538 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3539 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3540 | 3fc6c082 | bellard | } |
3541 | 3fc6c082 | bellard | |
3542 | 80d11f44 | j_mayer | /* PowerPC 440x5 */
|
3543 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x5 (PPC_INSNS_BASE | PPC_STRING | \
|
3544 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3545 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3546 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3547 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3548 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3549 | 082c6681 | j_mayer | PPC_440_SPEC) |
3550 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x5 (0x000000000006FF30ULL) |
3551 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x5 (POWERPC_MMU_BOOKE)
|
3552 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x5 (POWERPC_EXCP_BOOKE)
|
3553 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x5 (PPC_FLAGS_INPUT_BookE)
|
3554 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x5 (bfd_mach_ppc_403)
|
3555 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x5 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3556 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3557 | 80d11f44 | j_mayer | #define check_pow_440x5 check_pow_nocheck
|
3558 | a750fc0b | j_mayer | |
3559 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3560 | 80d11f44 | j_mayer | static void init_proc_440x5 (CPUPPCState *env) |
3561 | 3fc6c082 | bellard | { |
3562 | a750fc0b | j_mayer | /* Time base */
|
3563 | a750fc0b | j_mayer | gen_tbl(env); |
3564 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3565 | 80d11f44 | j_mayer | gen_spr_440(env); |
3566 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3567 | 80d11f44 | j_mayer | /* Processor identification */
|
3568 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3569 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3570 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3571 | 80d11f44 | j_mayer | 0x00000000);
|
3572 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3573 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3574 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3575 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3576 | 80d11f44 | j_mayer | 0x00000000);
|
3577 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3578 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3579 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3580 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3581 | 80d11f44 | j_mayer | 0x00000000);
|
3582 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3583 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3584 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3585 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3586 | 80d11f44 | j_mayer | 0x00000000);
|
3587 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3588 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3589 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3590 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3591 | 80d11f44 | j_mayer | 0x00000000);
|
3592 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3593 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3594 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3595 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3596 | 80d11f44 | j_mayer | 0x00000000);
|
3597 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3598 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3599 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3600 | 80d11f44 | j_mayer | 0x00000000);
|
3601 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3602 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3603 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3604 | 80d11f44 | j_mayer | 0x00000000);
|
3605 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3606 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3607 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3608 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3609 | a750fc0b | j_mayer | 0x00000000);
|
3610 | a750fc0b | j_mayer | /* Memory management */
|
3611 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3612 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3613 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3614 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3615 | f2e63a42 | j_mayer | #endif
|
3616 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3617 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3618 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3619 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3620 | 3fc6c082 | bellard | } |
3621 | 3fc6c082 | bellard | |
3622 | 80d11f44 | j_mayer | /* PowerPC 460 (guessed) */
|
3623 | 082c6681 | j_mayer | #define POWERPC_INSNS_460 (PPC_INSNS_BASE | PPC_STRING | \
|
3624 | 80d11f44 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3625 | 082c6681 | j_mayer | PPC_WRTEE | PPC_MFAPIDI | \ |
3626 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3627 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3628 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3629 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3630 | 082c6681 | j_mayer | PPC_440_SPEC) |
3631 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3632 | 80d11f44 | j_mayer | #define POWERPC_MMU_460 (POWERPC_MMU_BOOKE)
|
3633 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460 (POWERPC_EXCP_BOOKE)
|
3634 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460 (PPC_FLAGS_INPUT_BookE)
|
3635 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460 (bfd_mach_ppc_403)
|
3636 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3637 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3638 | 80d11f44 | j_mayer | #define check_pow_460 check_pow_nocheck
|
3639 | a750fc0b | j_mayer | |
3640 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3641 | 80d11f44 | j_mayer | static void init_proc_460 (CPUPPCState *env) |
3642 | 3fc6c082 | bellard | { |
3643 | a750fc0b | j_mayer | /* Time base */
|
3644 | a750fc0b | j_mayer | gen_tbl(env); |
3645 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3646 | a750fc0b | j_mayer | gen_spr_440(env); |
3647 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3648 | 80d11f44 | j_mayer | /* Processor identification */
|
3649 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3650 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3651 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3652 | 80d11f44 | j_mayer | 0x00000000);
|
3653 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3654 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3655 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3656 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3657 | 80d11f44 | j_mayer | 0x00000000);
|
3658 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3659 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3660 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3661 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3662 | 80d11f44 | j_mayer | 0x00000000);
|
3663 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3664 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3665 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3666 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3667 | 80d11f44 | j_mayer | 0x00000000);
|
3668 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3669 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3670 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3671 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3672 | 80d11f44 | j_mayer | 0x00000000);
|
3673 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3674 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3675 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3676 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3677 | a750fc0b | j_mayer | 0x00000000);
|
3678 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3679 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3680 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3681 | a750fc0b | j_mayer | 0x00000000);
|
3682 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3683 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3684 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3685 | a750fc0b | j_mayer | 0x00000000);
|
3686 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3687 | a750fc0b | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3688 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3689 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3690 | a750fc0b | j_mayer | 0x00000000);
|
3691 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3692 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3693 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3694 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3695 | 80d11f44 | j_mayer | 0x00000000);
|
3696 | a750fc0b | j_mayer | /* Memory management */
|
3697 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3698 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3699 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3700 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3701 | f2e63a42 | j_mayer | #endif
|
3702 | e1833e1f | j_mayer | init_excp_BookE(env); |
3703 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3704 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3705 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3706 | 3fc6c082 | bellard | } |
3707 | 3fc6c082 | bellard | |
3708 | 80d11f44 | j_mayer | /* PowerPC 460F (guessed) */
|
3709 | 082c6681 | j_mayer | #define POWERPC_INSNS_460F (PPC_INSNS_BASE | PPC_STRING | \
|
3710 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FRES | PPC_FLOAT_FSEL | \ |
3711 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
3712 | 80d11f44 | j_mayer | PPC_FLOAT_STFIWX | \ |
3713 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3714 | 082c6681 | j_mayer | PPC_WRTEE | PPC_MFAPIDI | \ |
3715 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3716 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3717 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3718 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3719 | 082c6681 | j_mayer | PPC_440_SPEC) |
3720 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3721 | 80d11f44 | j_mayer | #define POWERPC_MMU_460F (POWERPC_MMU_BOOKE)
|
3722 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460F (POWERPC_EXCP_BOOKE)
|
3723 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460F (PPC_FLAGS_INPUT_BookE)
|
3724 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460F (bfd_mach_ppc_403)
|
3725 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460F (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3726 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3727 | 80d11f44 | j_mayer | #define check_pow_460F check_pow_nocheck
|
3728 | a750fc0b | j_mayer | |
3729 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3730 | 80d11f44 | j_mayer | static void init_proc_460F (CPUPPCState *env) |
3731 | 3fc6c082 | bellard | { |
3732 | a750fc0b | j_mayer | /* Time base */
|
3733 | a750fc0b | j_mayer | gen_tbl(env); |
3734 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3735 | a750fc0b | j_mayer | gen_spr_440(env); |
3736 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3737 | 80d11f44 | j_mayer | /* Processor identification */
|
3738 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3739 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3740 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3741 | 80d11f44 | j_mayer | 0x00000000);
|
3742 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3743 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3744 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3745 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3746 | 80d11f44 | j_mayer | 0x00000000);
|
3747 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3748 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3749 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3750 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3751 | 80d11f44 | j_mayer | 0x00000000);
|
3752 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3753 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3754 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3755 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3756 | 80d11f44 | j_mayer | 0x00000000);
|
3757 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3758 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3759 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3760 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3761 | 80d11f44 | j_mayer | 0x00000000);
|
3762 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3763 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3764 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3765 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3766 | 80d11f44 | j_mayer | 0x00000000);
|
3767 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3768 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3769 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3770 | 80d11f44 | j_mayer | 0x00000000);
|
3771 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3772 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3773 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3774 | 80d11f44 | j_mayer | 0x00000000);
|
3775 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3776 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3777 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3778 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3779 | 80d11f44 | j_mayer | 0x00000000);
|
3780 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3781 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3782 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3783 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3784 | 80d11f44 | j_mayer | 0x00000000);
|
3785 | a750fc0b | j_mayer | /* Memory management */
|
3786 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3787 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3788 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3789 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3790 | f2e63a42 | j_mayer | #endif
|
3791 | e1833e1f | j_mayer | init_excp_BookE(env); |
3792 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3793 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3794 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3795 | 3fc6c082 | bellard | } |
3796 | 3fc6c082 | bellard | |
3797 | 80d11f44 | j_mayer | /* Freescale 5xx cores (aka RCPU) */
|
3798 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC5xx (PPC_INSNS_BASE | PPC_STRING | \
|
3799 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3800 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_FLOAT | PPC_FLOAT_STFIWX | \ |
3801 | 80d11f44 | j_mayer | PPC_MFTB) |
3802 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC5xx (0x000000000001FF43ULL) |
3803 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC5xx (POWERPC_MMU_REAL)
|
3804 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC5xx (POWERPC_EXCP_603)
|
3805 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC5xx (PPC_FLAGS_INPUT_RCPU)
|
3806 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC5xx (bfd_mach_ppc_505)
|
3807 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC5xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3808 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3809 | 80d11f44 | j_mayer | #define check_pow_MPC5xx check_pow_none
|
3810 | 80d11f44 | j_mayer | |
3811 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3812 | 80d11f44 | j_mayer | static void init_proc_MPC5xx (CPUPPCState *env) |
3813 | 80d11f44 | j_mayer | { |
3814 | 80d11f44 | j_mayer | /* Time base */
|
3815 | 80d11f44 | j_mayer | gen_tbl(env); |
3816 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3817 | 80d11f44 | j_mayer | gen_spr_5xx(env); |
3818 | 80d11f44 | j_mayer | init_excp_MPC5xx(env); |
3819 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3820 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3821 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3822 | 80d11f44 | j_mayer | } |
3823 | 80d11f44 | j_mayer | |
3824 | 80d11f44 | j_mayer | /* Freescale 8xx cores (aka PowerQUICC) */
|
3825 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC8xx (PPC_INSNS_BASE | PPC_STRING | \
|
3826 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3827 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_MFTB) |
3828 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC8xx (0x000000000001F673ULL) |
3829 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC8xx (POWERPC_MMU_MPC8xx)
|
3830 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC8xx (POWERPC_EXCP_603)
|
3831 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC8xx (PPC_FLAGS_INPUT_RCPU)
|
3832 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC8xx (bfd_mach_ppc_860)
|
3833 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC8xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3834 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3835 | 80d11f44 | j_mayer | #define check_pow_MPC8xx check_pow_none
|
3836 | 80d11f44 | j_mayer | |
3837 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3838 | 80d11f44 | j_mayer | static void init_proc_MPC8xx (CPUPPCState *env) |
3839 | 80d11f44 | j_mayer | { |
3840 | 80d11f44 | j_mayer | /* Time base */
|
3841 | 80d11f44 | j_mayer | gen_tbl(env); |
3842 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3843 | 80d11f44 | j_mayer | gen_spr_8xx(env); |
3844 | 80d11f44 | j_mayer | init_excp_MPC8xx(env); |
3845 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3846 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3847 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3848 | 80d11f44 | j_mayer | } |
3849 | 80d11f44 | j_mayer | |
3850 | 80d11f44 | j_mayer | /* Freescale 82xx cores (aka PowerQUICC-II) */
|
3851 | 80d11f44 | j_mayer | /* PowerPC G2 */
|
3852 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3853 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3854 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3855 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3856 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3857 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3858 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3859 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2 (0x000000000006FFF2ULL) |
3860 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2 (POWERPC_MMU_SOFT_6xx)
|
3861 | 80d11f44 | j_mayer | //#define POWERPC_EXCP_G2 (POWERPC_EXCP_G2)
|
3862 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2 (PPC_FLAGS_INPUT_6xx)
|
3863 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2 (bfd_mach_ppc_ec603e)
|
3864 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3865 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3866 | 80d11f44 | j_mayer | #define check_pow_G2 check_pow_hid0
|
3867 | a750fc0b | j_mayer | |
3868 | 80d11f44 | j_mayer | static void init_proc_G2 (CPUPPCState *env) |
3869 | 3fc6c082 | bellard | { |
3870 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3871 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3872 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3873 | a750fc0b | j_mayer | /* Time base */
|
3874 | a750fc0b | j_mayer | gen_tbl(env); |
3875 | bd928eba | j_mayer | /* External access control */
|
3876 | bd928eba | j_mayer | /* XXX : not implemented */
|
3877 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3878 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3879 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3880 | bd928eba | j_mayer | 0x00000000);
|
3881 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3882 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3883 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3884 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3885 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3886 | 80d11f44 | j_mayer | 0x00000000);
|
3887 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3888 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3889 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3890 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3891 | 80d11f44 | j_mayer | 0x00000000);
|
3892 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3893 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3894 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3895 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3896 | 80d11f44 | j_mayer | 0x00000000);
|
3897 | a750fc0b | j_mayer | /* Memory management */
|
3898 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3899 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3900 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3901 | 80d11f44 | j_mayer | init_excp_G2(env); |
3902 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3903 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3904 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3905 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
3906 | 3fc6c082 | bellard | } |
3907 | a750fc0b | j_mayer | |
3908 | 80d11f44 | j_mayer | /* PowerPC G2LE */
|
3909 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2LE (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3910 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3911 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3912 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3913 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3914 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3915 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3916 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2LE (0x000000000007FFF3ULL) |
3917 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2LE (POWERPC_MMU_SOFT_6xx)
|
3918 | 80d11f44 | j_mayer | #define POWERPC_EXCP_G2LE (POWERPC_EXCP_G2)
|
3919 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2LE (PPC_FLAGS_INPUT_6xx)
|
3920 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2LE (bfd_mach_ppc_ec603e)
|
3921 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2LE (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3922 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3923 | 80d11f44 | j_mayer | #define check_pow_G2LE check_pow_hid0
|
3924 | a750fc0b | j_mayer | |
3925 | 80d11f44 | j_mayer | static void init_proc_G2LE (CPUPPCState *env) |
3926 | 3fc6c082 | bellard | { |
3927 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3928 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3929 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3930 | a750fc0b | j_mayer | /* Time base */
|
3931 | a750fc0b | j_mayer | gen_tbl(env); |
3932 | bd928eba | j_mayer | /* External access control */
|
3933 | bd928eba | j_mayer | /* XXX : not implemented */
|
3934 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3935 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3936 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3937 | bd928eba | j_mayer | 0x00000000);
|
3938 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3939 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3940 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3941 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3942 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3943 | a750fc0b | j_mayer | 0x00000000);
|
3944 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3945 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3946 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3947 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3948 | a750fc0b | j_mayer | 0x00000000);
|
3949 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3950 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3951 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3952 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3953 | a750fc0b | j_mayer | 0x00000000);
|
3954 | a750fc0b | j_mayer | /* Memory management */
|
3955 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3956 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3957 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3958 | 80d11f44 | j_mayer | init_excp_G2(env); |
3959 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3960 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3961 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3962 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
3963 | 3fc6c082 | bellard | } |
3964 | 3fc6c082 | bellard | |
3965 | 80d11f44 | j_mayer | /* e200 core */
|
3966 | 80d11f44 | j_mayer | /* XXX: unimplemented instructions:
|
3967 | 80d11f44 | j_mayer | * dcblc
|
3968 | 80d11f44 | j_mayer | * dcbtlst
|
3969 | 80d11f44 | j_mayer | * dcbtstls
|
3970 | 80d11f44 | j_mayer | * icblc
|
3971 | 80d11f44 | j_mayer | * icbtls
|
3972 | 80d11f44 | j_mayer | * tlbivax
|
3973 | 80d11f44 | j_mayer | * all SPE multiply-accumulate instructions
|
3974 | 80d11f44 | j_mayer | */
|
3975 | 082c6681 | j_mayer | #define POWERPC_INSNS_e200 (PPC_INSNS_BASE | PPC_ISEL | \
|
3976 | 80d11f44 | j_mayer | PPC_SPE | PPC_SPEFPU | \ |
3977 | 082c6681 | j_mayer | PPC_WRTEE | PPC_RFDI | \ |
3978 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
3979 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3980 | 80d11f44 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
3981 | 082c6681 | j_mayer | PPC_BOOKE) |
3982 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e200 (0x000000000606FF30ULL) |
3983 | 80d11f44 | j_mayer | #define POWERPC_MMU_e200 (POWERPC_MMU_BOOKE_FSL)
|
3984 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e200 (POWERPC_EXCP_BOOKE)
|
3985 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e200 (PPC_FLAGS_INPUT_BookE)
|
3986 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e200 (bfd_mach_ppc_860)
|
3987 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e200 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
3988 | 4018bae9 | j_mayer | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
3989 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3990 | 80d11f44 | j_mayer | #define check_pow_e200 check_pow_hid0
|
3991 | 80d11f44 | j_mayer | |
3992 | 578bb252 | j_mayer | __attribute__ (( unused )) |
3993 | 80d11f44 | j_mayer | static void init_proc_e200 (CPUPPCState *env) |
3994 | 3fc6c082 | bellard | { |
3995 | e1833e1f | j_mayer | /* Time base */
|
3996 | e1833e1f | j_mayer | gen_tbl(env); |
3997 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000070000FFFFULL);
|
3998 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3999 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4000 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4001 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4002 | e1833e1f | j_mayer | 0x00000000);
|
4003 | 80d11f44 | j_mayer | /* Memory management */
|
4004 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005D);
|
4005 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4006 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4007 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4008 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4009 | e1833e1f | j_mayer | 0x00000000);
|
4010 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4011 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4012 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4013 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4014 | e1833e1f | j_mayer | 0x00000000);
|
4015 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4016 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_ALTCTXCR, "ALTCTXCR",
|
4017 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4018 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4019 | e1833e1f | j_mayer | 0x00000000);
|
4020 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4021 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
4022 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4023 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4024 | 80d11f44 | j_mayer | 0x00000000);
|
4025 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4026 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_CTXCR, "CTXCR",
|
4027 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4028 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4029 | 80d11f44 | j_mayer | 0x00000000);
|
4030 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4031 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCNT, "DBCNT",
|
4032 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4033 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4034 | 80d11f44 | j_mayer | 0x00000000);
|
4035 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4036 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCR3, "DBCR3",
|
4037 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4038 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4039 | 80d11f44 | j_mayer | 0x00000000);
|
4040 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4041 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
4042 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4043 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4044 | 80d11f44 | j_mayer | 0x00000000);
|
4045 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4046 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4047 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4048 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4049 | 80d11f44 | j_mayer | 0x00000000);
|
4050 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4051 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1FINV0, "L1FINV0",
|
4052 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4053 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4054 | 80d11f44 | j_mayer | 0x00000000);
|
4055 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4056 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4057 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4058 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4059 | 80d11f44 | j_mayer | 0x00000000);
|
4060 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4061 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4062 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4063 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4064 | 80d11f44 | j_mayer | 0x00000000);
|
4065 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4066 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
4067 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4068 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4069 | 80d11f44 | j_mayer | 0x00000000);
|
4070 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4071 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
4072 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4073 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4074 | 80d11f44 | j_mayer | 0x00000000);
|
4075 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR0, "DSRR0",
|
4076 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4077 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4078 | 80d11f44 | j_mayer | 0x00000000);
|
4079 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR1, "DSRR1",
|
4080 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4081 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4082 | e1833e1f | j_mayer | 0x00000000);
|
4083 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4084 | e1833e1f | j_mayer | env->nb_tlb = 64;
|
4085 | e1833e1f | j_mayer | env->nb_ways = 1;
|
4086 | e1833e1f | j_mayer | env->id_tlbs = 0;
|
4087 | f2e63a42 | j_mayer | #endif
|
4088 | 80d11f44 | j_mayer | init_excp_e200(env); |
4089 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4090 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4091 | e1833e1f | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
4092 | 3fc6c082 | bellard | } |
4093 | a750fc0b | j_mayer | |
4094 | 80d11f44 | j_mayer | /* e300 core */
|
4095 | 082c6681 | j_mayer | #define POWERPC_INSNS_e300 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4096 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4097 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
4098 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4099 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4100 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4101 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4102 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e300 (0x000000000007FFF3ULL) |
4103 | 80d11f44 | j_mayer | #define POWERPC_MMU_e300 (POWERPC_MMU_SOFT_6xx)
|
4104 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e300 (POWERPC_EXCP_603)
|
4105 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e300 (PPC_FLAGS_INPUT_6xx)
|
4106 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e300 (bfd_mach_ppc_603)
|
4107 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e300 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4108 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4109 | 80d11f44 | j_mayer | #define check_pow_e300 check_pow_hid0
|
4110 | a750fc0b | j_mayer | |
4111 | 578bb252 | j_mayer | __attribute__ (( unused )) |
4112 | 80d11f44 | j_mayer | static void init_proc_e300 (CPUPPCState *env) |
4113 | 3fc6c082 | bellard | { |
4114 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
4115 | 80d11f44 | j_mayer | gen_spr_603(env); |
4116 | a750fc0b | j_mayer | /* Time base */
|
4117 | a750fc0b | j_mayer | gen_tbl(env); |
4118 | 80d11f44 | j_mayer | /* hardware implementation registers */
|
4119 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4120 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4121 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4122 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4123 | 80d11f44 | j_mayer | 0x00000000);
|
4124 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4125 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4126 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4127 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4128 | 80d11f44 | j_mayer | 0x00000000);
|
4129 | 80d11f44 | j_mayer | /* Memory management */
|
4130 | 80d11f44 | j_mayer | gen_low_BATs(env); |
4131 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4132 | 80d11f44 | j_mayer | init_excp_603(env); |
4133 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
4134 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
4135 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
4136 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
4137 | 80d11f44 | j_mayer | } |
4138 | 80d11f44 | j_mayer | |
4139 | 80d11f44 | j_mayer | /* e500 core */
|
4140 | 082c6681 | j_mayer | #define POWERPC_INSNS_e500 (PPC_INSNS_BASE | PPC_ISEL | \
|
4141 | 80d11f44 | j_mayer | PPC_SPE | PPC_SPEFPU | \ |
4142 | 082c6681 | j_mayer | PPC_WRTEE | PPC_RFDI | \ |
4143 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4144 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4145 | 80d11f44 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4146 | 082c6681 | j_mayer | PPC_BOOKE) |
4147 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e500 (0x000000000606FF30ULL) |
4148 | 80d11f44 | j_mayer | #define POWERPC_MMU_e500 (POWERPC_MMU_BOOKE_FSL)
|
4149 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e500 (POWERPC_EXCP_BOOKE)
|
4150 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e500 (PPC_FLAGS_INPUT_BookE)
|
4151 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e500 (bfd_mach_ppc_860)
|
4152 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e500 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4153 | 4018bae9 | j_mayer | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4154 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
4155 | 80d11f44 | j_mayer | #define check_pow_e500 check_pow_hid0
|
4156 | 80d11f44 | j_mayer | |
4157 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
4158 | 80d11f44 | j_mayer | static void init_proc_e500 (CPUPPCState *env) |
4159 | 80d11f44 | j_mayer | { |
4160 | 80d11f44 | j_mayer | /* Time base */
|
4161 | 80d11f44 | j_mayer | gen_tbl(env); |
4162 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x0000000F0000FD7FULL);
|
4163 | 80d11f44 | j_mayer | /* Processor identification */
|
4164 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
4165 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4166 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
4167 | 80d11f44 | j_mayer | 0x00000000);
|
4168 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4169 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4170 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4171 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4172 | 80d11f44 | j_mayer | 0x00000000);
|
4173 | 80d11f44 | j_mayer | /* Memory management */
|
4174 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4175 | 80d11f44 | j_mayer | env->nb_pids = 3;
|
4176 | 80d11f44 | j_mayer | #endif
|
4177 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005F);
|
4178 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4179 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4180 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4181 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4182 | 80d11f44 | j_mayer | 0x00000000);
|
4183 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4184 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4185 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4186 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4187 | 80d11f44 | j_mayer | 0x00000000);
|
4188 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4189 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BBEAR, "BBEAR",
|
4190 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4191 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4192 | 80d11f44 | j_mayer | 0x00000000);
|
4193 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4194 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BBTAR, "BBTAR",
|
4195 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4196 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4197 | 80d11f44 | j_mayer | 0x00000000);
|
4198 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4199 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_MCAR, "MCAR",
|
4200 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4201 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4202 | 80d11f44 | j_mayer | 0x00000000);
|
4203 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4204 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
4205 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4206 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4207 | a750fc0b | j_mayer | 0x00000000);
|
4208 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4209 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_NPIDR, "NPIDR",
|
4210 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4211 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4212 | a750fc0b | j_mayer | 0x00000000);
|
4213 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4214 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
4215 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4216 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4217 | a750fc0b | j_mayer | 0x00000000);
|
4218 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4219 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
4220 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4221 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4222 | a750fc0b | j_mayer | 0x00000000);
|
4223 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4224 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4225 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4226 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4227 | 80d11f44 | j_mayer | 0x00000000);
|
4228 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4229 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR1, "L1CSR1",
|
4230 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4231 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4232 | 80d11f44 | j_mayer | 0x00000000);
|
4233 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4234 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4235 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4236 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4237 | 80d11f44 | j_mayer | 0x00000000);
|
4238 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4239 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4240 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4241 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4242 | 80d11f44 | j_mayer | 0x00000000);
|
4243 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
4244 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4245 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4246 | 80d11f44 | j_mayer | 0x00000000);
|
4247 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
4248 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4249 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4250 | a750fc0b | j_mayer | 0x00000000);
|
4251 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4252 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
4253 | a750fc0b | j_mayer | env->nb_ways = 1;
|
4254 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
4255 | f2e63a42 | j_mayer | #endif
|
4256 | 80d11f44 | j_mayer | init_excp_e200(env); |
4257 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4258 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4259 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
4260 | 3fc6c082 | bellard | } |
4261 | a750fc0b | j_mayer | |
4262 | a750fc0b | j_mayer | /* Non-embedded PowerPC */
|
4263 | a750fc0b | j_mayer | |
4264 | a750fc0b | j_mayer | /* POWER : same as 601, without mfmsr, mfsr */
|
4265 | a750fc0b | j_mayer | #if defined(TODO)
|
4266 | a750fc0b | j_mayer | #define POWERPC_INSNS_POWER (XXX_TODO)
|
4267 | a750fc0b | j_mayer | /* POWER RSC (from RAD6000) */
|
4268 | a750fc0b | j_mayer | #define POWERPC_MSRM_POWER (0x00000000FEF0ULL) |
4269 | a750fc0b | j_mayer | #endif /* TODO */ |
4270 | a750fc0b | j_mayer | |
4271 | a750fc0b | j_mayer | /* PowerPC 601 */
|
4272 | 082c6681 | j_mayer | #define POWERPC_INSNS_601 (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4273 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4274 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4275 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4276 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4277 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_601 (0x000000000000FD70ULL) |
4278 | 082c6681 | j_mayer | #define POWERPC_MSRR_601 (0x0000000000001040ULL) |
4279 | faadf50e | j_mayer | //#define POWERPC_MMU_601 (POWERPC_MMU_601)
|
4280 | a750fc0b | j_mayer | //#define POWERPC_EXCP_601 (POWERPC_EXCP_601)
|
4281 | a750fc0b | j_mayer | #define POWERPC_INPUT_601 (PPC_FLAGS_INPUT_6xx)
|
4282 | 237c0af0 | j_mayer | #define POWERPC_BFDM_601 (bfd_mach_ppc_601)
|
4283 | 4018bae9 | j_mayer | #define POWERPC_FLAG_601 (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4284 | 2f462816 | j_mayer | #define check_pow_601 check_pow_none
|
4285 | a750fc0b | j_mayer | |
4286 | a750fc0b | j_mayer | static void init_proc_601 (CPUPPCState *env) |
4287 | 3fc6c082 | bellard | { |
4288 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4289 | a750fc0b | j_mayer | gen_spr_601(env); |
4290 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4291 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4292 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4293 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4294 | 056401ea | j_mayer | &spr_read_generic, &spr_write_hid0_601, |
4295 | faadf50e | j_mayer | 0x80010080);
|
4296 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4297 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4298 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4299 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4300 | a750fc0b | j_mayer | 0x00000000);
|
4301 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4302 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID2, "HID2",
|
4303 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4304 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4305 | a750fc0b | j_mayer | 0x00000000);
|
4306 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4307 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID5, "HID5",
|
4308 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4309 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4310 | a750fc0b | j_mayer | 0x00000000);
|
4311 | a750fc0b | j_mayer | /* Memory management */
|
4312 | e1833e1f | j_mayer | init_excp_601(env); |
4313 | 082c6681 | j_mayer | /* XXX: beware that dcache line size is 64
|
4314 | 082c6681 | j_mayer | * but dcbz uses 32 bytes "sectors"
|
4315 | 082c6681 | j_mayer | * XXX: this breaks clcs instruction !
|
4316 | 082c6681 | j_mayer | */
|
4317 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4318 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
4319 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
4320 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
4321 | 3fc6c082 | bellard | } |
4322 | 3fc6c082 | bellard | |
4323 | 082c6681 | j_mayer | /* PowerPC 601v */
|
4324 | 082c6681 | j_mayer | #define POWERPC_INSNS_601v (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4325 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4326 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4327 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4328 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4329 | 082c6681 | j_mayer | #define POWERPC_MSRM_601v (0x000000000000FD70ULL) |
4330 | 082c6681 | j_mayer | #define POWERPC_MSRR_601v (0x0000000000001040ULL) |
4331 | 082c6681 | j_mayer | #define POWERPC_MMU_601v (POWERPC_MMU_601)
|
4332 | 082c6681 | j_mayer | #define POWERPC_EXCP_601v (POWERPC_EXCP_601)
|
4333 | 082c6681 | j_mayer | #define POWERPC_INPUT_601v (PPC_FLAGS_INPUT_6xx)
|
4334 | 082c6681 | j_mayer | #define POWERPC_BFDM_601v (bfd_mach_ppc_601)
|
4335 | 082c6681 | j_mayer | #define POWERPC_FLAG_601v (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4336 | 082c6681 | j_mayer | #define check_pow_601v check_pow_none
|
4337 | 082c6681 | j_mayer | |
4338 | 082c6681 | j_mayer | static void init_proc_601v (CPUPPCState *env) |
4339 | 082c6681 | j_mayer | { |
4340 | 082c6681 | j_mayer | init_proc_601(env); |
4341 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4342 | 082c6681 | j_mayer | spr_register(env, SPR_601_HID15, "HID15",
|
4343 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4344 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4345 | 082c6681 | j_mayer | 0x00000000);
|
4346 | 082c6681 | j_mayer | } |
4347 | 082c6681 | j_mayer | |
4348 | a750fc0b | j_mayer | /* PowerPC 602 */
|
4349 | 082c6681 | j_mayer | #define POWERPC_INSNS_602 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4350 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4351 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4352 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4353 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4354 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_6xx_TLB | PPC_MEM_TLBSYNC | \ |
4355 | 12de9a39 | j_mayer | PPC_SEGMENT | PPC_602_SPEC) |
4356 | 082c6681 | j_mayer | #define POWERPC_MSRM_602 (0x0000000000C7FF73ULL) |
4357 | 082c6681 | j_mayer | /* XXX: 602 MMU is quite specific. Should add a special case */
|
4358 | a750fc0b | j_mayer | #define POWERPC_MMU_602 (POWERPC_MMU_SOFT_6xx)
|
4359 | a750fc0b | j_mayer | //#define POWERPC_EXCP_602 (POWERPC_EXCP_602)
|
4360 | a750fc0b | j_mayer | #define POWERPC_INPUT_602 (PPC_FLAGS_INPUT_6xx)
|
4361 | 237c0af0 | j_mayer | #define POWERPC_BFDM_602 (bfd_mach_ppc_602)
|
4362 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_602 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4363 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4364 | 2f462816 | j_mayer | #define check_pow_602 check_pow_hid0
|
4365 | a750fc0b | j_mayer | |
4366 | a750fc0b | j_mayer | static void init_proc_602 (CPUPPCState *env) |
4367 | 3fc6c082 | bellard | { |
4368 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4369 | a750fc0b | j_mayer | gen_spr_602(env); |
4370 | a750fc0b | j_mayer | /* Time base */
|
4371 | a750fc0b | j_mayer | gen_tbl(env); |
4372 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4373 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4374 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4375 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4376 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4377 | a750fc0b | j_mayer | 0x00000000);
|
4378 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4379 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4380 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4381 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4382 | a750fc0b | j_mayer | 0x00000000);
|
4383 | a750fc0b | j_mayer | /* Memory management */
|
4384 | a750fc0b | j_mayer | gen_low_BATs(env); |
4385 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4386 | e1833e1f | j_mayer | init_excp_602(env); |
4387 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4388 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4389 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4390 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4391 | a750fc0b | j_mayer | } |
4392 | 3fc6c082 | bellard | |
4393 | a750fc0b | j_mayer | /* PowerPC 603 */
|
4394 | 082c6681 | j_mayer | #define POWERPC_INSNS_603 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4395 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4396 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4397 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4398 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4399 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4400 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4401 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_603 (0x000000000007FF73ULL) |
4402 | a750fc0b | j_mayer | #define POWERPC_MMU_603 (POWERPC_MMU_SOFT_6xx)
|
4403 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603 (POWERPC_EXCP_603)
|
4404 | a750fc0b | j_mayer | #define POWERPC_INPUT_603 (PPC_FLAGS_INPUT_6xx)
|
4405 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603 (bfd_mach_ppc_603)
|
4406 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4407 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4408 | 2f462816 | j_mayer | #define check_pow_603 check_pow_hid0
|
4409 | a750fc0b | j_mayer | |
4410 | a750fc0b | j_mayer | static void init_proc_603 (CPUPPCState *env) |
4411 | a750fc0b | j_mayer | { |
4412 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4413 | a750fc0b | j_mayer | gen_spr_603(env); |
4414 | a750fc0b | j_mayer | /* Time base */
|
4415 | a750fc0b | j_mayer | gen_tbl(env); |
4416 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4417 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4418 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4419 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4420 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4421 | a750fc0b | j_mayer | 0x00000000);
|
4422 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4423 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4424 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4425 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4426 | a750fc0b | j_mayer | 0x00000000);
|
4427 | a750fc0b | j_mayer | /* Memory management */
|
4428 | a750fc0b | j_mayer | gen_low_BATs(env); |
4429 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4430 | e1833e1f | j_mayer | init_excp_603(env); |
4431 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4432 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4433 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4434 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4435 | 3fc6c082 | bellard | } |
4436 | 3fc6c082 | bellard | |
4437 | a750fc0b | j_mayer | /* PowerPC 603e */
|
4438 | 082c6681 | j_mayer | #define POWERPC_INSNS_603E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4439 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4440 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4441 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4442 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4443 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4444 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4445 | a750fc0b | j_mayer | #define POWERPC_MSRM_603E (0x000000000007FF73ULL) |
4446 | a750fc0b | j_mayer | #define POWERPC_MMU_603E (POWERPC_MMU_SOFT_6xx)
|
4447 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603E (POWERPC_EXCP_603E)
|
4448 | a750fc0b | j_mayer | #define POWERPC_INPUT_603E (PPC_FLAGS_INPUT_6xx)
|
4449 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603E (bfd_mach_ppc_ec603e)
|
4450 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603E (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4451 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4452 | 2f462816 | j_mayer | #define check_pow_603E check_pow_hid0
|
4453 | a750fc0b | j_mayer | |
4454 | a750fc0b | j_mayer | static void init_proc_603E (CPUPPCState *env) |
4455 | a750fc0b | j_mayer | { |
4456 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4457 | a750fc0b | j_mayer | gen_spr_603(env); |
4458 | a750fc0b | j_mayer | /* Time base */
|
4459 | a750fc0b | j_mayer | gen_tbl(env); |
4460 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4461 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4462 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4463 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4464 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4465 | a750fc0b | j_mayer | 0x00000000);
|
4466 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4467 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4468 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4469 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4470 | a750fc0b | j_mayer | 0x00000000);
|
4471 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4472 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
4473 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4474 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4475 | a750fc0b | j_mayer | 0x00000000);
|
4476 | a750fc0b | j_mayer | /* Memory management */
|
4477 | a750fc0b | j_mayer | gen_low_BATs(env); |
4478 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4479 | e1833e1f | j_mayer | init_excp_603(env); |
4480 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4481 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4482 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4483 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4484 | a750fc0b | j_mayer | } |
4485 | a750fc0b | j_mayer | |
4486 | a750fc0b | j_mayer | /* PowerPC 604 */
|
4487 | 082c6681 | j_mayer | #define POWERPC_INSNS_604 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4488 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4489 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4490 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4491 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4492 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4493 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4494 | a750fc0b | j_mayer | #define POWERPC_MSRM_604 (0x000000000005FF77ULL) |
4495 | a750fc0b | j_mayer | #define POWERPC_MMU_604 (POWERPC_MMU_32B)
|
4496 | a750fc0b | j_mayer | //#define POWERPC_EXCP_604 (POWERPC_EXCP_604)
|
4497 | a750fc0b | j_mayer | #define POWERPC_INPUT_604 (PPC_FLAGS_INPUT_6xx)
|
4498 | 237c0af0 | j_mayer | #define POWERPC_BFDM_604 (bfd_mach_ppc_604)
|
4499 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_604 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4500 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4501 | 2f462816 | j_mayer | #define check_pow_604 check_pow_nocheck
|
4502 | a750fc0b | j_mayer | |
4503 | a750fc0b | j_mayer | static void init_proc_604 (CPUPPCState *env) |
4504 | a750fc0b | j_mayer | { |
4505 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4506 | a750fc0b | j_mayer | gen_spr_604(env); |
4507 | a750fc0b | j_mayer | /* Time base */
|
4508 | a750fc0b | j_mayer | gen_tbl(env); |
4509 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4510 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4511 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4512 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4513 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4514 | a750fc0b | j_mayer | 0x00000000);
|
4515 | 082c6681 | j_mayer | /* Memory management */
|
4516 | 082c6681 | j_mayer | gen_low_BATs(env); |
4517 | 082c6681 | j_mayer | init_excp_604(env); |
4518 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4519 | 082c6681 | j_mayer | env->icache_line_size = 32;
|
4520 | 082c6681 | j_mayer | /* Allocate hardware IRQ controller */
|
4521 | 082c6681 | j_mayer | ppc6xx_irq_init(env); |
4522 | 082c6681 | j_mayer | } |
4523 | 082c6681 | j_mayer | |
4524 | 082c6681 | j_mayer | /* PowerPC 604E */
|
4525 | 082c6681 | j_mayer | #define POWERPC_INSNS_604E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4526 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4527 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4528 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4529 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4530 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4531 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4532 | 082c6681 | j_mayer | #define POWERPC_MSRM_604E (0x000000000005FF77ULL) |
4533 | 082c6681 | j_mayer | #define POWERPC_MMU_604E (POWERPC_MMU_32B)
|
4534 | 082c6681 | j_mayer | #define POWERPC_EXCP_604E (POWERPC_EXCP_604)
|
4535 | 082c6681 | j_mayer | #define POWERPC_INPUT_604E (PPC_FLAGS_INPUT_6xx)
|
4536 | 082c6681 | j_mayer | #define POWERPC_BFDM_604E (bfd_mach_ppc_604)
|
4537 | 082c6681 | j_mayer | #define POWERPC_FLAG_604E (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4538 | 082c6681 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4539 | 082c6681 | j_mayer | #define check_pow_604E check_pow_nocheck
|
4540 | 082c6681 | j_mayer | |
4541 | 082c6681 | j_mayer | static void init_proc_604E (CPUPPCState *env) |
4542 | 082c6681 | j_mayer | { |
4543 | 082c6681 | j_mayer | gen_spr_ne_601(env); |
4544 | 082c6681 | j_mayer | gen_spr_604(env); |
4545 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4546 | 082c6681 | j_mayer | spr_register(env, SPR_MMCR1, "MMCR1",
|
4547 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4548 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4549 | 082c6681 | j_mayer | 0x00000000);
|
4550 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4551 | 082c6681 | j_mayer | spr_register(env, SPR_PMC3, "PMC3",
|
4552 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4553 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4554 | 082c6681 | j_mayer | 0x00000000);
|
4555 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4556 | 082c6681 | j_mayer | spr_register(env, SPR_PMC4, "PMC4",
|
4557 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4558 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4559 | 082c6681 | j_mayer | 0x00000000);
|
4560 | 082c6681 | j_mayer | /* Time base */
|
4561 | 082c6681 | j_mayer | gen_tbl(env); |
4562 | 082c6681 | j_mayer | /* Hardware implementation registers */
|
4563 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4564 | 082c6681 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4565 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4566 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4567 | 082c6681 | j_mayer | 0x00000000);
|
4568 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4569 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4570 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4571 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4572 | a750fc0b | j_mayer | 0x00000000);
|
4573 | a750fc0b | j_mayer | /* Memory management */
|
4574 | a750fc0b | j_mayer | gen_low_BATs(env); |
4575 | e1833e1f | j_mayer | init_excp_604(env); |
4576 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4577 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4578 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4579 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4580 | a750fc0b | j_mayer | } |
4581 | a750fc0b | j_mayer | |
4582 | bd928eba | j_mayer | /* PowerPC 740 */
|
4583 | bd928eba | j_mayer | #define POWERPC_INSNS_740 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4584 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4585 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4586 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4587 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4588 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4589 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4590 | bd928eba | j_mayer | #define POWERPC_MSRM_740 (0x000000000005FF77ULL) |
4591 | bd928eba | j_mayer | #define POWERPC_MMU_740 (POWERPC_MMU_32B)
|
4592 | bd928eba | j_mayer | #define POWERPC_EXCP_740 (POWERPC_EXCP_7x0)
|
4593 | bd928eba | j_mayer | #define POWERPC_INPUT_740 (PPC_FLAGS_INPUT_6xx)
|
4594 | bd928eba | j_mayer | #define POWERPC_BFDM_740 (bfd_mach_ppc_750)
|
4595 | bd928eba | j_mayer | #define POWERPC_FLAG_740 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4596 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4597 | bd928eba | j_mayer | #define check_pow_740 check_pow_hid0
|
4598 | a750fc0b | j_mayer | |
4599 | bd928eba | j_mayer | static void init_proc_740 (CPUPPCState *env) |
4600 | a750fc0b | j_mayer | { |
4601 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4602 | a750fc0b | j_mayer | gen_spr_7xx(env); |
4603 | a750fc0b | j_mayer | /* Time base */
|
4604 | a750fc0b | j_mayer | gen_tbl(env); |
4605 | a750fc0b | j_mayer | /* Thermal management */
|
4606 | a750fc0b | j_mayer | gen_spr_thrm(env); |
4607 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4608 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4609 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4610 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4611 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4612 | a750fc0b | j_mayer | 0x00000000);
|
4613 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4614 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4615 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4616 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4617 | a750fc0b | j_mayer | 0x00000000);
|
4618 | a750fc0b | j_mayer | /* Memory management */
|
4619 | a750fc0b | j_mayer | gen_low_BATs(env); |
4620 | e1833e1f | j_mayer | init_excp_7x0(env); |
4621 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4622 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4623 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4624 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4625 | a750fc0b | j_mayer | } |
4626 | a750fc0b | j_mayer | |
4627 | bd928eba | j_mayer | /* PowerPC 750 */
|
4628 | bd928eba | j_mayer | #define POWERPC_INSNS_750 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4629 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4630 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4631 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4632 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4633 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4634 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4635 | bd928eba | j_mayer | #define POWERPC_MSRM_750 (0x000000000005FF77ULL) |
4636 | bd928eba | j_mayer | #define POWERPC_MMU_750 (POWERPC_MMU_32B)
|
4637 | bd928eba | j_mayer | #define POWERPC_EXCP_750 (POWERPC_EXCP_7x0)
|
4638 | bd928eba | j_mayer | #define POWERPC_INPUT_750 (PPC_FLAGS_INPUT_6xx)
|
4639 | bd928eba | j_mayer | #define POWERPC_BFDM_750 (bfd_mach_ppc_750)
|
4640 | bd928eba | j_mayer | #define POWERPC_FLAG_750 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4641 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4642 | bd928eba | j_mayer | #define check_pow_750 check_pow_hid0
|
4643 | bd928eba | j_mayer | |
4644 | bd928eba | j_mayer | static void init_proc_750 (CPUPPCState *env) |
4645 | bd928eba | j_mayer | { |
4646 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4647 | bd928eba | j_mayer | gen_spr_7xx(env); |
4648 | bd928eba | j_mayer | /* XXX : not implemented */
|
4649 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4650 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4651 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4652 | bd928eba | j_mayer | 0x00000000);
|
4653 | bd928eba | j_mayer | /* Time base */
|
4654 | bd928eba | j_mayer | gen_tbl(env); |
4655 | bd928eba | j_mayer | /* Thermal management */
|
4656 | bd928eba | j_mayer | gen_spr_thrm(env); |
4657 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4658 | bd928eba | j_mayer | /* XXX : not implemented */
|
4659 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4660 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4661 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4662 | bd928eba | j_mayer | 0x00000000);
|
4663 | bd928eba | j_mayer | /* XXX : not implemented */
|
4664 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4665 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4666 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4667 | bd928eba | j_mayer | 0x00000000);
|
4668 | bd928eba | j_mayer | /* Memory management */
|
4669 | bd928eba | j_mayer | gen_low_BATs(env); |
4670 | bd928eba | j_mayer | /* XXX: high BATs are also present but are known to be bugged on
|
4671 | bd928eba | j_mayer | * die version 1.x
|
4672 | bd928eba | j_mayer | */
|
4673 | bd928eba | j_mayer | init_excp_7x0(env); |
4674 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4675 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4676 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4677 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4678 | bd928eba | j_mayer | } |
4679 | bd928eba | j_mayer | |
4680 | bd928eba | j_mayer | /* PowerPC 750 CL */
|
4681 | bd928eba | j_mayer | /* XXX: not implemented:
|
4682 | bd928eba | j_mayer | * cache lock instructions:
|
4683 | bd928eba | j_mayer | * dcbz_l
|
4684 | bd928eba | j_mayer | * floating point paired instructions
|
4685 | bd928eba | j_mayer | * psq_lux
|
4686 | bd928eba | j_mayer | * psq_lx
|
4687 | bd928eba | j_mayer | * psq_stux
|
4688 | bd928eba | j_mayer | * psq_stx
|
4689 | bd928eba | j_mayer | * ps_abs
|
4690 | bd928eba | j_mayer | * ps_add
|
4691 | bd928eba | j_mayer | * ps_cmpo0
|
4692 | bd928eba | j_mayer | * ps_cmpo1
|
4693 | bd928eba | j_mayer | * ps_cmpu0
|
4694 | bd928eba | j_mayer | * ps_cmpu1
|
4695 | bd928eba | j_mayer | * ps_div
|
4696 | bd928eba | j_mayer | * ps_madd
|
4697 | bd928eba | j_mayer | * ps_madds0
|
4698 | bd928eba | j_mayer | * ps_madds1
|
4699 | bd928eba | j_mayer | * ps_merge00
|
4700 | bd928eba | j_mayer | * ps_merge01
|
4701 | bd928eba | j_mayer | * ps_merge10
|
4702 | bd928eba | j_mayer | * ps_merge11
|
4703 | bd928eba | j_mayer | * ps_mr
|
4704 | bd928eba | j_mayer | * ps_msub
|
4705 | bd928eba | j_mayer | * ps_mul
|
4706 | bd928eba | j_mayer | * ps_muls0
|
4707 | bd928eba | j_mayer | * ps_muls1
|
4708 | bd928eba | j_mayer | * ps_nabs
|
4709 | bd928eba | j_mayer | * ps_neg
|
4710 | bd928eba | j_mayer | * ps_nmadd
|
4711 | bd928eba | j_mayer | * ps_nmsub
|
4712 | bd928eba | j_mayer | * ps_res
|
4713 | bd928eba | j_mayer | * ps_rsqrte
|
4714 | bd928eba | j_mayer | * ps_sel
|
4715 | bd928eba | j_mayer | * ps_sub
|
4716 | bd928eba | j_mayer | * ps_sum0
|
4717 | bd928eba | j_mayer | * ps_sum1
|
4718 | bd928eba | j_mayer | */
|
4719 | bd928eba | j_mayer | #define POWERPC_INSNS_750cl (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4720 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4721 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4722 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4723 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4724 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4725 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4726 | bd928eba | j_mayer | #define POWERPC_MSRM_750cl (0x000000000005FF77ULL) |
4727 | bd928eba | j_mayer | #define POWERPC_MMU_750cl (POWERPC_MMU_32B)
|
4728 | bd928eba | j_mayer | #define POWERPC_EXCP_750cl (POWERPC_EXCP_7x0)
|
4729 | bd928eba | j_mayer | #define POWERPC_INPUT_750cl (PPC_FLAGS_INPUT_6xx)
|
4730 | bd928eba | j_mayer | #define POWERPC_BFDM_750cl (bfd_mach_ppc_750)
|
4731 | bd928eba | j_mayer | #define POWERPC_FLAG_750cl (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4732 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4733 | bd928eba | j_mayer | #define check_pow_750cl check_pow_hid0
|
4734 | bd928eba | j_mayer | |
4735 | bd928eba | j_mayer | static void init_proc_750cl (CPUPPCState *env) |
4736 | bd928eba | j_mayer | { |
4737 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4738 | bd928eba | j_mayer | gen_spr_7xx(env); |
4739 | bd928eba | j_mayer | /* XXX : not implemented */
|
4740 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4741 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4742 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4743 | bd928eba | j_mayer | 0x00000000);
|
4744 | bd928eba | j_mayer | /* Time base */
|
4745 | bd928eba | j_mayer | gen_tbl(env); |
4746 | bd928eba | j_mayer | /* Thermal management */
|
4747 | bd928eba | j_mayer | /* Those registers are fake on 750CL */
|
4748 | bd928eba | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
4749 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4750 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4751 | bd928eba | j_mayer | 0x00000000);
|
4752 | bd928eba | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
4753 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4754 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4755 | bd928eba | j_mayer | 0x00000000);
|
4756 | bd928eba | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
4757 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4758 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4759 | bd928eba | j_mayer | 0x00000000);
|
4760 | bd928eba | j_mayer | /* XXX: not implemented */
|
4761 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCL, "TDCL",
|
4762 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4763 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4764 | bd928eba | j_mayer | 0x00000000);
|
4765 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCH, "TDCH",
|
4766 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4767 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4768 | bd928eba | j_mayer | 0x00000000);
|
4769 | bd928eba | j_mayer | /* DMA */
|
4770 | bd928eba | j_mayer | /* XXX : not implemented */
|
4771 | bd928eba | j_mayer | spr_register(env, SPR_750_WPAR, "WPAR",
|
4772 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4773 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4774 | bd928eba | j_mayer | 0x00000000);
|
4775 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAL, "DMAL",
|
4776 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4777 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4778 | bd928eba | j_mayer | 0x00000000);
|
4779 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAU, "DMAU",
|
4780 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4781 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4782 | bd928eba | j_mayer | 0x00000000);
|
4783 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4784 | bd928eba | j_mayer | /* XXX : not implemented */
|
4785 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4786 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4787 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4788 | bd928eba | j_mayer | 0x00000000);
|
4789 | bd928eba | j_mayer | /* XXX : not implemented */
|
4790 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4791 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4792 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4793 | bd928eba | j_mayer | 0x00000000);
|
4794 | bd928eba | j_mayer | /* XXX : not implemented */
|
4795 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID2, "HID2",
|
4796 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4797 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4798 | bd928eba | j_mayer | 0x00000000);
|
4799 | bd928eba | j_mayer | /* XXX : not implemented */
|
4800 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID4, "HID4",
|
4801 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4802 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4803 | bd928eba | j_mayer | 0x00000000);
|
4804 | bd928eba | j_mayer | /* Quantization registers */
|
4805 | bd928eba | j_mayer | /* XXX : not implemented */
|
4806 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR0, "GQR0",
|
4807 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4808 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4809 | bd928eba | j_mayer | 0x00000000);
|
4810 | bd928eba | j_mayer | /* XXX : not implemented */
|
4811 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR1, "GQR1",
|
4812 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4813 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4814 | bd928eba | j_mayer | 0x00000000);
|
4815 | bd928eba | j_mayer | /* XXX : not implemented */
|
4816 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR2, "GQR2",
|
4817 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4818 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4819 | bd928eba | j_mayer | 0x00000000);
|
4820 | bd928eba | j_mayer | /* XXX : not implemented */
|
4821 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR3, "GQR3",
|
4822 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4823 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4824 | bd928eba | j_mayer | 0x00000000);
|
4825 | bd928eba | j_mayer | /* XXX : not implemented */
|
4826 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR4, "GQR4",
|
4827 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4828 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4829 | bd928eba | j_mayer | 0x00000000);
|
4830 | bd928eba | j_mayer | /* XXX : not implemented */
|
4831 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR5, "GQR5",
|
4832 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4833 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4834 | bd928eba | j_mayer | 0x00000000);
|
4835 | bd928eba | j_mayer | /* XXX : not implemented */
|
4836 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR6, "GQR6",
|
4837 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4838 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4839 | bd928eba | j_mayer | 0x00000000);
|
4840 | bd928eba | j_mayer | /* XXX : not implemented */
|
4841 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR7, "GQR7",
|
4842 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4843 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4844 | bd928eba | j_mayer | 0x00000000);
|
4845 | bd928eba | j_mayer | /* Memory management */
|
4846 | bd928eba | j_mayer | gen_low_BATs(env); |
4847 | bd928eba | j_mayer | /* PowerPC 750cl has 8 DBATs and 8 IBATs */
|
4848 | bd928eba | j_mayer | gen_high_BATs(env); |
4849 | bd928eba | j_mayer | init_excp_750cl(env); |
4850 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4851 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4852 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4853 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4854 | bd928eba | j_mayer | } |
4855 | bd928eba | j_mayer | |
4856 | 4e777442 | j_mayer | /* PowerPC 750CX */
|
4857 | bd928eba | j_mayer | #define POWERPC_INSNS_750cx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4858 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4859 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4860 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4861 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4862 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4863 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4864 | bd928eba | j_mayer | #define POWERPC_MSRM_750cx (0x000000000005FF77ULL) |
4865 | bd928eba | j_mayer | #define POWERPC_MMU_750cx (POWERPC_MMU_32B)
|
4866 | bd928eba | j_mayer | #define POWERPC_EXCP_750cx (POWERPC_EXCP_7x0)
|
4867 | bd928eba | j_mayer | #define POWERPC_INPUT_750cx (PPC_FLAGS_INPUT_6xx)
|
4868 | bd928eba | j_mayer | #define POWERPC_BFDM_750cx (bfd_mach_ppc_750)
|
4869 | bd928eba | j_mayer | #define POWERPC_FLAG_750cx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4870 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4871 | bd928eba | j_mayer | #define check_pow_750cx check_pow_hid0
|
4872 | bd928eba | j_mayer | |
4873 | bd928eba | j_mayer | static void init_proc_750cx (CPUPPCState *env) |
4874 | bd928eba | j_mayer | { |
4875 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4876 | bd928eba | j_mayer | gen_spr_7xx(env); |
4877 | bd928eba | j_mayer | /* XXX : not implemented */
|
4878 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4879 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4880 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4881 | bd928eba | j_mayer | 0x00000000);
|
4882 | bd928eba | j_mayer | /* Time base */
|
4883 | bd928eba | j_mayer | gen_tbl(env); |
4884 | bd928eba | j_mayer | /* Thermal management */
|
4885 | bd928eba | j_mayer | gen_spr_thrm(env); |
4886 | bd928eba | j_mayer | /* This register is not implemented but is present for compatibility */
|
4887 | bd928eba | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
4888 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4889 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4890 | bd928eba | j_mayer | 0x00000000);
|
4891 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4892 | bd928eba | j_mayer | /* XXX : not implemented */
|
4893 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4894 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4895 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4896 | bd928eba | j_mayer | 0x00000000);
|
4897 | bd928eba | j_mayer | /* XXX : not implemented */
|
4898 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4899 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4900 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4901 | bd928eba | j_mayer | 0x00000000);
|
4902 | bd928eba | j_mayer | /* Memory management */
|
4903 | bd928eba | j_mayer | gen_low_BATs(env); |
4904 | 4e777442 | j_mayer | /* PowerPC 750cx has 8 DBATs and 8 IBATs */
|
4905 | 4e777442 | j_mayer | gen_high_BATs(env); |
4906 | bd928eba | j_mayer | init_excp_750cx(env); |
4907 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4908 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4909 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4910 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4911 | bd928eba | j_mayer | } |
4912 | bd928eba | j_mayer | |
4913 | bd928eba | j_mayer | /* PowerPC 750FX */
|
4914 | 082c6681 | j_mayer | #define POWERPC_INSNS_750fx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4915 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4916 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4917 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4918 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4919 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4920 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4921 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_750fx (0x000000000005FF77ULL) |
4922 | a750fc0b | j_mayer | #define POWERPC_MMU_750fx (POWERPC_MMU_32B)
|
4923 | a750fc0b | j_mayer | #define POWERPC_EXCP_750fx (POWERPC_EXCP_7x0)
|
4924 | a750fc0b | j_mayer | #define POWERPC_INPUT_750fx (PPC_FLAGS_INPUT_6xx)
|
4925 | 237c0af0 | j_mayer | #define POWERPC_BFDM_750fx (bfd_mach_ppc_750)
|
4926 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_750fx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4927 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4928 | 2f462816 | j_mayer | #define check_pow_750fx check_pow_hid0
|
4929 | a750fc0b | j_mayer | |
4930 | a750fc0b | j_mayer | static void init_proc_750fx (CPUPPCState *env) |
4931 | a750fc0b | j_mayer | { |
4932 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4933 | a750fc0b | j_mayer | gen_spr_7xx(env); |
4934 | bd928eba | j_mayer | /* XXX : not implemented */
|
4935 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4936 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4937 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4938 | bd928eba | j_mayer | 0x00000000);
|
4939 | a750fc0b | j_mayer | /* Time base */
|
4940 | a750fc0b | j_mayer | gen_tbl(env); |
4941 | a750fc0b | j_mayer | /* Thermal management */
|
4942 | a750fc0b | j_mayer | gen_spr_thrm(env); |
4943 | bd928eba | j_mayer | /* XXX : not implemented */
|
4944 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
4945 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4946 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4947 | bd928eba | j_mayer | 0x00000000);
|
4948 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4949 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4950 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4951 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4952 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4953 | a750fc0b | j_mayer | 0x00000000);
|
4954 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4955 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4956 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4957 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4958 | a750fc0b | j_mayer | 0x00000000);
|
4959 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4960 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
4961 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4962 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4963 | a750fc0b | j_mayer | 0x00000000);
|
4964 | a750fc0b | j_mayer | /* Memory management */
|
4965 | a750fc0b | j_mayer | gen_low_BATs(env); |
4966 | a750fc0b | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
4967 | a750fc0b | j_mayer | gen_high_BATs(env); |
4968 | bd928eba | j_mayer | init_excp_7x0(env); |
4969 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4970 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4971 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4972 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4973 | a750fc0b | j_mayer | } |
4974 | a750fc0b | j_mayer | |
4975 | bd928eba | j_mayer | /* PowerPC 750GX */
|
4976 | bd928eba | j_mayer | #define POWERPC_INSNS_750gx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4977 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4978 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4979 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4980 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4981 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4982 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4983 | bd928eba | j_mayer | #define POWERPC_MSRM_750gx (0x000000000005FF77ULL) |
4984 | bd928eba | j_mayer | #define POWERPC_MMU_750gx (POWERPC_MMU_32B)
|
4985 | bd928eba | j_mayer | #define POWERPC_EXCP_750gx (POWERPC_EXCP_7x0)
|
4986 | bd928eba | j_mayer | #define POWERPC_INPUT_750gx (PPC_FLAGS_INPUT_6xx)
|
4987 | bd928eba | j_mayer | #define POWERPC_BFDM_750gx (bfd_mach_ppc_750)
|
4988 | bd928eba | j_mayer | #define POWERPC_FLAG_750gx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4989 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4990 | bd928eba | j_mayer | #define check_pow_750gx check_pow_hid0
|
4991 | bd928eba | j_mayer | |
4992 | bd928eba | j_mayer | static void init_proc_750gx (CPUPPCState *env) |
4993 | bd928eba | j_mayer | { |
4994 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4995 | bd928eba | j_mayer | gen_spr_7xx(env); |
4996 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
4997 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4998 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4999 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5000 | bd928eba | j_mayer | 0x00000000);
|
5001 | bd928eba | j_mayer | /* Time base */
|
5002 | bd928eba | j_mayer | gen_tbl(env); |
5003 | bd928eba | j_mayer | /* Thermal management */
|
5004 | bd928eba | j_mayer | gen_spr_thrm(env); |
5005 | bd928eba | j_mayer | /* XXX : not implemented */
|
5006 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
5007 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5008 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5009 | bd928eba | j_mayer | 0x00000000);
|
5010 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5011 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5012 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5013 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5014 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5015 | bd928eba | j_mayer | 0x00000000);
|
5016 | bd928eba | j_mayer | /* XXX : not implemented */
|
5017 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5018 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5019 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5020 | bd928eba | j_mayer | 0x00000000);
|
5021 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5022 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5023 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5024 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5025 | bd928eba | j_mayer | 0x00000000);
|
5026 | bd928eba | j_mayer | /* Memory management */
|
5027 | bd928eba | j_mayer | gen_low_BATs(env); |
5028 | bd928eba | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
5029 | bd928eba | j_mayer | gen_high_BATs(env); |
5030 | bd928eba | j_mayer | init_excp_7x0(env); |
5031 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5032 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5033 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5034 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5035 | bd928eba | j_mayer | } |
5036 | bd928eba | j_mayer | |
5037 | bd928eba | j_mayer | /* PowerPC 745 */
|
5038 | bd928eba | j_mayer | #define POWERPC_INSNS_745 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5039 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5040 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5041 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5042 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5043 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5044 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5045 | bd928eba | j_mayer | #define POWERPC_MSRM_745 (0x000000000005FF77ULL) |
5046 | bd928eba | j_mayer | #define POWERPC_MMU_745 (POWERPC_MMU_SOFT_6xx)
|
5047 | bd928eba | j_mayer | #define POWERPC_EXCP_745 (POWERPC_EXCP_7x5)
|
5048 | bd928eba | j_mayer | #define POWERPC_INPUT_745 (PPC_FLAGS_INPUT_6xx)
|
5049 | bd928eba | j_mayer | #define POWERPC_BFDM_745 (bfd_mach_ppc_750)
|
5050 | bd928eba | j_mayer | #define POWERPC_FLAG_745 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5051 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5052 | bd928eba | j_mayer | #define check_pow_745 check_pow_hid0
|
5053 | bd928eba | j_mayer | |
5054 | bd928eba | j_mayer | static void init_proc_745 (CPUPPCState *env) |
5055 | bd928eba | j_mayer | { |
5056 | bd928eba | j_mayer | gen_spr_ne_601(env); |
5057 | bd928eba | j_mayer | gen_spr_7xx(env); |
5058 | bd928eba | j_mayer | gen_spr_G2_755(env); |
5059 | bd928eba | j_mayer | /* Time base */
|
5060 | bd928eba | j_mayer | gen_tbl(env); |
5061 | bd928eba | j_mayer | /* Thermal management */
|
5062 | bd928eba | j_mayer | gen_spr_thrm(env); |
5063 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5064 | bd928eba | j_mayer | /* XXX : not implemented */
|
5065 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5066 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5067 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5068 | bd928eba | j_mayer | 0x00000000);
|
5069 | bd928eba | j_mayer | /* XXX : not implemented */
|
5070 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5071 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5072 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5073 | bd928eba | j_mayer | 0x00000000);
|
5074 | bd928eba | j_mayer | /* XXX : not implemented */
|
5075 | bd928eba | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5076 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5077 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5078 | bd928eba | j_mayer | 0x00000000);
|
5079 | bd928eba | j_mayer | /* Memory management */
|
5080 | bd928eba | j_mayer | gen_low_BATs(env); |
5081 | bd928eba | j_mayer | gen_high_BATs(env); |
5082 | bd928eba | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5083 | bd928eba | j_mayer | init_excp_7x5(env); |
5084 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5085 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5086 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5087 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5088 | bd928eba | j_mayer | } |
5089 | bd928eba | j_mayer | |
5090 | bd928eba | j_mayer | /* PowerPC 755 */
|
5091 | bd928eba | j_mayer | #define POWERPC_INSNS_755 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5092 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5093 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5094 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5095 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5096 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5097 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5098 | bd928eba | j_mayer | #define POWERPC_MSRM_755 (0x000000000005FF77ULL) |
5099 | bd928eba | j_mayer | #define POWERPC_MMU_755 (POWERPC_MMU_SOFT_6xx)
|
5100 | bd928eba | j_mayer | #define POWERPC_EXCP_755 (POWERPC_EXCP_7x5)
|
5101 | bd928eba | j_mayer | #define POWERPC_INPUT_755 (PPC_FLAGS_INPUT_6xx)
|
5102 | bd928eba | j_mayer | #define POWERPC_BFDM_755 (bfd_mach_ppc_750)
|
5103 | bd928eba | j_mayer | #define POWERPC_FLAG_755 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5104 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5105 | bd928eba | j_mayer | #define check_pow_755 check_pow_hid0
|
5106 | a750fc0b | j_mayer | |
5107 | bd928eba | j_mayer | static void init_proc_755 (CPUPPCState *env) |
5108 | a750fc0b | j_mayer | { |
5109 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5110 | bd928eba | j_mayer | gen_spr_7xx(env); |
5111 | a750fc0b | j_mayer | gen_spr_G2_755(env); |
5112 | a750fc0b | j_mayer | /* Time base */
|
5113 | a750fc0b | j_mayer | gen_tbl(env); |
5114 | a750fc0b | j_mayer | /* L2 cache control */
|
5115 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5116 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5117 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5118 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5119 | a750fc0b | j_mayer | 0x00000000);
|
5120 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5121 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5122 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5123 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5124 | a750fc0b | j_mayer | 0x00000000);
|
5125 | bd928eba | j_mayer | /* Thermal management */
|
5126 | bd928eba | j_mayer | gen_spr_thrm(env); |
5127 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5128 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5129 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5130 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5131 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5132 | a750fc0b | j_mayer | 0x00000000);
|
5133 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5134 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5135 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5136 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5137 | a750fc0b | j_mayer | 0x00000000);
|
5138 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5139 | a750fc0b | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5140 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5141 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5142 | a750fc0b | j_mayer | 0x00000000);
|
5143 | a750fc0b | j_mayer | /* Memory management */
|
5144 | a750fc0b | j_mayer | gen_low_BATs(env); |
5145 | a750fc0b | j_mayer | gen_high_BATs(env); |
5146 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5147 | 7a3a6927 | j_mayer | init_excp_7x5(env); |
5148 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5149 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5150 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5151 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5152 | a750fc0b | j_mayer | } |
5153 | a750fc0b | j_mayer | |
5154 | a750fc0b | j_mayer | /* PowerPC 7400 (aka G4) */
|
5155 | 082c6681 | j_mayer | #define POWERPC_INSNS_7400 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5156 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5157 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5158 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5159 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5160 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5161 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5162 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5163 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5164 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5165 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5166 | a750fc0b | j_mayer | #define POWERPC_MSRM_7400 (0x000000000205FF77ULL) |
5167 | a750fc0b | j_mayer | #define POWERPC_MMU_7400 (POWERPC_MMU_32B)
|
5168 | a750fc0b | j_mayer | #define POWERPC_EXCP_7400 (POWERPC_EXCP_74xx)
|
5169 | a750fc0b | j_mayer | #define POWERPC_INPUT_7400 (PPC_FLAGS_INPUT_6xx)
|
5170 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7400 (bfd_mach_ppc_7400)
|
5171 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7400 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5172 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5173 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5174 | 4e777442 | j_mayer | #define check_pow_7400 check_pow_hid0_74xx
|
5175 | a750fc0b | j_mayer | |
5176 | a750fc0b | j_mayer | static void init_proc_7400 (CPUPPCState *env) |
5177 | a750fc0b | j_mayer | { |
5178 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5179 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5180 | a750fc0b | j_mayer | /* Time base */
|
5181 | a750fc0b | j_mayer | gen_tbl(env); |
5182 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5183 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5184 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5185 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5186 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5187 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5188 | 4e777442 | j_mayer | 0x00000000);
|
5189 | 4e777442 | j_mayer | /* XXX: this seems not implemented on all revisions. */
|
5190 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5191 | 4e777442 | j_mayer | spr_register(env, SPR_MSSCR1, "MSSCR1",
|
5192 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5193 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5194 | 4e777442 | j_mayer | 0x00000000);
|
5195 | a750fc0b | j_mayer | /* Thermal management */
|
5196 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5197 | a750fc0b | j_mayer | /* Memory management */
|
5198 | a750fc0b | j_mayer | gen_low_BATs(env); |
5199 | e1833e1f | j_mayer | init_excp_7400(env); |
5200 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5201 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5202 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5203 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5204 | a750fc0b | j_mayer | } |
5205 | a750fc0b | j_mayer | |
5206 | a750fc0b | j_mayer | /* PowerPC 7410 (aka G4) */
|
5207 | 082c6681 | j_mayer | #define POWERPC_INSNS_7410 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5208 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5209 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5210 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5211 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5212 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5213 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5214 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5215 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5216 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5217 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5218 | a750fc0b | j_mayer | #define POWERPC_MSRM_7410 (0x000000000205FF77ULL) |
5219 | a750fc0b | j_mayer | #define POWERPC_MMU_7410 (POWERPC_MMU_32B)
|
5220 | a750fc0b | j_mayer | #define POWERPC_EXCP_7410 (POWERPC_EXCP_74xx)
|
5221 | a750fc0b | j_mayer | #define POWERPC_INPUT_7410 (PPC_FLAGS_INPUT_6xx)
|
5222 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7410 (bfd_mach_ppc_7400)
|
5223 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7410 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5224 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5225 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5226 | 4e777442 | j_mayer | #define check_pow_7410 check_pow_hid0_74xx
|
5227 | a750fc0b | j_mayer | |
5228 | a750fc0b | j_mayer | static void init_proc_7410 (CPUPPCState *env) |
5229 | a750fc0b | j_mayer | { |
5230 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5231 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5232 | a750fc0b | j_mayer | /* Time base */
|
5233 | a750fc0b | j_mayer | gen_tbl(env); |
5234 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5235 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5236 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5237 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5238 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5239 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5240 | 4e777442 | j_mayer | 0x00000000);
|
5241 | a750fc0b | j_mayer | /* Thermal management */
|
5242 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5243 | a750fc0b | j_mayer | /* L2PMCR */
|
5244 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5245 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5246 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5247 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5248 | a750fc0b | j_mayer | 0x00000000);
|
5249 | a750fc0b | j_mayer | /* LDSTDB */
|
5250 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5251 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTDB, "LDSTDB",
|
5252 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5253 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5254 | a750fc0b | j_mayer | 0x00000000);
|
5255 | a750fc0b | j_mayer | /* Memory management */
|
5256 | a750fc0b | j_mayer | gen_low_BATs(env); |
5257 | e1833e1f | j_mayer | init_excp_7400(env); |
5258 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5259 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5260 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5261 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5262 | a750fc0b | j_mayer | } |
5263 | a750fc0b | j_mayer | |
5264 | a750fc0b | j_mayer | /* PowerPC 7440 (aka G4) */
|
5265 | 082c6681 | j_mayer | #define POWERPC_INSNS_7440 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5266 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5267 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5268 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5269 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5270 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5271 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5272 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5273 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5274 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5275 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5276 | a750fc0b | j_mayer | #define POWERPC_MSRM_7440 (0x000000000205FF77ULL) |
5277 | a750fc0b | j_mayer | #define POWERPC_MMU_7440 (POWERPC_MMU_SOFT_74xx)
|
5278 | a750fc0b | j_mayer | #define POWERPC_EXCP_7440 (POWERPC_EXCP_74xx)
|
5279 | a750fc0b | j_mayer | #define POWERPC_INPUT_7440 (PPC_FLAGS_INPUT_6xx)
|
5280 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7440 (bfd_mach_ppc_7400)
|
5281 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7440 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5282 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5283 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5284 | 4e777442 | j_mayer | #define check_pow_7440 check_pow_hid0_74xx
|
5285 | a750fc0b | j_mayer | |
5286 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5287 | a750fc0b | j_mayer | static void init_proc_7440 (CPUPPCState *env) |
5288 | a750fc0b | j_mayer | { |
5289 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5290 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5291 | a750fc0b | j_mayer | /* Time base */
|
5292 | a750fc0b | j_mayer | gen_tbl(env); |
5293 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5294 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5295 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5296 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5297 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5298 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5299 | 4e777442 | j_mayer | 0x00000000);
|
5300 | a750fc0b | j_mayer | /* LDSTCR */
|
5301 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5302 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5303 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5304 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5305 | a750fc0b | j_mayer | 0x00000000);
|
5306 | a750fc0b | j_mayer | /* ICTRL */
|
5307 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5308 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5309 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5310 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5311 | a750fc0b | j_mayer | 0x00000000);
|
5312 | a750fc0b | j_mayer | /* MSSSR0 */
|
5313 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5314 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5315 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5316 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5317 | a750fc0b | j_mayer | 0x00000000);
|
5318 | a750fc0b | j_mayer | /* PMC */
|
5319 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5320 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5321 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5322 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5323 | a750fc0b | j_mayer | 0x00000000);
|
5324 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5325 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5326 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5327 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5328 | a750fc0b | j_mayer | 0x00000000);
|
5329 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5330 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5331 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5332 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5333 | a750fc0b | j_mayer | 0x00000000);
|
5334 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5335 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5336 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5337 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5338 | a750fc0b | j_mayer | 0x00000000);
|
5339 | a750fc0b | j_mayer | /* Memory management */
|
5340 | a750fc0b | j_mayer | gen_low_BATs(env); |
5341 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5342 | 1c27f8fb | j_mayer | init_excp_7450(env); |
5343 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5344 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5345 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5346 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5347 | a750fc0b | j_mayer | } |
5348 | a750fc0b | j_mayer | |
5349 | a750fc0b | j_mayer | /* PowerPC 7450 (aka G4) */
|
5350 | 082c6681 | j_mayer | #define POWERPC_INSNS_7450 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5351 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5352 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5353 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5354 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5355 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5356 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5357 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5358 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5359 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5360 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5361 | a750fc0b | j_mayer | #define POWERPC_MSRM_7450 (0x000000000205FF77ULL) |
5362 | a750fc0b | j_mayer | #define POWERPC_MMU_7450 (POWERPC_MMU_SOFT_74xx)
|
5363 | a750fc0b | j_mayer | #define POWERPC_EXCP_7450 (POWERPC_EXCP_74xx)
|
5364 | a750fc0b | j_mayer | #define POWERPC_INPUT_7450 (PPC_FLAGS_INPUT_6xx)
|
5365 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7450 (bfd_mach_ppc_7400)
|
5366 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7450 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5367 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5368 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5369 | 4e777442 | j_mayer | #define check_pow_7450 check_pow_hid0_74xx
|
5370 | a750fc0b | j_mayer | |
5371 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5372 | a750fc0b | j_mayer | static void init_proc_7450 (CPUPPCState *env) |
5373 | a750fc0b | j_mayer | { |
5374 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5375 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5376 | a750fc0b | j_mayer | /* Time base */
|
5377 | a750fc0b | j_mayer | gen_tbl(env); |
5378 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5379 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5380 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5381 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5382 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5383 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5384 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5385 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5386 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5387 | 4e777442 | j_mayer | 0x00000000);
|
5388 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5389 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5390 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5391 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5392 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5393 | 4e777442 | j_mayer | 0x00000000);
|
5394 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5395 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5396 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5397 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5398 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5399 | 4e777442 | j_mayer | 0x00000000);
|
5400 | 4e777442 | j_mayer | /* L3OHCR */
|
5401 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5402 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5403 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5404 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5405 | 4e777442 | j_mayer | 0x00000000);
|
5406 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5407 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5408 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5409 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5410 | 4e777442 | j_mayer | 0x00000000);
|
5411 | a750fc0b | j_mayer | /* LDSTCR */
|
5412 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5413 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5414 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5415 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5416 | a750fc0b | j_mayer | 0x00000000);
|
5417 | a750fc0b | j_mayer | /* ICTRL */
|
5418 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5419 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5420 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5421 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5422 | a750fc0b | j_mayer | 0x00000000);
|
5423 | a750fc0b | j_mayer | /* MSSSR0 */
|
5424 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5425 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5426 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5427 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5428 | a750fc0b | j_mayer | 0x00000000);
|
5429 | a750fc0b | j_mayer | /* PMC */
|
5430 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5431 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5432 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5433 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5434 | a750fc0b | j_mayer | 0x00000000);
|
5435 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5436 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5437 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5438 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5439 | a750fc0b | j_mayer | 0x00000000);
|
5440 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5441 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5442 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5443 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5444 | a750fc0b | j_mayer | 0x00000000);
|
5445 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5446 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5447 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5448 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5449 | a750fc0b | j_mayer | 0x00000000);
|
5450 | a750fc0b | j_mayer | /* Memory management */
|
5451 | a750fc0b | j_mayer | gen_low_BATs(env); |
5452 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5453 | e1833e1f | j_mayer | init_excp_7450(env); |
5454 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5455 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5456 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5457 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5458 | a750fc0b | j_mayer | } |
5459 | a750fc0b | j_mayer | |
5460 | a750fc0b | j_mayer | /* PowerPC 7445 (aka G4) */
|
5461 | 082c6681 | j_mayer | #define POWERPC_INSNS_7445 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5462 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5463 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5464 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5465 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5466 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5467 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5468 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5469 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5470 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5471 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5472 | a750fc0b | j_mayer | #define POWERPC_MSRM_7445 (0x000000000205FF77ULL) |
5473 | a750fc0b | j_mayer | #define POWERPC_MMU_7445 (POWERPC_MMU_SOFT_74xx)
|
5474 | a750fc0b | j_mayer | #define POWERPC_EXCP_7445 (POWERPC_EXCP_74xx)
|
5475 | a750fc0b | j_mayer | #define POWERPC_INPUT_7445 (PPC_FLAGS_INPUT_6xx)
|
5476 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7445 (bfd_mach_ppc_7400)
|
5477 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7445 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5478 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5479 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5480 | 4e777442 | j_mayer | #define check_pow_7445 check_pow_hid0_74xx
|
5481 | a750fc0b | j_mayer | |
5482 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5483 | a750fc0b | j_mayer | static void init_proc_7445 (CPUPPCState *env) |
5484 | a750fc0b | j_mayer | { |
5485 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5486 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5487 | a750fc0b | j_mayer | /* Time base */
|
5488 | a750fc0b | j_mayer | gen_tbl(env); |
5489 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5490 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5491 | a750fc0b | j_mayer | /* LDSTCR */
|
5492 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5493 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5494 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5495 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5496 | a750fc0b | j_mayer | 0x00000000);
|
5497 | a750fc0b | j_mayer | /* ICTRL */
|
5498 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5499 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5500 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5501 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5502 | a750fc0b | j_mayer | 0x00000000);
|
5503 | a750fc0b | j_mayer | /* MSSSR0 */
|
5504 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5505 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5506 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5507 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5508 | a750fc0b | j_mayer | 0x00000000);
|
5509 | a750fc0b | j_mayer | /* PMC */
|
5510 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5511 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5512 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5513 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5514 | a750fc0b | j_mayer | 0x00000000);
|
5515 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5516 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5517 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5518 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5519 | a750fc0b | j_mayer | 0x00000000);
|
5520 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5521 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5522 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5523 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5524 | a750fc0b | j_mayer | 0x00000000);
|
5525 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5526 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5527 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5528 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5529 | a750fc0b | j_mayer | 0x00000000);
|
5530 | a750fc0b | j_mayer | /* SPRGs */
|
5531 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5532 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5533 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5534 | a750fc0b | j_mayer | 0x00000000);
|
5535 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5536 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5537 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5538 | a750fc0b | j_mayer | 0x00000000);
|
5539 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5540 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5541 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5542 | a750fc0b | j_mayer | 0x00000000);
|
5543 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5544 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5545 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5546 | a750fc0b | j_mayer | 0x00000000);
|
5547 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5548 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5549 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5550 | a750fc0b | j_mayer | 0x00000000);
|
5551 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5552 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5553 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5554 | a750fc0b | j_mayer | 0x00000000);
|
5555 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5556 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5557 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5558 | a750fc0b | j_mayer | 0x00000000);
|
5559 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5560 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5561 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5562 | a750fc0b | j_mayer | 0x00000000);
|
5563 | a750fc0b | j_mayer | /* Memory management */
|
5564 | a750fc0b | j_mayer | gen_low_BATs(env); |
5565 | a750fc0b | j_mayer | gen_high_BATs(env); |
5566 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5567 | e1833e1f | j_mayer | init_excp_7450(env); |
5568 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5569 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5570 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5571 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5572 | a750fc0b | j_mayer | } |
5573 | a750fc0b | j_mayer | |
5574 | a750fc0b | j_mayer | /* PowerPC 7455 (aka G4) */
|
5575 | 082c6681 | j_mayer | #define POWERPC_INSNS_7455 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5576 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5577 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5578 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5579 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5580 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5581 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5582 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5583 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5584 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5585 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5586 | a750fc0b | j_mayer | #define POWERPC_MSRM_7455 (0x000000000205FF77ULL) |
5587 | a750fc0b | j_mayer | #define POWERPC_MMU_7455 (POWERPC_MMU_SOFT_74xx)
|
5588 | a750fc0b | j_mayer | #define POWERPC_EXCP_7455 (POWERPC_EXCP_74xx)
|
5589 | a750fc0b | j_mayer | #define POWERPC_INPUT_7455 (PPC_FLAGS_INPUT_6xx)
|
5590 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7455 (bfd_mach_ppc_7400)
|
5591 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7455 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5592 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5593 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5594 | 4e777442 | j_mayer | #define check_pow_7455 check_pow_hid0_74xx
|
5595 | a750fc0b | j_mayer | |
5596 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5597 | a750fc0b | j_mayer | static void init_proc_7455 (CPUPPCState *env) |
5598 | a750fc0b | j_mayer | { |
5599 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5600 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5601 | a750fc0b | j_mayer | /* Time base */
|
5602 | a750fc0b | j_mayer | gen_tbl(env); |
5603 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5604 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5605 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5606 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5607 | a750fc0b | j_mayer | /* LDSTCR */
|
5608 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5609 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5610 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5611 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5612 | a750fc0b | j_mayer | 0x00000000);
|
5613 | a750fc0b | j_mayer | /* ICTRL */
|
5614 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5615 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5616 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5617 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5618 | a750fc0b | j_mayer | 0x00000000);
|
5619 | a750fc0b | j_mayer | /* MSSSR0 */
|
5620 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5621 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5622 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5623 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5624 | a750fc0b | j_mayer | 0x00000000);
|
5625 | a750fc0b | j_mayer | /* PMC */
|
5626 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5627 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5628 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5629 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5630 | a750fc0b | j_mayer | 0x00000000);
|
5631 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5632 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5633 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5634 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5635 | a750fc0b | j_mayer | 0x00000000);
|
5636 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5637 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5638 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5639 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5640 | a750fc0b | j_mayer | 0x00000000);
|
5641 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5642 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5643 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5644 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5645 | a750fc0b | j_mayer | 0x00000000);
|
5646 | a750fc0b | j_mayer | /* SPRGs */
|
5647 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5648 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5649 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5650 | a750fc0b | j_mayer | 0x00000000);
|
5651 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5652 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5653 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5654 | a750fc0b | j_mayer | 0x00000000);
|
5655 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5656 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5657 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5658 | a750fc0b | j_mayer | 0x00000000);
|
5659 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5660 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5661 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5662 | a750fc0b | j_mayer | 0x00000000);
|
5663 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5664 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5665 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5666 | a750fc0b | j_mayer | 0x00000000);
|
5667 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5668 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5669 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5670 | a750fc0b | j_mayer | 0x00000000);
|
5671 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5672 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5673 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5674 | a750fc0b | j_mayer | 0x00000000);
|
5675 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5676 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5677 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5678 | a750fc0b | j_mayer | 0x00000000);
|
5679 | a750fc0b | j_mayer | /* Memory management */
|
5680 | a750fc0b | j_mayer | gen_low_BATs(env); |
5681 | a750fc0b | j_mayer | gen_high_BATs(env); |
5682 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5683 | e1833e1f | j_mayer | init_excp_7450(env); |
5684 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5685 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5686 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5687 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5688 | a750fc0b | j_mayer | } |
5689 | a750fc0b | j_mayer | |
5690 | 4e777442 | j_mayer | /* PowerPC 7457 (aka G4) */
|
5691 | 4e777442 | j_mayer | #define POWERPC_INSNS_7457 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5692 | 4e777442 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5693 | 4e777442 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5694 | 4e777442 | j_mayer | PPC_FLOAT_STFIWX | \ |
5695 | 4e777442 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5696 | 4e777442 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5697 | 4e777442 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5698 | 4e777442 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5699 | 4e777442 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5700 | 4e777442 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5701 | 4e777442 | j_mayer | PPC_ALTIVEC) |
5702 | 4e777442 | j_mayer | #define POWERPC_MSRM_7457 (0x000000000205FF77ULL) |
5703 | 4e777442 | j_mayer | #define POWERPC_MMU_7457 (POWERPC_MMU_SOFT_74xx)
|
5704 | 4e777442 | j_mayer | #define POWERPC_EXCP_7457 (POWERPC_EXCP_74xx)
|
5705 | 4e777442 | j_mayer | #define POWERPC_INPUT_7457 (PPC_FLAGS_INPUT_6xx)
|
5706 | 4e777442 | j_mayer | #define POWERPC_BFDM_7457 (bfd_mach_ppc_7400)
|
5707 | 4e777442 | j_mayer | #define POWERPC_FLAG_7457 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5708 | 4e777442 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5709 | 4e777442 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5710 | 4e777442 | j_mayer | #define check_pow_7457 check_pow_hid0_74xx
|
5711 | 4e777442 | j_mayer | |
5712 | 4e777442 | j_mayer | __attribute__ (( unused )) |
5713 | 4e777442 | j_mayer | static void init_proc_7457 (CPUPPCState *env) |
5714 | 4e777442 | j_mayer | { |
5715 | 4e777442 | j_mayer | gen_spr_ne_601(env); |
5716 | 4e777442 | j_mayer | gen_spr_7xx(env); |
5717 | 4e777442 | j_mayer | /* Time base */
|
5718 | 4e777442 | j_mayer | gen_tbl(env); |
5719 | 4e777442 | j_mayer | /* 74xx specific SPR */
|
5720 | 4e777442 | j_mayer | gen_spr_74xx(env); |
5721 | 4e777442 | j_mayer | /* Level 3 cache control */
|
5722 | 4e777442 | j_mayer | gen_l3_ctrl(env); |
5723 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5724 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5725 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5726 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5727 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5728 | 4e777442 | j_mayer | 0x00000000);
|
5729 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5730 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5731 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5732 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5733 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5734 | 4e777442 | j_mayer | 0x00000000);
|
5735 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5736 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5737 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5738 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5739 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5740 | 4e777442 | j_mayer | 0x00000000);
|
5741 | 4e777442 | j_mayer | /* L3OHCR */
|
5742 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5743 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5744 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5745 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5746 | 4e777442 | j_mayer | 0x00000000);
|
5747 | 4e777442 | j_mayer | /* LDSTCR */
|
5748 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5749 | 4e777442 | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5750 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5751 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5752 | 4e777442 | j_mayer | 0x00000000);
|
5753 | 4e777442 | j_mayer | /* ICTRL */
|
5754 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5755 | 4e777442 | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5756 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5757 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5758 | 4e777442 | j_mayer | 0x00000000);
|
5759 | 4e777442 | j_mayer | /* MSSSR0 */
|
5760 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5761 | 4e777442 | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5762 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5763 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5764 | 4e777442 | j_mayer | 0x00000000);
|
5765 | 4e777442 | j_mayer | /* PMC */
|
5766 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5767 | 4e777442 | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5768 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5769 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5770 | 4e777442 | j_mayer | 0x00000000);
|
5771 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5772 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5773 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5774 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5775 | 4e777442 | j_mayer | 0x00000000);
|
5776 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5777 | 4e777442 | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5778 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5779 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5780 | 4e777442 | j_mayer | 0x00000000);
|
5781 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5782 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5783 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5784 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5785 | 4e777442 | j_mayer | 0x00000000);
|
5786 | 4e777442 | j_mayer | /* SPRGs */
|
5787 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5788 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5789 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5790 | 4e777442 | j_mayer | 0x00000000);
|
5791 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5792 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5793 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5794 | 4e777442 | j_mayer | 0x00000000);
|
5795 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5796 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5797 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5798 | 4e777442 | j_mayer | 0x00000000);
|
5799 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5800 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5801 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5802 | 4e777442 | j_mayer | 0x00000000);
|
5803 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5804 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5805 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5806 | 4e777442 | j_mayer | 0x00000000);
|
5807 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5808 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5809 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5810 | 4e777442 | j_mayer | 0x00000000);
|
5811 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5812 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5813 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5814 | 4e777442 | j_mayer | 0x00000000);
|
5815 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5816 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5817 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5818 | 4e777442 | j_mayer | 0x00000000);
|
5819 | 4e777442 | j_mayer | /* Memory management */
|
5820 | 4e777442 | j_mayer | gen_low_BATs(env); |
5821 | 4e777442 | j_mayer | gen_high_BATs(env); |
5822 | 4e777442 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5823 | 4e777442 | j_mayer | init_excp_7450(env); |
5824 | 4e777442 | j_mayer | env->dcache_line_size = 32;
|
5825 | 4e777442 | j_mayer | env->icache_line_size = 32;
|
5826 | 4e777442 | j_mayer | /* Allocate hardware IRQ controller */
|
5827 | 4e777442 | j_mayer | ppc6xx_irq_init(env); |
5828 | 4e777442 | j_mayer | } |
5829 | 4e777442 | j_mayer | |
5830 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
5831 | a750fc0b | j_mayer | /* PowerPC 970 */
|
5832 | 082c6681 | j_mayer | #define POWERPC_INSNS_970 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5833 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5834 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5835 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5836 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5837 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5838 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5839 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5840 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5841 | a750fc0b | j_mayer | #define POWERPC_MSRM_970 (0x900000000204FF36ULL) |
5842 | 12de9a39 | j_mayer | #define POWERPC_MMU_970 (POWERPC_MMU_64B)
|
5843 | a750fc0b | j_mayer | //#define POWERPC_EXCP_970 (POWERPC_EXCP_970)
|
5844 | a750fc0b | j_mayer | #define POWERPC_INPUT_970 (PPC_FLAGS_INPUT_970)
|
5845 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970 (bfd_mach_ppc64)
|
5846 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5847 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5848 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5849 | a750fc0b | j_mayer | |
5850 | 417bf010 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
5851 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000080 |
5852 | 417bf010 | j_mayer | #else
|
5853 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000000 |
5854 | 417bf010 | j_mayer | #endif
|
5855 | 417bf010 | j_mayer | |
5856 | 2f462816 | j_mayer | static int check_pow_970 (CPUPPCState *env) |
5857 | 2f462816 | j_mayer | { |
5858 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
5859 | 2f462816 | j_mayer | return 1; |
5860 | 2f462816 | j_mayer | |
5861 | 2f462816 | j_mayer | return 0; |
5862 | 2f462816 | j_mayer | } |
5863 | 2f462816 | j_mayer | |
5864 | a750fc0b | j_mayer | static void init_proc_970 (CPUPPCState *env) |
5865 | a750fc0b | j_mayer | { |
5866 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5867 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5868 | a750fc0b | j_mayer | /* Time base */
|
5869 | a750fc0b | j_mayer | gen_tbl(env); |
5870 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5871 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5872 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5873 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5874 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
5875 | d63001d1 | j_mayer | 0x60000000);
|
5876 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5877 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5878 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5879 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5880 | a750fc0b | j_mayer | 0x00000000);
|
5881 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5882 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5883 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5884 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5885 | a750fc0b | j_mayer | 0x00000000);
|
5886 | e57448f1 | j_mayer | /* XXX : not implemented */
|
5887 | e57448f1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
5888 | e57448f1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5889 | e57448f1 | j_mayer | &spr_read_generic, &spr_write_generic, |
5890 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
5891 | bd928eba | j_mayer | /* XXX : not implemented */
|
5892 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5893 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5894 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5895 | bd928eba | j_mayer | 0x00000000);
|
5896 | a750fc0b | j_mayer | /* Memory management */
|
5897 | a750fc0b | j_mayer | /* XXX: not correct */
|
5898 | a750fc0b | j_mayer | gen_low_BATs(env); |
5899 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5900 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
5901 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5902 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
5903 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5904 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5905 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
5906 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5907 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5908 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5909 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
5910 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5911 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5912 | 12de9a39 | j_mayer | 0xFFF00000); /* XXX: This is a hack */ |
5913 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5914 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
5915 | f2e63a42 | j_mayer | #endif
|
5916 | e1833e1f | j_mayer | init_excp_970(env); |
5917 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
5918 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
5919 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5920 | a750fc0b | j_mayer | ppc970_irq_init(env); |
5921 | a750fc0b | j_mayer | } |
5922 | a750fc0b | j_mayer | |
5923 | a750fc0b | j_mayer | /* PowerPC 970FX (aka G5) */
|
5924 | 082c6681 | j_mayer | #define POWERPC_INSNS_970FX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5925 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5926 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5927 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5928 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5929 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5930 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5931 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5932 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5933 | a750fc0b | j_mayer | #define POWERPC_MSRM_970FX (0x800000000204FF36ULL) |
5934 | 12de9a39 | j_mayer | #define POWERPC_MMU_970FX (POWERPC_MMU_64B)
|
5935 | a750fc0b | j_mayer | #define POWERPC_EXCP_970FX (POWERPC_EXCP_970)
|
5936 | a750fc0b | j_mayer | #define POWERPC_INPUT_970FX (PPC_FLAGS_INPUT_970)
|
5937 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970FX (bfd_mach_ppc64)
|
5938 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970FX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5939 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5940 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5941 | a750fc0b | j_mayer | |
5942 | 2f462816 | j_mayer | static int check_pow_970FX (CPUPPCState *env) |
5943 | 2f462816 | j_mayer | { |
5944 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
5945 | 2f462816 | j_mayer | return 1; |
5946 | 2f462816 | j_mayer | |
5947 | 2f462816 | j_mayer | return 0; |
5948 | 2f462816 | j_mayer | } |
5949 | 2f462816 | j_mayer | |
5950 | a750fc0b | j_mayer | static void init_proc_970FX (CPUPPCState *env) |
5951 | a750fc0b | j_mayer | { |
5952 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5953 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5954 | a750fc0b | j_mayer | /* Time base */
|
5955 | a750fc0b | j_mayer | gen_tbl(env); |
5956 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5957 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5958 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5959 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5960 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
5961 | d63001d1 | j_mayer | 0x60000000);
|
5962 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5963 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5964 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5965 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5966 | a750fc0b | j_mayer | 0x00000000);
|
5967 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5968 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5969 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5970 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5971 | a750fc0b | j_mayer | 0x00000000);
|
5972 | d63001d1 | j_mayer | /* XXX : not implemented */
|
5973 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
5974 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5975 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
5976 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
5977 | bd928eba | j_mayer | /* XXX : not implemented */
|
5978 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5979 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5980 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5981 | bd928eba | j_mayer | 0x00000000);
|
5982 | a750fc0b | j_mayer | /* Memory management */
|
5983 | a750fc0b | j_mayer | /* XXX: not correct */
|
5984 | a750fc0b | j_mayer | gen_low_BATs(env); |
5985 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5986 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
5987 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5988 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
5989 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5990 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5991 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
5992 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5993 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5994 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5995 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
5996 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5997 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5998 | 12de9a39 | j_mayer | 0xFFF00000); /* XXX: This is a hack */ |
5999 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6000 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
6001 | f2e63a42 | j_mayer | #endif
|
6002 | e1833e1f | j_mayer | init_excp_970(env); |
6003 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6004 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6005 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6006 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6007 | a750fc0b | j_mayer | } |
6008 | a750fc0b | j_mayer | |
6009 | a750fc0b | j_mayer | /* PowerPC 970 GX */
|
6010 | 082c6681 | j_mayer | #define POWERPC_INSNS_970GX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6011 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6012 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6013 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6014 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6015 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6016 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6017 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6018 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6019 | a750fc0b | j_mayer | #define POWERPC_MSRM_970GX (0x800000000204FF36ULL) |
6020 | 12de9a39 | j_mayer | #define POWERPC_MMU_970GX (POWERPC_MMU_64B)
|
6021 | a750fc0b | j_mayer | #define POWERPC_EXCP_970GX (POWERPC_EXCP_970)
|
6022 | a750fc0b | j_mayer | #define POWERPC_INPUT_970GX (PPC_FLAGS_INPUT_970)
|
6023 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970GX (bfd_mach_ppc64)
|
6024 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970GX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6025 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6026 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6027 | a750fc0b | j_mayer | |
6028 | 2f462816 | j_mayer | static int check_pow_970GX (CPUPPCState *env) |
6029 | 2f462816 | j_mayer | { |
6030 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
6031 | 2f462816 | j_mayer | return 1; |
6032 | 2f462816 | j_mayer | |
6033 | 2f462816 | j_mayer | return 0; |
6034 | 2f462816 | j_mayer | } |
6035 | 2f462816 | j_mayer | |
6036 | a750fc0b | j_mayer | static void init_proc_970GX (CPUPPCState *env) |
6037 | a750fc0b | j_mayer | { |
6038 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6039 | a750fc0b | j_mayer | gen_spr_7xx(env); |
6040 | a750fc0b | j_mayer | /* Time base */
|
6041 | a750fc0b | j_mayer | gen_tbl(env); |
6042 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6043 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6044 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6045 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6046 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
6047 | d63001d1 | j_mayer | 0x60000000);
|
6048 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6049 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6050 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6051 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6052 | a750fc0b | j_mayer | 0x00000000);
|
6053 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6054 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6055 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6056 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6057 | a750fc0b | j_mayer | 0x00000000);
|
6058 | d63001d1 | j_mayer | /* XXX : not implemented */
|
6059 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6060 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6061 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6062 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6063 | bd928eba | j_mayer | /* XXX : not implemented */
|
6064 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6065 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6066 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6067 | bd928eba | j_mayer | 0x00000000);
|
6068 | a750fc0b | j_mayer | /* Memory management */
|
6069 | a750fc0b | j_mayer | /* XXX: not correct */
|
6070 | a750fc0b | j_mayer | gen_low_BATs(env); |
6071 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6072 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6073 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6074 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6075 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6076 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6077 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6078 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6079 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6080 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6081 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6082 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6083 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6084 | 12de9a39 | j_mayer | 0xFFF00000); /* XXX: This is a hack */ |
6085 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6086 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
6087 | f2e63a42 | j_mayer | #endif
|
6088 | e1833e1f | j_mayer | init_excp_970(env); |
6089 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6090 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6091 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6092 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6093 | a750fc0b | j_mayer | } |
6094 | a750fc0b | j_mayer | |
6095 | 2f462816 | j_mayer | /* PowerPC 970 MP */
|
6096 | 082c6681 | j_mayer | #define POWERPC_INSNS_970MP (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6097 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6098 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6099 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6100 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6101 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6102 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6103 | 2f462816 | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6104 | 2f462816 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6105 | 2f462816 | j_mayer | #define POWERPC_MSRM_970MP (0x900000000204FF36ULL) |
6106 | 2f462816 | j_mayer | #define POWERPC_MMU_970MP (POWERPC_MMU_64B)
|
6107 | 2f462816 | j_mayer | #define POWERPC_EXCP_970MP (POWERPC_EXCP_970)
|
6108 | 2f462816 | j_mayer | #define POWERPC_INPUT_970MP (PPC_FLAGS_INPUT_970)
|
6109 | 2f462816 | j_mayer | #define POWERPC_BFDM_970MP (bfd_mach_ppc64)
|
6110 | 2f462816 | j_mayer | #define POWERPC_FLAG_970MP (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6111 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6112 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6113 | 2f462816 | j_mayer | |
6114 | 2f462816 | j_mayer | static int check_pow_970MP (CPUPPCState *env) |
6115 | 2f462816 | j_mayer | { |
6116 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x01C00000) |
6117 | 2f462816 | j_mayer | return 1; |
6118 | 2f462816 | j_mayer | |
6119 | 2f462816 | j_mayer | return 0; |
6120 | 2f462816 | j_mayer | } |
6121 | 2f462816 | j_mayer | |
6122 | 2f462816 | j_mayer | static void init_proc_970MP (CPUPPCState *env) |
6123 | 2f462816 | j_mayer | { |
6124 | 2f462816 | j_mayer | gen_spr_ne_601(env); |
6125 | 2f462816 | j_mayer | gen_spr_7xx(env); |
6126 | 2f462816 | j_mayer | /* Time base */
|
6127 | 2f462816 | j_mayer | gen_tbl(env); |
6128 | 2f462816 | j_mayer | /* Hardware implementation registers */
|
6129 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6130 | 2f462816 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6131 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6132 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_clear, |
6133 | 2f462816 | j_mayer | 0x60000000);
|
6134 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6135 | 2f462816 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6136 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6137 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6138 | 2f462816 | j_mayer | 0x00000000);
|
6139 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6140 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6141 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6142 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6143 | 2f462816 | j_mayer | 0x00000000);
|
6144 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6145 | 2f462816 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6146 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6147 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6148 | 2f462816 | j_mayer | POWERPC970_HID5_INIT); |
6149 | bd928eba | j_mayer | /* XXX : not implemented */
|
6150 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6151 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6152 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6153 | bd928eba | j_mayer | 0x00000000);
|
6154 | 2f462816 | j_mayer | /* Memory management */
|
6155 | 2f462816 | j_mayer | /* XXX: not correct */
|
6156 | 2f462816 | j_mayer | gen_low_BATs(env); |
6157 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6158 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6159 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6160 | 2f462816 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6161 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6162 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6163 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6164 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6165 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6166 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6167 | 2f462816 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6168 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6169 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6170 | 2f462816 | j_mayer | 0xFFF00000); /* XXX: This is a hack */ |
6171 | 2f462816 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6172 | 2f462816 | j_mayer | env->slb_nr = 32;
|
6173 | 2f462816 | j_mayer | #endif
|
6174 | 2f462816 | j_mayer | init_excp_970(env); |
6175 | 2f462816 | j_mayer | env->dcache_line_size = 128;
|
6176 | 2f462816 | j_mayer | env->icache_line_size = 128;
|
6177 | 2f462816 | j_mayer | /* Allocate hardware IRQ controller */
|
6178 | 2f462816 | j_mayer | ppc970_irq_init(env); |
6179 | 2f462816 | j_mayer | } |
6180 | 2f462816 | j_mayer | |
6181 | a750fc0b | j_mayer | /* PowerPC 620 */
|
6182 | 082c6681 | j_mayer | #define POWERPC_INSNS_620 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6183 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6184 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6185 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6186 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
6187 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6188 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6189 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
6190 | a750fc0b | j_mayer | PPC_64B | PPC_SLBI) |
6191 | add78955 | j_mayer | #define POWERPC_MSRM_620 (0x800000000005FF77ULL) |
6192 | add78955 | j_mayer | //#define POWERPC_MMU_620 (POWERPC_MMU_620)
|
6193 | a750fc0b | j_mayer | #define POWERPC_EXCP_620 (POWERPC_EXCP_970)
|
6194 | faadf50e | j_mayer | #define POWERPC_INPUT_620 (PPC_FLAGS_INPUT_6xx)
|
6195 | 237c0af0 | j_mayer | #define POWERPC_BFDM_620 (bfd_mach_ppc64)
|
6196 | 4018bae9 | j_mayer | #define POWERPC_FLAG_620 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
6197 | add78955 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
6198 | 2f462816 | j_mayer | #define check_pow_620 check_pow_nocheck /* Check this */ |
6199 | a750fc0b | j_mayer | |
6200 | 578bb252 | j_mayer | __attribute__ (( unused )) |
6201 | a750fc0b | j_mayer | static void init_proc_620 (CPUPPCState *env) |
6202 | a750fc0b | j_mayer | { |
6203 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6204 | a750fc0b | j_mayer | gen_spr_620(env); |
6205 | a750fc0b | j_mayer | /* Time base */
|
6206 | a750fc0b | j_mayer | gen_tbl(env); |
6207 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6208 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6209 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6210 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6211 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6212 | a750fc0b | j_mayer | 0x00000000);
|
6213 | a750fc0b | j_mayer | /* Memory management */
|
6214 | a750fc0b | j_mayer | gen_low_BATs(env); |
6215 | e1833e1f | j_mayer | init_excp_620(env); |
6216 | d63001d1 | j_mayer | env->dcache_line_size = 64;
|
6217 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
6218 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
6219 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
6220 | a750fc0b | j_mayer | } |
6221 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
6222 | a750fc0b | j_mayer | |
6223 | a750fc0b | j_mayer | /* Default 32 bits PowerPC target will be 604 */
|
6224 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC32 CPU_POWERPC_604
|
6225 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC32 POWERPC_INSNS_604
|
6226 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC32 POWERPC_MSRM_604
|
6227 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC32 POWERPC_MMU_604
|
6228 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC32 POWERPC_EXCP_604
|
6229 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC32 POWERPC_INPUT_604
|
6230 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC32 POWERPC_BFDM_604
|
6231 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC32 POWERPC_FLAG_604
|
6232 | 2f462816 | j_mayer | #define check_pow_PPC32 check_pow_604
|
6233 | 2f462816 | j_mayer | #define init_proc_PPC32 init_proc_604
|
6234 | a750fc0b | j_mayer | |
6235 | a750fc0b | j_mayer | /* Default 64 bits PowerPC target will be 970 FX */
|
6236 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC64 CPU_POWERPC_970FX
|
6237 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC64 POWERPC_INSNS_970FX
|
6238 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC64 POWERPC_MSRM_970FX
|
6239 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC64 POWERPC_MMU_970FX
|
6240 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC64 POWERPC_EXCP_970FX
|
6241 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC64 POWERPC_INPUT_970FX
|
6242 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC64 POWERPC_BFDM_970FX
|
6243 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC64 POWERPC_FLAG_970FX
|
6244 | 2f462816 | j_mayer | #define check_pow_PPC64 check_pow_970FX
|
6245 | 2f462816 | j_mayer | #define init_proc_PPC64 init_proc_970FX
|
6246 | a750fc0b | j_mayer | |
6247 | a750fc0b | j_mayer | /* Default PowerPC target will be PowerPC 32 */
|
6248 | a750fc0b | j_mayer | #if defined (TARGET_PPC64) && 0 // XXX: TODO |
6249 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64
|
6250 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64
|
6251 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64
|
6252 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64
|
6253 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64
|
6254 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC64
|
6255 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC64
|
6256 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC64
|
6257 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC64
|
6258 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC64
|
6259 | a750fc0b | j_mayer | #else
|
6260 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32
|
6261 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32
|
6262 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32
|
6263 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32
|
6264 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
|
6265 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC32
|
6266 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC32
|
6267 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC32
|
6268 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC32
|
6269 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC32
|
6270 | a750fc0b | j_mayer | #endif
|
6271 | a750fc0b | j_mayer | |
6272 | a750fc0b | j_mayer | /*****************************************************************************/
|
6273 | a750fc0b | j_mayer | /* PVR definitions for most known PowerPC */
|
6274 | a750fc0b | j_mayer | enum {
|
6275 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
6276 | a750fc0b | j_mayer | /* Generic PowerPC 401 */
|
6277 | 80d11f44 | j_mayer | #define CPU_POWERPC_401 CPU_POWERPC_401G2
|
6278 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
6279 | 80d11f44 | j_mayer | CPU_POWERPC_401A1 = 0x00210000,
|
6280 | 80d11f44 | j_mayer | CPU_POWERPC_401B2 = 0x00220000,
|
6281 | a750fc0b | j_mayer | #if 0
|
6282 | 80d11f44 | j_mayer | CPU_POWERPC_401B3 = xxx,
|
6283 | a750fc0b | j_mayer | #endif
|
6284 | 80d11f44 | j_mayer | CPU_POWERPC_401C2 = 0x00230000,
|
6285 | 80d11f44 | j_mayer | CPU_POWERPC_401D2 = 0x00240000,
|
6286 | 80d11f44 | j_mayer | CPU_POWERPC_401E2 = 0x00250000,
|
6287 | 80d11f44 | j_mayer | CPU_POWERPC_401F2 = 0x00260000,
|
6288 | 80d11f44 | j_mayer | CPU_POWERPC_401G2 = 0x00270000,
|
6289 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
6290 | a750fc0b | j_mayer | #if 0
|
6291 | 80d11f44 | j_mayer | CPU_POWERPC_401GF = xxx,
|
6292 | a750fc0b | j_mayer | #endif
|
6293 | 80d11f44 | j_mayer | #define CPU_POWERPC_IOP480 CPU_POWERPC_401B2
|
6294 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
6295 | 80d11f44 | j_mayer | CPU_POWERPC_COBRA = 0x10100000, /* XXX: 405 ? */ |
6296 | a750fc0b | j_mayer | #if 0
|
6297 | 80d11f44 | j_mayer | CPU_POWERPC_XIPCHIP = xxx,
|
6298 | a750fc0b | j_mayer | #endif
|
6299 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
6300 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
6301 | 80d11f44 | j_mayer | #define CPU_POWERPC_403 CPU_POWERPC_403GC
|
6302 | a750fc0b | j_mayer | /* PowerPC 403 microcontrollers */
|
6303 | 80d11f44 | j_mayer | CPU_POWERPC_403GA = 0x00200011,
|
6304 | 80d11f44 | j_mayer | CPU_POWERPC_403GB = 0x00200100,
|
6305 | 80d11f44 | j_mayer | CPU_POWERPC_403GC = 0x00200200,
|
6306 | 80d11f44 | j_mayer | CPU_POWERPC_403GCX = 0x00201400,
|
6307 | a750fc0b | j_mayer | #if 0
|
6308 | 80d11f44 | j_mayer | CPU_POWERPC_403GP = xxx,
|
6309 | a750fc0b | j_mayer | #endif
|
6310 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
6311 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
6312 | 80d11f44 | j_mayer | #define CPU_POWERPC_405 CPU_POWERPC_405D4
|
6313 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
6314 | a750fc0b | j_mayer | #if 0
|
6315 | 80d11f44 | j_mayer | CPU_POWERPC_405A3 = xxx,
|
6316 | a750fc0b | j_mayer | #endif
|
6317 | a750fc0b | j_mayer | #if 0
|
6318 | 80d11f44 | j_mayer | CPU_POWERPC_405A4 = xxx,
|
6319 | a750fc0b | j_mayer | #endif
|
6320 | a750fc0b | j_mayer | #if 0
|
6321 | 80d11f44 | j_mayer | CPU_POWERPC_405B3 = xxx,
|
6322 | a750fc0b | j_mayer | #endif
|
6323 | a750fc0b | j_mayer | #if 0
|
6324 | 80d11f44 | j_mayer | CPU_POWERPC_405B4 = xxx,
|
6325 | a750fc0b | j_mayer | #endif
|
6326 | a750fc0b | j_mayer | #if 0
|
6327 | 80d11f44 | j_mayer | CPU_POWERPC_405C3 = xxx,
|
6328 | a750fc0b | j_mayer | #endif
|
6329 | a750fc0b | j_mayer | #if 0
|
6330 | 80d11f44 | j_mayer | CPU_POWERPC_405C4 = xxx,
|
6331 | a750fc0b | j_mayer | #endif
|
6332 | 80d11f44 | j_mayer | CPU_POWERPC_405D2 = 0x20010000,
|
6333 | a750fc0b | j_mayer | #if 0
|
6334 | 80d11f44 | j_mayer | CPU_POWERPC_405D3 = xxx,
|
6335 | a750fc0b | j_mayer | #endif
|
6336 | 80d11f44 | j_mayer | CPU_POWERPC_405D4 = 0x41810000,
|
6337 | a750fc0b | j_mayer | #if 0
|
6338 | 80d11f44 | j_mayer | CPU_POWERPC_405D5 = xxx,
|
6339 | a750fc0b | j_mayer | #endif
|
6340 | a750fc0b | j_mayer | #if 0
|
6341 | 80d11f44 | j_mayer | CPU_POWERPC_405E4 = xxx,
|
6342 | a750fc0b | j_mayer | #endif
|
6343 | a750fc0b | j_mayer | #if 0
|
6344 | 80d11f44 | j_mayer | CPU_POWERPC_405F4 = xxx,
|
6345 | a750fc0b | j_mayer | #endif
|
6346 | a750fc0b | j_mayer | #if 0
|
6347 | 80d11f44 | j_mayer | CPU_POWERPC_405F5 = xxx,
|
6348 | a750fc0b | j_mayer | #endif
|
6349 | a750fc0b | j_mayer | #if 0
|
6350 | 80d11f44 | j_mayer | CPU_POWERPC_405F6 = xxx,
|
6351 | a750fc0b | j_mayer | #endif
|
6352 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
6353 | a750fc0b | j_mayer | /* XXX: missing 0x200108a0 */
|
6354 | 80d11f44 | j_mayer | #define CPU_POWERPC_405CR CPU_POWERPC_405CRc
|
6355 | 80d11f44 | j_mayer | CPU_POWERPC_405CRa = 0x40110041,
|
6356 | 80d11f44 | j_mayer | CPU_POWERPC_405CRb = 0x401100C5,
|
6357 | 80d11f44 | j_mayer | CPU_POWERPC_405CRc = 0x40110145,
|
6358 | 80d11f44 | j_mayer | CPU_POWERPC_405EP = 0x51210950,
|
6359 | a750fc0b | j_mayer | #if 0
|
6360 | 80d11f44 | j_mayer | CPU_POWERPC_405EXr = xxx,
|
6361 | a750fc0b | j_mayer | #endif
|
6362 | 80d11f44 | j_mayer | CPU_POWERPC_405EZ = 0x41511460, /* 0x51210950 ? */ |
6363 | a750fc0b | j_mayer | #if 0
|
6364 | 80d11f44 | j_mayer | CPU_POWERPC_405FX = xxx,
|
6365 | 80d11f44 | j_mayer | #endif
|
6366 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GP CPU_POWERPC_405GPd
|
6367 | 80d11f44 | j_mayer | CPU_POWERPC_405GPa = 0x40110000,
|
6368 | 80d11f44 | j_mayer | CPU_POWERPC_405GPb = 0x40110040,
|
6369 | 80d11f44 | j_mayer | CPU_POWERPC_405GPc = 0x40110082,
|
6370 | 80d11f44 | j_mayer | CPU_POWERPC_405GPd = 0x401100C4,
|
6371 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GPe CPU_POWERPC_405CRc
|
6372 | 80d11f44 | j_mayer | CPU_POWERPC_405GPR = 0x50910951,
|
6373 | a750fc0b | j_mayer | #if 0
|
6374 | 80d11f44 | j_mayer | CPU_POWERPC_405H = xxx,
|
6375 | a750fc0b | j_mayer | #endif
|
6376 | a750fc0b | j_mayer | #if 0
|
6377 | 80d11f44 | j_mayer | CPU_POWERPC_405L = xxx,
|
6378 | a750fc0b | j_mayer | #endif
|
6379 | 80d11f44 | j_mayer | CPU_POWERPC_405LP = 0x41F10000,
|
6380 | a750fc0b | j_mayer | #if 0
|
6381 | 80d11f44 | j_mayer | CPU_POWERPC_405PM = xxx,
|
6382 | a750fc0b | j_mayer | #endif
|
6383 | a750fc0b | j_mayer | #if 0
|
6384 | 80d11f44 | j_mayer | CPU_POWERPC_405PS = xxx,
|
6385 | a750fc0b | j_mayer | #endif
|
6386 | a750fc0b | j_mayer | #if 0
|
6387 | 80d11f44 | j_mayer | CPU_POWERPC_405S = xxx,
|
6388 | a750fc0b | j_mayer | #endif
|
6389 | a750fc0b | j_mayer | /* IBM network processors */
|
6390 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H = 0x414100C0,
|
6391 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H2 = 0x41410140,
|
6392 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405L = 0x416100C0,
|
6393 | 80d11f44 | j_mayer | CPU_POWERPC_NPE4GS3 = 0x40B10000,
|
6394 | a750fc0b | j_mayer | #if 0
|
6395 | 80d11f44 | j_mayer | CPU_POWERPC_NPCxx1 = xxx,
|
6396 | a750fc0b | j_mayer | #endif
|
6397 | a750fc0b | j_mayer | #if 0
|
6398 | 80d11f44 | j_mayer | CPU_POWERPC_NPR161 = xxx,
|
6399 | a750fc0b | j_mayer | #endif
|
6400 | a750fc0b | j_mayer | #if 0
|
6401 | 80d11f44 | j_mayer | CPU_POWERPC_LC77700 = xxx,
|
6402 | a750fc0b | j_mayer | #endif
|
6403 | a750fc0b | j_mayer | /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
|
6404 | a750fc0b | j_mayer | #if 0
|
6405 | 80d11f44 | j_mayer | CPU_POWERPC_STB01000 = xxx,
|
6406 | a750fc0b | j_mayer | #endif
|
6407 | a750fc0b | j_mayer | #if 0
|
6408 | 80d11f44 | j_mayer | CPU_POWERPC_STB01010 = xxx,
|
6409 | a750fc0b | j_mayer | #endif
|
6410 | a750fc0b | j_mayer | #if 0
|
6411 | 80d11f44 | j_mayer | CPU_POWERPC_STB0210 = xxx, /* 401B3 */
|
6412 | a750fc0b | j_mayer | #endif
|
6413 | 80d11f44 | j_mayer | CPU_POWERPC_STB03 = 0x40310000, /* 0x40130000 ? */ |
6414 | a750fc0b | j_mayer | #if 0
|
6415 | 80d11f44 | j_mayer | CPU_POWERPC_STB043 = xxx,
|
6416 | a750fc0b | j_mayer | #endif
|
6417 | a750fc0b | j_mayer | #if 0
|
6418 | 80d11f44 | j_mayer | CPU_POWERPC_STB045 = xxx,
|
6419 | a750fc0b | j_mayer | #endif
|
6420 | 80d11f44 | j_mayer | CPU_POWERPC_STB04 = 0x41810000,
|
6421 | 80d11f44 | j_mayer | CPU_POWERPC_STB25 = 0x51510950,
|
6422 | a750fc0b | j_mayer | #if 0
|
6423 | 80d11f44 | j_mayer | CPU_POWERPC_STB130 = xxx,
|
6424 | a750fc0b | j_mayer | #endif
|
6425 | a750fc0b | j_mayer | /* Xilinx cores */
|
6426 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP4 = 0x20010820,
|
6427 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP7 CPU_POWERPC_X2VP4
|
6428 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP20 = 0x20010860,
|
6429 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP50 CPU_POWERPC_X2VP20
|
6430 | a750fc0b | j_mayer | #if 0
|
6431 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10310 = xxx,
|
6432 | a750fc0b | j_mayer | #endif
|
6433 | a750fc0b | j_mayer | #if 0
|
6434 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10311 = xxx,
|
6435 | a750fc0b | j_mayer | #endif
|
6436 | a750fc0b | j_mayer | #if 0
|
6437 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10320 = xxx,
|
6438 | a750fc0b | j_mayer | #endif
|
6439 | a750fc0b | j_mayer | #if 0
|
6440 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10321 = xxx,
|
6441 | a750fc0b | j_mayer | #endif
|
6442 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
6443 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
6444 | 80d11f44 | j_mayer | #define CPU_POWERPC_440 CPU_POWERPC_440GXf
|
6445 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
6446 | a750fc0b | j_mayer | #if 0
|
6447 | 80d11f44 | j_mayer | CPU_POWERPC_440A4 = xxx,
|
6448 | a750fc0b | j_mayer | #endif
|
6449 | a750fc0b | j_mayer | #if 0
|
6450 | 80d11f44 | j_mayer | CPU_POWERPC_440A5 = xxx,
|
6451 | a750fc0b | j_mayer | #endif
|
6452 | a750fc0b | j_mayer | #if 0
|
6453 | 80d11f44 | j_mayer | CPU_POWERPC_440B4 = xxx,
|
6454 | a750fc0b | j_mayer | #endif
|
6455 | a750fc0b | j_mayer | #if 0
|
6456 | 80d11f44 | j_mayer | CPU_POWERPC_440F5 = xxx,
|
6457 | a750fc0b | j_mayer | #endif
|
6458 | a750fc0b | j_mayer | #if 0
|
6459 | 80d11f44 | j_mayer | CPU_POWERPC_440G5 = xxx,
|
6460 | a750fc0b | j_mayer | #endif
|
6461 | a750fc0b | j_mayer | #if 0
|
6462 | 80d11f44 | j_mayer | CPU_POWERPC_440H4 = xxx,
|
6463 | a750fc0b | j_mayer | #endif
|
6464 | a750fc0b | j_mayer | #if 0
|
6465 | 80d11f44 | j_mayer | CPU_POWERPC_440H6 = xxx,
|
6466 | a750fc0b | j_mayer | #endif
|
6467 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
6468 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EP CPU_POWERPC_440EPb
|
6469 | 80d11f44 | j_mayer | CPU_POWERPC_440EPa = 0x42221850,
|
6470 | 80d11f44 | j_mayer | CPU_POWERPC_440EPb = 0x422218D3,
|
6471 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GP CPU_POWERPC_440GPc
|
6472 | 80d11f44 | j_mayer | CPU_POWERPC_440GPb = 0x40120440,
|
6473 | 80d11f44 | j_mayer | CPU_POWERPC_440GPc = 0x40120481,
|
6474 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GR CPU_POWERPC_440GRa
|
6475 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GRa CPU_POWERPC_440EPb
|
6476 | 80d11f44 | j_mayer | CPU_POWERPC_440GRX = 0x200008D0,
|
6477 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EPX CPU_POWERPC_440GRX
|
6478 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GX CPU_POWERPC_440GXf
|
6479 | 80d11f44 | j_mayer | CPU_POWERPC_440GXa = 0x51B21850,
|
6480 | 80d11f44 | j_mayer | CPU_POWERPC_440GXb = 0x51B21851,
|
6481 | 80d11f44 | j_mayer | CPU_POWERPC_440GXc = 0x51B21892,
|
6482 | 80d11f44 | j_mayer | CPU_POWERPC_440GXf = 0x51B21894,
|
6483 | a750fc0b | j_mayer | #if 0
|
6484 | 80d11f44 | j_mayer | CPU_POWERPC_440S = xxx,
|
6485 | a750fc0b | j_mayer | #endif
|
6486 | 80d11f44 | j_mayer | CPU_POWERPC_440SP = 0x53221850,
|
6487 | 80d11f44 | j_mayer | CPU_POWERPC_440SP2 = 0x53221891,
|
6488 | 80d11f44 | j_mayer | CPU_POWERPC_440SPE = 0x53421890,
|
6489 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
6490 | a750fc0b | j_mayer | #if 0
|
6491 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
6492 | 80d11f44 | j_mayer | #define CPU_POWERPC_464 CPU_POWERPC_464H90
|
6493 | a750fc0b | j_mayer | #endif
|
6494 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
6495 | a750fc0b | j_mayer | #if 0
|
6496 | 80d11f44 | j_mayer | CPU_POWERPC_464H90 = xxx,
|
6497 | a750fc0b | j_mayer | #endif
|
6498 | a750fc0b | j_mayer | #if 0
|
6499 | 80d11f44 | j_mayer | CPU_POWERPC_464H90FP = xxx,
|
6500 | a750fc0b | j_mayer | #endif
|
6501 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
6502 | c3e36823 | j_mayer | /* PowerPC MPC 5xx cores (aka RCPU) */
|
6503 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5xx = 0x00020020,
|
6504 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT560 CPU_POWERPC_MPC5xx
|
6505 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC509 CPU_POWERPC_MPC5xx
|
6506 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC533 CPU_POWERPC_MPC5xx
|
6507 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC534 CPU_POWERPC_MPC5xx
|
6508 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC555 CPU_POWERPC_MPC5xx
|
6509 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC556 CPU_POWERPC_MPC5xx
|
6510 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC560 CPU_POWERPC_MPC5xx
|
6511 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC561 CPU_POWERPC_MPC5xx
|
6512 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC562 CPU_POWERPC_MPC5xx
|
6513 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC563 CPU_POWERPC_MPC5xx
|
6514 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC564 CPU_POWERPC_MPC5xx
|
6515 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC565 CPU_POWERPC_MPC5xx
|
6516 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC566 CPU_POWERPC_MPC5xx
|
6517 | c3e36823 | j_mayer | /* PowerPC MPC 8xx cores (aka PowerQUICC) */
|
6518 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8xx = 0x00500000,
|
6519 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT823 CPU_POWERPC_MPC8xx
|
6520 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC821 CPU_POWERPC_MPC8xx
|
6521 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC823 CPU_POWERPC_MPC8xx
|
6522 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC850 CPU_POWERPC_MPC8xx
|
6523 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC852T CPU_POWERPC_MPC8xx
|
6524 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC855T CPU_POWERPC_MPC8xx
|
6525 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC857 CPU_POWERPC_MPC8xx
|
6526 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC859 CPU_POWERPC_MPC8xx
|
6527 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC860 CPU_POWERPC_MPC8xx
|
6528 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC862 CPU_POWERPC_MPC8xx
|
6529 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC866 CPU_POWERPC_MPC8xx
|
6530 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC870 CPU_POWERPC_MPC8xx
|
6531 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC875 CPU_POWERPC_MPC8xx
|
6532 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC880 CPU_POWERPC_MPC8xx
|
6533 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC885 CPU_POWERPC_MPC8xx
|
6534 | c3e36823 | j_mayer | /* G2 cores (aka PowerQUICC-II) */
|
6535 | 80d11f44 | j_mayer | CPU_POWERPC_G2 = 0x00810011,
|
6536 | 80d11f44 | j_mayer | CPU_POWERPC_G2H4 = 0x80811010,
|
6537 | 80d11f44 | j_mayer | CPU_POWERPC_G2gp = 0x80821010,
|
6538 | 80d11f44 | j_mayer | CPU_POWERPC_G2ls = 0x90810010,
|
6539 | 80d11f44 | j_mayer | CPU_POWERPC_MPC603 = 0x00810100,
|
6540 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP3 = 0x00810101,
|
6541 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP4 = 0x80811014,
|
6542 | c3e36823 | j_mayer | /* G2_LE core (aka PowerQUICC-II) */
|
6543 | 80d11f44 | j_mayer | CPU_POWERPC_G2LE = 0x80820010,
|
6544 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp = 0x80822010,
|
6545 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEls = 0xA0822010,
|
6546 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp1 = 0x80822011,
|
6547 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp3 = 0x80822013,
|
6548 | 80d11f44 | j_mayer | /* MPC52xx microcontrollers */
|
6549 | c3e36823 | j_mayer | /* XXX: MPC 5121 ? */
|
6550 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC52xx CPU_POWERPC_MPC5200
|
6551 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200 CPU_POWERPC_MPC5200_v12
|
6552 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v10 CPU_POWERPC_G2LEgp1
|
6553 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v11 CPU_POWERPC_G2LEgp1
|
6554 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v12 CPU_POWERPC_G2LEgp1
|
6555 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B CPU_POWERPC_MPC5200B_v21
|
6556 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v20 CPU_POWERPC_G2LEgp1
|
6557 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v21 CPU_POWERPC_G2LEgp1
|
6558 | 80d11f44 | j_mayer | /* MPC82xx microcontrollers */
|
6559 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC82xx CPU_POWERPC_MPC8280
|
6560 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8240 CPU_POWERPC_MPC603
|
6561 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8241 CPU_POWERPC_G2_HIP4
|
6562 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8245 CPU_POWERPC_G2_HIP4
|
6563 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8247 CPU_POWERPC_G2LEgp3
|
6564 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8248 CPU_POWERPC_G2LEgp3
|
6565 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250 CPU_POWERPC_MPC8250_HiP4
|
6566 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP3 CPU_POWERPC_G2_HIP3
|
6567 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP4 CPU_POWERPC_G2_HIP4
|
6568 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255 CPU_POWERPC_MPC8255_HiP4
|
6569 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP3 CPU_POWERPC_G2_HIP3
|
6570 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP4 CPU_POWERPC_G2_HIP4
|
6571 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260 CPU_POWERPC_MPC8260_HiP4
|
6572 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP3 CPU_POWERPC_G2_HIP3
|
6573 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP4 CPU_POWERPC_G2_HIP4
|
6574 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264 CPU_POWERPC_MPC8264_HiP4
|
6575 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP3 CPU_POWERPC_G2_HIP3
|
6576 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP4 CPU_POWERPC_G2_HIP4
|
6577 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265 CPU_POWERPC_MPC8265_HiP4
|
6578 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP3 CPU_POWERPC_G2_HIP3
|
6579 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP4 CPU_POWERPC_G2_HIP4
|
6580 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266 CPU_POWERPC_MPC8266_HiP4
|
6581 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP3 CPU_POWERPC_G2_HIP3
|
6582 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP4 CPU_POWERPC_G2_HIP4
|
6583 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8270 CPU_POWERPC_G2LEgp3
|
6584 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8271 CPU_POWERPC_G2LEgp3
|
6585 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8272 CPU_POWERPC_G2LEgp3
|
6586 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8275 CPU_POWERPC_G2LEgp3
|
6587 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8280 CPU_POWERPC_G2LEgp3
|
6588 | a750fc0b | j_mayer | /* e200 family */
|
6589 | 80d11f44 | j_mayer | /* e200 cores */
|
6590 | 80d11f44 | j_mayer | #define CPU_POWERPC_e200 CPU_POWERPC_e200z6
|
6591 | a750fc0b | j_mayer | #if 0
|
6592 | 80d11f44 | j_mayer | CPU_POWERPC_e200z0 = xxx,
|
6593 | a750fc0b | j_mayer | #endif
|
6594 | a750fc0b | j_mayer | #if 0
|
6595 | 80d11f44 | j_mayer | CPU_POWERPC_e200z1 = xxx,
|
6596 | c3e36823 | j_mayer | #endif
|
6597 | c3e36823 | j_mayer | #if 0 /* ? */
|
6598 | 80d11f44 | j_mayer | CPU_POWERPC_e200z3 = 0x81120000,
|
6599 | 80d11f44 | j_mayer | #endif
|
6600 | 80d11f44 | j_mayer | CPU_POWERPC_e200z5 = 0x81000000,
|
6601 | 80d11f44 | j_mayer | CPU_POWERPC_e200z6 = 0x81120000,
|
6602 | 80d11f44 | j_mayer | /* MPC55xx microcontrollers */
|
6603 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC55xx CPU_POWERPC_MPC5567
|
6604 | 80d11f44 | j_mayer | #if 0
|
6605 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E CPU_POWERPC_MPC5514E_v1
|
6606 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v0 CPU_POWERPC_e200z0
|
6607 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v1 CPU_POWERPC_e200z1
|
6608 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G CPU_POWERPC_MPC5514G_v1
|
6609 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v0 CPU_POWERPC_e200z0
|
6610 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v1 CPU_POWERPC_e200z1
|
6611 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5515S CPU_POWERPC_e200z1
|
6612 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E CPU_POWERPC_MPC5516E_v1
|
6613 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v0 CPU_POWERPC_e200z0
|
6614 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v1 CPU_POWERPC_e200z1
|
6615 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G CPU_POWERPC_MPC5516G_v1
|
6616 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v0 CPU_POWERPC_e200z0
|
6617 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v1 CPU_POWERPC_e200z1
|
6618 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516S CPU_POWERPC_e200z1
|
6619 | 80d11f44 | j_mayer | #endif
|
6620 | 80d11f44 | j_mayer | #if 0
|
6621 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5533 CPU_POWERPC_e200z3
|
6622 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5534 CPU_POWERPC_e200z3
|
6623 | 80d11f44 | j_mayer | #endif
|
6624 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5553 CPU_POWERPC_e200z6
|
6625 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5554 CPU_POWERPC_e200z6
|
6626 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5561 CPU_POWERPC_e200z6
|
6627 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5565 CPU_POWERPC_e200z6
|
6628 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5566 CPU_POWERPC_e200z6
|
6629 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5567 CPU_POWERPC_e200z6
|
6630 | a750fc0b | j_mayer | /* e300 family */
|
6631 | 80d11f44 | j_mayer | /* e300 cores */
|
6632 | 80d11f44 | j_mayer | #define CPU_POWERPC_e300 CPU_POWERPC_e300c3
|
6633 | 80d11f44 | j_mayer | CPU_POWERPC_e300c1 = 0x00830010,
|
6634 | 80d11f44 | j_mayer | CPU_POWERPC_e300c2 = 0x00840010,
|
6635 | 80d11f44 | j_mayer | CPU_POWERPC_e300c3 = 0x00850010,
|
6636 | 80d11f44 | j_mayer | CPU_POWERPC_e300c4 = 0x00860010,
|
6637 | 80d11f44 | j_mayer | /* MPC83xx microcontrollers */
|
6638 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8313 CPU_POWERPC_e300c3
|
6639 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8313E CPU_POWERPC_e300c3
|
6640 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8314 CPU_POWERPC_e300c3
|
6641 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8314E CPU_POWERPC_e300c3
|
6642 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8315 CPU_POWERPC_e300c3
|
6643 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8315E CPU_POWERPC_e300c3
|
6644 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8321 CPU_POWERPC_e300c2
|
6645 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8321E CPU_POWERPC_e300c2
|
6646 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8323 CPU_POWERPC_e300c2
|
6647 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8323E CPU_POWERPC_e300c2
|
6648 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8343A CPU_POWERPC_e300c1
|
6649 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8343EA CPU_POWERPC_e300c1
|
6650 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347A CPU_POWERPC_e300c1
|
6651 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347AT CPU_POWERPC_e300c1
|
6652 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347AP CPU_POWERPC_e300c1
|
6653 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EA CPU_POWERPC_e300c1
|
6654 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EAT CPU_POWERPC_e300c1
|
6655 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EAP CPU_POWERPC_e300c1
|
6656 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349 CPU_POWERPC_e300c1
|
6657 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349A CPU_POWERPC_e300c1
|
6658 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349E CPU_POWERPC_e300c1
|
6659 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349EA CPU_POWERPC_e300c1
|
6660 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8358E CPU_POWERPC_e300c1
|
6661 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8360E CPU_POWERPC_e300c1
|
6662 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8377 CPU_POWERPC_e300c4
|
6663 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8377E CPU_POWERPC_e300c4
|
6664 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8378 CPU_POWERPC_e300c4
|
6665 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8378E CPU_POWERPC_e300c4
|
6666 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8379 CPU_POWERPC_e300c4
|
6667 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8379E CPU_POWERPC_e300c4
|
6668 | a750fc0b | j_mayer | /* e500 family */
|
6669 | 80d11f44 | j_mayer | /* e500 cores */
|
6670 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500 CPU_POWERPC_e500v2_v22
|
6671 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500v2 CPU_POWERPC_e500v2_v22
|
6672 | 80d11f44 | j_mayer | CPU_POWERPC_e500_v10 = 0x80200010,
|
6673 | 80d11f44 | j_mayer | CPU_POWERPC_e500_v20 = 0x80200020,
|
6674 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v10 = 0x80210010,
|
6675 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v11 = 0x80210011,
|
6676 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v20 = 0x80210020,
|
6677 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v21 = 0x80210021,
|
6678 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v22 = 0x80210022,
|
6679 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v30 = 0x80210030,
|
6680 | 80d11f44 | j_mayer | /* MPC85xx microcontrollers */
|
6681 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533 CPU_POWERPC_MPC8533_v11
|
6682 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v10 CPU_POWERPC_e500v2_v21
|
6683 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v11 CPU_POWERPC_e500v2_v22
|
6684 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E CPU_POWERPC_MPC8533E_v11
|
6685 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v10 CPU_POWERPC_e500v2_v21
|
6686 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v11 CPU_POWERPC_e500v2_v22
|
6687 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540 CPU_POWERPC_MPC8540_v21
|
6688 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540_v10 CPU_POWERPC_e500_v10
|
6689 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540_v20 CPU_POWERPC_e500_v20
|
6690 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540_v21 CPU_POWERPC_e500_v20
|
6691 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541 CPU_POWERPC_MPC8541_v11
|
6692 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541_v10 CPU_POWERPC_e500_v20
|
6693 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541_v11 CPU_POWERPC_e500_v20
|
6694 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E CPU_POWERPC_MPC8541E_v11
|
6695 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E_v10 CPU_POWERPC_e500_v20
|
6696 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E_v11 CPU_POWERPC_e500_v20
|
6697 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543 CPU_POWERPC_MPC8543_v21
|
6698 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v10 CPU_POWERPC_e500v2_v10
|
6699 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v11 CPU_POWERPC_e500v2_v11
|
6700 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v20 CPU_POWERPC_e500v2_v20
|
6701 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v21 CPU_POWERPC_e500v2_v21
|
6702 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E CPU_POWERPC_MPC8543E_v21
|
6703 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v10 CPU_POWERPC_e500v2_v10
|
6704 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v11 CPU_POWERPC_e500v2_v11
|
6705 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v20 CPU_POWERPC_e500v2_v20
|
6706 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v21 CPU_POWERPC_e500v2_v21
|
6707 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544 CPU_POWERPC_MPC8544_v11
|
6708 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v10 CPU_POWERPC_e500v2_v21
|
6709 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v11 CPU_POWERPC_e500v2_v22
|
6710 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v11 CPU_POWERPC_e500v2_v22
|
6711 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E CPU_POWERPC_MPC8544E_v11
|
6712 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v10 CPU_POWERPC_e500v2_v21
|
6713 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545 CPU_POWERPC_MPC8545_v21
|
6714 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v10 CPU_POWERPC_e500v2_v10
|
6715 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v20 CPU_POWERPC_e500v2_v20
|
6716 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v21 CPU_POWERPC_e500v2_v21
|
6717 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E CPU_POWERPC_MPC8545E_v21
|
6718 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v10 CPU_POWERPC_e500v2_v10
|
6719 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v20 CPU_POWERPC_e500v2_v20
|
6720 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v21 CPU_POWERPC_e500v2_v21
|
6721 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E CPU_POWERPC_MPC8545E_v21
|
6722 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v10 CPU_POWERPC_e500v2_v10
|
6723 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v20 CPU_POWERPC_e500v2_v20
|
6724 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v21 CPU_POWERPC_e500v2_v21
|
6725 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548 CPU_POWERPC_MPC8548_v21
|
6726 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v10 CPU_POWERPC_e500v2_v10
|
6727 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v11 CPU_POWERPC_e500v2_v11
|
6728 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v20 CPU_POWERPC_e500v2_v20
|
6729 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v21 CPU_POWERPC_e500v2_v21
|
6730 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E CPU_POWERPC_MPC8548E_v21
|
6731 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v10 CPU_POWERPC_e500v2_v10
|
6732 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v11 CPU_POWERPC_e500v2_v11
|
6733 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v20 CPU_POWERPC_e500v2_v20
|
6734 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v21 CPU_POWERPC_e500v2_v21
|
6735 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555 CPU_POWERPC_MPC8555_v11
|
6736 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v10 CPU_POWERPC_e500v2_v10
|
6737 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v11 CPU_POWERPC_e500v2_v11
|
6738 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E CPU_POWERPC_MPC8555E_v11
|
6739 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v10 CPU_POWERPC_e500v2_v10
|
6740 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v11 CPU_POWERPC_e500v2_v11
|
6741 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560 CPU_POWERPC_MPC8560_v21
|
6742 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v10 CPU_POWERPC_e500v2_v10
|
6743 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v20 CPU_POWERPC_e500v2_v20
|
6744 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v21 CPU_POWERPC_e500v2_v21
|
6745 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567 CPU_POWERPC_e500v2_v22
|
6746 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567E CPU_POWERPC_e500v2_v22
|
6747 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568 CPU_POWERPC_e500v2_v22
|
6748 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568E CPU_POWERPC_e500v2_v22
|
6749 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572 CPU_POWERPC_e500v2_v30
|
6750 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572E CPU_POWERPC_e500v2_v30
|
6751 | a750fc0b | j_mayer | /* e600 family */
|
6752 | 80d11f44 | j_mayer | /* e600 cores */
|
6753 | 80d11f44 | j_mayer | CPU_POWERPC_e600 = 0x80040010,
|
6754 | 80d11f44 | j_mayer | /* MPC86xx microcontrollers */
|
6755 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8610 CPU_POWERPC_e600
|
6756 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641 CPU_POWERPC_e600
|
6757 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641D CPU_POWERPC_e600
|
6758 | a750fc0b | j_mayer | /* PowerPC 6xx cores */
|
6759 | 80d11f44 | j_mayer | #define CPU_POWERPC_601 CPU_POWERPC_601_v2
|
6760 | 80d11f44 | j_mayer | CPU_POWERPC_601_v0 = 0x00010001,
|
6761 | 80d11f44 | j_mayer | CPU_POWERPC_601_v1 = 0x00010001,
|
6762 | bd928eba | j_mayer | #define CPU_POWERPC_601v CPU_POWERPC_601_v2
|
6763 | 80d11f44 | j_mayer | CPU_POWERPC_601_v2 = 0x00010002,
|
6764 | 80d11f44 | j_mayer | CPU_POWERPC_602 = 0x00050100,
|
6765 | 80d11f44 | j_mayer | CPU_POWERPC_603 = 0x00030100,
|
6766 | 80d11f44 | j_mayer | #define CPU_POWERPC_603E CPU_POWERPC_603E_v41
|
6767 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v11 = 0x00060101,
|
6768 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v12 = 0x00060102,
|
6769 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v13 = 0x00060103,
|
6770 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v14 = 0x00060104,
|
6771 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v22 = 0x00060202,
|
6772 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v3 = 0x00060300,
|
6773 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v4 = 0x00060400,
|
6774 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v41 = 0x00060401,
|
6775 | 80d11f44 | j_mayer | CPU_POWERPC_603E7t = 0x00071201,
|
6776 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v = 0x00070100,
|
6777 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v1 = 0x00070101,
|
6778 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v2 = 0x00070201,
|
6779 | 80d11f44 | j_mayer | CPU_POWERPC_603E7 = 0x00070200,
|
6780 | 80d11f44 | j_mayer | CPU_POWERPC_603P = 0x00070000,
|
6781 | 80d11f44 | j_mayer | #define CPU_POWERPC_603R CPU_POWERPC_603E7t
|
6782 | c3e36823 | j_mayer | /* XXX: missing 0x00040303 (604) */
|
6783 | 80d11f44 | j_mayer | CPU_POWERPC_604 = 0x00040103,
|
6784 | 80d11f44 | j_mayer | #define CPU_POWERPC_604E CPU_POWERPC_604E_v24
|
6785 | c3e36823 | j_mayer | /* XXX: missing 0x00091203 */
|
6786 | c3e36823 | j_mayer | /* XXX: missing 0x00092110 */
|
6787 | c3e36823 | j_mayer | /* XXX: missing 0x00092120 */
|
6788 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v10 = 0x00090100,
|
6789 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v22 = 0x00090202,
|
6790 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v24 = 0x00090204,
|
6791 | c3e36823 | j_mayer | /* XXX: missing 0x000a0100 */
|
6792 | c3e36823 | j_mayer | /* XXX: missing 0x00093102 */
|
6793 | 80d11f44 | j_mayer | CPU_POWERPC_604R = 0x000a0101,
|
6794 | a750fc0b | j_mayer | #if 0
|
6795 | 80d11f44 | j_mayer | CPU_POWERPC_604EV = xxx, /* XXX: same as 604R ? */
|
6796 | a750fc0b | j_mayer | #endif
|
6797 | a750fc0b | j_mayer | /* PowerPC 740/750 cores (aka G3) */
|
6798 | a750fc0b | j_mayer | /* XXX: missing 0x00084202 */
|
6799 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x0 CPU_POWERPC_7x0_v31
|
6800 | bd928eba | j_mayer | CPU_POWERPC_7x0_v10 = 0x00080100,
|
6801 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v20 = 0x00080200,
|
6802 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v21 = 0x00080201,
|
6803 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v22 = 0x00080202,
|
6804 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v30 = 0x00080300,
|
6805 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v31 = 0x00080301,
|
6806 | 80d11f44 | j_mayer | CPU_POWERPC_740E = 0x00080100,
|
6807 | bd928eba | j_mayer | CPU_POWERPC_750E = 0x00080200,
|
6808 | 80d11f44 | j_mayer | CPU_POWERPC_7x0P = 0x10080000,
|
6809 | a750fc0b | j_mayer | /* XXX: missing 0x00087010 (CL ?) */
|
6810 | bd928eba | j_mayer | #define CPU_POWERPC_750CL CPU_POWERPC_750CL_v20
|
6811 | bd928eba | j_mayer | CPU_POWERPC_750CL_v10 = 0x00087200,
|
6812 | bd928eba | j_mayer | CPU_POWERPC_750CL_v20 = 0x00087210, /* aka rev E */ |
6813 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CX CPU_POWERPC_750CX_v22
|
6814 | bd928eba | j_mayer | CPU_POWERPC_750CX_v10 = 0x00082100,
|
6815 | bd928eba | j_mayer | CPU_POWERPC_750CX_v20 = 0x00082200,
|
6816 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v21 = 0x00082201,
|
6817 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v22 = 0x00082202,
|
6818 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CXE CPU_POWERPC_750CXE_v31b
|
6819 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v21 = 0x00082211,
|
6820 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v22 = 0x00082212,
|
6821 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v23 = 0x00082213,
|
6822 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24 = 0x00082214,
|
6823 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24b = 0x00083214,
|
6824 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v30 = 0x00082310,
|
6825 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v31 = 0x00082311,
|
6826 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v31b = 0x00083311,
|
6827 | 80d11f44 | j_mayer | CPU_POWERPC_750CXR = 0x00083410,
|
6828 | bd928eba | j_mayer | CPU_POWERPC_750FL = 0x70000203,
|
6829 | 80d11f44 | j_mayer | #define CPU_POWERPC_750FX CPU_POWERPC_750FX_v23
|
6830 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v10 = 0x70000100,
|
6831 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v20 = 0x70000200,
|
6832 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v21 = 0x70000201,
|
6833 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v22 = 0x70000202,
|
6834 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v23 = 0x70000203,
|
6835 | 80d11f44 | j_mayer | CPU_POWERPC_750GL = 0x70020102,
|
6836 | 80d11f44 | j_mayer | #define CPU_POWERPC_750GX CPU_POWERPC_750GX_v12
|
6837 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v10 = 0x70020100,
|
6838 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v11 = 0x70020101,
|
6839 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v12 = 0x70020102,
|
6840 | 80d11f44 | j_mayer | #define CPU_POWERPC_750L CPU_POWERPC_750L_v32 /* Aka LoneStar */ |
6841 | bd928eba | j_mayer | CPU_POWERPC_750L_v20 = 0x00088200,
|
6842 | bd928eba | j_mayer | CPU_POWERPC_750L_v21 = 0x00088201,
|
6843 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v22 = 0x00088202,
|
6844 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v30 = 0x00088300,
|
6845 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v32 = 0x00088302,
|
6846 | a750fc0b | j_mayer | /* PowerPC 745/755 cores */
|
6847 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x5 CPU_POWERPC_7x5_v28
|
6848 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v10 = 0x00083100,
|
6849 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v11 = 0x00083101,
|
6850 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v20 = 0x00083200,
|
6851 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v21 = 0x00083201,
|
6852 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v22 = 0x00083202, /* aka D */ |
6853 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v23 = 0x00083203, /* aka E */ |
6854 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v24 = 0x00083204,
|
6855 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v25 = 0x00083205,
|
6856 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v26 = 0x00083206,
|
6857 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v27 = 0x00083207,
|
6858 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v28 = 0x00083208,
|
6859 | a750fc0b | j_mayer | #if 0
|
6860 | 80d11f44 | j_mayer | CPU_POWERPC_7x5P = xxx,
|
6861 | a750fc0b | j_mayer | #endif
|
6862 | a750fc0b | j_mayer | /* PowerPC 74xx cores (aka G4) */
|
6863 | a750fc0b | j_mayer | /* XXX: missing 0x000C1101 */
|
6864 | 80d11f44 | j_mayer | #define CPU_POWERPC_7400 CPU_POWERPC_7400_v29
|
6865 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v10 = 0x000C0100,
|
6866 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v11 = 0x000C0101,
|
6867 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v20 = 0x000C0200,
|
6868 | 4e777442 | j_mayer | CPU_POWERPC_7400_v21 = 0x000C0201,
|
6869 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v22 = 0x000C0202,
|
6870 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v26 = 0x000C0206,
|
6871 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v27 = 0x000C0207,
|
6872 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v28 = 0x000C0208,
|
6873 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v29 = 0x000C0209,
|
6874 | 80d11f44 | j_mayer | #define CPU_POWERPC_7410 CPU_POWERPC_7410_v14
|
6875 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v10 = 0x800C1100,
|
6876 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v11 = 0x800C1101,
|
6877 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v12 = 0x800C1102, /* aka C */ |
6878 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v13 = 0x800C1103, /* aka D */ |
6879 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v14 = 0x800C1104, /* aka E */ |
6880 | 80d11f44 | j_mayer | #define CPU_POWERPC_7448 CPU_POWERPC_7448_v21
|
6881 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v10 = 0x80040100,
|
6882 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v11 = 0x80040101,
|
6883 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v20 = 0x80040200,
|
6884 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v21 = 0x80040201,
|
6885 | 80d11f44 | j_mayer | #define CPU_POWERPC_7450 CPU_POWERPC_7450_v21
|
6886 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v10 = 0x80000100,
|
6887 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v11 = 0x80000101,
|
6888 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v12 = 0x80000102,
|
6889 | 4e777442 | j_mayer | CPU_POWERPC_7450_v20 = 0x80000200, /* aka A, B, C, D: 2.04 */ |
6890 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v21 = 0x80000201, /* aka E */ |
6891 | 4e777442 | j_mayer | #define CPU_POWERPC_74x1 CPU_POWERPC_74x1_v23
|
6892 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v23 = 0x80000203, /* aka G: 2.3 */ |
6893 | 4e777442 | j_mayer | /* XXX: this entry might be a bug in some documentation */
|
6894 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v210 = 0x80000210, /* aka G: 2.3 ? */ |
6895 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x5 CPU_POWERPC_74x5_v32
|
6896 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v10 = 0x80010100,
|
6897 | c3e36823 | j_mayer | /* XXX: missing 0x80010200 */
|
6898 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v21 = 0x80010201, /* aka C: 2.1 */ |
6899 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v32 = 0x80010302,
|
6900 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v33 = 0x80010303, /* aka F: 3.3 */ |
6901 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v34 = 0x80010304, /* aka G: 3.4 */ |
6902 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x7 CPU_POWERPC_74x7_v12
|
6903 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v10 = 0x80020100, /* aka A: 1.0 */ |
6904 | 082c6681 | j_mayer | CPU_POWERPC_74x7_v11 = 0x80020101, /* aka B: 1.1 */ |
6905 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v12 = 0x80020102, /* aka C: 1.2 */ |
6906 | 082c6681 | j_mayer | #define CPU_POWERPC_74x7A CPU_POWERPC_74x7A_v12
|
6907 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v10 = 0x80030100, /* aka A: 1.0 */ |
6908 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v11 = 0x80030101, /* aka B: 1.1 */ |
6909 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v12 = 0x80030102, /* aka C: 1.2 */ |
6910 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
6911 | 00af685f | j_mayer | #if defined(TARGET_PPC64)
|
6912 | 80d11f44 | j_mayer | CPU_POWERPC_620 = 0x00140000,
|
6913 | 80d11f44 | j_mayer | CPU_POWERPC_630 = 0x00400000,
|
6914 | 80d11f44 | j_mayer | CPU_POWERPC_631 = 0x00410104,
|
6915 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4 = 0x00350000,
|
6916 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4P = 0x00380000,
|
6917 | c3e36823 | j_mayer | /* XXX: missing 0x003A0201 */
|
6918 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5 = 0x003A0203,
|
6919 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GR CPU_POWERPC_POWER5
|
6920 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5P = 0x003B0000,
|
6921 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GS CPU_POWERPC_POWER5P
|
6922 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6 = 0x003E0000,
|
6923 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6_5 = 0x0F000001, /* POWER6 in POWER5 mode */ |
6924 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6A = 0x0F000002,
|
6925 | 80d11f44 | j_mayer | CPU_POWERPC_970 = 0x00390202,
|
6926 | 80d11f44 | j_mayer | #define CPU_POWERPC_970FX CPU_POWERPC_970FX_v31
|
6927 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v10 = 0x00391100,
|
6928 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v20 = 0x003C0200,
|
6929 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v21 = 0x003C0201,
|
6930 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v30 = 0x003C0300,
|
6931 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v31 = 0x003C0301,
|
6932 | 80d11f44 | j_mayer | CPU_POWERPC_970GX = 0x00450000,
|
6933 | 80d11f44 | j_mayer | #define CPU_POWERPC_970MP CPU_POWERPC_970MP_v11
|
6934 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v10 = 0x00440100,
|
6935 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v11 = 0x00440101,
|
6936 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL CPU_POWERPC_CELL_v32
|
6937 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v10 = 0x00700100,
|
6938 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v20 = 0x00700400,
|
6939 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v30 = 0x00700500,
|
6940 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v31 = 0x00700501,
|
6941 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL_v32 CPU_POWERPC_CELL_v31
|
6942 | 80d11f44 | j_mayer | CPU_POWERPC_RS64 = 0x00330000,
|
6943 | 80d11f44 | j_mayer | CPU_POWERPC_RS64II = 0x00340000,
|
6944 | 80d11f44 | j_mayer | CPU_POWERPC_RS64III = 0x00360000,
|
6945 | 80d11f44 | j_mayer | CPU_POWERPC_RS64IV = 0x00370000,
|
6946 | 00af685f | j_mayer | #endif /* defined(TARGET_PPC64) */ |
6947 | a750fc0b | j_mayer | /* Original POWER */
|
6948 | a750fc0b | j_mayer | /* XXX: should be POWER (RIOS), RSC3308, RSC4608,
|
6949 | a750fc0b | j_mayer | * POWER2 (RIOS2) & RSC2 (P2SC) here
|
6950 | a750fc0b | j_mayer | */
|
6951 | a750fc0b | j_mayer | #if 0
|
6952 | 80d11f44 | j_mayer | CPU_POWER = xxx, /* 0x20000 ? 0x30000 for RSC ? */
|
6953 | a750fc0b | j_mayer | #endif
|
6954 | a750fc0b | j_mayer | #if 0
|
6955 | 80d11f44 | j_mayer | CPU_POWER2 = xxx, /* 0x40000 ? */
|
6956 | a750fc0b | j_mayer | #endif
|
6957 | a750fc0b | j_mayer | /* PA Semi core */
|
6958 | 80d11f44 | j_mayer | CPU_POWERPC_PA6T = 0x00900000,
|
6959 | a750fc0b | j_mayer | }; |
6960 | a750fc0b | j_mayer | |
6961 | a750fc0b | j_mayer | /* System version register (used on MPC 8xxx) */
|
6962 | a750fc0b | j_mayer | enum {
|
6963 | 80d11f44 | j_mayer | POWERPC_SVR_NONE = 0x00000000,
|
6964 | 80d11f44 | j_mayer | #define POWERPC_SVR_52xx POWERPC_SVR_5200
|
6965 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200 POWERPC_SVR_5200_v12
|
6966 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v10 = 0x80110010,
|
6967 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v11 = 0x80110011,
|
6968 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v12 = 0x80110012,
|
6969 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200B POWERPC_SVR_5200B_v21
|
6970 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v20 = 0x80110020,
|
6971 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v21 = 0x80110021,
|
6972 | 80d11f44 | j_mayer | #define POWERPC_SVR_55xx POWERPC_SVR_5567
|
6973 | c3e36823 | j_mayer | #if 0
|
6974 | 80d11f44 | j_mayer | POWERPC_SVR_5533 = xxx,
|
6975 | c3e36823 | j_mayer | #endif
|
6976 | c3e36823 | j_mayer | #if 0
|
6977 | 80d11f44 | j_mayer | POWERPC_SVR_5534 = xxx,
|
6978 | c3e36823 | j_mayer | #endif
|
6979 | c3e36823 | j_mayer | #if 0
|
6980 | 80d11f44 | j_mayer | POWERPC_SVR_5553 = xxx,
|
6981 | c3e36823 | j_mayer | #endif
|
6982 | c3e36823 | j_mayer | #if 0
|
6983 | 80d11f44 | j_mayer | POWERPC_SVR_5554 = xxx,
|
6984 | c3e36823 | j_mayer | #endif
|
6985 | c3e36823 | j_mayer | #if 0
|
6986 | 80d11f44 | j_mayer | POWERPC_SVR_5561 = xxx,
|
6987 | c3e36823 | j_mayer | #endif
|
6988 | c3e36823 | j_mayer | #if 0
|
6989 | 80d11f44 | j_mayer | POWERPC_SVR_5565 = xxx,
|
6990 | c3e36823 | j_mayer | #endif
|
6991 | c3e36823 | j_mayer | #if 0
|
6992 | 80d11f44 | j_mayer | POWERPC_SVR_5566 = xxx,
|
6993 | c3e36823 | j_mayer | #endif
|
6994 | c3e36823 | j_mayer | #if 0
|
6995 | 80d11f44 | j_mayer | POWERPC_SVR_5567 = xxx,
|
6996 | c3e36823 | j_mayer | #endif
|
6997 | c3e36823 | j_mayer | #if 0
|
6998 | 80d11f44 | j_mayer | POWERPC_SVR_8313 = xxx,
|
6999 | c3e36823 | j_mayer | #endif
|
7000 | c3e36823 | j_mayer | #if 0
|
7001 | 80d11f44 | j_mayer | POWERPC_SVR_8313E = xxx,
|
7002 | c3e36823 | j_mayer | #endif
|
7003 | c3e36823 | j_mayer | #if 0
|
7004 | 80d11f44 | j_mayer | POWERPC_SVR_8314 = xxx,
|
7005 | c3e36823 | j_mayer | #endif
|
7006 | c3e36823 | j_mayer | #if 0
|
7007 | 80d11f44 | j_mayer | POWERPC_SVR_8314E = xxx,
|
7008 | c3e36823 | j_mayer | #endif
|
7009 | c3e36823 | j_mayer | #if 0
|
7010 | 80d11f44 | j_mayer | POWERPC_SVR_8315 = xxx,
|
7011 | c3e36823 | j_mayer | #endif
|
7012 | c3e36823 | j_mayer | #if 0
|
7013 | 80d11f44 | j_mayer | POWERPC_SVR_8315E = xxx,
|
7014 | c3e36823 | j_mayer | #endif
|
7015 | c3e36823 | j_mayer | #if 0
|
7016 | 80d11f44 | j_mayer | POWERPC_SVR_8321 = xxx,
|
7017 | c3e36823 | j_mayer | #endif
|
7018 | c3e36823 | j_mayer | #if 0
|
7019 | 80d11f44 | j_mayer | POWERPC_SVR_8321E = xxx,
|
7020 | c3e36823 | j_mayer | #endif
|
7021 | c3e36823 | j_mayer | #if 0
|
7022 | 80d11f44 | j_mayer | POWERPC_SVR_8323 = xxx,
|
7023 | c3e36823 | j_mayer | #endif
|
7024 | c3e36823 | j_mayer | #if 0
|
7025 | 80d11f44 | j_mayer | POWERPC_SVR_8323E = xxx,
|
7026 | 80d11f44 | j_mayer | #endif
|
7027 | 80d11f44 | j_mayer | POWERPC_SVR_8343A = 0x80570030,
|
7028 | 80d11f44 | j_mayer | POWERPC_SVR_8343EA = 0x80560030,
|
7029 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347A POWERPC_SVR_8347AT
|
7030 | 80d11f44 | j_mayer | POWERPC_SVR_8347AP = 0x80550030, /* PBGA package */ |
7031 | 80d11f44 | j_mayer | POWERPC_SVR_8347AT = 0x80530030, /* TBGA package */ |
7032 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347EA POWERPC_SVR_8347EAT
|
7033 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAP = 0x80540030, /* PBGA package */ |
7034 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAT = 0x80520030, /* TBGA package */ |
7035 | 80d11f44 | j_mayer | POWERPC_SVR_8349 = 0x80510010,
|
7036 | 80d11f44 | j_mayer | POWERPC_SVR_8349A = 0x80510030,
|
7037 | 80d11f44 | j_mayer | POWERPC_SVR_8349E = 0x80500010,
|
7038 | 80d11f44 | j_mayer | POWERPC_SVR_8349EA = 0x80500030,
|
7039 | c3e36823 | j_mayer | #if 0
|
7040 | 80d11f44 | j_mayer | POWERPC_SVR_8358E = xxx,
|
7041 | c3e36823 | j_mayer | #endif
|
7042 | c3e36823 | j_mayer | #if 0
|
7043 | 80d11f44 | j_mayer | POWERPC_SVR_8360E = xxx,
|
7044 | 80d11f44 | j_mayer | #endif
|
7045 | 80d11f44 | j_mayer | #define POWERPC_SVR_E500 0x40000000 |
7046 | 80d11f44 | j_mayer | POWERPC_SVR_8377 = 0x80C70010 | POWERPC_SVR_E500,
|
7047 | 80d11f44 | j_mayer | POWERPC_SVR_8377E = 0x80C60010 | POWERPC_SVR_E500,
|
7048 | 80d11f44 | j_mayer | POWERPC_SVR_8378 = 0x80C50010 | POWERPC_SVR_E500,
|
7049 | 80d11f44 | j_mayer | POWERPC_SVR_8378E = 0x80C40010 | POWERPC_SVR_E500,
|
7050 | 80d11f44 | j_mayer | POWERPC_SVR_8379 = 0x80C30010 | POWERPC_SVR_E500,
|
7051 | 80d11f44 | j_mayer | POWERPC_SVR_8379E = 0x80C00010 | POWERPC_SVR_E500,
|
7052 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533 POWERPC_SVR_8533_v11
|
7053 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v10 = 0x80340010 | POWERPC_SVR_E500,
|
7054 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v11 = 0x80340011 | POWERPC_SVR_E500,
|
7055 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533E POWERPC_SVR_8533E_v11
|
7056 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v10 = 0x803C0010 | POWERPC_SVR_E500,
|
7057 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v11 = 0x803C0011 | POWERPC_SVR_E500,
|
7058 | 80d11f44 | j_mayer | #define POWERPC_SVR_8540 POWERPC_SVR_8540_v21
|
7059 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v10 = 0x80300010 | POWERPC_SVR_E500,
|
7060 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v20 = 0x80300020 | POWERPC_SVR_E500,
|
7061 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v21 = 0x80300021 | POWERPC_SVR_E500,
|
7062 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541 POWERPC_SVR_8541_v11
|
7063 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v10 = 0x80720010 | POWERPC_SVR_E500,
|
7064 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v11 = 0x80720011 | POWERPC_SVR_E500,
|
7065 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541E POWERPC_SVR_8541E_v11
|
7066 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v10 = 0x807A0010 | POWERPC_SVR_E500,
|
7067 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v11 = 0x807A0011 | POWERPC_SVR_E500,
|
7068 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543 POWERPC_SVR_8543_v21
|
7069 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v10 = 0x80320010 | POWERPC_SVR_E500,
|
7070 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v11 = 0x80320011 | POWERPC_SVR_E500,
|
7071 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v20 = 0x80320020 | POWERPC_SVR_E500,
|
7072 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v21 = 0x80320021 | POWERPC_SVR_E500,
|
7073 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543E POWERPC_SVR_8543E_v21
|
7074 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v10 = 0x803A0010 | POWERPC_SVR_E500,
|
7075 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v11 = 0x803A0011 | POWERPC_SVR_E500,
|
7076 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v20 = 0x803A0020 | POWERPC_SVR_E500,
|
7077 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v21 = 0x803A0021 | POWERPC_SVR_E500,
|
7078 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544 POWERPC_SVR_8544_v11
|
7079 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v10 = 0x80340110 | POWERPC_SVR_E500,
|
7080 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v11 = 0x80340111 | POWERPC_SVR_E500,
|
7081 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544E POWERPC_SVR_8544E_v11
|
7082 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v10 = 0x803C0110 | POWERPC_SVR_E500,
|
7083 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v11 = 0x803C0111 | POWERPC_SVR_E500,
|
7084 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545 POWERPC_SVR_8545_v21
|
7085 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v20 = 0x80310220 | POWERPC_SVR_E500,
|
7086 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v21 = 0x80310221 | POWERPC_SVR_E500,
|
7087 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545E POWERPC_SVR_8545E_v21
|
7088 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v20 = 0x80390220 | POWERPC_SVR_E500,
|
7089 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v21 = 0x80390221 | POWERPC_SVR_E500,
|
7090 | 80d11f44 | j_mayer | #define POWERPC_SVR_8547E POWERPC_SVR_8547E_v21
|
7091 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v20 = 0x80390120 | POWERPC_SVR_E500,
|
7092 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v21 = 0x80390121 | POWERPC_SVR_E500,
|
7093 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548 POWERPC_SVR_8548_v21
|
7094 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v10 = 0x80310010 | POWERPC_SVR_E500,
|
7095 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v11 = 0x80310011 | POWERPC_SVR_E500,
|
7096 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v20 = 0x80310020 | POWERPC_SVR_E500,
|
7097 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v21 = 0x80310021 | POWERPC_SVR_E500,
|
7098 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548E POWERPC_SVR_8548E_v21
|
7099 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v10 = 0x80390010 | POWERPC_SVR_E500,
|
7100 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v11 = 0x80390011 | POWERPC_SVR_E500,
|
7101 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v20 = 0x80390020 | POWERPC_SVR_E500,
|
7102 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v21 = 0x80390021 | POWERPC_SVR_E500,
|
7103 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555 POWERPC_SVR_8555_v11
|
7104 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v10 = 0x80710010 | POWERPC_SVR_E500,
|
7105 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v11 = 0x80710011 | POWERPC_SVR_E500,
|
7106 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555E POWERPC_SVR_8555_v11
|
7107 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v10 = 0x80790010 | POWERPC_SVR_E500,
|
7108 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v11 = 0x80790011 | POWERPC_SVR_E500,
|
7109 | 80d11f44 | j_mayer | #define POWERPC_SVR_8560 POWERPC_SVR_8560_v21
|
7110 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v10 = 0x80700010 | POWERPC_SVR_E500,
|
7111 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v20 = 0x80700020 | POWERPC_SVR_E500,
|
7112 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v21 = 0x80700021 | POWERPC_SVR_E500,
|
7113 | 80d11f44 | j_mayer | POWERPC_SVR_8567 = 0x80750111 | POWERPC_SVR_E500,
|
7114 | 80d11f44 | j_mayer | POWERPC_SVR_8567E = 0x807D0111 | POWERPC_SVR_E500,
|
7115 | 80d11f44 | j_mayer | POWERPC_SVR_8568 = 0x80750011 | POWERPC_SVR_E500,
|
7116 | 80d11f44 | j_mayer | POWERPC_SVR_8568E = 0x807D0011 | POWERPC_SVR_E500,
|
7117 | 80d11f44 | j_mayer | POWERPC_SVR_8572 = 0x80E00010 | POWERPC_SVR_E500,
|
7118 | 80d11f44 | j_mayer | POWERPC_SVR_8572E = 0x80E80010 | POWERPC_SVR_E500,
|
7119 | c3e36823 | j_mayer | #if 0
|
7120 | 80d11f44 | j_mayer | POWERPC_SVR_8610 = xxx,
|
7121 | c3e36823 | j_mayer | #endif
|
7122 | 80d11f44 | j_mayer | POWERPC_SVR_8641 = 0x80900021,
|
7123 | 80d11f44 | j_mayer | POWERPC_SVR_8641D = 0x80900121,
|
7124 | a750fc0b | j_mayer | }; |
7125 | a750fc0b | j_mayer | |
7126 | 3fc6c082 | bellard | /*****************************************************************************/
|
7127 | a750fc0b | j_mayer | /* PowerPC CPU definitions */
|
7128 | 80d11f44 | j_mayer | #define POWERPC_DEF_SVR(_name, _pvr, _svr, _type) \
|
7129 | a750fc0b | j_mayer | { \ |
7130 | a750fc0b | j_mayer | .name = _name, \ |
7131 | a750fc0b | j_mayer | .pvr = _pvr, \ |
7132 | 80d11f44 | j_mayer | .svr = _svr, \ |
7133 | a750fc0b | j_mayer | .insns_flags = glue(POWERPC_INSNS_,_type), \ |
7134 | a750fc0b | j_mayer | .msr_mask = glue(POWERPC_MSRM_,_type), \ |
7135 | a750fc0b | j_mayer | .mmu_model = glue(POWERPC_MMU_,_type), \ |
7136 | a750fc0b | j_mayer | .excp_model = glue(POWERPC_EXCP_,_type), \ |
7137 | a750fc0b | j_mayer | .bus_model = glue(POWERPC_INPUT_,_type), \ |
7138 | 237c0af0 | j_mayer | .bfd_mach = glue(POWERPC_BFDM_,_type), \ |
7139 | d26bfc9a | j_mayer | .flags = glue(POWERPC_FLAG_,_type), \ |
7140 | a750fc0b | j_mayer | .init_proc = &glue(init_proc_,_type), \ |
7141 | 2f462816 | j_mayer | .check_pow = &glue(check_pow_,_type), \ |
7142 | a750fc0b | j_mayer | } |
7143 | 80d11f44 | j_mayer | #define POWERPC_DEF(_name, _pvr, _type) \
|
7144 | 80d11f44 | j_mayer | POWERPC_DEF_SVR(_name, _pvr, POWERPC_SVR_NONE, _type) |
7145 | a750fc0b | j_mayer | |
7146 | ee4e83ed | j_mayer | static const ppc_def_t ppc_defs[] = { |
7147 | a750fc0b | j_mayer | /* Embedded PowerPC */
|
7148 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
7149 | 2662a059 | j_mayer | /* Generic PowerPC 401 */
|
7150 | 80d11f44 | j_mayer | POWERPC_DEF("401", CPU_POWERPC_401, 401), |
7151 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
7152 | 2662a059 | j_mayer | /* PowerPC 401A1 */
|
7153 | 80d11f44 | j_mayer | POWERPC_DEF("401A1", CPU_POWERPC_401A1, 401), |
7154 | a750fc0b | j_mayer | /* PowerPC 401B2 */
|
7155 | 80d11f44 | j_mayer | POWERPC_DEF("401B2", CPU_POWERPC_401B2, 401x2), |
7156 | 2662a059 | j_mayer | #if defined (TODO)
|
7157 | a750fc0b | j_mayer | /* PowerPC 401B3 */
|
7158 | 80d11f44 | j_mayer | POWERPC_DEF("401B3", CPU_POWERPC_401B3, 401x3), |
7159 | a750fc0b | j_mayer | #endif
|
7160 | a750fc0b | j_mayer | /* PowerPC 401C2 */
|
7161 | 80d11f44 | j_mayer | POWERPC_DEF("401C2", CPU_POWERPC_401C2, 401x2), |
7162 | a750fc0b | j_mayer | /* PowerPC 401D2 */
|
7163 | 80d11f44 | j_mayer | POWERPC_DEF("401D2", CPU_POWERPC_401D2, 401x2), |
7164 | a750fc0b | j_mayer | /* PowerPC 401E2 */
|
7165 | 80d11f44 | j_mayer | POWERPC_DEF("401E2", CPU_POWERPC_401E2, 401x2), |
7166 | a750fc0b | j_mayer | /* PowerPC 401F2 */
|
7167 | 80d11f44 | j_mayer | POWERPC_DEF("401F2", CPU_POWERPC_401F2, 401x2), |
7168 | a750fc0b | j_mayer | /* PowerPC 401G2 */
|
7169 | a750fc0b | j_mayer | /* XXX: to be checked */
|
7170 | 80d11f44 | j_mayer | POWERPC_DEF("401G2", CPU_POWERPC_401G2, 401x2), |
7171 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
7172 | 2662a059 | j_mayer | #if defined (TODO)
|
7173 | a750fc0b | j_mayer | /* PowerPC 401GF */
|
7174 | 80d11f44 | j_mayer | POWERPC_DEF("401GF", CPU_POWERPC_401GF, 401), |
7175 | 3fc6c082 | bellard | #endif
|
7176 | a750fc0b | j_mayer | /* IOP480 (401 microcontroler) */
|
7177 | 80d11f44 | j_mayer | POWERPC_DEF("IOP480", CPU_POWERPC_IOP480, IOP480),
|
7178 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
7179 | 80d11f44 | j_mayer | POWERPC_DEF("Cobra", CPU_POWERPC_COBRA, 401), |
7180 | 3fc6c082 | bellard | #if defined (TODO)
|
7181 | 80d11f44 | j_mayer | POWERPC_DEF("Xipchip", CPU_POWERPC_XIPCHIP, 401), |
7182 | 3fc6c082 | bellard | #endif
|
7183 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
7184 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
7185 | 80d11f44 | j_mayer | POWERPC_DEF("403", CPU_POWERPC_403, 403), |
7186 | a750fc0b | j_mayer | /* PowerPC 403 microcontrolers */
|
7187 | a750fc0b | j_mayer | /* PowerPC 403 GA */
|
7188 | 80d11f44 | j_mayer | POWERPC_DEF("403GA", CPU_POWERPC_403GA, 403), |
7189 | a750fc0b | j_mayer | /* PowerPC 403 GB */
|
7190 | 80d11f44 | j_mayer | POWERPC_DEF("403GB", CPU_POWERPC_403GB, 403), |
7191 | a750fc0b | j_mayer | /* PowerPC 403 GC */
|
7192 | 80d11f44 | j_mayer | POWERPC_DEF("403GC", CPU_POWERPC_403GC, 403), |
7193 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
7194 | 80d11f44 | j_mayer | POWERPC_DEF("403GCX", CPU_POWERPC_403GCX, 403GCX), |
7195 | 3fc6c082 | bellard | #if defined (TODO)
|
7196 | a750fc0b | j_mayer | /* PowerPC 403 GP */
|
7197 | 80d11f44 | j_mayer | POWERPC_DEF("403GP", CPU_POWERPC_403GP, 403), |
7198 | 3fc6c082 | bellard | #endif
|
7199 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
7200 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
7201 | 80d11f44 | j_mayer | POWERPC_DEF("405", CPU_POWERPC_405, 405), |
7202 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
7203 | 2662a059 | j_mayer | #if defined (TODO)
|
7204 | a750fc0b | j_mayer | /* PowerPC 405 A3 */
|
7205 | 80d11f44 | j_mayer | POWERPC_DEF("405A3", CPU_POWERPC_405A3, 405), |
7206 | 3a607854 | j_mayer | #endif
|
7207 | 3a607854 | j_mayer | #if defined (TODO)
|
7208 | a750fc0b | j_mayer | /* PowerPC 405 A4 */
|
7209 | 80d11f44 | j_mayer | POWERPC_DEF("405A4", CPU_POWERPC_405A4, 405), |
7210 | 3a607854 | j_mayer | #endif
|
7211 | 3a607854 | j_mayer | #if defined (TODO)
|
7212 | a750fc0b | j_mayer | /* PowerPC 405 B3 */
|
7213 | 80d11f44 | j_mayer | POWERPC_DEF("405B3", CPU_POWERPC_405B3, 405), |
7214 | 3fc6c082 | bellard | #endif
|
7215 | 3fc6c082 | bellard | #if defined (TODO)
|
7216 | a750fc0b | j_mayer | /* PowerPC 405 B4 */
|
7217 | 80d11f44 | j_mayer | POWERPC_DEF("405B4", CPU_POWERPC_405B4, 405), |
7218 | a750fc0b | j_mayer | #endif
|
7219 | a750fc0b | j_mayer | #if defined (TODO)
|
7220 | a750fc0b | j_mayer | /* PowerPC 405 C3 */
|
7221 | 80d11f44 | j_mayer | POWERPC_DEF("405C3", CPU_POWERPC_405C3, 405), |
7222 | a750fc0b | j_mayer | #endif
|
7223 | a750fc0b | j_mayer | #if defined (TODO)
|
7224 | a750fc0b | j_mayer | /* PowerPC 405 C4 */
|
7225 | 80d11f44 | j_mayer | POWERPC_DEF("405C4", CPU_POWERPC_405C4, 405), |
7226 | a750fc0b | j_mayer | #endif
|
7227 | a750fc0b | j_mayer | /* PowerPC 405 D2 */
|
7228 | 80d11f44 | j_mayer | POWERPC_DEF("405D2", CPU_POWERPC_405D2, 405), |
7229 | a750fc0b | j_mayer | #if defined (TODO)
|
7230 | a750fc0b | j_mayer | /* PowerPC 405 D3 */
|
7231 | 80d11f44 | j_mayer | POWERPC_DEF("405D3", CPU_POWERPC_405D3, 405), |
7232 | a750fc0b | j_mayer | #endif
|
7233 | a750fc0b | j_mayer | /* PowerPC 405 D4 */
|
7234 | 80d11f44 | j_mayer | POWERPC_DEF("405D4", CPU_POWERPC_405D4, 405), |
7235 | a750fc0b | j_mayer | #if defined (TODO)
|
7236 | a750fc0b | j_mayer | /* PowerPC 405 D5 */
|
7237 | 80d11f44 | j_mayer | POWERPC_DEF("405D5", CPU_POWERPC_405D5, 405), |
7238 | a750fc0b | j_mayer | #endif
|
7239 | a750fc0b | j_mayer | #if defined (TODO)
|
7240 | a750fc0b | j_mayer | /* PowerPC 405 E4 */
|
7241 | 80d11f44 | j_mayer | POWERPC_DEF("405E4", CPU_POWERPC_405E4, 405), |
7242 | a750fc0b | j_mayer | #endif
|
7243 | a750fc0b | j_mayer | #if defined (TODO)
|
7244 | a750fc0b | j_mayer | /* PowerPC 405 F4 */
|
7245 | 80d11f44 | j_mayer | POWERPC_DEF("405F4", CPU_POWERPC_405F4, 405), |
7246 | a750fc0b | j_mayer | #endif
|
7247 | a750fc0b | j_mayer | #if defined (TODO)
|
7248 | a750fc0b | j_mayer | /* PowerPC 405 F5 */
|
7249 | 80d11f44 | j_mayer | POWERPC_DEF("405F5", CPU_POWERPC_405F5, 405), |
7250 | a750fc0b | j_mayer | #endif
|
7251 | a750fc0b | j_mayer | #if defined (TODO)
|
7252 | a750fc0b | j_mayer | /* PowerPC 405 F6 */
|
7253 | 80d11f44 | j_mayer | POWERPC_DEF("405F6", CPU_POWERPC_405F6, 405), |
7254 | a750fc0b | j_mayer | #endif
|
7255 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
7256 | a750fc0b | j_mayer | /* PowerPC 405 CR */
|
7257 | 80d11f44 | j_mayer | POWERPC_DEF("405CR", CPU_POWERPC_405CR, 405), |
7258 | a750fc0b | j_mayer | /* PowerPC 405 CRa */
|
7259 | 80d11f44 | j_mayer | POWERPC_DEF("405CRa", CPU_POWERPC_405CRa, 405), |
7260 | a750fc0b | j_mayer | /* PowerPC 405 CRb */
|
7261 | 80d11f44 | j_mayer | POWERPC_DEF("405CRb", CPU_POWERPC_405CRb, 405), |
7262 | a750fc0b | j_mayer | /* PowerPC 405 CRc */
|
7263 | 80d11f44 | j_mayer | POWERPC_DEF("405CRc", CPU_POWERPC_405CRc, 405), |
7264 | a750fc0b | j_mayer | /* PowerPC 405 EP */
|
7265 | 80d11f44 | j_mayer | POWERPC_DEF("405EP", CPU_POWERPC_405EP, 405), |
7266 | a750fc0b | j_mayer | #if defined(TODO)
|
7267 | a750fc0b | j_mayer | /* PowerPC 405 EXr */
|
7268 | 80d11f44 | j_mayer | POWERPC_DEF("405EXr", CPU_POWERPC_405EXr, 405), |
7269 | a750fc0b | j_mayer | #endif
|
7270 | a750fc0b | j_mayer | /* PowerPC 405 EZ */
|
7271 | 80d11f44 | j_mayer | POWERPC_DEF("405EZ", CPU_POWERPC_405EZ, 405), |
7272 | a750fc0b | j_mayer | #if defined(TODO)
|
7273 | a750fc0b | j_mayer | /* PowerPC 405 FX */
|
7274 | 80d11f44 | j_mayer | POWERPC_DEF("405FX", CPU_POWERPC_405FX, 405), |
7275 | a750fc0b | j_mayer | #endif
|
7276 | a750fc0b | j_mayer | /* PowerPC 405 GP */
|
7277 | 80d11f44 | j_mayer | POWERPC_DEF("405GP", CPU_POWERPC_405GP, 405), |
7278 | a750fc0b | j_mayer | /* PowerPC 405 GPa */
|
7279 | 80d11f44 | j_mayer | POWERPC_DEF("405GPa", CPU_POWERPC_405GPa, 405), |
7280 | a750fc0b | j_mayer | /* PowerPC 405 GPb */
|
7281 | 80d11f44 | j_mayer | POWERPC_DEF("405GPb", CPU_POWERPC_405GPb, 405), |
7282 | a750fc0b | j_mayer | /* PowerPC 405 GPc */
|
7283 | 80d11f44 | j_mayer | POWERPC_DEF("405GPc", CPU_POWERPC_405GPc, 405), |
7284 | a750fc0b | j_mayer | /* PowerPC 405 GPd */
|
7285 | 80d11f44 | j_mayer | POWERPC_DEF("405GPd", CPU_POWERPC_405GPd, 405), |
7286 | a750fc0b | j_mayer | /* PowerPC 405 GPe */
|
7287 | 80d11f44 | j_mayer | POWERPC_DEF("405GPe", CPU_POWERPC_405GPe, 405), |
7288 | a750fc0b | j_mayer | /* PowerPC 405 GPR */
|
7289 | 80d11f44 | j_mayer | POWERPC_DEF("405GPR", CPU_POWERPC_405GPR, 405), |
7290 | a750fc0b | j_mayer | #if defined(TODO)
|
7291 | a750fc0b | j_mayer | /* PowerPC 405 H */
|
7292 | 80d11f44 | j_mayer | POWERPC_DEF("405H", CPU_POWERPC_405H, 405), |
7293 | a750fc0b | j_mayer | #endif
|
7294 | a750fc0b | j_mayer | #if defined(TODO)
|
7295 | a750fc0b | j_mayer | /* PowerPC 405 L */
|
7296 | 80d11f44 | j_mayer | POWERPC_DEF("405L", CPU_POWERPC_405L, 405), |
7297 | a750fc0b | j_mayer | #endif
|
7298 | a750fc0b | j_mayer | /* PowerPC 405 LP */
|
7299 | 80d11f44 | j_mayer | POWERPC_DEF("405LP", CPU_POWERPC_405LP, 405), |
7300 | a750fc0b | j_mayer | #if defined(TODO)
|
7301 | a750fc0b | j_mayer | /* PowerPC 405 PM */
|
7302 | 80d11f44 | j_mayer | POWERPC_DEF("405PM", CPU_POWERPC_405PM, 405), |
7303 | a750fc0b | j_mayer | #endif
|
7304 | a750fc0b | j_mayer | #if defined(TODO)
|
7305 | a750fc0b | j_mayer | /* PowerPC 405 PS */
|
7306 | 80d11f44 | j_mayer | POWERPC_DEF("405PS", CPU_POWERPC_405PS, 405), |
7307 | a750fc0b | j_mayer | #endif
|
7308 | a750fc0b | j_mayer | #if defined(TODO)
|
7309 | a750fc0b | j_mayer | /* PowerPC 405 S */
|
7310 | 80d11f44 | j_mayer | POWERPC_DEF("405S", CPU_POWERPC_405S, 405), |
7311 | a750fc0b | j_mayer | #endif
|
7312 | a750fc0b | j_mayer | /* Npe405 H */
|
7313 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H", CPU_POWERPC_NPE405H, 405), |
7314 | a750fc0b | j_mayer | /* Npe405 H2 */
|
7315 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H2", CPU_POWERPC_NPE405H2, 405), |
7316 | a750fc0b | j_mayer | /* Npe405 L */
|
7317 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405L", CPU_POWERPC_NPE405L, 405), |
7318 | a750fc0b | j_mayer | /* Npe4GS3 */
|
7319 | 80d11f44 | j_mayer | POWERPC_DEF("Npe4GS3", CPU_POWERPC_NPE4GS3, 405), |
7320 | a750fc0b | j_mayer | #if defined (TODO)
|
7321 | 80d11f44 | j_mayer | POWERPC_DEF("Npcxx1", CPU_POWERPC_NPCxx1, 405), |
7322 | a750fc0b | j_mayer | #endif
|
7323 | a750fc0b | j_mayer | #if defined (TODO)
|
7324 | 80d11f44 | j_mayer | POWERPC_DEF("Npr161", CPU_POWERPC_NPR161, 405), |
7325 | a750fc0b | j_mayer | #endif
|
7326 | a750fc0b | j_mayer | #if defined (TODO)
|
7327 | a750fc0b | j_mayer | /* PowerPC LC77700 (Sanyo) */
|
7328 | 80d11f44 | j_mayer | POWERPC_DEF("LC77700", CPU_POWERPC_LC77700, 405), |
7329 | a750fc0b | j_mayer | #endif
|
7330 | a750fc0b | j_mayer | /* PowerPC 401/403/405 based set-top-box microcontrolers */
|
7331 | a750fc0b | j_mayer | #if defined (TODO)
|
7332 | a750fc0b | j_mayer | /* STB010000 */
|
7333 | 80d11f44 | j_mayer | POWERPC_DEF("STB01000", CPU_POWERPC_STB01000, 401x2), |
7334 | a750fc0b | j_mayer | #endif
|
7335 | a750fc0b | j_mayer | #if defined (TODO)
|
7336 | a750fc0b | j_mayer | /* STB01010 */
|
7337 | 80d11f44 | j_mayer | POWERPC_DEF("STB01010", CPU_POWERPC_STB01010, 401x2), |
7338 | a750fc0b | j_mayer | #endif
|
7339 | a750fc0b | j_mayer | #if defined (TODO)
|
7340 | a750fc0b | j_mayer | /* STB0210 */
|
7341 | 80d11f44 | j_mayer | POWERPC_DEF("STB0210", CPU_POWERPC_STB0210, 401x3), |
7342 | a750fc0b | j_mayer | #endif
|
7343 | a750fc0b | j_mayer | /* STB03xx */
|
7344 | 80d11f44 | j_mayer | POWERPC_DEF("STB03", CPU_POWERPC_STB03, 405), |
7345 | a750fc0b | j_mayer | #if defined (TODO)
|
7346 | a750fc0b | j_mayer | /* STB043x */
|
7347 | 80d11f44 | j_mayer | POWERPC_DEF("STB043", CPU_POWERPC_STB043, 405), |
7348 | a750fc0b | j_mayer | #endif
|
7349 | a750fc0b | j_mayer | #if defined (TODO)
|
7350 | a750fc0b | j_mayer | /* STB045x */
|
7351 | 80d11f44 | j_mayer | POWERPC_DEF("STB045", CPU_POWERPC_STB045, 405), |
7352 | a750fc0b | j_mayer | #endif
|
7353 | a750fc0b | j_mayer | /* STB04xx */
|
7354 | 80d11f44 | j_mayer | POWERPC_DEF("STB04", CPU_POWERPC_STB04, 405), |
7355 | a750fc0b | j_mayer | /* STB25xx */
|
7356 | 80d11f44 | j_mayer | POWERPC_DEF("STB25", CPU_POWERPC_STB25, 405), |
7357 | a750fc0b | j_mayer | #if defined (TODO)
|
7358 | a750fc0b | j_mayer | /* STB130 */
|
7359 | 80d11f44 | j_mayer | POWERPC_DEF("STB130", CPU_POWERPC_STB130, 405), |
7360 | a750fc0b | j_mayer | #endif
|
7361 | a750fc0b | j_mayer | /* Xilinx PowerPC 405 cores */
|
7362 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp4", CPU_POWERPC_X2VP4, 405), |
7363 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp7", CPU_POWERPC_X2VP7, 405), |
7364 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp20", CPU_POWERPC_X2VP20, 405), |
7365 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp50", CPU_POWERPC_X2VP50, 405), |
7366 | a750fc0b | j_mayer | #if defined (TODO)
|
7367 | a750fc0b | j_mayer | /* Zarlink ZL10310 */
|
7368 | 80d11f44 | j_mayer | POWERPC_DEF("zl10310", CPU_POWERPC_ZL10310, 405), |
7369 | a750fc0b | j_mayer | #endif
|
7370 | a750fc0b | j_mayer | #if defined (TODO)
|
7371 | a750fc0b | j_mayer | /* Zarlink ZL10311 */
|
7372 | 80d11f44 | j_mayer | POWERPC_DEF("zl10311", CPU_POWERPC_ZL10311, 405), |
7373 | a750fc0b | j_mayer | #endif
|
7374 | a750fc0b | j_mayer | #if defined (TODO)
|
7375 | a750fc0b | j_mayer | /* Zarlink ZL10320 */
|
7376 | 80d11f44 | j_mayer | POWERPC_DEF("zl10320", CPU_POWERPC_ZL10320, 405), |
7377 | a750fc0b | j_mayer | #endif
|
7378 | a750fc0b | j_mayer | #if defined (TODO)
|
7379 | a750fc0b | j_mayer | /* Zarlink ZL10321 */
|
7380 | 80d11f44 | j_mayer | POWERPC_DEF("zl10321", CPU_POWERPC_ZL10321, 405), |
7381 | a750fc0b | j_mayer | #endif
|
7382 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
7383 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7384 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
7385 | 80d11f44 | j_mayer | POWERPC_DEF("440", CPU_POWERPC_440, 440GP), |
7386 | 80d11f44 | j_mayer | #endif
|
7387 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
7388 | a750fc0b | j_mayer | #if defined (TODO)
|
7389 | a750fc0b | j_mayer | /* PowerPC 440 A4 */
|
7390 | 80d11f44 | j_mayer | POWERPC_DEF("440A4", CPU_POWERPC_440A4, 440x4), |
7391 | a750fc0b | j_mayer | #endif
|
7392 | a750fc0b | j_mayer | #if defined (TODO)
|
7393 | a750fc0b | j_mayer | /* PowerPC 440 A5 */
|
7394 | 80d11f44 | j_mayer | POWERPC_DEF("440A5", CPU_POWERPC_440A5, 440x5), |
7395 | a750fc0b | j_mayer | #endif
|
7396 | a750fc0b | j_mayer | #if defined (TODO)
|
7397 | a750fc0b | j_mayer | /* PowerPC 440 B4 */
|
7398 | 80d11f44 | j_mayer | POWERPC_DEF("440B4", CPU_POWERPC_440B4, 440x4), |
7399 | a750fc0b | j_mayer | #endif
|
7400 | a750fc0b | j_mayer | #if defined (TODO)
|
7401 | a750fc0b | j_mayer | /* PowerPC 440 G4 */
|
7402 | 80d11f44 | j_mayer | POWERPC_DEF("440G4", CPU_POWERPC_440G4, 440x4), |
7403 | a750fc0b | j_mayer | #endif
|
7404 | a750fc0b | j_mayer | #if defined (TODO)
|
7405 | a750fc0b | j_mayer | /* PowerPC 440 F5 */
|
7406 | 80d11f44 | j_mayer | POWERPC_DEF("440F5", CPU_POWERPC_440F5, 440x5), |
7407 | a750fc0b | j_mayer | #endif
|
7408 | a750fc0b | j_mayer | #if defined (TODO)
|
7409 | a750fc0b | j_mayer | /* PowerPC 440 G5 */
|
7410 | 80d11f44 | j_mayer | POWERPC_DEF("440G5", CPU_POWERPC_440G5, 440x5), |
7411 | a750fc0b | j_mayer | #endif
|
7412 | a750fc0b | j_mayer | #if defined (TODO)
|
7413 | a750fc0b | j_mayer | /* PowerPC 440H4 */
|
7414 | 80d11f44 | j_mayer | POWERPC_DEF("440H4", CPU_POWERPC_440H4, 440x4), |
7415 | a750fc0b | j_mayer | #endif
|
7416 | a750fc0b | j_mayer | #if defined (TODO)
|
7417 | a750fc0b | j_mayer | /* PowerPC 440H6 */
|
7418 | 80d11f44 | j_mayer | POWERPC_DEF("440H6", CPU_POWERPC_440H6, 440Gx5), |
7419 | a750fc0b | j_mayer | #endif
|
7420 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
7421 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7422 | a750fc0b | j_mayer | /* PowerPC 440 EP */
|
7423 | 80d11f44 | j_mayer | POWERPC_DEF("440EP", CPU_POWERPC_440EP, 440EP), |
7424 | 80d11f44 | j_mayer | #endif
|
7425 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7426 | a750fc0b | j_mayer | /* PowerPC 440 EPa */
|
7427 | 80d11f44 | j_mayer | POWERPC_DEF("440EPa", CPU_POWERPC_440EPa, 440EP), |
7428 | 80d11f44 | j_mayer | #endif
|
7429 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7430 | a750fc0b | j_mayer | /* PowerPC 440 EPb */
|
7431 | 80d11f44 | j_mayer | POWERPC_DEF("440EPb", CPU_POWERPC_440EPb, 440EP), |
7432 | 80d11f44 | j_mayer | #endif
|
7433 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7434 | a750fc0b | j_mayer | /* PowerPC 440 EPX */
|
7435 | 80d11f44 | j_mayer | POWERPC_DEF("440EPX", CPU_POWERPC_440EPX, 440EP), |
7436 | 80d11f44 | j_mayer | #endif
|
7437 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7438 | a750fc0b | j_mayer | /* PowerPC 440 GP */
|
7439 | 80d11f44 | j_mayer | POWERPC_DEF("440GP", CPU_POWERPC_440GP, 440GP), |
7440 | 80d11f44 | j_mayer | #endif
|
7441 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7442 | a750fc0b | j_mayer | /* PowerPC 440 GPb */
|
7443 | 80d11f44 | j_mayer | POWERPC_DEF("440GPb", CPU_POWERPC_440GPb, 440GP), |
7444 | 80d11f44 | j_mayer | #endif
|
7445 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7446 | a750fc0b | j_mayer | /* PowerPC 440 GPc */
|
7447 | 80d11f44 | j_mayer | POWERPC_DEF("440GPc", CPU_POWERPC_440GPc, 440GP), |
7448 | 80d11f44 | j_mayer | #endif
|
7449 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7450 | a750fc0b | j_mayer | /* PowerPC 440 GR */
|
7451 | 80d11f44 | j_mayer | POWERPC_DEF("440GR", CPU_POWERPC_440GR, 440x5), |
7452 | 80d11f44 | j_mayer | #endif
|
7453 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7454 | a750fc0b | j_mayer | /* PowerPC 440 GRa */
|
7455 | 80d11f44 | j_mayer | POWERPC_DEF("440GRa", CPU_POWERPC_440GRa, 440x5), |
7456 | 80d11f44 | j_mayer | #endif
|
7457 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7458 | a750fc0b | j_mayer | /* PowerPC 440 GRX */
|
7459 | 80d11f44 | j_mayer | POWERPC_DEF("440GRX", CPU_POWERPC_440GRX, 440x5), |
7460 | 80d11f44 | j_mayer | #endif
|
7461 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7462 | a750fc0b | j_mayer | /* PowerPC 440 GX */
|
7463 | 80d11f44 | j_mayer | POWERPC_DEF("440GX", CPU_POWERPC_440GX, 440EP), |
7464 | 80d11f44 | j_mayer | #endif
|
7465 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7466 | a750fc0b | j_mayer | /* PowerPC 440 GXa */
|
7467 | 80d11f44 | j_mayer | POWERPC_DEF("440GXa", CPU_POWERPC_440GXa, 440EP), |
7468 | 80d11f44 | j_mayer | #endif
|
7469 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7470 | a750fc0b | j_mayer | /* PowerPC 440 GXb */
|
7471 | 80d11f44 | j_mayer | POWERPC_DEF("440GXb", CPU_POWERPC_440GXb, 440EP), |
7472 | 80d11f44 | j_mayer | #endif
|
7473 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7474 | a750fc0b | j_mayer | /* PowerPC 440 GXc */
|
7475 | 80d11f44 | j_mayer | POWERPC_DEF("440GXc", CPU_POWERPC_440GXc, 440EP), |
7476 | 80d11f44 | j_mayer | #endif
|
7477 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7478 | a750fc0b | j_mayer | /* PowerPC 440 GXf */
|
7479 | 80d11f44 | j_mayer | POWERPC_DEF("440GXf", CPU_POWERPC_440GXf, 440EP), |
7480 | 80d11f44 | j_mayer | #endif
|
7481 | a750fc0b | j_mayer | #if defined(TODO)
|
7482 | a750fc0b | j_mayer | /* PowerPC 440 S */
|
7483 | 80d11f44 | j_mayer | POWERPC_DEF("440S", CPU_POWERPC_440S, 440), |
7484 | a750fc0b | j_mayer | #endif
|
7485 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7486 | a750fc0b | j_mayer | /* PowerPC 440 SP */
|
7487 | 80d11f44 | j_mayer | POWERPC_DEF("440SP", CPU_POWERPC_440SP, 440EP), |
7488 | 80d11f44 | j_mayer | #endif
|
7489 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7490 | a750fc0b | j_mayer | /* PowerPC 440 SP2 */
|
7491 | 80d11f44 | j_mayer | POWERPC_DEF("440SP2", CPU_POWERPC_440SP2, 440EP), |
7492 | 80d11f44 | j_mayer | #endif
|
7493 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7494 | a750fc0b | j_mayer | /* PowerPC 440 SPE */
|
7495 | 80d11f44 | j_mayer | POWERPC_DEF("440SPE", CPU_POWERPC_440SPE, 440EP), |
7496 | 80d11f44 | j_mayer | #endif
|
7497 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
7498 | a750fc0b | j_mayer | #if defined (TODO)
|
7499 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
7500 | 80d11f44 | j_mayer | POWERPC_DEF("464", CPU_POWERPC_464, 460), |
7501 | a750fc0b | j_mayer | #endif
|
7502 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
7503 | a750fc0b | j_mayer | #if defined (TODO)
|
7504 | a750fc0b | j_mayer | /* PowerPC 464H90 */
|
7505 | 80d11f44 | j_mayer | POWERPC_DEF("464H90", CPU_POWERPC_464H90, 460), |
7506 | a750fc0b | j_mayer | #endif
|
7507 | a750fc0b | j_mayer | #if defined (TODO)
|
7508 | a750fc0b | j_mayer | /* PowerPC 464H90F */
|
7509 | 80d11f44 | j_mayer | POWERPC_DEF("464H90F", CPU_POWERPC_464H90F, 460F), |
7510 | a750fc0b | j_mayer | #endif
|
7511 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
7512 | 80d11f44 | j_mayer | /* MPC5xx family (aka RCPU) */
|
7513 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7514 | 80d11f44 | j_mayer | /* Generic MPC5xx core */
|
7515 | 80d11f44 | j_mayer | POWERPC_DEF("MPC5xx", CPU_POWERPC_MPC5xx, MPC5xx),
|
7516 | 80d11f44 | j_mayer | #endif
|
7517 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7518 | 80d11f44 | j_mayer | /* Codename for MPC5xx core */
|
7519 | 80d11f44 | j_mayer | POWERPC_DEF("RCPU", CPU_POWERPC_MPC5xx, MPC5xx),
|
7520 | 80d11f44 | j_mayer | #endif
|
7521 | 80d11f44 | j_mayer | /* MPC5xx microcontrollers */
|
7522 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7523 | 80d11f44 | j_mayer | /* MGT560 */
|
7524 | 80d11f44 | j_mayer | POWERPC_DEF("MGT560", CPU_POWERPC_MGT560, MPC5xx),
|
7525 | 80d11f44 | j_mayer | #endif
|
7526 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7527 | 80d11f44 | j_mayer | /* MPC509 */
|
7528 | 80d11f44 | j_mayer | POWERPC_DEF("MPC509", CPU_POWERPC_MPC509, MPC5xx),
|
7529 | 80d11f44 | j_mayer | #endif
|
7530 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7531 | 80d11f44 | j_mayer | /* MPC533 */
|
7532 | 80d11f44 | j_mayer | POWERPC_DEF("MPC533", CPU_POWERPC_MPC533, MPC5xx),
|
7533 | 80d11f44 | j_mayer | #endif
|
7534 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7535 | 80d11f44 | j_mayer | /* MPC534 */
|
7536 | 80d11f44 | j_mayer | POWERPC_DEF("MPC534", CPU_POWERPC_MPC534, MPC5xx),
|
7537 | 80d11f44 | j_mayer | #endif
|
7538 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7539 | 80d11f44 | j_mayer | /* MPC555 */
|
7540 | 80d11f44 | j_mayer | POWERPC_DEF("MPC555", CPU_POWERPC_MPC555, MPC5xx),
|
7541 | 80d11f44 | j_mayer | #endif
|
7542 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7543 | 80d11f44 | j_mayer | /* MPC556 */
|
7544 | 80d11f44 | j_mayer | POWERPC_DEF("MPC556", CPU_POWERPC_MPC556, MPC5xx),
|
7545 | 80d11f44 | j_mayer | #endif
|
7546 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7547 | 80d11f44 | j_mayer | /* MPC560 */
|
7548 | 80d11f44 | j_mayer | POWERPC_DEF("MPC560", CPU_POWERPC_MPC560, MPC5xx),
|
7549 | 80d11f44 | j_mayer | #endif
|
7550 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7551 | 80d11f44 | j_mayer | /* MPC561 */
|
7552 | 80d11f44 | j_mayer | POWERPC_DEF("MPC561", CPU_POWERPC_MPC561, MPC5xx),
|
7553 | 80d11f44 | j_mayer | #endif
|
7554 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7555 | 80d11f44 | j_mayer | /* MPC562 */
|
7556 | 80d11f44 | j_mayer | POWERPC_DEF("MPC562", CPU_POWERPC_MPC562, MPC5xx),
|
7557 | 80d11f44 | j_mayer | #endif
|
7558 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7559 | 80d11f44 | j_mayer | /* MPC563 */
|
7560 | 80d11f44 | j_mayer | POWERPC_DEF("MPC563", CPU_POWERPC_MPC563, MPC5xx),
|
7561 | 80d11f44 | j_mayer | #endif
|
7562 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7563 | 80d11f44 | j_mayer | /* MPC564 */
|
7564 | 80d11f44 | j_mayer | POWERPC_DEF("MPC564", CPU_POWERPC_MPC564, MPC5xx),
|
7565 | 80d11f44 | j_mayer | #endif
|
7566 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7567 | 80d11f44 | j_mayer | /* MPC565 */
|
7568 | 80d11f44 | j_mayer | POWERPC_DEF("MPC565", CPU_POWERPC_MPC565, MPC5xx),
|
7569 | 80d11f44 | j_mayer | #endif
|
7570 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7571 | 80d11f44 | j_mayer | /* MPC566 */
|
7572 | 80d11f44 | j_mayer | POWERPC_DEF("MPC566", CPU_POWERPC_MPC566, MPC5xx),
|
7573 | 80d11f44 | j_mayer | #endif
|
7574 | 80d11f44 | j_mayer | /* MPC8xx family (aka PowerQUICC) */
|
7575 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7576 | 80d11f44 | j_mayer | /* Generic MPC8xx core */
|
7577 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8xx", CPU_POWERPC_MPC8xx, MPC8xx),
|
7578 | 80d11f44 | j_mayer | #endif
|
7579 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7580 | 80d11f44 | j_mayer | /* Codename for MPC8xx core */
|
7581 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC", CPU_POWERPC_MPC8xx, MPC8xx),
|
7582 | 80d11f44 | j_mayer | #endif
|
7583 | 80d11f44 | j_mayer | /* MPC8xx microcontrollers */
|
7584 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7585 | 80d11f44 | j_mayer | /* MGT823 */
|
7586 | 80d11f44 | j_mayer | POWERPC_DEF("MGT823", CPU_POWERPC_MGT823, MPC8xx),
|
7587 | 80d11f44 | j_mayer | #endif
|
7588 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7589 | 80d11f44 | j_mayer | /* MPC821 */
|
7590 | 80d11f44 | j_mayer | POWERPC_DEF("MPC821", CPU_POWERPC_MPC821, MPC8xx),
|
7591 | 80d11f44 | j_mayer | #endif
|
7592 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7593 | 80d11f44 | j_mayer | /* MPC823 */
|
7594 | 80d11f44 | j_mayer | POWERPC_DEF("MPC823", CPU_POWERPC_MPC823, MPC8xx),
|
7595 | 80d11f44 | j_mayer | #endif
|
7596 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7597 | 80d11f44 | j_mayer | /* MPC850 */
|
7598 | 80d11f44 | j_mayer | POWERPC_DEF("MPC850", CPU_POWERPC_MPC850, MPC8xx),
|
7599 | 80d11f44 | j_mayer | #endif
|
7600 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7601 | 80d11f44 | j_mayer | /* MPC852T */
|
7602 | 80d11f44 | j_mayer | POWERPC_DEF("MPC852T", CPU_POWERPC_MPC852T, MPC8xx),
|
7603 | 80d11f44 | j_mayer | #endif
|
7604 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7605 | 80d11f44 | j_mayer | /* MPC855T */
|
7606 | 80d11f44 | j_mayer | POWERPC_DEF("MPC855T", CPU_POWERPC_MPC855T, MPC8xx),
|
7607 | 80d11f44 | j_mayer | #endif
|
7608 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7609 | 80d11f44 | j_mayer | /* MPC857 */
|
7610 | 80d11f44 | j_mayer | POWERPC_DEF("MPC857", CPU_POWERPC_MPC857, MPC8xx),
|
7611 | 80d11f44 | j_mayer | #endif
|
7612 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7613 | 80d11f44 | j_mayer | /* MPC859 */
|
7614 | 80d11f44 | j_mayer | POWERPC_DEF("MPC859", CPU_POWERPC_MPC859, MPC8xx),
|
7615 | 80d11f44 | j_mayer | #endif
|
7616 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7617 | 80d11f44 | j_mayer | /* MPC860 */
|
7618 | 80d11f44 | j_mayer | POWERPC_DEF("MPC860", CPU_POWERPC_MPC860, MPC8xx),
|
7619 | 80d11f44 | j_mayer | #endif
|
7620 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7621 | 80d11f44 | j_mayer | /* MPC862 */
|
7622 | 80d11f44 | j_mayer | POWERPC_DEF("MPC862", CPU_POWERPC_MPC862, MPC8xx),
|
7623 | 80d11f44 | j_mayer | #endif
|
7624 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7625 | 80d11f44 | j_mayer | /* MPC866 */
|
7626 | 80d11f44 | j_mayer | POWERPC_DEF("MPC866", CPU_POWERPC_MPC866, MPC8xx),
|
7627 | 80d11f44 | j_mayer | #endif
|
7628 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7629 | 80d11f44 | j_mayer | /* MPC870 */
|
7630 | 80d11f44 | j_mayer | POWERPC_DEF("MPC870", CPU_POWERPC_MPC870, MPC8xx),
|
7631 | 80d11f44 | j_mayer | #endif
|
7632 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7633 | 80d11f44 | j_mayer | /* MPC875 */
|
7634 | 80d11f44 | j_mayer | POWERPC_DEF("MPC875", CPU_POWERPC_MPC875, MPC8xx),
|
7635 | 80d11f44 | j_mayer | #endif
|
7636 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7637 | 80d11f44 | j_mayer | /* MPC880 */
|
7638 | 80d11f44 | j_mayer | POWERPC_DEF("MPC880", CPU_POWERPC_MPC880, MPC8xx),
|
7639 | 80d11f44 | j_mayer | #endif
|
7640 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7641 | 80d11f44 | j_mayer | /* MPC885 */
|
7642 | 80d11f44 | j_mayer | POWERPC_DEF("MPC885", CPU_POWERPC_MPC885, MPC8xx),
|
7643 | 80d11f44 | j_mayer | #endif
|
7644 | 80d11f44 | j_mayer | /* MPC82xx family (aka PowerQUICC-II) */
|
7645 | 80d11f44 | j_mayer | /* Generic MPC52xx core */
|
7646 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC52xx",
|
7647 | 80d11f44 | j_mayer | CPU_POWERPC_MPC52xx, POWERPC_SVR_52xx, G2LE), |
7648 | 80d11f44 | j_mayer | /* Generic MPC82xx core */
|
7649 | 80d11f44 | j_mayer | POWERPC_DEF("MPC82xx", CPU_POWERPC_MPC82xx, G2),
|
7650 | 80d11f44 | j_mayer | /* Codename for MPC82xx */
|
7651 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC-II", CPU_POWERPC_MPC82xx, G2),
|
7652 | 80d11f44 | j_mayer | /* PowerPC G2 core */
|
7653 | 80d11f44 | j_mayer | POWERPC_DEF("G2", CPU_POWERPC_G2, G2),
|
7654 | 80d11f44 | j_mayer | /* PowerPC G2 H4 core */
|
7655 | 80d11f44 | j_mayer | POWERPC_DEF("G2H4", CPU_POWERPC_G2H4, G2),
|
7656 | 80d11f44 | j_mayer | /* PowerPC G2 GP core */
|
7657 | 80d11f44 | j_mayer | POWERPC_DEF("G2GP", CPU_POWERPC_G2gp, G2),
|
7658 | 80d11f44 | j_mayer | /* PowerPC G2 LS core */
|
7659 | 80d11f44 | j_mayer | POWERPC_DEF("G2LS", CPU_POWERPC_G2ls, G2),
|
7660 | 80d11f44 | j_mayer | /* PowerPC G2 HiP3 core */
|
7661 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP3", CPU_POWERPC_G2_HIP3, G2),
|
7662 | 80d11f44 | j_mayer | /* PowerPC G2 HiP4 core */
|
7663 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP4", CPU_POWERPC_G2_HIP4, G2),
|
7664 | 80d11f44 | j_mayer | /* PowerPC MPC603 core */
|
7665 | 80d11f44 | j_mayer | POWERPC_DEF("MPC603", CPU_POWERPC_MPC603, 603E), |
7666 | 80d11f44 | j_mayer | /* PowerPC G2le core (same as G2 plus little-endian mode support) */
|
7667 | 80d11f44 | j_mayer | POWERPC_DEF("G2le", CPU_POWERPC_G2LE, G2LE),
|
7668 | 80d11f44 | j_mayer | /* PowerPC G2LE GP core */
|
7669 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP", CPU_POWERPC_G2LEgp, G2LE),
|
7670 | 80d11f44 | j_mayer | /* PowerPC G2LE LS core */
|
7671 | 80d11f44 | j_mayer | POWERPC_DEF("G2leLS", CPU_POWERPC_G2LEls, G2LE),
|
7672 | 80d11f44 | j_mayer | /* PowerPC G2LE GP1 core */
|
7673 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP1", CPU_POWERPC_G2LEgp1, G2LE),
|
7674 | 80d11f44 | j_mayer | /* PowerPC G2LE GP3 core */
|
7675 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP3", CPU_POWERPC_G2LEgp1, G2LE),
|
7676 | 80d11f44 | j_mayer | /* PowerPC MPC603 microcontrollers */
|
7677 | 80d11f44 | j_mayer | /* MPC8240 */
|
7678 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8240", CPU_POWERPC_MPC8240, 603E), |
7679 | 80d11f44 | j_mayer | /* PowerPC G2 microcontrollers */
|
7680 | 082c6681 | j_mayer | #if defined(TODO)
|
7681 | 80d11f44 | j_mayer | /* MPC5121 */
|
7682 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5121",
|
7683 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5121, POWERPC_SVR_5121, G2LE), |
7684 | 80d11f44 | j_mayer | #endif
|
7685 | 80d11f44 | j_mayer | /* MPC5200 */
|
7686 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200",
|
7687 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200, POWERPC_SVR_5200, G2LE), |
7688 | 80d11f44 | j_mayer | /* MPC5200 v1.0 */
|
7689 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v10",
|
7690 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v10, POWERPC_SVR_5200_v10, G2LE), |
7691 | 80d11f44 | j_mayer | /* MPC5200 v1.1 */
|
7692 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v11",
|
7693 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v11, POWERPC_SVR_5200_v11, G2LE), |
7694 | 80d11f44 | j_mayer | /* MPC5200 v1.2 */
|
7695 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v12",
|
7696 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v12, POWERPC_SVR_5200_v12, G2LE), |
7697 | 80d11f44 | j_mayer | /* MPC5200B */
|
7698 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B",
|
7699 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B, POWERPC_SVR_5200B, G2LE), |
7700 | 80d11f44 | j_mayer | /* MPC5200B v2.0 */
|
7701 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v20",
|
7702 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v20, POWERPC_SVR_5200B_v20, G2LE), |
7703 | 80d11f44 | j_mayer | /* MPC5200B v2.1 */
|
7704 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v21",
|
7705 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v21, POWERPC_SVR_5200B_v21, G2LE), |
7706 | 80d11f44 | j_mayer | /* MPC8241 */
|
7707 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8241", CPU_POWERPC_MPC8241, G2),
|
7708 | 80d11f44 | j_mayer | /* MPC8245 */
|
7709 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8245", CPU_POWERPC_MPC8245, G2),
|
7710 | 80d11f44 | j_mayer | /* MPC8247 */
|
7711 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8247", CPU_POWERPC_MPC8247, G2LE),
|
7712 | 80d11f44 | j_mayer | /* MPC8248 */
|
7713 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8248", CPU_POWERPC_MPC8248, G2LE),
|
7714 | 80d11f44 | j_mayer | /* MPC8250 */
|
7715 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250", CPU_POWERPC_MPC8250, G2),
|
7716 | 80d11f44 | j_mayer | /* MPC8250 HiP3 */
|
7717 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP3", CPU_POWERPC_MPC8250_HiP3, G2),
|
7718 | 80d11f44 | j_mayer | /* MPC8250 HiP4 */
|
7719 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP4", CPU_POWERPC_MPC8250_HiP4, G2),
|
7720 | 80d11f44 | j_mayer | /* MPC8255 */
|
7721 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255", CPU_POWERPC_MPC8255, G2),
|
7722 | 80d11f44 | j_mayer | /* MPC8255 HiP3 */
|
7723 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP3", CPU_POWERPC_MPC8255_HiP3, G2),
|
7724 | 80d11f44 | j_mayer | /* MPC8255 HiP4 */
|
7725 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP4", CPU_POWERPC_MPC8255_HiP4, G2),
|
7726 | 80d11f44 | j_mayer | /* MPC8260 */
|
7727 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260", CPU_POWERPC_MPC8260, G2),
|
7728 | 80d11f44 | j_mayer | /* MPC8260 HiP3 */
|
7729 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP3", CPU_POWERPC_MPC8260_HiP3, G2),
|
7730 | 80d11f44 | j_mayer | /* MPC8260 HiP4 */
|
7731 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP4", CPU_POWERPC_MPC8260_HiP4, G2),
|
7732 | 80d11f44 | j_mayer | /* MPC8264 */
|
7733 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264", CPU_POWERPC_MPC8264, G2),
|
7734 | 80d11f44 | j_mayer | /* MPC8264 HiP3 */
|
7735 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP3", CPU_POWERPC_MPC8264_HiP3, G2),
|
7736 | 80d11f44 | j_mayer | /* MPC8264 HiP4 */
|
7737 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP4", CPU_POWERPC_MPC8264_HiP4, G2),
|
7738 | 80d11f44 | j_mayer | /* MPC8265 */
|
7739 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265", CPU_POWERPC_MPC8265, G2),
|
7740 | 80d11f44 | j_mayer | /* MPC8265 HiP3 */
|
7741 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP3", CPU_POWERPC_MPC8265_HiP3, G2),
|
7742 | 80d11f44 | j_mayer | /* MPC8265 HiP4 */
|
7743 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP4", CPU_POWERPC_MPC8265_HiP4, G2),
|
7744 | 80d11f44 | j_mayer | /* MPC8266 */
|
7745 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266", CPU_POWERPC_MPC8266, G2),
|
7746 | 80d11f44 | j_mayer | /* MPC8266 HiP3 */
|
7747 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP3", CPU_POWERPC_MPC8266_HiP3, G2),
|
7748 | 80d11f44 | j_mayer | /* MPC8266 HiP4 */
|
7749 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP4", CPU_POWERPC_MPC8266_HiP4, G2),
|
7750 | 80d11f44 | j_mayer | /* MPC8270 */
|
7751 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8270", CPU_POWERPC_MPC8270, G2LE),
|
7752 | 80d11f44 | j_mayer | /* MPC8271 */
|
7753 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8271", CPU_POWERPC_MPC8271, G2LE),
|
7754 | 80d11f44 | j_mayer | /* MPC8272 */
|
7755 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8272", CPU_POWERPC_MPC8272, G2LE),
|
7756 | 80d11f44 | j_mayer | /* MPC8275 */
|
7757 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8275", CPU_POWERPC_MPC8275, G2LE),
|
7758 | 80d11f44 | j_mayer | /* MPC8280 */
|
7759 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8280", CPU_POWERPC_MPC8280, G2LE),
|
7760 | a750fc0b | j_mayer | /* e200 family */
|
7761 | a750fc0b | j_mayer | /* Generic PowerPC e200 core */
|
7762 | 80d11f44 | j_mayer | POWERPC_DEF("e200", CPU_POWERPC_e200, e200),
|
7763 | 80d11f44 | j_mayer | /* Generic MPC55xx core */
|
7764 | 80d11f44 | j_mayer | #if defined (TODO)
|
7765 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC55xx",
|
7766 | 80d11f44 | j_mayer | CPU_POWERPC_MPC55xx, POWERPC_SVR_55xx, e200), |
7767 | a750fc0b | j_mayer | #endif
|
7768 | a750fc0b | j_mayer | #if defined (TODO)
|
7769 | 80d11f44 | j_mayer | /* PowerPC e200z0 core */
|
7770 | 80d11f44 | j_mayer | POWERPC_DEF("e200z0", CPU_POWERPC_e200z0, e200),
|
7771 | a750fc0b | j_mayer | #endif
|
7772 | a750fc0b | j_mayer | #if defined (TODO)
|
7773 | 80d11f44 | j_mayer | /* PowerPC e200z1 core */
|
7774 | 80d11f44 | j_mayer | POWERPC_DEF("e200z1", CPU_POWERPC_e200z1, e200),
|
7775 | 80d11f44 | j_mayer | #endif
|
7776 | 80d11f44 | j_mayer | #if defined (TODO)
|
7777 | 80d11f44 | j_mayer | /* PowerPC e200z3 core */
|
7778 | 80d11f44 | j_mayer | POWERPC_DEF("e200z3", CPU_POWERPC_e200z3, e200),
|
7779 | 80d11f44 | j_mayer | #endif
|
7780 | 80d11f44 | j_mayer | /* PowerPC e200z5 core */
|
7781 | 80d11f44 | j_mayer | POWERPC_DEF("e200z5", CPU_POWERPC_e200z5, e200),
|
7782 | a750fc0b | j_mayer | /* PowerPC e200z6 core */
|
7783 | 80d11f44 | j_mayer | POWERPC_DEF("e200z6", CPU_POWERPC_e200z6, e200),
|
7784 | 80d11f44 | j_mayer | /* PowerPC e200 microcontrollers */
|
7785 | 80d11f44 | j_mayer | #if defined (TODO)
|
7786 | 80d11f44 | j_mayer | /* MPC5514E */
|
7787 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E",
|
7788 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E, POWERPC_SVR_5514E, e200), |
7789 | a750fc0b | j_mayer | #endif
|
7790 | a750fc0b | j_mayer | #if defined (TODO)
|
7791 | 80d11f44 | j_mayer | /* MPC5514E v0 */
|
7792 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v0",
|
7793 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v0, POWERPC_SVR_5514E_v0, e200), |
7794 | a750fc0b | j_mayer | #endif
|
7795 | a750fc0b | j_mayer | #if defined (TODO)
|
7796 | 80d11f44 | j_mayer | /* MPC5514E v1 */
|
7797 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v1",
|
7798 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v1, POWERPC_SVR_5514E_v1, e200), |
7799 | a750fc0b | j_mayer | #endif
|
7800 | a750fc0b | j_mayer | #if defined (TODO)
|
7801 | 80d11f44 | j_mayer | /* MPC5514G */
|
7802 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G",
|
7803 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G, POWERPC_SVR_5514G, e200), |
7804 | a750fc0b | j_mayer | #endif
|
7805 | a750fc0b | j_mayer | #if defined (TODO)
|
7806 | 80d11f44 | j_mayer | /* MPC5514G v0 */
|
7807 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v0",
|
7808 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v0, POWERPC_SVR_5514G_v0, e200), |
7809 | a750fc0b | j_mayer | #endif
|
7810 | a750fc0b | j_mayer | #if defined (TODO)
|
7811 | 80d11f44 | j_mayer | /* MPC5514G v1 */
|
7812 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v1",
|
7813 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v1, POWERPC_SVR_5514G_v1, e200), |
7814 | a750fc0b | j_mayer | #endif
|
7815 | a750fc0b | j_mayer | #if defined (TODO)
|
7816 | 80d11f44 | j_mayer | /* MPC5515S */
|
7817 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5515S",
|
7818 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5515S, POWERPC_SVR_5515S, e200), |
7819 | a750fc0b | j_mayer | #endif
|
7820 | a750fc0b | j_mayer | #if defined (TODO)
|
7821 | 80d11f44 | j_mayer | /* MPC5516E */
|
7822 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E",
|
7823 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E, POWERPC_SVR_5516E, e200), |
7824 | a750fc0b | j_mayer | #endif
|
7825 | a750fc0b | j_mayer | #if defined (TODO)
|
7826 | 80d11f44 | j_mayer | /* MPC5516E v0 */
|
7827 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v0",
|
7828 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v0, POWERPC_SVR_5516E_v0, e200), |
7829 | a750fc0b | j_mayer | #endif
|
7830 | a750fc0b | j_mayer | #if defined (TODO)
|
7831 | 80d11f44 | j_mayer | /* MPC5516E v1 */
|
7832 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v1",
|
7833 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v1, POWERPC_SVR_5516E_v1, e200), |
7834 | a750fc0b | j_mayer | #endif
|
7835 | a750fc0b | j_mayer | #if defined (TODO)
|
7836 | 80d11f44 | j_mayer | /* MPC5516G */
|
7837 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G",
|
7838 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G, POWERPC_SVR_5516G, e200), |
7839 | a750fc0b | j_mayer | #endif
|
7840 | a750fc0b | j_mayer | #if defined (TODO)
|
7841 | 80d11f44 | j_mayer | /* MPC5516G v0 */
|
7842 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v0",
|
7843 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v0, POWERPC_SVR_5516G_v0, e200), |
7844 | a750fc0b | j_mayer | #endif
|
7845 | a750fc0b | j_mayer | #if defined (TODO)
|
7846 | 80d11f44 | j_mayer | /* MPC5516G v1 */
|
7847 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v1",
|
7848 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v1, POWERPC_SVR_5516G_v1, e200), |
7849 | a750fc0b | j_mayer | #endif
|
7850 | a750fc0b | j_mayer | #if defined (TODO)
|
7851 | 80d11f44 | j_mayer | /* MPC5516S */
|
7852 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516S",
|
7853 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516S, POWERPC_SVR_5516S, e200), |
7854 | a750fc0b | j_mayer | #endif
|
7855 | a750fc0b | j_mayer | #if defined (TODO)
|
7856 | 80d11f44 | j_mayer | /* MPC5533 */
|
7857 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5533",
|
7858 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5533, POWERPC_SVR_5533, e200), |
7859 | a750fc0b | j_mayer | #endif
|
7860 | a750fc0b | j_mayer | #if defined (TODO)
|
7861 | 80d11f44 | j_mayer | /* MPC5534 */
|
7862 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5534",
|
7863 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5534, POWERPC_SVR_5534, e200), |
7864 | a750fc0b | j_mayer | #endif
|
7865 | 80d11f44 | j_mayer | #if defined (TODO)
|
7866 | 80d11f44 | j_mayer | /* MPC5553 */
|
7867 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5553",
|
7868 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5553, POWERPC_SVR_5553, e200), |
7869 | 80d11f44 | j_mayer | #endif
|
7870 | 80d11f44 | j_mayer | #if defined (TODO)
|
7871 | 80d11f44 | j_mayer | /* MPC5554 */
|
7872 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5554",
|
7873 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5554, POWERPC_SVR_5554, e200), |
7874 | 80d11f44 | j_mayer | #endif
|
7875 | 80d11f44 | j_mayer | #if defined (TODO)
|
7876 | 80d11f44 | j_mayer | /* MPC5561 */
|
7877 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5561",
|
7878 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5561, POWERPC_SVR_5561, e200), |
7879 | 80d11f44 | j_mayer | #endif
|
7880 | 80d11f44 | j_mayer | #if defined (TODO)
|
7881 | 80d11f44 | j_mayer | /* MPC5565 */
|
7882 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5565",
|
7883 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5565, POWERPC_SVR_5565, e200), |
7884 | 80d11f44 | j_mayer | #endif
|
7885 | 80d11f44 | j_mayer | #if defined (TODO)
|
7886 | 80d11f44 | j_mayer | /* MPC5566 */
|
7887 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5566",
|
7888 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5566, POWERPC_SVR_5566, e200), |
7889 | 80d11f44 | j_mayer | #endif
|
7890 | 80d11f44 | j_mayer | #if defined (TODO)
|
7891 | 80d11f44 | j_mayer | /* MPC5567 */
|
7892 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5567",
|
7893 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5567, POWERPC_SVR_5567, e200), |
7894 | 80d11f44 | j_mayer | #endif
|
7895 | 80d11f44 | j_mayer | /* e300 family */
|
7896 | 80d11f44 | j_mayer | /* Generic PowerPC e300 core */
|
7897 | 80d11f44 | j_mayer | POWERPC_DEF("e300", CPU_POWERPC_e300, e300),
|
7898 | 80d11f44 | j_mayer | /* PowerPC e300c1 core */
|
7899 | 80d11f44 | j_mayer | POWERPC_DEF("e300c1", CPU_POWERPC_e300c1, e300),
|
7900 | 80d11f44 | j_mayer | /* PowerPC e300c2 core */
|
7901 | 80d11f44 | j_mayer | POWERPC_DEF("e300c2", CPU_POWERPC_e300c2, e300),
|
7902 | 80d11f44 | j_mayer | /* PowerPC e300c3 core */
|
7903 | 80d11f44 | j_mayer | POWERPC_DEF("e300c3", CPU_POWERPC_e300c3, e300),
|
7904 | 80d11f44 | j_mayer | /* PowerPC e300c4 core */
|
7905 | 80d11f44 | j_mayer | POWERPC_DEF("e300c4", CPU_POWERPC_e300c4, e300),
|
7906 | 80d11f44 | j_mayer | /* PowerPC e300 microcontrollers */
|
7907 | 80d11f44 | j_mayer | #if defined (TODO)
|
7908 | 80d11f44 | j_mayer | /* MPC8313 */
|
7909 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313",
|
7910 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8313, POWERPC_SVR_8313, e300), |
7911 | 80d11f44 | j_mayer | #endif
|
7912 | 80d11f44 | j_mayer | #if defined (TODO)
|
7913 | 80d11f44 | j_mayer | /* MPC8313E */
|
7914 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313E",
|
7915 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8313E, POWERPC_SVR_8313E, e300), |
7916 | 80d11f44 | j_mayer | #endif
|
7917 | 80d11f44 | j_mayer | #if defined (TODO)
|
7918 | 80d11f44 | j_mayer | /* MPC8314 */
|
7919 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314",
|
7920 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8314, POWERPC_SVR_8314, e300), |
7921 | 80d11f44 | j_mayer | #endif
|
7922 | 80d11f44 | j_mayer | #if defined (TODO)
|
7923 | 80d11f44 | j_mayer | /* MPC8314E */
|
7924 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314E",
|
7925 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8314E, POWERPC_SVR_8314E, e300), |
7926 | 80d11f44 | j_mayer | #endif
|
7927 | 80d11f44 | j_mayer | #if defined (TODO)
|
7928 | 80d11f44 | j_mayer | /* MPC8315 */
|
7929 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315",
|
7930 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8315, POWERPC_SVR_8315, e300), |
7931 | 80d11f44 | j_mayer | #endif
|
7932 | 80d11f44 | j_mayer | #if defined (TODO)
|
7933 | 80d11f44 | j_mayer | /* MPC8315E */
|
7934 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315E",
|
7935 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8315E, POWERPC_SVR_8315E, e300), |
7936 | 80d11f44 | j_mayer | #endif
|
7937 | 80d11f44 | j_mayer | #if defined (TODO)
|
7938 | 80d11f44 | j_mayer | /* MPC8321 */
|
7939 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321",
|
7940 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8321, POWERPC_SVR_8321, e300), |
7941 | 80d11f44 | j_mayer | #endif
|
7942 | 80d11f44 | j_mayer | #if defined (TODO)
|
7943 | 80d11f44 | j_mayer | /* MPC8321E */
|
7944 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321E",
|
7945 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8321E, POWERPC_SVR_8321E, e300), |
7946 | 80d11f44 | j_mayer | #endif
|
7947 | 80d11f44 | j_mayer | #if defined (TODO)
|
7948 | 80d11f44 | j_mayer | /* MPC8323 */
|
7949 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323",
|
7950 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8323, POWERPC_SVR_8323, e300), |
7951 | 80d11f44 | j_mayer | #endif
|
7952 | 80d11f44 | j_mayer | #if defined (TODO)
|
7953 | 80d11f44 | j_mayer | /* MPC8323E */
|
7954 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323E",
|
7955 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8323E, POWERPC_SVR_8323E, e300), |
7956 | 80d11f44 | j_mayer | #endif
|
7957 | 80d11f44 | j_mayer | /* MPC8343A */
|
7958 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343A",
|
7959 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8343A, POWERPC_SVR_8343A, e300), |
7960 | 80d11f44 | j_mayer | /* MPC8343EA */
|
7961 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343EA",
|
7962 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8343EA, POWERPC_SVR_8343EA, e300), |
7963 | 80d11f44 | j_mayer | /* MPC8347A */
|
7964 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347A",
|
7965 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347A, POWERPC_SVR_8347A, e300), |
7966 | 80d11f44 | j_mayer | /* MPC8347AT */
|
7967 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AT",
|
7968 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347AT, POWERPC_SVR_8347AT, e300), |
7969 | 80d11f44 | j_mayer | /* MPC8347AP */
|
7970 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AP",
|
7971 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347AP, POWERPC_SVR_8347AP, e300), |
7972 | 80d11f44 | j_mayer | /* MPC8347EA */
|
7973 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EA",
|
7974 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EA, POWERPC_SVR_8347EA, e300), |
7975 | 80d11f44 | j_mayer | /* MPC8347EAT */
|
7976 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAT",
|
7977 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EAT, POWERPC_SVR_8347EAT, e300), |
7978 | 80d11f44 | j_mayer | /* MPC8343EAP */
|
7979 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAP",
|
7980 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EAP, POWERPC_SVR_8347EAP, e300), |
7981 | 80d11f44 | j_mayer | /* MPC8349 */
|
7982 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349",
|
7983 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349, POWERPC_SVR_8349, e300), |
7984 | 80d11f44 | j_mayer | /* MPC8349A */
|
7985 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349A",
|
7986 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349A, POWERPC_SVR_8349A, e300), |
7987 | 80d11f44 | j_mayer | /* MPC8349E */
|
7988 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349E",
|
7989 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349E, POWERPC_SVR_8349E, e300), |
7990 | 80d11f44 | j_mayer | /* MPC8349EA */
|
7991 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349EA",
|
7992 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349EA, POWERPC_SVR_8349EA, e300), |
7993 | 80d11f44 | j_mayer | #if defined (TODO)
|
7994 | 80d11f44 | j_mayer | /* MPC8358E */
|
7995 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8358E",
|
7996 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8358E, POWERPC_SVR_8358E, e300), |
7997 | 80d11f44 | j_mayer | #endif
|
7998 | 80d11f44 | j_mayer | #if defined (TODO)
|
7999 | 80d11f44 | j_mayer | /* MPC8360E */
|
8000 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8360E",
|
8001 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8360E, POWERPC_SVR_8360E, e300), |
8002 | 80d11f44 | j_mayer | #endif
|
8003 | 80d11f44 | j_mayer | /* MPC8377 */
|
8004 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377",
|
8005 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8377, POWERPC_SVR_8377, e300), |
8006 | 80d11f44 | j_mayer | /* MPC8377E */
|
8007 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377E",
|
8008 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8377E, POWERPC_SVR_8377E, e300), |
8009 | 80d11f44 | j_mayer | /* MPC8378 */
|
8010 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378",
|
8011 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8378, POWERPC_SVR_8378, e300), |
8012 | 80d11f44 | j_mayer | /* MPC8378E */
|
8013 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378E",
|
8014 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8378E, POWERPC_SVR_8378E, e300), |
8015 | 80d11f44 | j_mayer | /* MPC8379 */
|
8016 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379",
|
8017 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8379, POWERPC_SVR_8379, e300), |
8018 | 80d11f44 | j_mayer | /* MPC8379E */
|
8019 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379E",
|
8020 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8379E, POWERPC_SVR_8379E, e300), |
8021 | 80d11f44 | j_mayer | /* e500 family */
|
8022 | 80d11f44 | j_mayer | /* PowerPC e500 core */
|
8023 | 80d11f44 | j_mayer | POWERPC_DEF("e500", CPU_POWERPC_e500, e500),
|
8024 | 80d11f44 | j_mayer | /* PowerPC e500 v1.0 core */
|
8025 | 80d11f44 | j_mayer | POWERPC_DEF("e500_v10", CPU_POWERPC_e500_v10, e500),
|
8026 | 80d11f44 | j_mayer | /* PowerPC e500 v2.0 core */
|
8027 | 80d11f44 | j_mayer | POWERPC_DEF("e500_v20", CPU_POWERPC_e500_v20, e500),
|
8028 | 80d11f44 | j_mayer | /* PowerPC e500v2 core */
|
8029 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2", CPU_POWERPC_e500v2, e500),
|
8030 | 80d11f44 | j_mayer | /* PowerPC e500v2 v1.0 core */
|
8031 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v10", CPU_POWERPC_e500v2_v10, e500),
|
8032 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.0 core */
|
8033 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v20", CPU_POWERPC_e500v2_v20, e500),
|
8034 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.1 core */
|
8035 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v21", CPU_POWERPC_e500v2_v21, e500),
|
8036 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.2 core */
|
8037 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v22", CPU_POWERPC_e500v2_v22, e500),
|
8038 | 80d11f44 | j_mayer | /* PowerPC e500v2 v3.0 core */
|
8039 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v30", CPU_POWERPC_e500v2_v30, e500),
|
8040 | 80d11f44 | j_mayer | /* PowerPC e500 microcontrollers */
|
8041 | 80d11f44 | j_mayer | /* MPC8533 */
|
8042 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533",
|
8043 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533, POWERPC_SVR_8533, e500), |
8044 | 80d11f44 | j_mayer | /* MPC8533 v1.0 */
|
8045 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v10",
|
8046 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533_v10, POWERPC_SVR_8533_v10, e500), |
8047 | 80d11f44 | j_mayer | /* MPC8533 v1.1 */
|
8048 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v11",
|
8049 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533_v11, POWERPC_SVR_8533_v11, e500), |
8050 | 80d11f44 | j_mayer | /* MPC8533E */
|
8051 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E",
|
8052 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533E, POWERPC_SVR_8533E, e500), |
8053 | 80d11f44 | j_mayer | /* MPC8533E v1.0 */
|
8054 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v10",
|
8055 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533E_v10, POWERPC_SVR_8533E_v10, e500), |
8056 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v11",
|
8057 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533E_v11, POWERPC_SVR_8533E_v11, e500), |
8058 | 80d11f44 | j_mayer | /* MPC8540 */
|
8059 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540",
|
8060 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8540, POWERPC_SVR_8540, e500), |
8061 | 80d11f44 | j_mayer | /* MPC8540 v1.0 */
|
8062 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v10",
|
8063 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8540_v10, POWERPC_SVR_8540_v10, e500), |
8064 | 80d11f44 | j_mayer | /* MPC8540 v2.0 */
|
8065 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v20",
|
8066 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8540_v20, POWERPC_SVR_8540_v20, e500), |
8067 | 80d11f44 | j_mayer | /* MPC8540 v2.1 */
|
8068 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v21",
|
8069 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8540_v21, POWERPC_SVR_8540_v21, e500), |
8070 | 80d11f44 | j_mayer | /* MPC8541 */
|
8071 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541",
|
8072 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541, POWERPC_SVR_8541, e500), |
8073 | 80d11f44 | j_mayer | /* MPC8541 v1.0 */
|
8074 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v10",
|
8075 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541_v10, POWERPC_SVR_8541_v10, e500), |
8076 | 80d11f44 | j_mayer | /* MPC8541 v1.1 */
|
8077 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v11",
|
8078 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541_v11, POWERPC_SVR_8541_v11, e500), |
8079 | 80d11f44 | j_mayer | /* MPC8541E */
|
8080 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E",
|
8081 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541E, POWERPC_SVR_8541E, e500), |
8082 | 80d11f44 | j_mayer | /* MPC8541E v1.0 */
|
8083 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v10",
|
8084 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541E_v10, POWERPC_SVR_8541E_v10, e500), |
8085 | 80d11f44 | j_mayer | /* MPC8541E v1.1 */
|
8086 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v11",
|
8087 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541E_v11, POWERPC_SVR_8541E_v11, e500), |
8088 | 80d11f44 | j_mayer | /* MPC8543 */
|
8089 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543",
|
8090 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543, POWERPC_SVR_8543, e500), |
8091 | 80d11f44 | j_mayer | /* MPC8543 v1.0 */
|
8092 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v10",
|
8093 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543_v10, POWERPC_SVR_8543_v10, e500), |
8094 | 80d11f44 | j_mayer | /* MPC8543 v1.1 */
|
8095 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v11",
|
8096 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543_v11, POWERPC_SVR_8543_v11, e500), |
8097 | 80d11f44 | j_mayer | /* MPC8543 v2.0 */
|
8098 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v20",
|
8099 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543_v20, POWERPC_SVR_8543_v20, e500), |
8100 | 80d11f44 | j_mayer | /* MPC8543 v2.1 */
|
8101 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v21",
|
8102 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543_v21, POWERPC_SVR_8543_v21, e500), |
8103 | 80d11f44 | j_mayer | /* MPC8543E */
|
8104 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E",
|
8105 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E, POWERPC_SVR_8543E, e500), |
8106 | 80d11f44 | j_mayer | /* MPC8543E v1.0 */
|
8107 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v10",
|
8108 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E_v10, POWERPC_SVR_8543E_v10, e500), |
8109 | 80d11f44 | j_mayer | /* MPC8543E v1.1 */
|
8110 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v11",
|
8111 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E_v11, POWERPC_SVR_8543E_v11, e500), |
8112 | 80d11f44 | j_mayer | /* MPC8543E v2.0 */
|
8113 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v20",
|
8114 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E_v20, POWERPC_SVR_8543E_v20, e500), |
8115 | 80d11f44 | j_mayer | /* MPC8543E v2.1 */
|
8116 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v21",
|
8117 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E_v21, POWERPC_SVR_8543E_v21, e500), |
8118 | 80d11f44 | j_mayer | /* MPC8544 */
|
8119 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544",
|
8120 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544, POWERPC_SVR_8544, e500), |
8121 | 80d11f44 | j_mayer | /* MPC8544 v1.0 */
|
8122 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v10",
|
8123 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544_v10, POWERPC_SVR_8544_v10, e500), |
8124 | 80d11f44 | j_mayer | /* MPC8544 v1.1 */
|
8125 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v11",
|
8126 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544_v11, POWERPC_SVR_8544_v11, e500), |
8127 | 80d11f44 | j_mayer | /* MPC8544E */
|
8128 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E",
|
8129 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544E, POWERPC_SVR_8544E, e500), |
8130 | 80d11f44 | j_mayer | /* MPC8544E v1.0 */
|
8131 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v10",
|
8132 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544E_v10, POWERPC_SVR_8544E_v10, e500), |
8133 | 80d11f44 | j_mayer | /* MPC8544E v1.1 */
|
8134 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v11",
|
8135 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544E_v11, POWERPC_SVR_8544E_v11, e500), |
8136 | 80d11f44 | j_mayer | /* MPC8545 */
|
8137 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545",
|
8138 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545, POWERPC_SVR_8545, e500), |
8139 | 80d11f44 | j_mayer | /* MPC8545 v2.0 */
|
8140 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v20",
|
8141 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545_v20, POWERPC_SVR_8545_v20, e500), |
8142 | 80d11f44 | j_mayer | /* MPC8545 v2.1 */
|
8143 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v21",
|
8144 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545_v21, POWERPC_SVR_8545_v21, e500), |
8145 | 80d11f44 | j_mayer | /* MPC8545E */
|
8146 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E",
|
8147 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545E, POWERPC_SVR_8545E, e500), |
8148 | 80d11f44 | j_mayer | /* MPC8545E v2.0 */
|
8149 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v20",
|
8150 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545E_v20, POWERPC_SVR_8545E_v20, e500), |
8151 | 80d11f44 | j_mayer | /* MPC8545E v2.1 */
|
8152 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v21",
|
8153 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545E_v21, POWERPC_SVR_8545E_v21, e500), |
8154 | 80d11f44 | j_mayer | /* MPC8547E */
|
8155 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E",
|
8156 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8547E, POWERPC_SVR_8547E, e500), |
8157 | 80d11f44 | j_mayer | /* MPC8547E v2.0 */
|
8158 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v20",
|
8159 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8547E_v20, POWERPC_SVR_8547E_v20, e500), |
8160 | 80d11f44 | j_mayer | /* MPC8547E v2.1 */
|
8161 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v21",
|
8162 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8547E_v21, POWERPC_SVR_8547E_v21, e500), |
8163 | 80d11f44 | j_mayer | /* MPC8548 */
|
8164 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548",
|
8165 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548, POWERPC_SVR_8548, e500), |
8166 | 80d11f44 | j_mayer | /* MPC8548 v1.0 */
|
8167 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v10",
|
8168 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548_v10, POWERPC_SVR_8548_v10, e500), |
8169 | 80d11f44 | j_mayer | /* MPC8548 v1.1 */
|
8170 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v11",
|
8171 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548_v11, POWERPC_SVR_8548_v11, e500), |
8172 | 80d11f44 | j_mayer | /* MPC8548 v2.0 */
|
8173 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v20",
|
8174 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548_v20, POWERPC_SVR_8548_v20, e500), |
8175 | 80d11f44 | j_mayer | /* MPC8548 v2.1 */
|
8176 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v21",
|
8177 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548_v21, POWERPC_SVR_8548_v21, e500), |
8178 | 80d11f44 | j_mayer | /* MPC8548E */
|
8179 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E",
|
8180 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E, POWERPC_SVR_8548E, e500), |
8181 | 80d11f44 | j_mayer | /* MPC8548E v1.0 */
|
8182 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v10",
|
8183 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E_v10, POWERPC_SVR_8548E_v10, e500), |
8184 | 80d11f44 | j_mayer | /* MPC8548E v1.1 */
|
8185 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v11",
|
8186 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E_v11, POWERPC_SVR_8548E_v11, e500), |
8187 | 80d11f44 | j_mayer | /* MPC8548E v2.0 */
|
8188 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v20",
|
8189 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E_v20, POWERPC_SVR_8548E_v20, e500), |
8190 | 80d11f44 | j_mayer | /* MPC8548E v2.1 */
|
8191 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v21",
|
8192 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E_v21, POWERPC_SVR_8548E_v21, e500), |
8193 | 80d11f44 | j_mayer | /* MPC8555 */
|
8194 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555",
|
8195 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555, POWERPC_SVR_8555, e500), |
8196 | 80d11f44 | j_mayer | /* MPC8555 v1.0 */
|
8197 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v10",
|
8198 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555_v10, POWERPC_SVR_8555_v10, e500), |
8199 | 80d11f44 | j_mayer | /* MPC8555 v1.1 */
|
8200 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v11",
|
8201 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555_v11, POWERPC_SVR_8555_v11, e500), |
8202 | 80d11f44 | j_mayer | /* MPC8555E */
|
8203 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E",
|
8204 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555E, POWERPC_SVR_8555E, e500), |
8205 | 80d11f44 | j_mayer | /* MPC8555E v1.0 */
|
8206 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v10",
|
8207 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555E_v10, POWERPC_SVR_8555E_v10, e500), |
8208 | 80d11f44 | j_mayer | /* MPC8555E v1.1 */
|
8209 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v11",
|
8210 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555E_v11, POWERPC_SVR_8555E_v11, e500), |
8211 | 80d11f44 | j_mayer | /* MPC8560 */
|
8212 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560",
|
8213 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8560, POWERPC_SVR_8560, e500), |
8214 | 80d11f44 | j_mayer | /* MPC8560 v1.0 */
|
8215 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v10",
|
8216 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8560_v10, POWERPC_SVR_8560_v10, e500), |
8217 | 80d11f44 | j_mayer | /* MPC8560 v2.0 */
|
8218 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v20",
|
8219 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8560_v20, POWERPC_SVR_8560_v20, e500), |
8220 | 80d11f44 | j_mayer | /* MPC8560 v2.1 */
|
8221 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v21",
|
8222 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8560_v21, POWERPC_SVR_8560_v21, e500), |
8223 | 80d11f44 | j_mayer | /* MPC8567 */
|
8224 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567",
|
8225 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8567, POWERPC_SVR_8567, e500), |
8226 | 80d11f44 | j_mayer | /* MPC8567E */
|
8227 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567E",
|
8228 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8567E, POWERPC_SVR_8567E, e500), |
8229 | 80d11f44 | j_mayer | /* MPC8568 */
|
8230 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568",
|
8231 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8568, POWERPC_SVR_8568, e500), |
8232 | 80d11f44 | j_mayer | /* MPC8568E */
|
8233 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568E",
|
8234 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8568E, POWERPC_SVR_8568E, e500), |
8235 | 80d11f44 | j_mayer | /* MPC8572 */
|
8236 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572",
|
8237 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8572, POWERPC_SVR_8572, e500), |
8238 | 80d11f44 | j_mayer | /* MPC8572E */
|
8239 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572E",
|
8240 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8572E, POWERPC_SVR_8572E, e500), |
8241 | 80d11f44 | j_mayer | /* e600 family */
|
8242 | 80d11f44 | j_mayer | /* PowerPC e600 core */
|
8243 | 80d11f44 | j_mayer | POWERPC_DEF("e600", CPU_POWERPC_e600, 7400), |
8244 | 80d11f44 | j_mayer | /* PowerPC e600 microcontrollers */
|
8245 | 80d11f44 | j_mayer | #if defined (TODO)
|
8246 | 80d11f44 | j_mayer | /* MPC8610 */
|
8247 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8610",
|
8248 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8610, POWERPC_SVR_8610, 7400),
|
8249 | 80d11f44 | j_mayer | #endif
|
8250 | 80d11f44 | j_mayer | /* MPC8641 */
|
8251 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641",
|
8252 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641, POWERPC_SVR_8641, 7400),
|
8253 | 80d11f44 | j_mayer | /* MPC8641D */
|
8254 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641D",
|
8255 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641D, POWERPC_SVR_8641D, 7400),
|
8256 | a750fc0b | j_mayer | /* 32 bits "classic" PowerPC */
|
8257 | a750fc0b | j_mayer | /* PowerPC 6xx family */
|
8258 | a750fc0b | j_mayer | /* PowerPC 601 */
|
8259 | bd928eba | j_mayer | POWERPC_DEF("601", CPU_POWERPC_601, 601v), |
8260 | c3e36823 | j_mayer | /* PowerPC 601v0 */
|
8261 | 082c6681 | j_mayer | POWERPC_DEF("601_v0", CPU_POWERPC_601_v0, 601), |
8262 | c3e36823 | j_mayer | /* PowerPC 601v1 */
|
8263 | 082c6681 | j_mayer | POWERPC_DEF("601_v1", CPU_POWERPC_601_v1, 601), |
8264 | 082c6681 | j_mayer | /* PowerPC 601v */
|
8265 | bd928eba | j_mayer | POWERPC_DEF("601v", CPU_POWERPC_601v, 601v), |
8266 | a750fc0b | j_mayer | /* PowerPC 601v2 */
|
8267 | 082c6681 | j_mayer | POWERPC_DEF("601_v2", CPU_POWERPC_601_v2, 601v), |
8268 | a750fc0b | j_mayer | /* PowerPC 602 */
|
8269 | 80d11f44 | j_mayer | POWERPC_DEF("602", CPU_POWERPC_602, 602), |
8270 | a750fc0b | j_mayer | /* PowerPC 603 */
|
8271 | 80d11f44 | j_mayer | POWERPC_DEF("603", CPU_POWERPC_603, 603), |
8272 | a750fc0b | j_mayer | /* Code name for PowerPC 603 */
|
8273 | 80d11f44 | j_mayer | POWERPC_DEF("Vanilla", CPU_POWERPC_603, 603), |
8274 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID6) */
|
8275 | 80d11f44 | j_mayer | POWERPC_DEF("603e", CPU_POWERPC_603E, 603E), |
8276 | a750fc0b | j_mayer | /* Code name for PowerPC 603e */
|
8277 | 80d11f44 | j_mayer | POWERPC_DEF("Stretch", CPU_POWERPC_603E, 603E), |
8278 | a750fc0b | j_mayer | /* PowerPC 603e v1.1 */
|
8279 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.1", CPU_POWERPC_603E_v11, 603E), |
8280 | a750fc0b | j_mayer | /* PowerPC 603e v1.2 */
|
8281 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.2", CPU_POWERPC_603E_v12, 603E), |
8282 | a750fc0b | j_mayer | /* PowerPC 603e v1.3 */
|
8283 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.3", CPU_POWERPC_603E_v13, 603E), |
8284 | a750fc0b | j_mayer | /* PowerPC 603e v1.4 */
|
8285 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.4", CPU_POWERPC_603E_v14, 603E), |
8286 | a750fc0b | j_mayer | /* PowerPC 603e v2.2 */
|
8287 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v2.2", CPU_POWERPC_603E_v22, 603E), |
8288 | a750fc0b | j_mayer | /* PowerPC 603e v3 */
|
8289 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v3", CPU_POWERPC_603E_v3, 603E), |
8290 | a750fc0b | j_mayer | /* PowerPC 603e v4 */
|
8291 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4", CPU_POWERPC_603E_v4, 603E), |
8292 | a750fc0b | j_mayer | /* PowerPC 603e v4.1 */
|
8293 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4.1", CPU_POWERPC_603E_v41, 603E), |
8294 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID7) */
|
8295 | 80d11f44 | j_mayer | POWERPC_DEF("603e7", CPU_POWERPC_603E7, 603E), |
8296 | a750fc0b | j_mayer | /* PowerPC 603e7t */
|
8297 | 80d11f44 | j_mayer | POWERPC_DEF("603e7t", CPU_POWERPC_603E7t, 603E), |
8298 | a750fc0b | j_mayer | /* PowerPC 603e7v */
|
8299 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v", CPU_POWERPC_603E7v, 603E), |
8300 | a750fc0b | j_mayer | /* Code name for PowerPC 603ev */
|
8301 | 80d11f44 | j_mayer | POWERPC_DEF("Vaillant", CPU_POWERPC_603E7v, 603E), |
8302 | a750fc0b | j_mayer | /* PowerPC 603e7v1 */
|
8303 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v1", CPU_POWERPC_603E7v1, 603E), |
8304 | a750fc0b | j_mayer | /* PowerPC 603e7v2 */
|
8305 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v2", CPU_POWERPC_603E7v2, 603E), |
8306 | 082c6681 | j_mayer | /* PowerPC 603p (aka PID7v) */
|
8307 | 082c6681 | j_mayer | POWERPC_DEF("603p", CPU_POWERPC_603P, 603E), |
8308 | 082c6681 | j_mayer | /* PowerPC 603r (aka PID7t) */
|
8309 | 80d11f44 | j_mayer | POWERPC_DEF("603r", CPU_POWERPC_603R, 603E), |
8310 | a750fc0b | j_mayer | /* Code name for PowerPC 603r */
|
8311 | 80d11f44 | j_mayer | POWERPC_DEF("Goldeneye", CPU_POWERPC_603R, 603E), |
8312 | a750fc0b | j_mayer | /* PowerPC 604 */
|
8313 | 80d11f44 | j_mayer | POWERPC_DEF("604", CPU_POWERPC_604, 604), |
8314 | 082c6681 | j_mayer | /* PowerPC 604e (aka PID9) */
|
8315 | 082c6681 | j_mayer | POWERPC_DEF("604e", CPU_POWERPC_604E, 604E), |
8316 | 082c6681 | j_mayer | /* Code name for PowerPC 604e */
|
8317 | 082c6681 | j_mayer | POWERPC_DEF("Sirocco", CPU_POWERPC_604E, 604E), |
8318 | a750fc0b | j_mayer | /* PowerPC 604e v1.0 */
|
8319 | 082c6681 | j_mayer | POWERPC_DEF("604e_v1.0", CPU_POWERPC_604E_v10, 604E), |
8320 | a750fc0b | j_mayer | /* PowerPC 604e v2.2 */
|
8321 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.2", CPU_POWERPC_604E_v22, 604E), |
8322 | a750fc0b | j_mayer | /* PowerPC 604e v2.4 */
|
8323 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.4", CPU_POWERPC_604E_v24, 604E), |
8324 | 082c6681 | j_mayer | /* PowerPC 604r (aka PIDA) */
|
8325 | 082c6681 | j_mayer | POWERPC_DEF("604r", CPU_POWERPC_604R, 604E), |
8326 | 082c6681 | j_mayer | /* Code name for PowerPC 604r */
|
8327 | 082c6681 | j_mayer | POWERPC_DEF("Mach5", CPU_POWERPC_604R, 604E), |
8328 | a750fc0b | j_mayer | #if defined(TODO)
|
8329 | a750fc0b | j_mayer | /* PowerPC 604ev */
|
8330 | 082c6681 | j_mayer | POWERPC_DEF("604ev", CPU_POWERPC_604EV, 604E), |
8331 | a750fc0b | j_mayer | #endif
|
8332 | a750fc0b | j_mayer | /* PowerPC 7xx family */
|
8333 | a750fc0b | j_mayer | /* Generic PowerPC 740 (G3) */
|
8334 | bd928eba | j_mayer | POWERPC_DEF("740", CPU_POWERPC_7x0, 740), |
8335 | 082c6681 | j_mayer | /* Code name for PowerPC 740 */
|
8336 | bd928eba | j_mayer | POWERPC_DEF("Arthur", CPU_POWERPC_7x0, 740), |
8337 | a750fc0b | j_mayer | /* Generic PowerPC 750 (G3) */
|
8338 | bd928eba | j_mayer | POWERPC_DEF("750", CPU_POWERPC_7x0, 750), |
8339 | 082c6681 | j_mayer | /* Code name for PowerPC 750 */
|
8340 | bd928eba | j_mayer | POWERPC_DEF("Typhoon", CPU_POWERPC_7x0, 750), |
8341 | a750fc0b | j_mayer | /* PowerPC 740/750 is also known as G3 */
|
8342 | bd928eba | j_mayer | POWERPC_DEF("G3", CPU_POWERPC_7x0, 750), |
8343 | bd928eba | j_mayer | /* PowerPC 740 v1.0 (G3) */
|
8344 | bd928eba | j_mayer | POWERPC_DEF("740_v1.0", CPU_POWERPC_7x0_v10, 740), |
8345 | bd928eba | j_mayer | /* PowerPC 750 v1.0 (G3) */
|
8346 | bd928eba | j_mayer | POWERPC_DEF("750_v1.0", CPU_POWERPC_7x0_v10, 750), |
8347 | a750fc0b | j_mayer | /* PowerPC 740 v2.0 (G3) */
|
8348 | bd928eba | j_mayer | POWERPC_DEF("740_v2.0", CPU_POWERPC_7x0_v20, 740), |
8349 | a750fc0b | j_mayer | /* PowerPC 750 v2.0 (G3) */
|
8350 | bd928eba | j_mayer | POWERPC_DEF("750_v2.0", CPU_POWERPC_7x0_v20, 750), |
8351 | a750fc0b | j_mayer | /* PowerPC 740 v2.1 (G3) */
|
8352 | bd928eba | j_mayer | POWERPC_DEF("740_v2.1", CPU_POWERPC_7x0_v21, 740), |
8353 | a750fc0b | j_mayer | /* PowerPC 750 v2.1 (G3) */
|
8354 | bd928eba | j_mayer | POWERPC_DEF("750_v2.1", CPU_POWERPC_7x0_v21, 750), |
8355 | a750fc0b | j_mayer | /* PowerPC 740 v2.2 (G3) */
|
8356 | bd928eba | j_mayer | POWERPC_DEF("740_v2.2", CPU_POWERPC_7x0_v22, 740), |
8357 | a750fc0b | j_mayer | /* PowerPC 750 v2.2 (G3) */
|
8358 | bd928eba | j_mayer | POWERPC_DEF("750_v2.2", CPU_POWERPC_7x0_v22, 750), |
8359 | a750fc0b | j_mayer | /* PowerPC 740 v3.0 (G3) */
|
8360 | bd928eba | j_mayer | POWERPC_DEF("740_v3.0", CPU_POWERPC_7x0_v30, 740), |
8361 | a750fc0b | j_mayer | /* PowerPC 750 v3.0 (G3) */
|
8362 | bd928eba | j_mayer | POWERPC_DEF("750_v3.0", CPU_POWERPC_7x0_v30, 750), |
8363 | a750fc0b | j_mayer | /* PowerPC 740 v3.1 (G3) */
|
8364 | bd928eba | j_mayer | POWERPC_DEF("740_v3.1", CPU_POWERPC_7x0_v31, 740), |
8365 | a750fc0b | j_mayer | /* PowerPC 750 v3.1 (G3) */
|
8366 | bd928eba | j_mayer | POWERPC_DEF("750_v3.1", CPU_POWERPC_7x0_v31, 750), |
8367 | a750fc0b | j_mayer | /* PowerPC 740E (G3) */
|
8368 | bd928eba | j_mayer | POWERPC_DEF("740e", CPU_POWERPC_740E, 740), |
8369 | bd928eba | j_mayer | /* PowerPC 750E (G3) */
|
8370 | bd928eba | j_mayer | POWERPC_DEF("750e", CPU_POWERPC_750E, 750), |
8371 | a750fc0b | j_mayer | /* PowerPC 740P (G3) */
|
8372 | bd928eba | j_mayer | POWERPC_DEF("740p", CPU_POWERPC_7x0P, 740), |
8373 | a750fc0b | j_mayer | /* PowerPC 750P (G3) */
|
8374 | bd928eba | j_mayer | POWERPC_DEF("750p", CPU_POWERPC_7x0P, 750), |
8375 | a750fc0b | j_mayer | /* Code name for PowerPC 740P/750P (G3) */
|
8376 | bd928eba | j_mayer | POWERPC_DEF("Conan/Doyle", CPU_POWERPC_7x0P, 750), |
8377 | a750fc0b | j_mayer | /* PowerPC 750CL (G3 embedded) */
|
8378 | bd928eba | j_mayer | POWERPC_DEF("750cl", CPU_POWERPC_750CL, 750cl), |
8379 | bd928eba | j_mayer | /* PowerPC 750CL v1.0 */
|
8380 | bd928eba | j_mayer | POWERPC_DEF("750cl_v1.0", CPU_POWERPC_750CL_v10, 750cl), |
8381 | bd928eba | j_mayer | /* PowerPC 750CL v2.0 */
|
8382 | bd928eba | j_mayer | POWERPC_DEF("750cl_v2.0", CPU_POWERPC_750CL_v20, 750cl), |
8383 | a750fc0b | j_mayer | /* PowerPC 750CX (G3 embedded) */
|
8384 | bd928eba | j_mayer | POWERPC_DEF("750cx", CPU_POWERPC_750CX, 750cx), |
8385 | bd928eba | j_mayer | /* PowerPC 750CX v1.0 (G3 embedded) */
|
8386 | bd928eba | j_mayer | POWERPC_DEF("750cx_v1.0", CPU_POWERPC_750CX_v10, 750cx), |
8387 | bd928eba | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8388 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.0", CPU_POWERPC_750CX_v20, 750cx), |
8389 | a750fc0b | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8390 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.1", CPU_POWERPC_750CX_v21, 750cx), |
8391 | a750fc0b | j_mayer | /* PowerPC 750CX v2.2 (G3 embedded) */
|
8392 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.2", CPU_POWERPC_750CX_v22, 750cx), |
8393 | a750fc0b | j_mayer | /* PowerPC 750CXe (G3 embedded) */
|
8394 | bd928eba | j_mayer | POWERPC_DEF("750cxe", CPU_POWERPC_750CXE, 750cx), |
8395 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.1 (G3 embedded) */
|
8396 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.1", CPU_POWERPC_750CXE_v21, 750cx), |
8397 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.2 (G3 embedded) */
|
8398 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.2", CPU_POWERPC_750CXE_v22, 750cx), |
8399 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.3 (G3 embedded) */
|
8400 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.3", CPU_POWERPC_750CXE_v23, 750cx), |
8401 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4 (G3 embedded) */
|
8402 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4", CPU_POWERPC_750CXE_v24, 750cx), |
8403 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4b (G3 embedded) */
|
8404 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4b", CPU_POWERPC_750CXE_v24b, 750cx), |
8405 | bd928eba | j_mayer | /* PowerPC 750CXe v3.0 (G3 embedded) */
|
8406 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.0", CPU_POWERPC_750CXE_v30, 750cx), |
8407 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1 (G3 embedded) */
|
8408 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1", CPU_POWERPC_750CXE_v31, 750cx), |
8409 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1b (G3 embedded) */
|
8410 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1b", CPU_POWERPC_750CXE_v31b, 750cx), |
8411 | a750fc0b | j_mayer | /* PowerPC 750CXr (G3 embedded) */
|
8412 | bd928eba | j_mayer | POWERPC_DEF("750cxr", CPU_POWERPC_750CXR, 750cx), |
8413 | a750fc0b | j_mayer | /* PowerPC 750FL (G3 embedded) */
|
8414 | 80d11f44 | j_mayer | POWERPC_DEF("750fl", CPU_POWERPC_750FL, 750fx), |
8415 | a750fc0b | j_mayer | /* PowerPC 750FX (G3 embedded) */
|
8416 | 80d11f44 | j_mayer | POWERPC_DEF("750fx", CPU_POWERPC_750FX, 750fx), |
8417 | a750fc0b | j_mayer | /* PowerPC 750FX v1.0 (G3 embedded) */
|
8418 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v1.0", CPU_POWERPC_750FX_v10, 750fx), |
8419 | a750fc0b | j_mayer | /* PowerPC 750FX v2.0 (G3 embedded) */
|
8420 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.0", CPU_POWERPC_750FX_v20, 750fx), |
8421 | a750fc0b | j_mayer | /* PowerPC 750FX v2.1 (G3 embedded) */
|
8422 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.1", CPU_POWERPC_750FX_v21, 750fx), |
8423 | a750fc0b | j_mayer | /* PowerPC 750FX v2.2 (G3 embedded) */
|
8424 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.2", CPU_POWERPC_750FX_v22, 750fx), |
8425 | a750fc0b | j_mayer | /* PowerPC 750FX v2.3 (G3 embedded) */
|
8426 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.3", CPU_POWERPC_750FX_v23, 750fx), |
8427 | a750fc0b | j_mayer | /* PowerPC 750GL (G3 embedded) */
|
8428 | bd928eba | j_mayer | POWERPC_DEF("750gl", CPU_POWERPC_750GL, 750gx), |
8429 | a750fc0b | j_mayer | /* PowerPC 750GX (G3 embedded) */
|
8430 | bd928eba | j_mayer | POWERPC_DEF("750gx", CPU_POWERPC_750GX, 750gx), |
8431 | a750fc0b | j_mayer | /* PowerPC 750GX v1.0 (G3 embedded) */
|
8432 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.0", CPU_POWERPC_750GX_v10, 750gx), |
8433 | a750fc0b | j_mayer | /* PowerPC 750GX v1.1 (G3 embedded) */
|
8434 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.1", CPU_POWERPC_750GX_v11, 750gx), |
8435 | a750fc0b | j_mayer | /* PowerPC 750GX v1.2 (G3 embedded) */
|
8436 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.2", CPU_POWERPC_750GX_v12, 750gx), |
8437 | a750fc0b | j_mayer | /* PowerPC 750L (G3 embedded) */
|
8438 | bd928eba | j_mayer | POWERPC_DEF("750l", CPU_POWERPC_750L, 750), |
8439 | a750fc0b | j_mayer | /* Code name for PowerPC 750L (G3 embedded) */
|
8440 | bd928eba | j_mayer | POWERPC_DEF("LoneStar", CPU_POWERPC_750L, 750), |
8441 | bd928eba | j_mayer | /* PowerPC 750L v2.0 (G3 embedded) */
|
8442 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.0", CPU_POWERPC_750L_v20, 750), |
8443 | bd928eba | j_mayer | /* PowerPC 750L v2.1 (G3 embedded) */
|
8444 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.1", CPU_POWERPC_750L_v21, 750), |
8445 | a750fc0b | j_mayer | /* PowerPC 750L v2.2 (G3 embedded) */
|
8446 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.2", CPU_POWERPC_750L_v22, 750), |
8447 | a750fc0b | j_mayer | /* PowerPC 750L v3.0 (G3 embedded) */
|
8448 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.0", CPU_POWERPC_750L_v30, 750), |
8449 | a750fc0b | j_mayer | /* PowerPC 750L v3.2 (G3 embedded) */
|
8450 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.2", CPU_POWERPC_750L_v32, 750), |
8451 | a750fc0b | j_mayer | /* Generic PowerPC 745 */
|
8452 | bd928eba | j_mayer | POWERPC_DEF("745", CPU_POWERPC_7x5, 745), |
8453 | a750fc0b | j_mayer | /* Generic PowerPC 755 */
|
8454 | bd928eba | j_mayer | POWERPC_DEF("755", CPU_POWERPC_7x5, 755), |
8455 | a750fc0b | j_mayer | /* Code name for PowerPC 745/755 */
|
8456 | bd928eba | j_mayer | POWERPC_DEF("Goldfinger", CPU_POWERPC_7x5, 755), |
8457 | a750fc0b | j_mayer | /* PowerPC 745 v1.0 */
|
8458 | bd928eba | j_mayer | POWERPC_DEF("745_v1.0", CPU_POWERPC_7x5_v10, 745), |
8459 | a750fc0b | j_mayer | /* PowerPC 755 v1.0 */
|
8460 | bd928eba | j_mayer | POWERPC_DEF("755_v1.0", CPU_POWERPC_7x5_v10, 755), |
8461 | a750fc0b | j_mayer | /* PowerPC 745 v1.1 */
|
8462 | bd928eba | j_mayer | POWERPC_DEF("745_v1.1", CPU_POWERPC_7x5_v11, 745), |
8463 | a750fc0b | j_mayer | /* PowerPC 755 v1.1 */
|
8464 | bd928eba | j_mayer | POWERPC_DEF("755_v1.1", CPU_POWERPC_7x5_v11, 755), |
8465 | a750fc0b | j_mayer | /* PowerPC 745 v2.0 */
|
8466 | bd928eba | j_mayer | POWERPC_DEF("745_v2.0", CPU_POWERPC_7x5_v20, 745), |
8467 | a750fc0b | j_mayer | /* PowerPC 755 v2.0 */
|
8468 | bd928eba | j_mayer | POWERPC_DEF("755_v2.0", CPU_POWERPC_7x5_v20, 755), |
8469 | a750fc0b | j_mayer | /* PowerPC 745 v2.1 */
|
8470 | bd928eba | j_mayer | POWERPC_DEF("745_v2.1", CPU_POWERPC_7x5_v21, 745), |
8471 | a750fc0b | j_mayer | /* PowerPC 755 v2.1 */
|
8472 | bd928eba | j_mayer | POWERPC_DEF("755_v2.1", CPU_POWERPC_7x5_v21, 755), |
8473 | a750fc0b | j_mayer | /* PowerPC 745 v2.2 */
|
8474 | bd928eba | j_mayer | POWERPC_DEF("745_v2.2", CPU_POWERPC_7x5_v22, 745), |
8475 | a750fc0b | j_mayer | /* PowerPC 755 v2.2 */
|
8476 | bd928eba | j_mayer | POWERPC_DEF("755_v2.2", CPU_POWERPC_7x5_v22, 755), |
8477 | a750fc0b | j_mayer | /* PowerPC 745 v2.3 */
|
8478 | bd928eba | j_mayer | POWERPC_DEF("745_v2.3", CPU_POWERPC_7x5_v23, 745), |
8479 | a750fc0b | j_mayer | /* PowerPC 755 v2.3 */
|
8480 | bd928eba | j_mayer | POWERPC_DEF("755_v2.3", CPU_POWERPC_7x5_v23, 755), |
8481 | a750fc0b | j_mayer | /* PowerPC 745 v2.4 */
|
8482 | bd928eba | j_mayer | POWERPC_DEF("745_v2.4", CPU_POWERPC_7x5_v24, 745), |
8483 | a750fc0b | j_mayer | /* PowerPC 755 v2.4 */
|
8484 | bd928eba | j_mayer | POWERPC_DEF("755_v2.4", CPU_POWERPC_7x5_v24, 755), |
8485 | a750fc0b | j_mayer | /* PowerPC 745 v2.5 */
|
8486 | bd928eba | j_mayer | POWERPC_DEF("745_v2.5", CPU_POWERPC_7x5_v25, 745), |
8487 | a750fc0b | j_mayer | /* PowerPC 755 v2.5 */
|
8488 | bd928eba | j_mayer | POWERPC_DEF("755_v2.5", CPU_POWERPC_7x5_v25, 755), |
8489 | a750fc0b | j_mayer | /* PowerPC 745 v2.6 */
|
8490 | bd928eba | j_mayer | POWERPC_DEF("745_v2.6", CPU_POWERPC_7x5_v26, 745), |
8491 | a750fc0b | j_mayer | /* PowerPC 755 v2.6 */
|
8492 | bd928eba | j_mayer | POWERPC_DEF("755_v2.6", CPU_POWERPC_7x5_v26, 755), |
8493 | a750fc0b | j_mayer | /* PowerPC 745 v2.7 */
|
8494 | bd928eba | j_mayer | POWERPC_DEF("745_v2.7", CPU_POWERPC_7x5_v27, 745), |
8495 | a750fc0b | j_mayer | /* PowerPC 755 v2.7 */
|
8496 | bd928eba | j_mayer | POWERPC_DEF("755_v2.7", CPU_POWERPC_7x5_v27, 755), |
8497 | a750fc0b | j_mayer | /* PowerPC 745 v2.8 */
|
8498 | bd928eba | j_mayer | POWERPC_DEF("745_v2.8", CPU_POWERPC_7x5_v28, 745), |
8499 | a750fc0b | j_mayer | /* PowerPC 755 v2.8 */
|
8500 | bd928eba | j_mayer | POWERPC_DEF("755_v2.8", CPU_POWERPC_7x5_v28, 755), |
8501 | a750fc0b | j_mayer | #if defined (TODO)
|
8502 | a750fc0b | j_mayer | /* PowerPC 745P (G3) */
|
8503 | bd928eba | j_mayer | POWERPC_DEF("745p", CPU_POWERPC_7x5P, 745), |
8504 | a750fc0b | j_mayer | /* PowerPC 755P (G3) */
|
8505 | bd928eba | j_mayer | POWERPC_DEF("755p", CPU_POWERPC_7x5P, 755), |
8506 | a750fc0b | j_mayer | #endif
|
8507 | a750fc0b | j_mayer | /* PowerPC 74xx family */
|
8508 | a750fc0b | j_mayer | /* PowerPC 7400 (G4) */
|
8509 | 80d11f44 | j_mayer | POWERPC_DEF("7400", CPU_POWERPC_7400, 7400), |
8510 | a750fc0b | j_mayer | /* Code name for PowerPC 7400 */
|
8511 | 80d11f44 | j_mayer | POWERPC_DEF("Max", CPU_POWERPC_7400, 7400), |
8512 | a750fc0b | j_mayer | /* PowerPC 74xx is also well known as G4 */
|
8513 | 80d11f44 | j_mayer | POWERPC_DEF("G4", CPU_POWERPC_7400, 7400), |
8514 | a750fc0b | j_mayer | /* PowerPC 7400 v1.0 (G4) */
|
8515 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.0", CPU_POWERPC_7400_v10, 7400), |
8516 | a750fc0b | j_mayer | /* PowerPC 7400 v1.1 (G4) */
|
8517 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.1", CPU_POWERPC_7400_v11, 7400), |
8518 | a750fc0b | j_mayer | /* PowerPC 7400 v2.0 (G4) */
|
8519 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.0", CPU_POWERPC_7400_v20, 7400), |
8520 | 4e777442 | j_mayer | /* PowerPC 7400 v2.1 (G4) */
|
8521 | 4e777442 | j_mayer | POWERPC_DEF("7400_v2.1", CPU_POWERPC_7400_v21, 7400), |
8522 | a750fc0b | j_mayer | /* PowerPC 7400 v2.2 (G4) */
|
8523 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.2", CPU_POWERPC_7400_v22, 7400), |
8524 | a750fc0b | j_mayer | /* PowerPC 7400 v2.6 (G4) */
|
8525 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.6", CPU_POWERPC_7400_v26, 7400), |
8526 | a750fc0b | j_mayer | /* PowerPC 7400 v2.7 (G4) */
|
8527 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.7", CPU_POWERPC_7400_v27, 7400), |
8528 | a750fc0b | j_mayer | /* PowerPC 7400 v2.8 (G4) */
|
8529 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.8", CPU_POWERPC_7400_v28, 7400), |
8530 | a750fc0b | j_mayer | /* PowerPC 7400 v2.9 (G4) */
|
8531 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.9", CPU_POWERPC_7400_v29, 7400), |
8532 | a750fc0b | j_mayer | /* PowerPC 7410 (G4) */
|
8533 | 80d11f44 | j_mayer | POWERPC_DEF("7410", CPU_POWERPC_7410, 7410), |
8534 | a750fc0b | j_mayer | /* Code name for PowerPC 7410 */
|
8535 | 80d11f44 | j_mayer | POWERPC_DEF("Nitro", CPU_POWERPC_7410, 7410), |
8536 | a750fc0b | j_mayer | /* PowerPC 7410 v1.0 (G4) */
|
8537 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.0", CPU_POWERPC_7410_v10, 7410), |
8538 | a750fc0b | j_mayer | /* PowerPC 7410 v1.1 (G4) */
|
8539 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.1", CPU_POWERPC_7410_v11, 7410), |
8540 | a750fc0b | j_mayer | /* PowerPC 7410 v1.2 (G4) */
|
8541 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.2", CPU_POWERPC_7410_v12, 7410), |
8542 | a750fc0b | j_mayer | /* PowerPC 7410 v1.3 (G4) */
|
8543 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.3", CPU_POWERPC_7410_v13, 7410), |
8544 | a750fc0b | j_mayer | /* PowerPC 7410 v1.4 (G4) */
|
8545 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.4", CPU_POWERPC_7410_v14, 7410), |
8546 | a750fc0b | j_mayer | /* PowerPC 7448 (G4) */
|
8547 | 80d11f44 | j_mayer | POWERPC_DEF("7448", CPU_POWERPC_7448, 7400), |
8548 | a750fc0b | j_mayer | /* PowerPC 7448 v1.0 (G4) */
|
8549 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.0", CPU_POWERPC_7448_v10, 7400), |
8550 | a750fc0b | j_mayer | /* PowerPC 7448 v1.1 (G4) */
|
8551 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.1", CPU_POWERPC_7448_v11, 7400), |
8552 | a750fc0b | j_mayer | /* PowerPC 7448 v2.0 (G4) */
|
8553 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.0", CPU_POWERPC_7448_v20, 7400), |
8554 | a750fc0b | j_mayer | /* PowerPC 7448 v2.1 (G4) */
|
8555 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.1", CPU_POWERPC_7448_v21, 7400), |
8556 | a750fc0b | j_mayer | /* PowerPC 7450 (G4) */
|
8557 | 80d11f44 | j_mayer | POWERPC_DEF("7450", CPU_POWERPC_7450, 7450), |
8558 | a750fc0b | j_mayer | /* Code name for PowerPC 7450 */
|
8559 | 80d11f44 | j_mayer | POWERPC_DEF("Vger", CPU_POWERPC_7450, 7450), |
8560 | a750fc0b | j_mayer | /* PowerPC 7450 v1.0 (G4) */
|
8561 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.0", CPU_POWERPC_7450_v10, 7450), |
8562 | a750fc0b | j_mayer | /* PowerPC 7450 v1.1 (G4) */
|
8563 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.1", CPU_POWERPC_7450_v11, 7450), |
8564 | a750fc0b | j_mayer | /* PowerPC 7450 v1.2 (G4) */
|
8565 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.2", CPU_POWERPC_7450_v12, 7450), |
8566 | a750fc0b | j_mayer | /* PowerPC 7450 v2.0 (G4) */
|
8567 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.0", CPU_POWERPC_7450_v20, 7450), |
8568 | a750fc0b | j_mayer | /* PowerPC 7450 v2.1 (G4) */
|
8569 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.1", CPU_POWERPC_7450_v21, 7450), |
8570 | a750fc0b | j_mayer | /* PowerPC 7441 (G4) */
|
8571 | 80d11f44 | j_mayer | POWERPC_DEF("7441", CPU_POWERPC_74x1, 7440), |
8572 | a750fc0b | j_mayer | /* PowerPC 7451 (G4) */
|
8573 | 80d11f44 | j_mayer | POWERPC_DEF("7451", CPU_POWERPC_74x1, 7450), |
8574 | 4e777442 | j_mayer | /* PowerPC 7441 v2.1 (G4) */
|
8575 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.1", CPU_POWERPC_7450_v21, 7440), |
8576 | 4e777442 | j_mayer | /* PowerPC 7441 v2.3 (G4) */
|
8577 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.3", CPU_POWERPC_74x1_v23, 7440), |
8578 | 4e777442 | j_mayer | /* PowerPC 7451 v2.3 (G4) */
|
8579 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.3", CPU_POWERPC_74x1_v23, 7450), |
8580 | 4e777442 | j_mayer | /* PowerPC 7441 v2.10 (G4) */
|
8581 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.10", CPU_POWERPC_74x1_v210, 7440), |
8582 | 4e777442 | j_mayer | /* PowerPC 7451 v2.10 (G4) */
|
8583 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.10", CPU_POWERPC_74x1_v210, 7450), |
8584 | a750fc0b | j_mayer | /* PowerPC 7445 (G4) */
|
8585 | 80d11f44 | j_mayer | POWERPC_DEF("7445", CPU_POWERPC_74x5, 7445), |
8586 | a750fc0b | j_mayer | /* PowerPC 7455 (G4) */
|
8587 | 80d11f44 | j_mayer | POWERPC_DEF("7455", CPU_POWERPC_74x5, 7455), |
8588 | a750fc0b | j_mayer | /* Code name for PowerPC 7445/7455 */
|
8589 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo6", CPU_POWERPC_74x5, 7455), |
8590 | a750fc0b | j_mayer | /* PowerPC 7445 v1.0 (G4) */
|
8591 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v1.0", CPU_POWERPC_74x5_v10, 7445), |
8592 | a750fc0b | j_mayer | /* PowerPC 7455 v1.0 (G4) */
|
8593 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v1.0", CPU_POWERPC_74x5_v10, 7455), |
8594 | a750fc0b | j_mayer | /* PowerPC 7445 v2.1 (G4) */
|
8595 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v2.1", CPU_POWERPC_74x5_v21, 7445), |
8596 | a750fc0b | j_mayer | /* PowerPC 7455 v2.1 (G4) */
|
8597 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v2.1", CPU_POWERPC_74x5_v21, 7455), |
8598 | a750fc0b | j_mayer | /* PowerPC 7445 v3.2 (G4) */
|
8599 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.2", CPU_POWERPC_74x5_v32, 7445), |
8600 | a750fc0b | j_mayer | /* PowerPC 7455 v3.2 (G4) */
|
8601 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.2", CPU_POWERPC_74x5_v32, 7455), |
8602 | a750fc0b | j_mayer | /* PowerPC 7445 v3.3 (G4) */
|
8603 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.3", CPU_POWERPC_74x5_v33, 7445), |
8604 | a750fc0b | j_mayer | /* PowerPC 7455 v3.3 (G4) */
|
8605 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.3", CPU_POWERPC_74x5_v33, 7455), |
8606 | a750fc0b | j_mayer | /* PowerPC 7445 v3.4 (G4) */
|
8607 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.4", CPU_POWERPC_74x5_v34, 7445), |
8608 | a750fc0b | j_mayer | /* PowerPC 7455 v3.4 (G4) */
|
8609 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.4", CPU_POWERPC_74x5_v34, 7455), |
8610 | a750fc0b | j_mayer | /* PowerPC 7447 (G4) */
|
8611 | 80d11f44 | j_mayer | POWERPC_DEF("7447", CPU_POWERPC_74x7, 7445), |
8612 | a750fc0b | j_mayer | /* PowerPC 7457 (G4) */
|
8613 | 80d11f44 | j_mayer | POWERPC_DEF("7457", CPU_POWERPC_74x7, 7455), |
8614 | a750fc0b | j_mayer | /* Code name for PowerPC 7447/7457 */
|
8615 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo7", CPU_POWERPC_74x7, 7455), |
8616 | a750fc0b | j_mayer | /* PowerPC 7447 v1.0 (G4) */
|
8617 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.0", CPU_POWERPC_74x7_v10, 7445), |
8618 | a750fc0b | j_mayer | /* PowerPC 7457 v1.0 (G4) */
|
8619 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.0", CPU_POWERPC_74x7_v10, 7455), |
8620 | a750fc0b | j_mayer | /* PowerPC 7447 v1.1 (G4) */
|
8621 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.1", CPU_POWERPC_74x7_v11, 7445), |
8622 | a750fc0b | j_mayer | /* PowerPC 7457 v1.1 (G4) */
|
8623 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.1", CPU_POWERPC_74x7_v11, 7455), |
8624 | a750fc0b | j_mayer | /* PowerPC 7457 v1.2 (G4) */
|
8625 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.2", CPU_POWERPC_74x7_v12, 7455), |
8626 | 082c6681 | j_mayer | /* PowerPC 7447A (G4) */
|
8627 | 082c6681 | j_mayer | POWERPC_DEF("7447A", CPU_POWERPC_74x7A, 7445), |
8628 | 082c6681 | j_mayer | /* PowerPC 7457A (G4) */
|
8629 | 082c6681 | j_mayer | POWERPC_DEF("7457A", CPU_POWERPC_74x7A, 7455), |
8630 | 082c6681 | j_mayer | /* PowerPC 7447A v1.0 (G4) */
|
8631 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.0", CPU_POWERPC_74x7A_v10, 7445), |
8632 | 082c6681 | j_mayer | /* PowerPC 7457A v1.0 (G4) */
|
8633 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.0", CPU_POWERPC_74x7A_v10, 7455), |
8634 | 082c6681 | j_mayer | /* Code name for PowerPC 7447A/7457A */
|
8635 | 082c6681 | j_mayer | POWERPC_DEF("Apollo7PM", CPU_POWERPC_74x7A_v10, 7455), |
8636 | 082c6681 | j_mayer | /* PowerPC 7447A v1.1 (G4) */
|
8637 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.1", CPU_POWERPC_74x7A_v11, 7445), |
8638 | 082c6681 | j_mayer | /* PowerPC 7457A v1.1 (G4) */
|
8639 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.1", CPU_POWERPC_74x7A_v11, 7455), |
8640 | 082c6681 | j_mayer | /* PowerPC 7447A v1.2 (G4) */
|
8641 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.2", CPU_POWERPC_74x7A_v12, 7445), |
8642 | 082c6681 | j_mayer | /* PowerPC 7457A v1.2 (G4) */
|
8643 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.2", CPU_POWERPC_74x7A_v12, 7455), |
8644 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
8645 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8646 | a750fc0b | j_mayer | /* PowerPC 620 */
|
8647 | 80d11f44 | j_mayer | POWERPC_DEF("620", CPU_POWERPC_620, 620), |
8648 | 082c6681 | j_mayer | /* Code name for PowerPC 620 */
|
8649 | 082c6681 | j_mayer | POWERPC_DEF("Trident", CPU_POWERPC_620, 620), |
8650 | 3fc6c082 | bellard | #if defined (TODO)
|
8651 | a750fc0b | j_mayer | /* PowerPC 630 (POWER3) */
|
8652 | 80d11f44 | j_mayer | POWERPC_DEF("630", CPU_POWERPC_630, 630), |
8653 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3", CPU_POWERPC_630, 630), |
8654 | 082c6681 | j_mayer | /* Code names for POWER3 */
|
8655 | 082c6681 | j_mayer | POWERPC_DEF("Boxer", CPU_POWERPC_630, 630), |
8656 | 082c6681 | j_mayer | POWERPC_DEF("Dino", CPU_POWERPC_630, 630), |
8657 | a750fc0b | j_mayer | #endif
|
8658 | 3a607854 | j_mayer | #if defined (TODO)
|
8659 | a750fc0b | j_mayer | /* PowerPC 631 (Power 3+) */
|
8660 | 80d11f44 | j_mayer | POWERPC_DEF("631", CPU_POWERPC_631, 631), |
8661 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3+", CPU_POWERPC_631, 631), |
8662 | 3a607854 | j_mayer | #endif
|
8663 | 3a607854 | j_mayer | #if defined (TODO)
|
8664 | a750fc0b | j_mayer | /* POWER4 */
|
8665 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4", CPU_POWERPC_POWER4, POWER4),
|
8666 | a750fc0b | j_mayer | #endif
|
8667 | 3a607854 | j_mayer | #if defined (TODO)
|
8668 | a750fc0b | j_mayer | /* POWER4p */
|
8669 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4+", CPU_POWERPC_POWER4P, POWER4P),
|
8670 | a750fc0b | j_mayer | #endif
|
8671 | 3a607854 | j_mayer | #if defined (TODO)
|
8672 | a750fc0b | j_mayer | /* POWER5 */
|
8673 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5", CPU_POWERPC_POWER5, POWER5),
|
8674 | a750fc0b | j_mayer | /* POWER5GR */
|
8675 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gr", CPU_POWERPC_POWER5GR, POWER5),
|
8676 | 2662a059 | j_mayer | #endif
|
8677 | 2662a059 | j_mayer | #if defined (TODO)
|
8678 | a750fc0b | j_mayer | /* POWER5+ */
|
8679 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5+", CPU_POWERPC_POWER5P, POWER5P),
|
8680 | a750fc0b | j_mayer | /* POWER5GS */
|
8681 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gs", CPU_POWERPC_POWER5GS, POWER5P),
|
8682 | a750fc0b | j_mayer | #endif
|
8683 | 2662a059 | j_mayer | #if defined (TODO)
|
8684 | a750fc0b | j_mayer | /* POWER6 */
|
8685 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6", CPU_POWERPC_POWER6, POWER6),
|
8686 | a750fc0b | j_mayer | /* POWER6 running in POWER5 mode */
|
8687 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6_5", CPU_POWERPC_POWER6_5, POWER5),
|
8688 | a750fc0b | j_mayer | /* POWER6A */
|
8689 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6A", CPU_POWERPC_POWER6A, POWER6),
|
8690 | 2662a059 | j_mayer | #endif
|
8691 | a750fc0b | j_mayer | /* PowerPC 970 */
|
8692 | 80d11f44 | j_mayer | POWERPC_DEF("970", CPU_POWERPC_970, 970), |
8693 | a750fc0b | j_mayer | /* PowerPC 970FX (G5) */
|
8694 | 80d11f44 | j_mayer | POWERPC_DEF("970fx", CPU_POWERPC_970FX, 970FX), |
8695 | a750fc0b | j_mayer | /* PowerPC 970FX v1.0 (G5) */
|
8696 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v1.0", CPU_POWERPC_970FX_v10, 970FX), |
8697 | a750fc0b | j_mayer | /* PowerPC 970FX v2.0 (G5) */
|
8698 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.0", CPU_POWERPC_970FX_v20, 970FX), |
8699 | a750fc0b | j_mayer | /* PowerPC 970FX v2.1 (G5) */
|
8700 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.1", CPU_POWERPC_970FX_v21, 970FX), |
8701 | a750fc0b | j_mayer | /* PowerPC 970FX v3.0 (G5) */
|
8702 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.0", CPU_POWERPC_970FX_v30, 970FX), |
8703 | a750fc0b | j_mayer | /* PowerPC 970FX v3.1 (G5) */
|
8704 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.1", CPU_POWERPC_970FX_v31, 970FX), |
8705 | a750fc0b | j_mayer | /* PowerPC 970GX (G5) */
|
8706 | 80d11f44 | j_mayer | POWERPC_DEF("970gx", CPU_POWERPC_970GX, 970GX), |
8707 | a750fc0b | j_mayer | /* PowerPC 970MP */
|
8708 | 80d11f44 | j_mayer | POWERPC_DEF("970mp", CPU_POWERPC_970MP, 970MP), |
8709 | a750fc0b | j_mayer | /* PowerPC 970MP v1.0 */
|
8710 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.0", CPU_POWERPC_970MP_v10, 970MP), |
8711 | a750fc0b | j_mayer | /* PowerPC 970MP v1.1 */
|
8712 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.1", CPU_POWERPC_970MP_v11, 970MP), |
8713 | 3a607854 | j_mayer | #if defined (TODO)
|
8714 | a750fc0b | j_mayer | /* PowerPC Cell */
|
8715 | 80d11f44 | j_mayer | POWERPC_DEF("Cell", CPU_POWERPC_CELL, 970), |
8716 | 2662a059 | j_mayer | #endif
|
8717 | 2662a059 | j_mayer | #if defined (TODO)
|
8718 | a750fc0b | j_mayer | /* PowerPC Cell v1.0 */
|
8719 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v1.0", CPU_POWERPC_CELL_v10, 970), |
8720 | 2662a059 | j_mayer | #endif
|
8721 | 2662a059 | j_mayer | #if defined (TODO)
|
8722 | a750fc0b | j_mayer | /* PowerPC Cell v2.0 */
|
8723 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v2.0", CPU_POWERPC_CELL_v20, 970), |
8724 | 2662a059 | j_mayer | #endif
|
8725 | 2662a059 | j_mayer | #if defined (TODO)
|
8726 | a750fc0b | j_mayer | /* PowerPC Cell v3.0 */
|
8727 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.0", CPU_POWERPC_CELL_v30, 970), |
8728 | 3a607854 | j_mayer | #endif
|
8729 | 3a607854 | j_mayer | #if defined (TODO)
|
8730 | a750fc0b | j_mayer | /* PowerPC Cell v3.1 */
|
8731 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.1", CPU_POWERPC_CELL_v31, 970), |
8732 | 2662a059 | j_mayer | #endif
|
8733 | 2662a059 | j_mayer | #if defined (TODO)
|
8734 | a750fc0b | j_mayer | /* PowerPC Cell v3.2 */
|
8735 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.2", CPU_POWERPC_CELL_v32, 970), |
8736 | 2662a059 | j_mayer | #endif
|
8737 | 2662a059 | j_mayer | #if defined (TODO)
|
8738 | a750fc0b | j_mayer | /* RS64 (Apache/A35) */
|
8739 | a750fc0b | j_mayer | /* This one seems to support the whole POWER2 instruction set
|
8740 | a750fc0b | j_mayer | * and the PowerPC 64 one.
|
8741 | a750fc0b | j_mayer | */
|
8742 | a750fc0b | j_mayer | /* What about A10 & A30 ? */
|
8743 | 80d11f44 | j_mayer | POWERPC_DEF("RS64", CPU_POWERPC_RS64, RS64),
|
8744 | 80d11f44 | j_mayer | POWERPC_DEF("Apache", CPU_POWERPC_RS64, RS64),
|
8745 | 80d11f44 | j_mayer | POWERPC_DEF("A35", CPU_POWERPC_RS64, RS64),
|
8746 | 3a607854 | j_mayer | #endif
|
8747 | 3a607854 | j_mayer | #if defined (TODO)
|
8748 | a750fc0b | j_mayer | /* RS64-II (NorthStar/A50) */
|
8749 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-II", CPU_POWERPC_RS64II, RS64),
|
8750 | 80d11f44 | j_mayer | POWERPC_DEF("NorthStar", CPU_POWERPC_RS64II, RS64),
|
8751 | 80d11f44 | j_mayer | POWERPC_DEF("A50", CPU_POWERPC_RS64II, RS64),
|
8752 | 3a607854 | j_mayer | #endif
|
8753 | 3a607854 | j_mayer | #if defined (TODO)
|
8754 | a750fc0b | j_mayer | /* RS64-III (Pulsar) */
|
8755 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-III", CPU_POWERPC_RS64III, RS64),
|
8756 | 80d11f44 | j_mayer | POWERPC_DEF("Pulsar", CPU_POWERPC_RS64III, RS64),
|
8757 | 2662a059 | j_mayer | #endif
|
8758 | 2662a059 | j_mayer | #if defined (TODO)
|
8759 | a750fc0b | j_mayer | /* RS64-IV (IceStar/IStar/SStar) */
|
8760 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-IV", CPU_POWERPC_RS64IV, RS64),
|
8761 | 80d11f44 | j_mayer | POWERPC_DEF("IceStar", CPU_POWERPC_RS64IV, RS64),
|
8762 | 80d11f44 | j_mayer | POWERPC_DEF("IStar", CPU_POWERPC_RS64IV, RS64),
|
8763 | 80d11f44 | j_mayer | POWERPC_DEF("SStar", CPU_POWERPC_RS64IV, RS64),
|
8764 | 3a607854 | j_mayer | #endif
|
8765 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
8766 | a750fc0b | j_mayer | /* POWER */
|
8767 | 3fc6c082 | bellard | #if defined (TODO)
|
8768 | a750fc0b | j_mayer | /* Original POWER */
|
8769 | 80d11f44 | j_mayer | POWERPC_DEF("POWER", CPU_POWERPC_POWER, POWER),
|
8770 | 80d11f44 | j_mayer | POWERPC_DEF("RIOS", CPU_POWERPC_POWER, POWER),
|
8771 | 80d11f44 | j_mayer | POWERPC_DEF("RSC", CPU_POWERPC_POWER, POWER),
|
8772 | 80d11f44 | j_mayer | POWERPC_DEF("RSC3308", CPU_POWERPC_POWER, POWER),
|
8773 | 80d11f44 | j_mayer | POWERPC_DEF("RSC4608", CPU_POWERPC_POWER, POWER),
|
8774 | 76a66253 | j_mayer | #endif
|
8775 | 76a66253 | j_mayer | #if defined (TODO)
|
8776 | a750fc0b | j_mayer | /* POWER2 */
|
8777 | 80d11f44 | j_mayer | POWERPC_DEF("POWER2", CPU_POWERPC_POWER2, POWER),
|
8778 | 80d11f44 | j_mayer | POWERPC_DEF("RSC2", CPU_POWERPC_POWER2, POWER),
|
8779 | 80d11f44 | j_mayer | POWERPC_DEF("P2SC", CPU_POWERPC_POWER2, POWER),
|
8780 | a750fc0b | j_mayer | #endif
|
8781 | a750fc0b | j_mayer | /* PA semi cores */
|
8782 | a750fc0b | j_mayer | #if defined (TODO)
|
8783 | a750fc0b | j_mayer | /* PA PA6T */
|
8784 | 80d11f44 | j_mayer | POWERPC_DEF("PA6T", CPU_POWERPC_PA6T, PA6T),
|
8785 | a750fc0b | j_mayer | #endif
|
8786 | a750fc0b | j_mayer | /* Generic PowerPCs */
|
8787 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8788 | 80d11f44 | j_mayer | POWERPC_DEF("ppc64", CPU_POWERPC_PPC64, PPC64),
|
8789 | a750fc0b | j_mayer | #endif
|
8790 | 80d11f44 | j_mayer | POWERPC_DEF("ppc32", CPU_POWERPC_PPC32, PPC32),
|
8791 | 80d11f44 | j_mayer | POWERPC_DEF("ppc", CPU_POWERPC_DEFAULT, DEFAULT),
|
8792 | a750fc0b | j_mayer | /* Fallback */
|
8793 | 80d11f44 | j_mayer | POWERPC_DEF("default", CPU_POWERPC_DEFAULT, DEFAULT),
|
8794 | a750fc0b | j_mayer | }; |
8795 | a750fc0b | j_mayer | |
8796 | a750fc0b | j_mayer | /*****************************************************************************/
|
8797 | a750fc0b | j_mayer | /* Generic CPU instanciation routine */
|
8798 | aaed909a | bellard | static void init_ppc_proc (CPUPPCState *env, const ppc_def_t *def) |
8799 | a750fc0b | j_mayer | { |
8800 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8801 | e1833e1f | j_mayer | int i;
|
8802 | e1833e1f | j_mayer | |
8803 | a750fc0b | j_mayer | env->irq_inputs = NULL;
|
8804 | e1833e1f | j_mayer | /* Set all exception vectors to an invalid address */
|
8805 | e1833e1f | j_mayer | for (i = 0; i < POWERPC_EXCP_NB; i++) |
8806 | e1833e1f | j_mayer | env->excp_vectors[i] = (target_ulong)(-1ULL);
|
8807 | e1833e1f | j_mayer | env->excp_prefix = 0x00000000;
|
8808 | e1833e1f | j_mayer | env->ivor_mask = 0x00000000;
|
8809 | e1833e1f | j_mayer | env->ivpr_mask = 0x00000000;
|
8810 | a750fc0b | j_mayer | /* Default MMU definitions */
|
8811 | a750fc0b | j_mayer | env->nb_BATs = 0;
|
8812 | a750fc0b | j_mayer | env->nb_tlb = 0;
|
8813 | a750fc0b | j_mayer | env->nb_ways = 0;
|
8814 | f2e63a42 | j_mayer | #endif
|
8815 | a750fc0b | j_mayer | /* Register SPR common to all PowerPC implementations */
|
8816 | a750fc0b | j_mayer | gen_spr_generic(env); |
8817 | a750fc0b | j_mayer | spr_register(env, SPR_PVR, "PVR",
|
8818 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8819 | a750fc0b | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8820 | a750fc0b | j_mayer | def->pvr); |
8821 | 80d11f44 | j_mayer | /* Register SVR if it's defined to anything else than POWERPC_SVR_NONE */
|
8822 | 80d11f44 | j_mayer | if (def->svr != POWERPC_SVR_NONE) {
|
8823 | 80d11f44 | j_mayer | if (def->svr & POWERPC_SVR_E500) {
|
8824 | 80d11f44 | j_mayer | spr_register(env, SPR_E500_SVR, "SVR",
|
8825 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8826 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8827 | 80d11f44 | j_mayer | def->svr & ~POWERPC_SVR_E500); |
8828 | 80d11f44 | j_mayer | } else {
|
8829 | 80d11f44 | j_mayer | spr_register(env, SPR_SVR, "SVR",
|
8830 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8831 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8832 | 80d11f44 | j_mayer | def->svr); |
8833 | 80d11f44 | j_mayer | } |
8834 | 80d11f44 | j_mayer | } |
8835 | a750fc0b | j_mayer | /* PowerPC implementation specific initialisations (SPRs, timers, ...) */
|
8836 | a750fc0b | j_mayer | (*def->init_proc)(env); |
8837 | 25ba3a68 | j_mayer | /* MSR bits & flags consistency checks */
|
8838 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 25)) { |
8839 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) {
|
8840 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SPE:
|
8841 | 25ba3a68 | j_mayer | case POWERPC_FLAG_VRE:
|
8842 | 25ba3a68 | j_mayer | break;
|
8843 | 25ba3a68 | j_mayer | default:
|
8844 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8845 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SPE or POWERPC_FLAG_VRE\n");
|
8846 | 25ba3a68 | j_mayer | exit(1);
|
8847 | 25ba3a68 | j_mayer | } |
8848 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) { |
8849 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8850 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SPE nor POWERPC_FLAG_VRE\n");
|
8851 | 25ba3a68 | j_mayer | exit(1);
|
8852 | 25ba3a68 | j_mayer | } |
8853 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 17)) { |
8854 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) {
|
8855 | 25ba3a68 | j_mayer | case POWERPC_FLAG_TGPR:
|
8856 | 25ba3a68 | j_mayer | case POWERPC_FLAG_CE:
|
8857 | 25ba3a68 | j_mayer | break;
|
8858 | 25ba3a68 | j_mayer | default:
|
8859 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8860 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_TGPR or POWERPC_FLAG_CE\n");
|
8861 | 25ba3a68 | j_mayer | exit(1);
|
8862 | 25ba3a68 | j_mayer | } |
8863 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) { |
8864 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8865 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_TGPR nor POWERPC_FLAG_CE\n");
|
8866 | 25ba3a68 | j_mayer | exit(1);
|
8867 | 25ba3a68 | j_mayer | } |
8868 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 10)) { |
8869 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE |
|
8870 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
8871 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SE:
|
8872 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DWE:
|
8873 | 25ba3a68 | j_mayer | case POWERPC_FLAG_UBLE:
|
8874 | 25ba3a68 | j_mayer | break;
|
8875 | 25ba3a68 | j_mayer | default:
|
8876 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8877 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SE or POWERPC_FLAG_DWE or "
|
8878 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
8879 | 25ba3a68 | j_mayer | exit(1);
|
8880 | 25ba3a68 | j_mayer | } |
8881 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE | |
8882 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
8883 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8884 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SE nor POWERPC_FLAG_DWE nor "
|
8885 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
8886 | 25ba3a68 | j_mayer | exit(1);
|
8887 | 25ba3a68 | j_mayer | } |
8888 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 9)) { |
8889 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) {
|
8890 | 25ba3a68 | j_mayer | case POWERPC_FLAG_BE:
|
8891 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DE:
|
8892 | 25ba3a68 | j_mayer | break;
|
8893 | 25ba3a68 | j_mayer | default:
|
8894 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8895 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_BE or POWERPC_FLAG_DE\n");
|
8896 | 25ba3a68 | j_mayer | exit(1);
|
8897 | 25ba3a68 | j_mayer | } |
8898 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) { |
8899 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8900 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_BE nor POWERPC_FLAG_DE\n");
|
8901 | 25ba3a68 | j_mayer | exit(1);
|
8902 | 25ba3a68 | j_mayer | } |
8903 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 2)) { |
8904 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) {
|
8905 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PX:
|
8906 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PMM:
|
8907 | 25ba3a68 | j_mayer | break;
|
8908 | 25ba3a68 | j_mayer | default:
|
8909 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8910 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_PX or POWERPC_FLAG_PMM\n");
|
8911 | 25ba3a68 | j_mayer | exit(1);
|
8912 | 25ba3a68 | j_mayer | } |
8913 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) { |
8914 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8915 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_PX nor POWERPC_FLAG_PMM\n");
|
8916 | 25ba3a68 | j_mayer | exit(1);
|
8917 | 25ba3a68 | j_mayer | } |
8918 | 4018bae9 | j_mayer | if ((env->flags & (POWERPC_FLAG_RTC_CLK | POWERPC_FLAG_BUS_CLK)) == 0) { |
8919 | 4018bae9 | j_mayer | fprintf(stderr, "PowerPC flags inconsistency\n"
|
8920 | 4018bae9 | j_mayer | "Should define the time-base and decrementer clock source\n");
|
8921 | 4018bae9 | j_mayer | exit(1);
|
8922 | 4018bae9 | j_mayer | } |
8923 | a750fc0b | j_mayer | /* Allocate TLBs buffer when needed */
|
8924 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8925 | a750fc0b | j_mayer | if (env->nb_tlb != 0) { |
8926 | a750fc0b | j_mayer | int nb_tlb = env->nb_tlb;
|
8927 | a750fc0b | j_mayer | if (env->id_tlbs != 0) |
8928 | a750fc0b | j_mayer | nb_tlb *= 2;
|
8929 | a750fc0b | j_mayer | env->tlb = qemu_mallocz(nb_tlb * sizeof(ppc_tlb_t));
|
8930 | a750fc0b | j_mayer | /* Pre-compute some useful values */
|
8931 | a750fc0b | j_mayer | env->tlb_per_way = env->nb_tlb / env->nb_ways; |
8932 | a750fc0b | j_mayer | } |
8933 | a750fc0b | j_mayer | if (env->irq_inputs == NULL) { |
8934 | a750fc0b | j_mayer | fprintf(stderr, "WARNING: no internal IRQ controller registered.\n"
|
8935 | a750fc0b | j_mayer | " Attempt Qemu to crash very soon !\n");
|
8936 | a750fc0b | j_mayer | } |
8937 | a750fc0b | j_mayer | #endif
|
8938 | 2f462816 | j_mayer | if (env->check_pow == NULL) { |
8939 | 2f462816 | j_mayer | fprintf(stderr, "WARNING: no power management check handler "
|
8940 | 2f462816 | j_mayer | "registered.\n"
|
8941 | 2f462816 | j_mayer | " Attempt Qemu to crash very soon !\n");
|
8942 | 2f462816 | j_mayer | } |
8943 | a750fc0b | j_mayer | } |
8944 | a750fc0b | j_mayer | |
8945 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
8946 | a750fc0b | j_mayer | static void dump_ppc_sprs (CPUPPCState *env) |
8947 | a750fc0b | j_mayer | { |
8948 | a750fc0b | j_mayer | ppc_spr_t *spr; |
8949 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8950 | a750fc0b | j_mayer | uint32_t sr, sw; |
8951 | a750fc0b | j_mayer | #endif
|
8952 | a750fc0b | j_mayer | uint32_t ur, uw; |
8953 | a750fc0b | j_mayer | int i, j, n;
|
8954 | a750fc0b | j_mayer | |
8955 | a750fc0b | j_mayer | printf("Special purpose registers:\n");
|
8956 | a750fc0b | j_mayer | for (i = 0; i < 32; i++) { |
8957 | a750fc0b | j_mayer | for (j = 0; j < 32; j++) { |
8958 | a750fc0b | j_mayer | n = (i << 5) | j;
|
8959 | a750fc0b | j_mayer | spr = &env->spr_cb[n]; |
8960 | a750fc0b | j_mayer | uw = spr->uea_write != NULL && spr->uea_write != SPR_NOACCESS;
|
8961 | a750fc0b | j_mayer | ur = spr->uea_read != NULL && spr->uea_read != SPR_NOACCESS;
|
8962 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8963 | a750fc0b | j_mayer | sw = spr->oea_write != NULL && spr->oea_write != SPR_NOACCESS;
|
8964 | a750fc0b | j_mayer | sr = spr->oea_read != NULL && spr->oea_read != SPR_NOACCESS;
|
8965 | a750fc0b | j_mayer | if (sw || sr || uw || ur) {
|
8966 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s s%c%c u%c%c\n",
|
8967 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
8968 | a750fc0b | j_mayer | sw ? 'w' : '-', sr ? 'r' : '-', |
8969 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
8970 | a750fc0b | j_mayer | } |
8971 | a750fc0b | j_mayer | #else
|
8972 | a750fc0b | j_mayer | if (uw || ur) {
|
8973 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s u%c%c\n",
|
8974 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
8975 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
8976 | a750fc0b | j_mayer | } |
8977 | a750fc0b | j_mayer | #endif
|
8978 | a750fc0b | j_mayer | } |
8979 | a750fc0b | j_mayer | } |
8980 | a750fc0b | j_mayer | fflush(stdout); |
8981 | a750fc0b | j_mayer | fflush(stderr); |
8982 | a750fc0b | j_mayer | } |
8983 | a750fc0b | j_mayer | #endif
|
8984 | a750fc0b | j_mayer | |
8985 | a750fc0b | j_mayer | /*****************************************************************************/
|
8986 | a750fc0b | j_mayer | #include <stdlib.h> |
8987 | a750fc0b | j_mayer | #include <string.h> |
8988 | a750fc0b | j_mayer | |
8989 | a750fc0b | j_mayer | /* Opcode types */
|
8990 | a750fc0b | j_mayer | enum {
|
8991 | a750fc0b | j_mayer | PPC_DIRECT = 0, /* Opcode routine */ |
8992 | a750fc0b | j_mayer | PPC_INDIRECT = 1, /* Indirect opcode table */ |
8993 | a750fc0b | j_mayer | }; |
8994 | a750fc0b | j_mayer | |
8995 | a750fc0b | j_mayer | static inline int is_indirect_opcode (void *handler) |
8996 | a750fc0b | j_mayer | { |
8997 | a750fc0b | j_mayer | return ((unsigned long)handler & 0x03) == PPC_INDIRECT; |
8998 | a750fc0b | j_mayer | } |
8999 | a750fc0b | j_mayer | |
9000 | a750fc0b | j_mayer | static inline opc_handler_t **ind_table(void *handler) |
9001 | a750fc0b | j_mayer | { |
9002 | a750fc0b | j_mayer | return (opc_handler_t **)((unsigned long)handler & ~3); |
9003 | a750fc0b | j_mayer | } |
9004 | a750fc0b | j_mayer | |
9005 | a750fc0b | j_mayer | /* Instruction table creation */
|
9006 | a750fc0b | j_mayer | /* Opcodes tables creation */
|
9007 | a750fc0b | j_mayer | static void fill_new_table (opc_handler_t **table, int len) |
9008 | a750fc0b | j_mayer | { |
9009 | a750fc0b | j_mayer | int i;
|
9010 | a750fc0b | j_mayer | |
9011 | a750fc0b | j_mayer | for (i = 0; i < len; i++) |
9012 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9013 | a750fc0b | j_mayer | } |
9014 | a750fc0b | j_mayer | |
9015 | a750fc0b | j_mayer | static int create_new_table (opc_handler_t **table, unsigned char idx) |
9016 | a750fc0b | j_mayer | { |
9017 | a750fc0b | j_mayer | opc_handler_t **tmp; |
9018 | a750fc0b | j_mayer | |
9019 | a750fc0b | j_mayer | tmp = malloc(0x20 * sizeof(opc_handler_t)); |
9020 | a750fc0b | j_mayer | if (tmp == NULL) |
9021 | a750fc0b | j_mayer | return -1; |
9022 | a750fc0b | j_mayer | fill_new_table(tmp, 0x20);
|
9023 | a750fc0b | j_mayer | table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT); |
9024 | a750fc0b | j_mayer | |
9025 | a750fc0b | j_mayer | return 0; |
9026 | a750fc0b | j_mayer | } |
9027 | a750fc0b | j_mayer | |
9028 | a750fc0b | j_mayer | static int insert_in_table (opc_handler_t **table, unsigned char idx, |
9029 | a750fc0b | j_mayer | opc_handler_t *handler) |
9030 | a750fc0b | j_mayer | { |
9031 | a750fc0b | j_mayer | if (table[idx] != &invalid_handler)
|
9032 | a750fc0b | j_mayer | return -1; |
9033 | a750fc0b | j_mayer | table[idx] = handler; |
9034 | a750fc0b | j_mayer | |
9035 | a750fc0b | j_mayer | return 0; |
9036 | a750fc0b | j_mayer | } |
9037 | a750fc0b | j_mayer | |
9038 | a750fc0b | j_mayer | static int register_direct_insn (opc_handler_t **ppc_opcodes, |
9039 | a750fc0b | j_mayer | unsigned char idx, opc_handler_t *handler) |
9040 | a750fc0b | j_mayer | { |
9041 | a750fc0b | j_mayer | if (insert_in_table(ppc_opcodes, idx, handler) < 0) { |
9042 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in main "
|
9043 | a750fc0b | j_mayer | "opcode table\n", idx);
|
9044 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9045 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9046 | 4c1b1bfe | j_mayer | ppc_opcodes[idx]->oname, handler->oname); |
9047 | 4c1b1bfe | j_mayer | #endif
|
9048 | a750fc0b | j_mayer | return -1; |
9049 | a750fc0b | j_mayer | } |
9050 | a750fc0b | j_mayer | |
9051 | a750fc0b | j_mayer | return 0; |
9052 | a750fc0b | j_mayer | } |
9053 | a750fc0b | j_mayer | |
9054 | a750fc0b | j_mayer | static int register_ind_in_table (opc_handler_t **table, |
9055 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9056 | a750fc0b | j_mayer | opc_handler_t *handler) |
9057 | a750fc0b | j_mayer | { |
9058 | a750fc0b | j_mayer | if (table[idx1] == &invalid_handler) {
|
9059 | a750fc0b | j_mayer | if (create_new_table(table, idx1) < 0) { |
9060 | a750fc0b | j_mayer | printf("*** ERROR: unable to create indirect table "
|
9061 | a750fc0b | j_mayer | "idx=%02x\n", idx1);
|
9062 | a750fc0b | j_mayer | return -1; |
9063 | a750fc0b | j_mayer | } |
9064 | a750fc0b | j_mayer | } else {
|
9065 | a750fc0b | j_mayer | if (!is_indirect_opcode(table[idx1])) {
|
9066 | a750fc0b | j_mayer | printf("*** ERROR: idx %02x already assigned to a direct "
|
9067 | a750fc0b | j_mayer | "opcode\n", idx1);
|
9068 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9069 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9070 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9071 | 4c1b1bfe | j_mayer | #endif
|
9072 | a750fc0b | j_mayer | return -1; |
9073 | a750fc0b | j_mayer | } |
9074 | 3a607854 | j_mayer | } |
9075 | a750fc0b | j_mayer | if (handler != NULL && |
9076 | a750fc0b | j_mayer | insert_in_table(ind_table(table[idx1]), idx2, handler) < 0) {
|
9077 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in "
|
9078 | a750fc0b | j_mayer | "opcode table %02x\n", idx2, idx1);
|
9079 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9080 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9081 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9082 | 4c1b1bfe | j_mayer | #endif
|
9083 | a750fc0b | j_mayer | return -1; |
9084 | 3a607854 | j_mayer | } |
9085 | a750fc0b | j_mayer | |
9086 | a750fc0b | j_mayer | return 0; |
9087 | a750fc0b | j_mayer | } |
9088 | a750fc0b | j_mayer | |
9089 | a750fc0b | j_mayer | static int register_ind_insn (opc_handler_t **ppc_opcodes, |
9090 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9091 | a750fc0b | j_mayer | opc_handler_t *handler) |
9092 | a750fc0b | j_mayer | { |
9093 | a750fc0b | j_mayer | int ret;
|
9094 | a750fc0b | j_mayer | |
9095 | a750fc0b | j_mayer | ret = register_ind_in_table(ppc_opcodes, idx1, idx2, handler); |
9096 | a750fc0b | j_mayer | |
9097 | a750fc0b | j_mayer | return ret;
|
9098 | a750fc0b | j_mayer | } |
9099 | a750fc0b | j_mayer | |
9100 | a750fc0b | j_mayer | static int register_dblind_insn (opc_handler_t **ppc_opcodes, |
9101 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9102 | a750fc0b | j_mayer | unsigned char idx3, opc_handler_t *handler) |
9103 | a750fc0b | j_mayer | { |
9104 | a750fc0b | j_mayer | if (register_ind_in_table(ppc_opcodes, idx1, idx2, NULL) < 0) { |
9105 | a750fc0b | j_mayer | printf("*** ERROR: unable to join indirect table idx "
|
9106 | a750fc0b | j_mayer | "[%02x-%02x]\n", idx1, idx2);
|
9107 | a750fc0b | j_mayer | return -1; |
9108 | a750fc0b | j_mayer | } |
9109 | a750fc0b | j_mayer | if (register_ind_in_table(ind_table(ppc_opcodes[idx1]), idx2, idx3,
|
9110 | a750fc0b | j_mayer | handler) < 0) {
|
9111 | a750fc0b | j_mayer | printf("*** ERROR: unable to insert opcode "
|
9112 | a750fc0b | j_mayer | "[%02x-%02x-%02x]\n", idx1, idx2, idx3);
|
9113 | a750fc0b | j_mayer | return -1; |
9114 | a750fc0b | j_mayer | } |
9115 | a750fc0b | j_mayer | |
9116 | a750fc0b | j_mayer | return 0; |
9117 | a750fc0b | j_mayer | } |
9118 | a750fc0b | j_mayer | |
9119 | a750fc0b | j_mayer | static int register_insn (opc_handler_t **ppc_opcodes, opcode_t *insn) |
9120 | a750fc0b | j_mayer | { |
9121 | a750fc0b | j_mayer | if (insn->opc2 != 0xFF) { |
9122 | a750fc0b | j_mayer | if (insn->opc3 != 0xFF) { |
9123 | a750fc0b | j_mayer | if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,
|
9124 | a750fc0b | j_mayer | insn->opc3, &insn->handler) < 0)
|
9125 | a750fc0b | j_mayer | return -1; |
9126 | a750fc0b | j_mayer | } else {
|
9127 | a750fc0b | j_mayer | if (register_ind_insn(ppc_opcodes, insn->opc1,
|
9128 | a750fc0b | j_mayer | insn->opc2, &insn->handler) < 0)
|
9129 | a750fc0b | j_mayer | return -1; |
9130 | a750fc0b | j_mayer | } |
9131 | a750fc0b | j_mayer | } else {
|
9132 | a750fc0b | j_mayer | if (register_direct_insn(ppc_opcodes, insn->opc1, &insn->handler) < 0) |
9133 | a750fc0b | j_mayer | return -1; |
9134 | a750fc0b | j_mayer | } |
9135 | a750fc0b | j_mayer | |
9136 | a750fc0b | j_mayer | return 0; |
9137 | a750fc0b | j_mayer | } |
9138 | a750fc0b | j_mayer | |
9139 | a750fc0b | j_mayer | static int test_opcode_table (opc_handler_t **table, int len) |
9140 | a750fc0b | j_mayer | { |
9141 | a750fc0b | j_mayer | int i, count, tmp;
|
9142 | a750fc0b | j_mayer | |
9143 | a750fc0b | j_mayer | for (i = 0, count = 0; i < len; i++) { |
9144 | a750fc0b | j_mayer | /* Consistency fixup */
|
9145 | a750fc0b | j_mayer | if (table[i] == NULL) |
9146 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9147 | a750fc0b | j_mayer | if (table[i] != &invalid_handler) {
|
9148 | a750fc0b | j_mayer | if (is_indirect_opcode(table[i])) {
|
9149 | a750fc0b | j_mayer | tmp = test_opcode_table(ind_table(table[i]), 0x20);
|
9150 | a750fc0b | j_mayer | if (tmp == 0) { |
9151 | a750fc0b | j_mayer | free(table[i]); |
9152 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9153 | a750fc0b | j_mayer | } else {
|
9154 | a750fc0b | j_mayer | count++; |
9155 | a750fc0b | j_mayer | } |
9156 | a750fc0b | j_mayer | } else {
|
9157 | a750fc0b | j_mayer | count++; |
9158 | a750fc0b | j_mayer | } |
9159 | a750fc0b | j_mayer | } |
9160 | a750fc0b | j_mayer | } |
9161 | a750fc0b | j_mayer | |
9162 | a750fc0b | j_mayer | return count;
|
9163 | a750fc0b | j_mayer | } |
9164 | a750fc0b | j_mayer | |
9165 | a750fc0b | j_mayer | static void fix_opcode_tables (opc_handler_t **ppc_opcodes) |
9166 | a750fc0b | j_mayer | { |
9167 | a750fc0b | j_mayer | if (test_opcode_table(ppc_opcodes, 0x40) == 0) |
9168 | a750fc0b | j_mayer | printf("*** WARNING: no opcode defined !\n");
|
9169 | a750fc0b | j_mayer | } |
9170 | a750fc0b | j_mayer | |
9171 | a750fc0b | j_mayer | /*****************************************************************************/
|
9172 | aaed909a | bellard | static int create_ppc_opcodes (CPUPPCState *env, const ppc_def_t *def) |
9173 | a750fc0b | j_mayer | { |
9174 | a750fc0b | j_mayer | opcode_t *opc, *start, *end; |
9175 | a750fc0b | j_mayer | |
9176 | a750fc0b | j_mayer | fill_new_table(env->opcodes, 0x40);
|
9177 | a750fc0b | j_mayer | if (&opc_start < &opc_end) {
|
9178 | a750fc0b | j_mayer | start = &opc_start; |
9179 | a750fc0b | j_mayer | end = &opc_end; |
9180 | a750fc0b | j_mayer | } else {
|
9181 | a750fc0b | j_mayer | start = &opc_end; |
9182 | a750fc0b | j_mayer | end = &opc_start; |
9183 | a750fc0b | j_mayer | } |
9184 | a750fc0b | j_mayer | for (opc = start + 1; opc != end; opc++) { |
9185 | a750fc0b | j_mayer | if ((opc->handler.type & def->insns_flags) != 0) { |
9186 | a750fc0b | j_mayer | if (register_insn(env->opcodes, opc) < 0) { |
9187 | a750fc0b | j_mayer | printf("*** ERROR initializing PowerPC instruction "
|
9188 | a750fc0b | j_mayer | "0x%02x 0x%02x 0x%02x\n", opc->opc1, opc->opc2,
|
9189 | a750fc0b | j_mayer | opc->opc3); |
9190 | a750fc0b | j_mayer | return -1; |
9191 | a750fc0b | j_mayer | } |
9192 | a750fc0b | j_mayer | } |
9193 | a750fc0b | j_mayer | } |
9194 | a750fc0b | j_mayer | fix_opcode_tables(env->opcodes); |
9195 | a750fc0b | j_mayer | fflush(stdout); |
9196 | a750fc0b | j_mayer | fflush(stderr); |
9197 | a750fc0b | j_mayer | |
9198 | a750fc0b | j_mayer | return 0; |
9199 | a750fc0b | j_mayer | } |
9200 | a750fc0b | j_mayer | |
9201 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9202 | 25ba3a68 | j_mayer | static void dump_ppc_insns (CPUPPCState *env) |
9203 | a750fc0b | j_mayer | { |
9204 | a750fc0b | j_mayer | opc_handler_t **table, *handler; |
9205 | b55266b5 | blueswir1 | const char *p, *q; |
9206 | a750fc0b | j_mayer | uint8_t opc1, opc2, opc3; |
9207 | a750fc0b | j_mayer | |
9208 | a750fc0b | j_mayer | printf("Instructions set:\n");
|
9209 | a750fc0b | j_mayer | /* opc1 is 6 bits long */
|
9210 | a750fc0b | j_mayer | for (opc1 = 0x00; opc1 < 0x40; opc1++) { |
9211 | a750fc0b | j_mayer | table = env->opcodes; |
9212 | a750fc0b | j_mayer | handler = table[opc1]; |
9213 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9214 | a750fc0b | j_mayer | /* opc2 is 5 bits long */
|
9215 | a750fc0b | j_mayer | for (opc2 = 0; opc2 < 0x20; opc2++) { |
9216 | a750fc0b | j_mayer | table = env->opcodes; |
9217 | a750fc0b | j_mayer | handler = env->opcodes[opc1]; |
9218 | a750fc0b | j_mayer | table = ind_table(handler); |
9219 | a750fc0b | j_mayer | handler = table[opc2]; |
9220 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9221 | a750fc0b | j_mayer | table = ind_table(handler); |
9222 | a750fc0b | j_mayer | /* opc3 is 5 bits long */
|
9223 | a750fc0b | j_mayer | for (opc3 = 0; opc3 < 0x20; opc3++) { |
9224 | a750fc0b | j_mayer | handler = table[opc3]; |
9225 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9226 | 4c1b1bfe | j_mayer | /* Special hack to properly dump SPE insns */
|
9227 | 4c1b1bfe | j_mayer | p = strchr(handler->oname, '_');
|
9228 | 4c1b1bfe | j_mayer | if (p == NULL) { |
9229 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9230 | 4c1b1bfe | j_mayer | "%s\n",
|
9231 | 4c1b1bfe | j_mayer | opc1, opc2, opc3, opc1, |
9232 | 4c1b1bfe | j_mayer | (opc3 << 5) | opc2,
|
9233 | 4c1b1bfe | j_mayer | handler->oname); |
9234 | 4c1b1bfe | j_mayer | } else {
|
9235 | 4c1b1bfe | j_mayer | q = "speundef";
|
9236 | 4c1b1bfe | j_mayer | if ((p - handler->oname) != strlen(q) ||
|
9237 | 4c1b1bfe | j_mayer | memcmp(handler->oname, q, strlen(q)) != 0) {
|
9238 | 4c1b1bfe | j_mayer | /* First instruction */
|
9239 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9240 | 4c1b1bfe | j_mayer | "%.*s\n",
|
9241 | 4c1b1bfe | j_mayer | opc1, opc2 << 1, opc3, opc1,
|
9242 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1), |
9243 | 4c1b1bfe | j_mayer | (int)(p - handler->oname),
|
9244 | 4c1b1bfe | j_mayer | handler->oname); |
9245 | 4c1b1bfe | j_mayer | } |
9246 | 4c1b1bfe | j_mayer | if (strcmp(p + 1, q) != 0) { |
9247 | 4c1b1bfe | j_mayer | /* Second instruction */
|
9248 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9249 | 4c1b1bfe | j_mayer | "%s\n",
|
9250 | 4c1b1bfe | j_mayer | opc1, (opc2 << 1) | 1, opc3, opc1, |
9251 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1) | 1, |
9252 | 4c1b1bfe | j_mayer | p + 1);
|
9253 | 4c1b1bfe | j_mayer | } |
9254 | 4c1b1bfe | j_mayer | } |
9255 | a750fc0b | j_mayer | } |
9256 | a750fc0b | j_mayer | } |
9257 | a750fc0b | j_mayer | } else {
|
9258 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9259 | a750fc0b | j_mayer | printf("INSN: %02x %02x -- (%02d %04d) : %s\n",
|
9260 | a750fc0b | j_mayer | opc1, opc2, opc1, opc2, handler->oname); |
9261 | a750fc0b | j_mayer | } |
9262 | a750fc0b | j_mayer | } |
9263 | a750fc0b | j_mayer | } |
9264 | a750fc0b | j_mayer | } else {
|
9265 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9266 | a750fc0b | j_mayer | printf("INSN: %02x -- -- (%02d ----) : %s\n",
|
9267 | a750fc0b | j_mayer | opc1, opc1, handler->oname); |
9268 | a750fc0b | j_mayer | } |
9269 | a750fc0b | j_mayer | } |
9270 | a750fc0b | j_mayer | } |
9271 | a750fc0b | j_mayer | } |
9272 | 3a607854 | j_mayer | #endif
|
9273 | a750fc0b | j_mayer | |
9274 | aaed909a | bellard | int cpu_ppc_register_internal (CPUPPCState *env, const ppc_def_t *def) |
9275 | a750fc0b | j_mayer | { |
9276 | a750fc0b | j_mayer | env->msr_mask = def->msr_mask; |
9277 | a750fc0b | j_mayer | env->mmu_model = def->mmu_model; |
9278 | a750fc0b | j_mayer | env->excp_model = def->excp_model; |
9279 | a750fc0b | j_mayer | env->bus_model = def->bus_model; |
9280 | d26bfc9a | j_mayer | env->flags = def->flags; |
9281 | 237c0af0 | j_mayer | env->bfd_mach = def->bfd_mach; |
9282 | 2f462816 | j_mayer | env->check_pow = def->check_pow; |
9283 | a750fc0b | j_mayer | if (create_ppc_opcodes(env, def) < 0) |
9284 | a750fc0b | j_mayer | return -1; |
9285 | a750fc0b | j_mayer | init_ppc_proc(env, def); |
9286 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9287 | 3a607854 | j_mayer | { |
9288 | b55266b5 | blueswir1 | const char *mmu_model, *excp_model, *bus_model; |
9289 | a750fc0b | j_mayer | switch (env->mmu_model) {
|
9290 | a750fc0b | j_mayer | case POWERPC_MMU_32B:
|
9291 | a750fc0b | j_mayer | mmu_model = "PowerPC 32";
|
9292 | a750fc0b | j_mayer | break;
|
9293 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_6xx:
|
9294 | a750fc0b | j_mayer | mmu_model = "PowerPC 6xx/7xx with software driven TLBs";
|
9295 | a750fc0b | j_mayer | break;
|
9296 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_74xx:
|
9297 | a750fc0b | j_mayer | mmu_model = "PowerPC 74xx with software driven TLBs";
|
9298 | a750fc0b | j_mayer | break;
|
9299 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx:
|
9300 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs";
|
9301 | a750fc0b | j_mayer | break;
|
9302 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx_Z:
|
9303 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs "
|
9304 | a750fc0b | j_mayer | "and zones protections";
|
9305 | a750fc0b | j_mayer | break;
|
9306 | b4095fed | j_mayer | case POWERPC_MMU_REAL:
|
9307 | b4095fed | j_mayer | mmu_model = "PowerPC real mode only";
|
9308 | b4095fed | j_mayer | break;
|
9309 | b4095fed | j_mayer | case POWERPC_MMU_MPC8xx:
|
9310 | b4095fed | j_mayer | mmu_model = "PowerPC MPC8xx";
|
9311 | a750fc0b | j_mayer | break;
|
9312 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE:
|
9313 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE";
|
9314 | a750fc0b | j_mayer | break;
|
9315 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE_FSL:
|
9316 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE FSL";
|
9317 | a750fc0b | j_mayer | break;
|
9318 | b4095fed | j_mayer | case POWERPC_MMU_601:
|
9319 | b4095fed | j_mayer | mmu_model = "PowerPC 601";
|
9320 | b4095fed | j_mayer | break;
|
9321 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9322 | 00af685f | j_mayer | case POWERPC_MMU_64B:
|
9323 | 00af685f | j_mayer | mmu_model = "PowerPC 64";
|
9324 | 00af685f | j_mayer | break;
|
9325 | add78955 | j_mayer | case POWERPC_MMU_620:
|
9326 | add78955 | j_mayer | mmu_model = "PowerPC 620";
|
9327 | add78955 | j_mayer | break;
|
9328 | 00af685f | j_mayer | #endif
|
9329 | a750fc0b | j_mayer | default:
|
9330 | a750fc0b | j_mayer | mmu_model = "Unknown or invalid";
|
9331 | a750fc0b | j_mayer | break;
|
9332 | a750fc0b | j_mayer | } |
9333 | a750fc0b | j_mayer | switch (env->excp_model) {
|
9334 | a750fc0b | j_mayer | case POWERPC_EXCP_STD:
|
9335 | a750fc0b | j_mayer | excp_model = "PowerPC";
|
9336 | a750fc0b | j_mayer | break;
|
9337 | a750fc0b | j_mayer | case POWERPC_EXCP_40x:
|
9338 | a750fc0b | j_mayer | excp_model = "PowerPC 40x";
|
9339 | a750fc0b | j_mayer | break;
|
9340 | a750fc0b | j_mayer | case POWERPC_EXCP_601:
|
9341 | a750fc0b | j_mayer | excp_model = "PowerPC 601";
|
9342 | a750fc0b | j_mayer | break;
|
9343 | a750fc0b | j_mayer | case POWERPC_EXCP_602:
|
9344 | a750fc0b | j_mayer | excp_model = "PowerPC 602";
|
9345 | a750fc0b | j_mayer | break;
|
9346 | a750fc0b | j_mayer | case POWERPC_EXCP_603:
|
9347 | a750fc0b | j_mayer | excp_model = "PowerPC 603";
|
9348 | a750fc0b | j_mayer | break;
|
9349 | a750fc0b | j_mayer | case POWERPC_EXCP_603E:
|
9350 | a750fc0b | j_mayer | excp_model = "PowerPC 603e";
|
9351 | a750fc0b | j_mayer | break;
|
9352 | a750fc0b | j_mayer | case POWERPC_EXCP_604:
|
9353 | a750fc0b | j_mayer | excp_model = "PowerPC 604";
|
9354 | a750fc0b | j_mayer | break;
|
9355 | a750fc0b | j_mayer | case POWERPC_EXCP_7x0:
|
9356 | a750fc0b | j_mayer | excp_model = "PowerPC 740/750";
|
9357 | a750fc0b | j_mayer | break;
|
9358 | a750fc0b | j_mayer | case POWERPC_EXCP_7x5:
|
9359 | a750fc0b | j_mayer | excp_model = "PowerPC 745/755";
|
9360 | a750fc0b | j_mayer | break;
|
9361 | a750fc0b | j_mayer | case POWERPC_EXCP_74xx:
|
9362 | a750fc0b | j_mayer | excp_model = "PowerPC 74xx";
|
9363 | a750fc0b | j_mayer | break;
|
9364 | a750fc0b | j_mayer | case POWERPC_EXCP_BOOKE:
|
9365 | a750fc0b | j_mayer | excp_model = "PowerPC BookE";
|
9366 | a750fc0b | j_mayer | break;
|
9367 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9368 | 00af685f | j_mayer | case POWERPC_EXCP_970:
|
9369 | 00af685f | j_mayer | excp_model = "PowerPC 970";
|
9370 | 00af685f | j_mayer | break;
|
9371 | 00af685f | j_mayer | #endif
|
9372 | a750fc0b | j_mayer | default:
|
9373 | a750fc0b | j_mayer | excp_model = "Unknown or invalid";
|
9374 | a750fc0b | j_mayer | break;
|
9375 | a750fc0b | j_mayer | } |
9376 | a750fc0b | j_mayer | switch (env->bus_model) {
|
9377 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_6xx:
|
9378 | a750fc0b | j_mayer | bus_model = "PowerPC 6xx";
|
9379 | a750fc0b | j_mayer | break;
|
9380 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_BookE:
|
9381 | a750fc0b | j_mayer | bus_model = "PowerPC BookE";
|
9382 | a750fc0b | j_mayer | break;
|
9383 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_405:
|
9384 | a750fc0b | j_mayer | bus_model = "PowerPC 405";
|
9385 | a750fc0b | j_mayer | break;
|
9386 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_401:
|
9387 | a750fc0b | j_mayer | bus_model = "PowerPC 401/403";
|
9388 | a750fc0b | j_mayer | break;
|
9389 | b4095fed | j_mayer | case PPC_FLAGS_INPUT_RCPU:
|
9390 | b4095fed | j_mayer | bus_model = "RCPU / MPC8xx";
|
9391 | b4095fed | j_mayer | break;
|
9392 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9393 | 00af685f | j_mayer | case PPC_FLAGS_INPUT_970:
|
9394 | 00af685f | j_mayer | bus_model = "PowerPC 970";
|
9395 | 00af685f | j_mayer | break;
|
9396 | 00af685f | j_mayer | #endif
|
9397 | a750fc0b | j_mayer | default:
|
9398 | a750fc0b | j_mayer | bus_model = "Unknown or invalid";
|
9399 | a750fc0b | j_mayer | break;
|
9400 | a750fc0b | j_mayer | } |
9401 | a750fc0b | j_mayer | printf("PowerPC %-12s : PVR %08x MSR %016" PRIx64 "\n" |
9402 | a750fc0b | j_mayer | " MMU model : %s\n",
|
9403 | a750fc0b | j_mayer | def->name, def->pvr, def->msr_mask, mmu_model); |
9404 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9405 | a750fc0b | j_mayer | if (env->tlb != NULL) { |
9406 | a750fc0b | j_mayer | printf(" %d %s TLB in %d ways\n",
|
9407 | a750fc0b | j_mayer | env->nb_tlb, env->id_tlbs ? "splitted" : "merged", |
9408 | a750fc0b | j_mayer | env->nb_ways); |
9409 | a750fc0b | j_mayer | } |
9410 | f2e63a42 | j_mayer | #endif
|
9411 | a750fc0b | j_mayer | printf(" Exceptions model : %s\n"
|
9412 | a750fc0b | j_mayer | " Bus model : %s\n",
|
9413 | a750fc0b | j_mayer | excp_model, bus_model); |
9414 | 25ba3a68 | j_mayer | printf(" MSR features :\n");
|
9415 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SPE)
|
9416 | 25ba3a68 | j_mayer | printf(" signal processing engine enable"
|
9417 | 25ba3a68 | j_mayer | "\n");
|
9418 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_VRE) |
9419 | 25ba3a68 | j_mayer | printf(" vector processor enable\n");
|
9420 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_TGPR)
|
9421 | 25ba3a68 | j_mayer | printf(" temporary GPRs\n");
|
9422 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_CE) |
9423 | 25ba3a68 | j_mayer | printf(" critical input enable\n");
|
9424 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SE)
|
9425 | 25ba3a68 | j_mayer | printf(" single-step trace mode\n");
|
9426 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DWE) |
9427 | 25ba3a68 | j_mayer | printf(" debug wait enable\n");
|
9428 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_UBLE) |
9429 | 25ba3a68 | j_mayer | printf(" user BTB lock enable\n");
|
9430 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_BE)
|
9431 | 25ba3a68 | j_mayer | printf(" branch-step trace mode\n");
|
9432 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DE) |
9433 | 25ba3a68 | j_mayer | printf(" debug interrupt enable\n");
|
9434 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_PX)
|
9435 | 25ba3a68 | j_mayer | printf(" inclusive protection\n");
|
9436 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_PMM) |
9437 | 25ba3a68 | j_mayer | printf(" performance monitor mark\n");
|
9438 | 25ba3a68 | j_mayer | if (env->flags == POWERPC_FLAG_NONE)
|
9439 | 25ba3a68 | j_mayer | printf(" none\n");
|
9440 | 4018bae9 | j_mayer | printf(" Time-base/decrementer clock source: %s\n",
|
9441 | 4018bae9 | j_mayer | env->flags & POWERPC_FLAG_RTC_CLK ? "RTC clock" : "bus clock"); |
9442 | a750fc0b | j_mayer | } |
9443 | a750fc0b | j_mayer | dump_ppc_insns(env); |
9444 | a750fc0b | j_mayer | dump_ppc_sprs(env); |
9445 | a750fc0b | j_mayer | fflush(stdout); |
9446 | 3a607854 | j_mayer | #endif
|
9447 | a750fc0b | j_mayer | |
9448 | a750fc0b | j_mayer | return 0; |
9449 | a750fc0b | j_mayer | } |
9450 | 3fc6c082 | bellard | |
9451 | ee4e83ed | j_mayer | static const ppc_def_t *ppc_find_by_pvr (uint32_t pvr) |
9452 | 3fc6c082 | bellard | { |
9453 | ee4e83ed | j_mayer | const ppc_def_t *ret;
|
9454 | ee4e83ed | j_mayer | uint32_t pvr_rev; |
9455 | ee4e83ed | j_mayer | int i, best, match, best_match, max;
|
9456 | 3fc6c082 | bellard | |
9457 | ee4e83ed | j_mayer | ret = NULL;
|
9458 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9459 | ee4e83ed | j_mayer | best = -1;
|
9460 | ee4e83ed | j_mayer | pvr_rev = pvr & 0xFFFF;
|
9461 | ee4e83ed | j_mayer | /* We want all specified bits to match */
|
9462 | ee4e83ed | j_mayer | best_match = 32 - ctz32(pvr_rev);
|
9463 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9464 | ee4e83ed | j_mayer | /* We check that the 16 higher bits are the same to ensure the CPU
|
9465 | ee4e83ed | j_mayer | * model will be the choosen one.
|
9466 | ee4e83ed | j_mayer | */
|
9467 | ee4e83ed | j_mayer | if (((pvr ^ ppc_defs[i].pvr) >> 16) == 0) { |
9468 | ee4e83ed | j_mayer | /* We want as much as possible of the low-level 16 bits
|
9469 | ee4e83ed | j_mayer | * to be the same but we allow inexact matches.
|
9470 | ee4e83ed | j_mayer | */
|
9471 | ee4e83ed | j_mayer | match = clz32(pvr_rev ^ (ppc_defs[i].pvr & 0xFFFF));
|
9472 | ee4e83ed | j_mayer | /* We check '>=' instead of '>' because the PPC_defs table
|
9473 | ee4e83ed | j_mayer | * is ordered by increasing revision.
|
9474 | 4c1b1bfe | j_mayer | * Then, we will match the higher revision compatible
|
9475 | ee4e83ed | j_mayer | * with the requested PVR
|
9476 | ee4e83ed | j_mayer | */
|
9477 | ee4e83ed | j_mayer | if (match >= best_match) {
|
9478 | ee4e83ed | j_mayer | best = i; |
9479 | ee4e83ed | j_mayer | best_match = match; |
9480 | ee4e83ed | j_mayer | } |
9481 | 3fc6c082 | bellard | } |
9482 | 3fc6c082 | bellard | } |
9483 | ee4e83ed | j_mayer | if (best != -1) |
9484 | ee4e83ed | j_mayer | ret = &ppc_defs[best]; |
9485 | ee4e83ed | j_mayer | |
9486 | ee4e83ed | j_mayer | return ret;
|
9487 | 3fc6c082 | bellard | } |
9488 | 3fc6c082 | bellard | |
9489 | ee4e83ed | j_mayer | #include <ctype.h> |
9490 | 3fc6c082 | bellard | |
9491 | b55266b5 | blueswir1 | const ppc_def_t *cpu_ppc_find_by_name (const char *name) |
9492 | ee4e83ed | j_mayer | { |
9493 | ee4e83ed | j_mayer | const ppc_def_t *ret;
|
9494 | b55266b5 | blueswir1 | const char *p; |
9495 | ee4e83ed | j_mayer | int i, max, len;
|
9496 | ee4e83ed | j_mayer | |
9497 | ee4e83ed | j_mayer | /* Check if the given name is a PVR */
|
9498 | ee4e83ed | j_mayer | len = strlen(name); |
9499 | ee4e83ed | j_mayer | if (len == 10 && name[0] == '0' && name[1] == 'x') { |
9500 | ee4e83ed | j_mayer | p = name + 2;
|
9501 | ee4e83ed | j_mayer | goto check_pvr;
|
9502 | ee4e83ed | j_mayer | } else if (len == 8) { |
9503 | ee4e83ed | j_mayer | p = name; |
9504 | ee4e83ed | j_mayer | check_pvr:
|
9505 | ee4e83ed | j_mayer | for (i = 0; i < 8; i++) { |
9506 | cd390083 | blueswir1 | if (!qemu_isxdigit(*p++))
|
9507 | ee4e83ed | j_mayer | break;
|
9508 | ee4e83ed | j_mayer | } |
9509 | ee4e83ed | j_mayer | if (i == 8) |
9510 | ee4e83ed | j_mayer | return ppc_find_by_pvr(strtoul(name, NULL, 16)); |
9511 | ee4e83ed | j_mayer | } |
9512 | ee4e83ed | j_mayer | ret = NULL;
|
9513 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9514 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9515 | ee4e83ed | j_mayer | if (strcasecmp(name, ppc_defs[i].name) == 0) { |
9516 | ee4e83ed | j_mayer | ret = &ppc_defs[i]; |
9517 | ee4e83ed | j_mayer | break;
|
9518 | 3fc6c082 | bellard | } |
9519 | 3fc6c082 | bellard | } |
9520 | ee4e83ed | j_mayer | |
9521 | ee4e83ed | j_mayer | return ret;
|
9522 | 3fc6c082 | bellard | } |
9523 | 3fc6c082 | bellard | |
9524 | 3fc6c082 | bellard | void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) |
9525 | 3fc6c082 | bellard | { |
9526 | 068abdc8 | j_mayer | int i, max;
|
9527 | 3fc6c082 | bellard | |
9528 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9529 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9530 | a750fc0b | j_mayer | (*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n",
|
9531 | a750fc0b | j_mayer | ppc_defs[i].name, ppc_defs[i].pvr); |
9532 | 3fc6c082 | bellard | } |
9533 | 3fc6c082 | bellard | } |