root / target-ppc / translate_init.c @ d084469c
History | View | Annotate | Download (413.5 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 | 4e47ea67 | aurel32 | #include "gdbstub.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 | 9fdc60bf | aurel32 | PPC_IRQ_INIT_FN(e500); |
66 | e9df014c | j_mayer | |
67 | 3fc6c082 | bellard | /* Generic callbacks:
|
68 | 3fc6c082 | bellard | * do nothing but store/retrieve spr value
|
69 | 3fc6c082 | bellard | */
|
70 | 45d827d2 | aurel32 | static void spr_read_generic (void *opaque, int gprn, int sprn) |
71 | a496775f | j_mayer | { |
72 | 45d827d2 | aurel32 | gen_load_spr(cpu_gpr[gprn], sprn); |
73 | 45d827d2 | aurel32 | #ifdef PPC_DUMP_SPR_ACCESSES
|
74 | 45d827d2 | aurel32 | { |
75 | 45d827d2 | aurel32 | TCGv t0 = tcg_const_i32(sprn); |
76 | 45d827d2 | aurel32 | gen_helper_load_dump_spr(t0); |
77 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
78 | 45d827d2 | aurel32 | } |
79 | 45d827d2 | aurel32 | #endif
|
80 | a496775f | j_mayer | } |
81 | a496775f | j_mayer | |
82 | 45d827d2 | aurel32 | static void spr_write_generic (void *opaque, int sprn, int gprn) |
83 | a496775f | j_mayer | { |
84 | 45d827d2 | aurel32 | gen_store_spr(sprn, cpu_gpr[gprn]); |
85 | 45d827d2 | aurel32 | #ifdef PPC_DUMP_SPR_ACCESSES
|
86 | 45d827d2 | aurel32 | { |
87 | 45d827d2 | aurel32 | TCGv t0 = tcg_const_i32(sprn); |
88 | 45d827d2 | aurel32 | gen_helper_store_dump_spr(t0); |
89 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
90 | 45d827d2 | aurel32 | } |
91 | 04f20795 | j_mayer | #endif
|
92 | 45d827d2 | aurel32 | } |
93 | a496775f | j_mayer | |
94 | a496775f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
95 | 45d827d2 | aurel32 | static void spr_write_clear (void *opaque, int sprn, int gprn) |
96 | a496775f | j_mayer | { |
97 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
98 | 45d827d2 | aurel32 | TCGv t1 = tcg_temp_new(); |
99 | 45d827d2 | aurel32 | gen_load_spr(t0, sprn); |
100 | 45d827d2 | aurel32 | tcg_gen_neg_tl(t1, cpu_gpr[gprn]); |
101 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, t1); |
102 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
103 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
104 | 45d827d2 | aurel32 | tcg_temp_free(t1); |
105 | a496775f | j_mayer | } |
106 | a496775f | j_mayer | #endif
|
107 | a496775f | j_mayer | |
108 | 76a66253 | j_mayer | /* SPR common to all PowerPC */
|
109 | 3fc6c082 | bellard | /* XER */
|
110 | 45d827d2 | aurel32 | static void spr_read_xer (void *opaque, int gprn, int sprn) |
111 | 3fc6c082 | bellard | { |
112 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_xer); |
113 | 3fc6c082 | bellard | } |
114 | 3fc6c082 | bellard | |
115 | 45d827d2 | aurel32 | static void spr_write_xer (void *opaque, int sprn, int gprn) |
116 | 3fc6c082 | bellard | { |
117 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_xer, cpu_gpr[gprn]); |
118 | 3fc6c082 | bellard | } |
119 | 3fc6c082 | bellard | |
120 | 3fc6c082 | bellard | /* LR */
|
121 | 45d827d2 | aurel32 | static void spr_read_lr (void *opaque, int gprn, int sprn) |
122 | 3fc6c082 | bellard | { |
123 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_lr); |
124 | 3fc6c082 | bellard | } |
125 | 3fc6c082 | bellard | |
126 | 45d827d2 | aurel32 | static void spr_write_lr (void *opaque, int sprn, int gprn) |
127 | 3fc6c082 | bellard | { |
128 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_lr, cpu_gpr[gprn]); |
129 | 3fc6c082 | bellard | } |
130 | 3fc6c082 | bellard | |
131 | 3fc6c082 | bellard | /* CTR */
|
132 | 45d827d2 | aurel32 | static void spr_read_ctr (void *opaque, int gprn, int sprn) |
133 | 3fc6c082 | bellard | { |
134 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_ctr); |
135 | 3fc6c082 | bellard | } |
136 | 3fc6c082 | bellard | |
137 | 45d827d2 | aurel32 | static void spr_write_ctr (void *opaque, int sprn, int gprn) |
138 | 3fc6c082 | bellard | { |
139 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_ctr, cpu_gpr[gprn]); |
140 | 3fc6c082 | bellard | } |
141 | 3fc6c082 | bellard | |
142 | 3fc6c082 | bellard | /* User read access to SPR */
|
143 | 3fc6c082 | bellard | /* USPRx */
|
144 | 3fc6c082 | bellard | /* UMMCRx */
|
145 | 3fc6c082 | bellard | /* UPMCx */
|
146 | 3fc6c082 | bellard | /* USIA */
|
147 | 3fc6c082 | bellard | /* UDECR */
|
148 | 45d827d2 | aurel32 | static void spr_read_ureg (void *opaque, int gprn, int sprn) |
149 | 3fc6c082 | bellard | { |
150 | 45d827d2 | aurel32 | gen_load_spr(cpu_gpr[gprn], sprn + 0x10);
|
151 | 3fc6c082 | bellard | } |
152 | 3fc6c082 | bellard | |
153 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC */
|
154 | 3fc6c082 | bellard | /* DECR */
|
155 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
156 | 45d827d2 | aurel32 | static void spr_read_decr (void *opaque, int gprn, int sprn) |
157 | 3fc6c082 | bellard | { |
158 | 45d827d2 | aurel32 | gen_helper_load_decr(cpu_gpr[gprn]); |
159 | 3fc6c082 | bellard | } |
160 | 3fc6c082 | bellard | |
161 | 45d827d2 | aurel32 | static void spr_write_decr (void *opaque, int sprn, int gprn) |
162 | 3fc6c082 | bellard | { |
163 | 45d827d2 | aurel32 | gen_helper_store_decr(cpu_gpr[gprn]); |
164 | 3fc6c082 | bellard | } |
165 | 76a66253 | j_mayer | #endif
|
166 | 3fc6c082 | bellard | |
167 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC, except 601 */
|
168 | 3fc6c082 | bellard | /* Time base */
|
169 | 45d827d2 | aurel32 | static void spr_read_tbl (void *opaque, int gprn, int sprn) |
170 | 3fc6c082 | bellard | { |
171 | 45d827d2 | aurel32 | gen_helper_load_tbl(cpu_gpr[gprn]); |
172 | 3fc6c082 | bellard | } |
173 | 3fc6c082 | bellard | |
174 | 45d827d2 | aurel32 | static void spr_read_tbu (void *opaque, int gprn, int sprn) |
175 | 3fc6c082 | bellard | { |
176 | 45d827d2 | aurel32 | gen_helper_load_tbu(cpu_gpr[gprn]); |
177 | 3fc6c082 | bellard | } |
178 | 3fc6c082 | bellard | |
179 | a062e36c | j_mayer | __attribute__ (( unused )) |
180 | 45d827d2 | aurel32 | static void spr_read_atbl (void *opaque, int gprn, int sprn) |
181 | a062e36c | j_mayer | { |
182 | 45d827d2 | aurel32 | gen_helper_load_atbl(cpu_gpr[gprn]); |
183 | a062e36c | j_mayer | } |
184 | a062e36c | j_mayer | |
185 | a062e36c | j_mayer | __attribute__ (( unused )) |
186 | 45d827d2 | aurel32 | static void spr_read_atbu (void *opaque, int gprn, int sprn) |
187 | a062e36c | j_mayer | { |
188 | 45d827d2 | aurel32 | gen_helper_load_atbu(cpu_gpr[gprn]); |
189 | a062e36c | j_mayer | } |
190 | a062e36c | j_mayer | |
191 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
192 | 45d827d2 | aurel32 | static void spr_write_tbl (void *opaque, int sprn, int gprn) |
193 | 3fc6c082 | bellard | { |
194 | 45d827d2 | aurel32 | gen_helper_store_tbl(cpu_gpr[gprn]); |
195 | 3fc6c082 | bellard | } |
196 | 3fc6c082 | bellard | |
197 | 45d827d2 | aurel32 | static void spr_write_tbu (void *opaque, int sprn, int gprn) |
198 | 3fc6c082 | bellard | { |
199 | 45d827d2 | aurel32 | gen_helper_store_tbu(cpu_gpr[gprn]); |
200 | 3fc6c082 | bellard | } |
201 | a062e36c | j_mayer | |
202 | a062e36c | j_mayer | __attribute__ (( unused )) |
203 | 45d827d2 | aurel32 | static void spr_write_atbl (void *opaque, int sprn, int gprn) |
204 | a062e36c | j_mayer | { |
205 | 45d827d2 | aurel32 | gen_helper_store_atbl(cpu_gpr[gprn]); |
206 | a062e36c | j_mayer | } |
207 | a062e36c | j_mayer | |
208 | a062e36c | j_mayer | __attribute__ (( unused )) |
209 | 45d827d2 | aurel32 | static void spr_write_atbu (void *opaque, int sprn, int gprn) |
210 | a062e36c | j_mayer | { |
211 | 45d827d2 | aurel32 | gen_helper_store_atbu(cpu_gpr[gprn]); |
212 | a062e36c | j_mayer | } |
213 | 76a66253 | j_mayer | #endif
|
214 | 3fc6c082 | bellard | |
215 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
216 | 3fc6c082 | bellard | /* IBAT0U...IBAT0U */
|
217 | 3fc6c082 | bellard | /* IBAT0L...IBAT7L */
|
218 | 45d827d2 | aurel32 | static void spr_read_ibat (void *opaque, int gprn, int sprn) |
219 | 3fc6c082 | bellard | { |
220 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT0U) / 2])); |
221 | 3fc6c082 | bellard | } |
222 | 3fc6c082 | bellard | |
223 | 45d827d2 | aurel32 | static void spr_read_ibat_h (void *opaque, int gprn, int sprn) |
224 | 3fc6c082 | bellard | { |
225 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT4U) / 2])); |
226 | 3fc6c082 | bellard | } |
227 | 3fc6c082 | bellard | |
228 | 45d827d2 | aurel32 | static void spr_write_ibatu (void *opaque, int sprn, int gprn) |
229 | 3fc6c082 | bellard | { |
230 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
231 | 45d827d2 | aurel32 | gen_helper_store_ibatu(t0, cpu_gpr[gprn]); |
232 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
233 | 3fc6c082 | bellard | } |
234 | 3fc6c082 | bellard | |
235 | 45d827d2 | aurel32 | static void spr_write_ibatu_h (void *opaque, int sprn, int gprn) |
236 | 3fc6c082 | bellard | { |
237 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT4U) / 2);
|
238 | 45d827d2 | aurel32 | gen_helper_store_ibatu(t0, cpu_gpr[gprn]); |
239 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
240 | 3fc6c082 | bellard | } |
241 | 3fc6c082 | bellard | |
242 | 45d827d2 | aurel32 | static void spr_write_ibatl (void *opaque, int sprn, int gprn) |
243 | 3fc6c082 | bellard | { |
244 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0L) / 2);
|
245 | 45d827d2 | aurel32 | gen_helper_store_ibatl(t0, cpu_gpr[gprn]); |
246 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
247 | 3fc6c082 | bellard | } |
248 | 3fc6c082 | bellard | |
249 | 45d827d2 | aurel32 | static void spr_write_ibatl_h (void *opaque, int sprn, int gprn) |
250 | 3fc6c082 | bellard | { |
251 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT4L) / 2);
|
252 | 45d827d2 | aurel32 | gen_helper_store_ibatl(t0, cpu_gpr[gprn]); |
253 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
254 | 3fc6c082 | bellard | } |
255 | 3fc6c082 | bellard | |
256 | 3fc6c082 | bellard | /* DBAT0U...DBAT7U */
|
257 | 3fc6c082 | bellard | /* DBAT0L...DBAT7L */
|
258 | 45d827d2 | aurel32 | static void spr_read_dbat (void *opaque, int gprn, int sprn) |
259 | 3fc6c082 | bellard | { |
260 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, DBAT[sprn & 1][(sprn - SPR_DBAT0U) / 2])); |
261 | 3fc6c082 | bellard | } |
262 | 3fc6c082 | bellard | |
263 | 45d827d2 | aurel32 | static void spr_read_dbat_h (void *opaque, int gprn, int sprn) |
264 | 3fc6c082 | bellard | { |
265 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, DBAT[sprn & 1][((sprn - SPR_DBAT4U) / 2) + 4])); |
266 | 3fc6c082 | bellard | } |
267 | 3fc6c082 | bellard | |
268 | 45d827d2 | aurel32 | static void spr_write_dbatu (void *opaque, int sprn, int gprn) |
269 | 3fc6c082 | bellard | { |
270 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_DBAT0U) / 2);
|
271 | 45d827d2 | aurel32 | gen_helper_store_dbatu(t0, cpu_gpr[gprn]); |
272 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
273 | 3fc6c082 | bellard | } |
274 | 3fc6c082 | bellard | |
275 | 45d827d2 | aurel32 | static void spr_write_dbatu_h (void *opaque, int sprn, int gprn) |
276 | 3fc6c082 | bellard | { |
277 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_DBAT4U) / 2) + 4); |
278 | 45d827d2 | aurel32 | gen_helper_store_dbatu(t0, cpu_gpr[gprn]); |
279 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
280 | 3fc6c082 | bellard | } |
281 | 3fc6c082 | bellard | |
282 | 45d827d2 | aurel32 | static void spr_write_dbatl (void *opaque, int sprn, int gprn) |
283 | 3fc6c082 | bellard | { |
284 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_DBAT0L) / 2);
|
285 | 45d827d2 | aurel32 | gen_helper_store_dbatl(t0, cpu_gpr[gprn]); |
286 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
287 | 3fc6c082 | bellard | } |
288 | 3fc6c082 | bellard | |
289 | 45d827d2 | aurel32 | static void spr_write_dbatl_h (void *opaque, int sprn, int gprn) |
290 | 3fc6c082 | bellard | { |
291 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_DBAT4L) / 2) + 4); |
292 | 45d827d2 | aurel32 | gen_helper_store_dbatl(t0, cpu_gpr[gprn]); |
293 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
294 | 3fc6c082 | bellard | } |
295 | 3fc6c082 | bellard | |
296 | 3fc6c082 | bellard | /* SDR1 */
|
297 | 45d827d2 | aurel32 | static void spr_read_sdr1 (void *opaque, int gprn, int sprn) |
298 | 3fc6c082 | bellard | { |
299 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, sdr1)); |
300 | 3fc6c082 | bellard | } |
301 | 3fc6c082 | bellard | |
302 | 45d827d2 | aurel32 | static void spr_write_sdr1 (void *opaque, int sprn, int gprn) |
303 | 3fc6c082 | bellard | { |
304 | 45d827d2 | aurel32 | gen_helper_store_sdr1(cpu_gpr[gprn]); |
305 | 3fc6c082 | bellard | } |
306 | 3fc6c082 | bellard | |
307 | 76a66253 | j_mayer | /* 64 bits PowerPC specific SPRs */
|
308 | 76a66253 | j_mayer | /* ASR */
|
309 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
310 | 2adab7d6 | blueswir1 | static void spr_read_hior (void *opaque, int gprn, int sprn) |
311 | 2adab7d6 | blueswir1 | { |
312 | 2adab7d6 | blueswir1 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, excp_prefix)); |
313 | 2adab7d6 | blueswir1 | } |
314 | 2adab7d6 | blueswir1 | |
315 | 2adab7d6 | blueswir1 | static void spr_write_hior (void *opaque, int sprn, int gprn) |
316 | 2adab7d6 | blueswir1 | { |
317 | 2adab7d6 | blueswir1 | TCGv t0 = tcg_temp_new(); |
318 | 2adab7d6 | blueswir1 | tcg_gen_andi_tl(t0, cpu_gpr[gprn], 0x3FFFFF00000ULL);
|
319 | 2adab7d6 | blueswir1 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_prefix)); |
320 | 2adab7d6 | blueswir1 | tcg_temp_free(t0); |
321 | 2adab7d6 | blueswir1 | } |
322 | 2adab7d6 | blueswir1 | |
323 | 45d827d2 | aurel32 | static void spr_read_asr (void *opaque, int gprn, int sprn) |
324 | 76a66253 | j_mayer | { |
325 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, asr)); |
326 | 76a66253 | j_mayer | } |
327 | 76a66253 | j_mayer | |
328 | 45d827d2 | aurel32 | static void spr_write_asr (void *opaque, int sprn, int gprn) |
329 | 76a66253 | j_mayer | { |
330 | 45d827d2 | aurel32 | gen_helper_store_asr(cpu_gpr[gprn]); |
331 | 76a66253 | j_mayer | } |
332 | 76a66253 | j_mayer | #endif
|
333 | a750fc0b | j_mayer | #endif
|
334 | 76a66253 | j_mayer | |
335 | 76a66253 | j_mayer | /* PowerPC 601 specific registers */
|
336 | 76a66253 | j_mayer | /* RTC */
|
337 | 45d827d2 | aurel32 | static void spr_read_601_rtcl (void *opaque, int gprn, int sprn) |
338 | 76a66253 | j_mayer | { |
339 | 45d827d2 | aurel32 | gen_helper_load_601_rtcl(cpu_gpr[gprn]); |
340 | 76a66253 | j_mayer | } |
341 | 76a66253 | j_mayer | |
342 | 45d827d2 | aurel32 | static void spr_read_601_rtcu (void *opaque, int gprn, int sprn) |
343 | 76a66253 | j_mayer | { |
344 | 45d827d2 | aurel32 | gen_helper_load_601_rtcu(cpu_gpr[gprn]); |
345 | 76a66253 | j_mayer | } |
346 | 76a66253 | j_mayer | |
347 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
348 | 45d827d2 | aurel32 | static void spr_write_601_rtcu (void *opaque, int sprn, int gprn) |
349 | 76a66253 | j_mayer | { |
350 | 45d827d2 | aurel32 | gen_helper_store_601_rtcu(cpu_gpr[gprn]); |
351 | 76a66253 | j_mayer | } |
352 | 76a66253 | j_mayer | |
353 | 45d827d2 | aurel32 | static void spr_write_601_rtcl (void *opaque, int sprn, int gprn) |
354 | 76a66253 | j_mayer | { |
355 | 45d827d2 | aurel32 | gen_helper_store_601_rtcl(cpu_gpr[gprn]); |
356 | 76a66253 | j_mayer | } |
357 | 056401ea | j_mayer | |
358 | 45d827d2 | aurel32 | static void spr_write_hid0_601 (void *opaque, int sprn, int gprn) |
359 | 056401ea | j_mayer | { |
360 | 056401ea | j_mayer | DisasContext *ctx = opaque; |
361 | 056401ea | j_mayer | |
362 | 45d827d2 | aurel32 | gen_helper_store_hid0_601(cpu_gpr[gprn]); |
363 | 056401ea | j_mayer | /* Must stop the translation as endianness may have changed */
|
364 | e06fcd75 | aurel32 | gen_stop_exception(ctx); |
365 | 056401ea | j_mayer | } |
366 | 76a66253 | j_mayer | #endif
|
367 | 76a66253 | j_mayer | |
368 | 76a66253 | j_mayer | /* Unified bats */
|
369 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
370 | 45d827d2 | aurel32 | static void spr_read_601_ubat (void *opaque, int gprn, int sprn) |
371 | 76a66253 | j_mayer | { |
372 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT0U) / 2])); |
373 | 76a66253 | j_mayer | } |
374 | 76a66253 | j_mayer | |
375 | 45d827d2 | aurel32 | static void spr_write_601_ubatu (void *opaque, int sprn, int gprn) |
376 | 76a66253 | j_mayer | { |
377 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
378 | 45d827d2 | aurel32 | gen_helper_store_601_batl(t0, cpu_gpr[gprn]); |
379 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
380 | 76a66253 | j_mayer | } |
381 | 76a66253 | j_mayer | |
382 | 45d827d2 | aurel32 | static void spr_write_601_ubatl (void *opaque, int sprn, int gprn) |
383 | 76a66253 | j_mayer | { |
384 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
385 | 45d827d2 | aurel32 | gen_helper_store_601_batu(t0, cpu_gpr[gprn]); |
386 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
387 | 76a66253 | j_mayer | } |
388 | 76a66253 | j_mayer | #endif
|
389 | 76a66253 | j_mayer | |
390 | 76a66253 | j_mayer | /* PowerPC 40x specific registers */
|
391 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
392 | 45d827d2 | aurel32 | static void spr_read_40x_pit (void *opaque, int gprn, int sprn) |
393 | 76a66253 | j_mayer | { |
394 | 45d827d2 | aurel32 | gen_helper_load_40x_pit(cpu_gpr[gprn]); |
395 | 76a66253 | j_mayer | } |
396 | 76a66253 | j_mayer | |
397 | 45d827d2 | aurel32 | static void spr_write_40x_pit (void *opaque, int sprn, int gprn) |
398 | 76a66253 | j_mayer | { |
399 | 45d827d2 | aurel32 | gen_helper_store_40x_pit(cpu_gpr[gprn]); |
400 | 76a66253 | j_mayer | } |
401 | 76a66253 | j_mayer | |
402 | 45d827d2 | aurel32 | static void spr_write_40x_dbcr0 (void *opaque, int sprn, int gprn) |
403 | 8ecc7913 | j_mayer | { |
404 | 8ecc7913 | j_mayer | DisasContext *ctx = opaque; |
405 | 8ecc7913 | j_mayer | |
406 | 45d827d2 | aurel32 | gen_helper_store_40x_dbcr0(cpu_gpr[gprn]); |
407 | 8ecc7913 | j_mayer | /* We must stop translation as we may have rebooted */
|
408 | e06fcd75 | aurel32 | gen_stop_exception(ctx); |
409 | 8ecc7913 | j_mayer | } |
410 | 8ecc7913 | j_mayer | |
411 | 45d827d2 | aurel32 | static void spr_write_40x_sler (void *opaque, int sprn, int gprn) |
412 | c294fc58 | j_mayer | { |
413 | 45d827d2 | aurel32 | gen_helper_store_40x_sler(cpu_gpr[gprn]); |
414 | c294fc58 | j_mayer | } |
415 | c294fc58 | j_mayer | |
416 | 45d827d2 | aurel32 | static void spr_write_booke_tcr (void *opaque, int sprn, int gprn) |
417 | 76a66253 | j_mayer | { |
418 | 45d827d2 | aurel32 | gen_helper_store_booke_tcr(cpu_gpr[gprn]); |
419 | 76a66253 | j_mayer | } |
420 | 76a66253 | j_mayer | |
421 | 45d827d2 | aurel32 | static void spr_write_booke_tsr (void *opaque, int sprn, int gprn) |
422 | 76a66253 | j_mayer | { |
423 | 45d827d2 | aurel32 | gen_helper_store_booke_tsr(cpu_gpr[gprn]); |
424 | 76a66253 | j_mayer | } |
425 | 76a66253 | j_mayer | #endif
|
426 | 76a66253 | j_mayer | |
427 | 76a66253 | j_mayer | /* PowerPC 403 specific registers */
|
428 | 76a66253 | j_mayer | /* PBL1 / PBU1 / PBL2 / PBU2 */
|
429 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
430 | 45d827d2 | aurel32 | static void spr_read_403_pbr (void *opaque, int gprn, int sprn) |
431 | 76a66253 | j_mayer | { |
432 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, pb[sprn - SPR_403_PBL1])); |
433 | 76a66253 | j_mayer | } |
434 | 76a66253 | j_mayer | |
435 | 45d827d2 | aurel32 | static void spr_write_403_pbr (void *opaque, int sprn, int gprn) |
436 | 76a66253 | j_mayer | { |
437 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(sprn - SPR_403_PBL1); |
438 | 45d827d2 | aurel32 | gen_helper_store_403_pbr(t0, cpu_gpr[gprn]); |
439 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
440 | 76a66253 | j_mayer | } |
441 | 76a66253 | j_mayer | |
442 | 45d827d2 | aurel32 | static void spr_write_pir (void *opaque, int sprn, int gprn) |
443 | 3fc6c082 | bellard | { |
444 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
445 | 45d827d2 | aurel32 | tcg_gen_andi_tl(t0, cpu_gpr[gprn], 0xF);
|
446 | 45d827d2 | aurel32 | gen_store_spr(SPR_PIR, t0); |
447 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
448 | 3fc6c082 | bellard | } |
449 | 76a66253 | j_mayer | #endif
|
450 | 3fc6c082 | bellard | |
451 | d34defbc | aurel32 | /* SPE specific registers */
|
452 | d34defbc | aurel32 | static void spr_read_spefscr (void *opaque, int gprn, int sprn) |
453 | d34defbc | aurel32 | { |
454 | d34defbc | aurel32 | TCGv_i32 t0 = tcg_temp_new_i32(); |
455 | 515e2f7e | aurel32 | tcg_gen_ld_i32(t0, cpu_env, offsetof(CPUState, spe_fscr)); |
456 | d34defbc | aurel32 | tcg_gen_extu_i32_tl(cpu_gpr[gprn], t0); |
457 | d34defbc | aurel32 | tcg_temp_free_i32(t0); |
458 | d34defbc | aurel32 | } |
459 | d34defbc | aurel32 | |
460 | d34defbc | aurel32 | static void spr_write_spefscr (void *opaque, int sprn, int gprn) |
461 | d34defbc | aurel32 | { |
462 | d34defbc | aurel32 | TCGv_i32 t0 = tcg_temp_new_i32(); |
463 | d34defbc | aurel32 | tcg_gen_trunc_tl_i32(t0, cpu_gpr[gprn]); |
464 | 515e2f7e | aurel32 | tcg_gen_st_i32(t0, cpu_env, offsetof(CPUState, spe_fscr)); |
465 | d34defbc | aurel32 | tcg_temp_free_i32(t0); |
466 | d34defbc | aurel32 | } |
467 | d34defbc | aurel32 | |
468 | 6f5d427d | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
469 | 6f5d427d | j_mayer | /* Callback used to write the exception vector base */
|
470 | 45d827d2 | aurel32 | static void spr_write_excp_prefix (void *opaque, int sprn, int gprn) |
471 | 6f5d427d | j_mayer | { |
472 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
473 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivpr_mask)); |
474 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
475 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_prefix)); |
476 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
477 | 69bd5820 | aurel32 | tcg_temp_free(t0); |
478 | 6f5d427d | j_mayer | } |
479 | 6f5d427d | j_mayer | |
480 | 45d827d2 | aurel32 | static void spr_write_excp_vector (void *opaque, int sprn, int gprn) |
481 | 6f5d427d | j_mayer | { |
482 | 6f5d427d | j_mayer | DisasContext *ctx = opaque; |
483 | 6f5d427d | j_mayer | |
484 | 6f5d427d | j_mayer | if (sprn >= SPR_BOOKE_IVOR0 && sprn <= SPR_BOOKE_IVOR15) {
|
485 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
486 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivor_mask)); |
487 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
488 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_vectors[sprn - SPR_BOOKE_IVOR0])); |
489 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
490 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
491 | 6f5d427d | j_mayer | } else if (sprn >= SPR_BOOKE_IVOR32 && sprn <= SPR_BOOKE_IVOR37) { |
492 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
493 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivor_mask)); |
494 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
495 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_vectors[sprn - SPR_BOOKE_IVOR32 + 32]));
|
496 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
497 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
498 | 6f5d427d | j_mayer | } else {
|
499 | 6f5d427d | j_mayer | printf("Trying to write an unknown exception vector %d %03x\n",
|
500 | 6f5d427d | j_mayer | sprn, sprn); |
501 | e06fcd75 | aurel32 | gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); |
502 | 6f5d427d | j_mayer | } |
503 | 6f5d427d | j_mayer | } |
504 | 6f5d427d | j_mayer | #endif
|
505 | 6f5d427d | j_mayer | |
506 | cf8358c8 | aurel32 | static inline void vscr_init (CPUPPCState *env, uint32_t val) |
507 | cf8358c8 | aurel32 | { |
508 | cf8358c8 | aurel32 | env->vscr = val; |
509 | cf8358c8 | aurel32 | /* Altivec always uses round-to-nearest */
|
510 | cf8358c8 | aurel32 | set_float_rounding_mode(float_round_nearest_even, &env->vec_status); |
511 | cf8358c8 | aurel32 | set_flush_to_zero(vscr_nj, &env->vec_status); |
512 | cf8358c8 | aurel32 | } |
513 | cf8358c8 | aurel32 | |
514 | 76a66253 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
515 | 76a66253 | j_mayer | #define spr_register(env, num, name, uea_read, uea_write, \
|
516 | 76a66253 | j_mayer | oea_read, oea_write, initial_value) \ |
517 | 76a66253 | j_mayer | do { \
|
518 | 76a66253 | j_mayer | _spr_register(env, num, name, uea_read, uea_write, initial_value); \ |
519 | 76a66253 | j_mayer | } while (0) |
520 | 76a66253 | j_mayer | static inline void _spr_register (CPUPPCState *env, int num, |
521 | b55266b5 | blueswir1 | const char *name, |
522 | 45d827d2 | aurel32 | void (*uea_read)(void *opaque, int gprn, int sprn), |
523 | 45d827d2 | aurel32 | void (*uea_write)(void *opaque, int sprn, int gprn), |
524 | 76a66253 | j_mayer | target_ulong initial_value) |
525 | 76a66253 | j_mayer | #else
|
526 | 3fc6c082 | bellard | static inline void spr_register (CPUPPCState *env, int num, |
527 | b55266b5 | blueswir1 | const char *name, |
528 | 45d827d2 | aurel32 | void (*uea_read)(void *opaque, int gprn, int sprn), |
529 | 45d827d2 | aurel32 | void (*uea_write)(void *opaque, int sprn, int gprn), |
530 | 45d827d2 | aurel32 | void (*oea_read)(void *opaque, int gprn, int sprn), |
531 | 45d827d2 | aurel32 | void (*oea_write)(void *opaque, int sprn, int gprn), |
532 | 3fc6c082 | bellard | target_ulong initial_value) |
533 | 76a66253 | j_mayer | #endif
|
534 | 3fc6c082 | bellard | { |
535 | 3fc6c082 | bellard | ppc_spr_t *spr; |
536 | 3fc6c082 | bellard | |
537 | 3fc6c082 | bellard | spr = &env->spr_cb[num]; |
538 | 3fc6c082 | bellard | if (spr->name != NULL ||env-> spr[num] != 0x00000000 || |
539 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
540 | 76a66253 | j_mayer | spr->oea_read != NULL || spr->oea_write != NULL || |
541 | 76a66253 | j_mayer | #endif
|
542 | 76a66253 | j_mayer | spr->uea_read != NULL || spr->uea_write != NULL) { |
543 | 3fc6c082 | bellard | printf("Error: Trying to register SPR %d (%03x) twice !\n", num, num);
|
544 | 3fc6c082 | bellard | exit(1);
|
545 | 3fc6c082 | bellard | } |
546 | 3fc6c082 | bellard | #if defined(PPC_DEBUG_SPR)
|
547 | 1b9eb036 | j_mayer | printf("*** register spr %d (%03x) %s val " ADDRX "\n", num, num, name, |
548 | 76a66253 | j_mayer | initial_value); |
549 | 3fc6c082 | bellard | #endif
|
550 | 3fc6c082 | bellard | spr->name = name; |
551 | 3fc6c082 | bellard | spr->uea_read = uea_read; |
552 | 3fc6c082 | bellard | spr->uea_write = uea_write; |
553 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
554 | 3fc6c082 | bellard | spr->oea_read = oea_read; |
555 | 3fc6c082 | bellard | spr->oea_write = oea_write; |
556 | 76a66253 | j_mayer | #endif
|
557 | 3fc6c082 | bellard | env->spr[num] = initial_value; |
558 | 3fc6c082 | bellard | } |
559 | 3fc6c082 | bellard | |
560 | 3fc6c082 | bellard | /* Generic PowerPC SPRs */
|
561 | 3fc6c082 | bellard | static void gen_spr_generic (CPUPPCState *env) |
562 | 3fc6c082 | bellard | { |
563 | 3fc6c082 | bellard | /* Integer processing */
|
564 | 3fc6c082 | bellard | spr_register(env, SPR_XER, "XER",
|
565 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
566 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
567 | 3fc6c082 | bellard | 0x00000000);
|
568 | 3fc6c082 | bellard | /* Branch contol */
|
569 | 3fc6c082 | bellard | spr_register(env, SPR_LR, "LR",
|
570 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
571 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
572 | 3fc6c082 | bellard | 0x00000000);
|
573 | 3fc6c082 | bellard | spr_register(env, SPR_CTR, "CTR",
|
574 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
575 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
576 | 3fc6c082 | bellard | 0x00000000);
|
577 | 3fc6c082 | bellard | /* Interrupt processing */
|
578 | 3fc6c082 | bellard | spr_register(env, SPR_SRR0, "SRR0",
|
579 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
580 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
581 | 3fc6c082 | bellard | 0x00000000);
|
582 | 3fc6c082 | bellard | spr_register(env, SPR_SRR1, "SRR1",
|
583 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
584 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
585 | 3fc6c082 | bellard | 0x00000000);
|
586 | 3fc6c082 | bellard | /* Processor control */
|
587 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG0, "SPRG0",
|
588 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
589 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
590 | 3fc6c082 | bellard | 0x00000000);
|
591 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG1, "SPRG1",
|
592 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
593 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
594 | 3fc6c082 | bellard | 0x00000000);
|
595 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG2, "SPRG2",
|
596 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
597 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
598 | 3fc6c082 | bellard | 0x00000000);
|
599 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG3, "SPRG3",
|
600 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
601 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
602 | 3fc6c082 | bellard | 0x00000000);
|
603 | 3fc6c082 | bellard | } |
604 | 3fc6c082 | bellard | |
605 | 3fc6c082 | bellard | /* SPR common to all non-embedded PowerPC, including 601 */
|
606 | 3fc6c082 | bellard | static void gen_spr_ne_601 (CPUPPCState *env) |
607 | 3fc6c082 | bellard | { |
608 | 3fc6c082 | bellard | /* Exception processing */
|
609 | 3fc6c082 | bellard | spr_register(env, SPR_DSISR, "DSISR",
|
610 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
611 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
612 | 3fc6c082 | bellard | 0x00000000);
|
613 | 3fc6c082 | bellard | spr_register(env, SPR_DAR, "DAR",
|
614 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
615 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
616 | 3fc6c082 | bellard | 0x00000000);
|
617 | 3fc6c082 | bellard | /* Timer */
|
618 | 3fc6c082 | bellard | spr_register(env, SPR_DECR, "DECR",
|
619 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
620 | 3fc6c082 | bellard | &spr_read_decr, &spr_write_decr, |
621 | 3fc6c082 | bellard | 0x00000000);
|
622 | 3fc6c082 | bellard | /* Memory management */
|
623 | 3fc6c082 | bellard | spr_register(env, SPR_SDR1, "SDR1",
|
624 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
625 | 3fc6c082 | bellard | &spr_read_sdr1, &spr_write_sdr1, |
626 | 3fc6c082 | bellard | 0x00000000);
|
627 | 3fc6c082 | bellard | } |
628 | 3fc6c082 | bellard | |
629 | 3fc6c082 | bellard | /* BATs 0-3 */
|
630 | 3fc6c082 | bellard | static void gen_low_BATs (CPUPPCState *env) |
631 | 3fc6c082 | bellard | { |
632 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
633 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
634 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
635 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
636 | 3fc6c082 | bellard | 0x00000000);
|
637 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
638 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
639 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
640 | 3fc6c082 | bellard | 0x00000000);
|
641 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
642 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
643 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
644 | 3fc6c082 | bellard | 0x00000000);
|
645 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
646 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
647 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
648 | 3fc6c082 | bellard | 0x00000000);
|
649 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
650 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
651 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
652 | 3fc6c082 | bellard | 0x00000000);
|
653 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
654 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
655 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
656 | 3fc6c082 | bellard | 0x00000000);
|
657 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
658 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
659 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
660 | 3fc6c082 | bellard | 0x00000000);
|
661 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
662 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
663 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
664 | 3fc6c082 | bellard | 0x00000000);
|
665 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0U, "DBAT0U",
|
666 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
667 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
668 | 3fc6c082 | bellard | 0x00000000);
|
669 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0L, "DBAT0L",
|
670 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
671 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
672 | 3fc6c082 | bellard | 0x00000000);
|
673 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1U, "DBAT1U",
|
674 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
675 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
676 | 3fc6c082 | bellard | 0x00000000);
|
677 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1L, "DBAT1L",
|
678 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
679 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
680 | 3fc6c082 | bellard | 0x00000000);
|
681 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2U, "DBAT2U",
|
682 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
683 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
684 | 3fc6c082 | bellard | 0x00000000);
|
685 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2L, "DBAT2L",
|
686 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
687 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
688 | 3fc6c082 | bellard | 0x00000000);
|
689 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3U, "DBAT3U",
|
690 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
691 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
692 | 3fc6c082 | bellard | 0x00000000);
|
693 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3L, "DBAT3L",
|
694 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
695 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
696 | 3fc6c082 | bellard | 0x00000000);
|
697 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
698 | f2e63a42 | j_mayer | #endif
|
699 | 3fc6c082 | bellard | } |
700 | 3fc6c082 | bellard | |
701 | 3fc6c082 | bellard | /* BATs 4-7 */
|
702 | 3fc6c082 | bellard | static void gen_high_BATs (CPUPPCState *env) |
703 | 3fc6c082 | bellard | { |
704 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
705 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4U, "IBAT4U",
|
706 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
707 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
708 | 3fc6c082 | bellard | 0x00000000);
|
709 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4L, "IBAT4L",
|
710 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
711 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
712 | 3fc6c082 | bellard | 0x00000000);
|
713 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5U, "IBAT5U",
|
714 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
715 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
716 | 3fc6c082 | bellard | 0x00000000);
|
717 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5L, "IBAT5L",
|
718 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
719 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
720 | 3fc6c082 | bellard | 0x00000000);
|
721 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6U, "IBAT6U",
|
722 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
723 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
724 | 3fc6c082 | bellard | 0x00000000);
|
725 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6L, "IBAT6L",
|
726 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
727 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
728 | 3fc6c082 | bellard | 0x00000000);
|
729 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7U, "IBAT7U",
|
730 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
731 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
732 | 3fc6c082 | bellard | 0x00000000);
|
733 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7L, "IBAT7L",
|
734 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
735 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
736 | 3fc6c082 | bellard | 0x00000000);
|
737 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4U, "DBAT4U",
|
738 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
739 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
740 | 3fc6c082 | bellard | 0x00000000);
|
741 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4L, "DBAT4L",
|
742 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
743 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
744 | 3fc6c082 | bellard | 0x00000000);
|
745 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5U, "DBAT5U",
|
746 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
747 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
748 | 3fc6c082 | bellard | 0x00000000);
|
749 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5L, "DBAT5L",
|
750 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
751 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
752 | 3fc6c082 | bellard | 0x00000000);
|
753 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6U, "DBAT6U",
|
754 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
755 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
756 | 3fc6c082 | bellard | 0x00000000);
|
757 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6L, "DBAT6L",
|
758 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
759 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
760 | 3fc6c082 | bellard | 0x00000000);
|
761 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7U, "DBAT7U",
|
762 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
763 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
764 | 3fc6c082 | bellard | 0x00000000);
|
765 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7L, "DBAT7L",
|
766 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
767 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
768 | 3fc6c082 | bellard | 0x00000000);
|
769 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
770 | f2e63a42 | j_mayer | #endif
|
771 | 3fc6c082 | bellard | } |
772 | 3fc6c082 | bellard | |
773 | 3fc6c082 | bellard | /* Generic PowerPC time base */
|
774 | 3fc6c082 | bellard | static void gen_tbl (CPUPPCState *env) |
775 | 3fc6c082 | bellard | { |
776 | 3fc6c082 | bellard | spr_register(env, SPR_VTBL, "TBL",
|
777 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
778 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
779 | 3fc6c082 | bellard | 0x00000000);
|
780 | 3fc6c082 | bellard | spr_register(env, SPR_TBL, "TBL",
|
781 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
782 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbl, |
783 | 3fc6c082 | bellard | 0x00000000);
|
784 | 3fc6c082 | bellard | spr_register(env, SPR_VTBU, "TBU",
|
785 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
786 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
787 | 3fc6c082 | bellard | 0x00000000);
|
788 | 3fc6c082 | bellard | spr_register(env, SPR_TBU, "TBU",
|
789 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
790 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbu, |
791 | 3fc6c082 | bellard | 0x00000000);
|
792 | 3fc6c082 | bellard | } |
793 | 3fc6c082 | bellard | |
794 | 76a66253 | j_mayer | /* Softare table search registers */
|
795 | 76a66253 | j_mayer | static void gen_6xx_7xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
796 | 76a66253 | j_mayer | { |
797 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
798 | 76a66253 | j_mayer | env->nb_tlb = nb_tlbs; |
799 | 76a66253 | j_mayer | env->nb_ways = nb_ways; |
800 | 76a66253 | j_mayer | env->id_tlbs = 1;
|
801 | 76a66253 | j_mayer | spr_register(env, SPR_DMISS, "DMISS",
|
802 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
803 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
804 | 76a66253 | j_mayer | 0x00000000);
|
805 | 76a66253 | j_mayer | spr_register(env, SPR_DCMP, "DCMP",
|
806 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
807 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
808 | 76a66253 | j_mayer | 0x00000000);
|
809 | 76a66253 | j_mayer | spr_register(env, SPR_HASH1, "HASH1",
|
810 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
811 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
812 | 76a66253 | j_mayer | 0x00000000);
|
813 | 76a66253 | j_mayer | spr_register(env, SPR_HASH2, "HASH2",
|
814 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
815 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
816 | 76a66253 | j_mayer | 0x00000000);
|
817 | 76a66253 | j_mayer | spr_register(env, SPR_IMISS, "IMISS",
|
818 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
819 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
820 | 76a66253 | j_mayer | 0x00000000);
|
821 | 76a66253 | j_mayer | spr_register(env, SPR_ICMP, "ICMP",
|
822 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
823 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
824 | 76a66253 | j_mayer | 0x00000000);
|
825 | 76a66253 | j_mayer | spr_register(env, SPR_RPA, "RPA",
|
826 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
827 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
828 | 76a66253 | j_mayer | 0x00000000);
|
829 | f2e63a42 | j_mayer | #endif
|
830 | 76a66253 | j_mayer | } |
831 | 76a66253 | j_mayer | |
832 | 76a66253 | j_mayer | /* SPR common to MPC755 and G2 */
|
833 | 76a66253 | j_mayer | static void gen_spr_G2_755 (CPUPPCState *env) |
834 | 76a66253 | j_mayer | { |
835 | 76a66253 | j_mayer | /* SGPRs */
|
836 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
837 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
838 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
839 | 76a66253 | j_mayer | 0x00000000);
|
840 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
841 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
842 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
843 | 76a66253 | j_mayer | 0x00000000);
|
844 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
845 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
846 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
847 | 76a66253 | j_mayer | 0x00000000);
|
848 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
849 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
850 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
851 | 76a66253 | j_mayer | 0x00000000);
|
852 | 76a66253 | j_mayer | } |
853 | 76a66253 | j_mayer | |
854 | 3fc6c082 | bellard | /* SPR common to all 7xx PowerPC implementations */
|
855 | 3fc6c082 | bellard | static void gen_spr_7xx (CPUPPCState *env) |
856 | 3fc6c082 | bellard | { |
857 | 3fc6c082 | bellard | /* Breakpoints */
|
858 | 3fc6c082 | bellard | /* XXX : not implemented */
|
859 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
860 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
861 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
862 | 3fc6c082 | bellard | 0x00000000);
|
863 | 3fc6c082 | bellard | /* XXX : not implemented */
|
864 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
865 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
866 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
867 | 3fc6c082 | bellard | 0x00000000);
|
868 | 3fc6c082 | bellard | /* Cache management */
|
869 | 3fc6c082 | bellard | /* XXX : not implemented */
|
870 | 3fc6c082 | bellard | spr_register(env, SPR_ICTC, "ICTC",
|
871 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
872 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
873 | 3fc6c082 | bellard | 0x00000000);
|
874 | 3fc6c082 | bellard | /* Performance monitors */
|
875 | 3fc6c082 | bellard | /* XXX : not implemented */
|
876 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
877 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
878 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
879 | 3fc6c082 | bellard | 0x00000000);
|
880 | 3fc6c082 | bellard | /* XXX : not implemented */
|
881 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR1, "MMCR1",
|
882 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
883 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
884 | 3fc6c082 | bellard | 0x00000000);
|
885 | 3fc6c082 | bellard | /* XXX : not implemented */
|
886 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
887 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
888 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
889 | 3fc6c082 | bellard | 0x00000000);
|
890 | 3fc6c082 | bellard | /* XXX : not implemented */
|
891 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
892 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
893 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
894 | 3fc6c082 | bellard | 0x00000000);
|
895 | 3fc6c082 | bellard | /* XXX : not implemented */
|
896 | 3fc6c082 | bellard | spr_register(env, SPR_PMC3, "PMC3",
|
897 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
898 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
899 | 3fc6c082 | bellard | 0x00000000);
|
900 | 3fc6c082 | bellard | /* XXX : not implemented */
|
901 | 3fc6c082 | bellard | spr_register(env, SPR_PMC4, "PMC4",
|
902 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
903 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
904 | 3fc6c082 | bellard | 0x00000000);
|
905 | 3fc6c082 | bellard | /* XXX : not implemented */
|
906 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
907 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
908 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
909 | 3fc6c082 | bellard | 0x00000000);
|
910 | 578bb252 | j_mayer | /* XXX : not implemented */
|
911 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR0, "UMMCR0",
|
912 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
913 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
914 | 3fc6c082 | bellard | 0x00000000);
|
915 | 578bb252 | j_mayer | /* XXX : not implemented */
|
916 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR1, "UMMCR1",
|
917 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
918 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
919 | 3fc6c082 | bellard | 0x00000000);
|
920 | 578bb252 | j_mayer | /* XXX : not implemented */
|
921 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC1, "UPMC1",
|
922 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
923 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
924 | 3fc6c082 | bellard | 0x00000000);
|
925 | 578bb252 | j_mayer | /* XXX : not implemented */
|
926 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC2, "UPMC2",
|
927 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
928 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
929 | 3fc6c082 | bellard | 0x00000000);
|
930 | 578bb252 | j_mayer | /* XXX : not implemented */
|
931 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC3, "UPMC3",
|
932 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
933 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
934 | 3fc6c082 | bellard | 0x00000000);
|
935 | 578bb252 | j_mayer | /* XXX : not implemented */
|
936 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC4, "UPMC4",
|
937 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
938 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
939 | 3fc6c082 | bellard | 0x00000000);
|
940 | 578bb252 | j_mayer | /* XXX : not implemented */
|
941 | a750fc0b | j_mayer | spr_register(env, SPR_USIAR, "USIAR",
|
942 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
943 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
944 | 3fc6c082 | bellard | 0x00000000);
|
945 | a750fc0b | j_mayer | /* External access control */
|
946 | 3fc6c082 | bellard | /* XXX : not implemented */
|
947 | a750fc0b | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
948 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
949 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
950 | 3fc6c082 | bellard | 0x00000000);
|
951 | a750fc0b | j_mayer | } |
952 | a750fc0b | j_mayer | |
953 | a750fc0b | j_mayer | static void gen_spr_thrm (CPUPPCState *env) |
954 | a750fc0b | j_mayer | { |
955 | a750fc0b | j_mayer | /* Thermal management */
|
956 | 3fc6c082 | bellard | /* XXX : not implemented */
|
957 | a750fc0b | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
958 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
959 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
960 | 3fc6c082 | bellard | 0x00000000);
|
961 | 3fc6c082 | bellard | /* XXX : not implemented */
|
962 | a750fc0b | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
963 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
964 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
965 | 3fc6c082 | bellard | 0x00000000);
|
966 | 3fc6c082 | bellard | /* XXX : not implemented */
|
967 | a750fc0b | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
968 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
969 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
970 | 3fc6c082 | bellard | 0x00000000);
|
971 | 3fc6c082 | bellard | } |
972 | 3fc6c082 | bellard | |
973 | 3fc6c082 | bellard | /* SPR specific to PowerPC 604 implementation */
|
974 | 3fc6c082 | bellard | static void gen_spr_604 (CPUPPCState *env) |
975 | 3fc6c082 | bellard | { |
976 | 3fc6c082 | bellard | /* Processor identification */
|
977 | 3fc6c082 | bellard | spr_register(env, SPR_PIR, "PIR",
|
978 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
979 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_pir, |
980 | 3fc6c082 | bellard | 0x00000000);
|
981 | 3fc6c082 | bellard | /* Breakpoints */
|
982 | 3fc6c082 | bellard | /* XXX : not implemented */
|
983 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
984 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
985 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
986 | 3fc6c082 | bellard | 0x00000000);
|
987 | 3fc6c082 | bellard | /* XXX : not implemented */
|
988 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
989 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
990 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
991 | 3fc6c082 | bellard | 0x00000000);
|
992 | 3fc6c082 | bellard | /* Performance counters */
|
993 | 3fc6c082 | bellard | /* XXX : not implemented */
|
994 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
995 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
996 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
997 | 3fc6c082 | bellard | 0x00000000);
|
998 | 3fc6c082 | bellard | /* XXX : not implemented */
|
999 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
1000 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1001 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1002 | 3fc6c082 | bellard | 0x00000000);
|
1003 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1004 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
1005 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1006 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1007 | 3fc6c082 | bellard | 0x00000000);
|
1008 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1009 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
1010 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1011 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
1012 | 3fc6c082 | bellard | 0x00000000);
|
1013 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1014 | 3fc6c082 | bellard | spr_register(env, SPR_SDA, "SDA",
|
1015 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1016 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
1017 | 3fc6c082 | bellard | 0x00000000);
|
1018 | 3fc6c082 | bellard | /* External access control */
|
1019 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1020 | 3fc6c082 | bellard | spr_register(env, SPR_EAR, "EAR",
|
1021 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1022 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1023 | 3fc6c082 | bellard | 0x00000000);
|
1024 | 3fc6c082 | bellard | } |
1025 | 3fc6c082 | bellard | |
1026 | 76a66253 | j_mayer | /* SPR specific to PowerPC 603 implementation */
|
1027 | 76a66253 | j_mayer | static void gen_spr_603 (CPUPPCState *env) |
1028 | 3fc6c082 | bellard | { |
1029 | 76a66253 | j_mayer | /* External access control */
|
1030 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1031 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1032 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1033 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1034 | 76a66253 | j_mayer | 0x00000000);
|
1035 | 3fc6c082 | bellard | } |
1036 | 3fc6c082 | bellard | |
1037 | 76a66253 | j_mayer | /* SPR specific to PowerPC G2 implementation */
|
1038 | 76a66253 | j_mayer | static void gen_spr_G2 (CPUPPCState *env) |
1039 | 3fc6c082 | bellard | { |
1040 | 76a66253 | j_mayer | /* Memory base address */
|
1041 | 76a66253 | j_mayer | /* MBAR */
|
1042 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1043 | 76a66253 | j_mayer | spr_register(env, SPR_MBAR, "MBAR",
|
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 | /* Exception processing */
|
1048 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1049 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1050 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1051 | 76a66253 | j_mayer | 0x00000000);
|
1052 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1053 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1054 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1055 | 76a66253 | j_mayer | 0x00000000);
|
1056 | 76a66253 | j_mayer | /* Breakpoints */
|
1057 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1058 | 76a66253 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
1059 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1060 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1061 | 76a66253 | j_mayer | 0x00000000);
|
1062 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1063 | 76a66253 | j_mayer | spr_register(env, SPR_DABR2, "DABR2",
|
1064 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1065 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1066 | 76a66253 | j_mayer | 0x00000000);
|
1067 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1068 | 76a66253 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1069 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1070 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1071 | 76a66253 | j_mayer | 0x00000000);
|
1072 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1073 | 76a66253 | j_mayer | spr_register(env, SPR_IABR2, "IABR2",
|
1074 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1075 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1076 | 76a66253 | j_mayer | 0x00000000);
|
1077 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1078 | 76a66253 | j_mayer | spr_register(env, SPR_IBCR, "IBCR",
|
1079 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1080 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1081 | 76a66253 | j_mayer | 0x00000000);
|
1082 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1083 | 76a66253 | j_mayer | spr_register(env, SPR_DBCR, "DBCR",
|
1084 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1085 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1086 | 76a66253 | j_mayer | 0x00000000);
|
1087 | 76a66253 | j_mayer | } |
1088 | 76a66253 | j_mayer | |
1089 | 76a66253 | j_mayer | /* SPR specific to PowerPC 602 implementation */
|
1090 | 76a66253 | j_mayer | static void gen_spr_602 (CPUPPCState *env) |
1091 | 76a66253 | j_mayer | { |
1092 | 76a66253 | j_mayer | /* ESA registers */
|
1093 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1094 | 76a66253 | j_mayer | spr_register(env, SPR_SER, "SER",
|
1095 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1096 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1097 | 76a66253 | j_mayer | 0x00000000);
|
1098 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1099 | 76a66253 | j_mayer | spr_register(env, SPR_SEBR, "SEBR",
|
1100 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1101 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1102 | 76a66253 | j_mayer | 0x00000000);
|
1103 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1104 | a750fc0b | j_mayer | spr_register(env, SPR_ESASRR, "ESASRR",
|
1105 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1106 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1107 | 76a66253 | j_mayer | 0x00000000);
|
1108 | 76a66253 | j_mayer | /* Floating point status */
|
1109 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1110 | 76a66253 | j_mayer | spr_register(env, SPR_SP, "SP",
|
1111 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1112 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1113 | 76a66253 | j_mayer | 0x00000000);
|
1114 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1115 | 76a66253 | j_mayer | spr_register(env, SPR_LT, "LT",
|
1116 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1117 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1118 | 76a66253 | j_mayer | 0x00000000);
|
1119 | 76a66253 | j_mayer | /* Watchdog timer */
|
1120 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1121 | 76a66253 | j_mayer | spr_register(env, SPR_TCR, "TCR",
|
1122 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1123 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1124 | 76a66253 | j_mayer | 0x00000000);
|
1125 | 76a66253 | j_mayer | /* Interrupt base */
|
1126 | 76a66253 | j_mayer | spr_register(env, SPR_IBR, "IBR",
|
1127 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1128 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1129 | 76a66253 | j_mayer | 0x00000000);
|
1130 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1131 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1132 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1133 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1134 | a750fc0b | j_mayer | 0x00000000);
|
1135 | 76a66253 | j_mayer | } |
1136 | 76a66253 | j_mayer | |
1137 | 76a66253 | j_mayer | /* SPR specific to PowerPC 601 implementation */
|
1138 | 76a66253 | j_mayer | static void gen_spr_601 (CPUPPCState *env) |
1139 | 76a66253 | j_mayer | { |
1140 | 76a66253 | j_mayer | /* Multiplication/division register */
|
1141 | 76a66253 | j_mayer | /* MQ */
|
1142 | 76a66253 | j_mayer | spr_register(env, SPR_MQ, "MQ",
|
1143 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1144 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1145 | 76a66253 | j_mayer | 0x00000000);
|
1146 | 76a66253 | j_mayer | /* RTC registers */
|
1147 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCU, "RTCU",
|
1148 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1149 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcu, |
1150 | 76a66253 | j_mayer | 0x00000000);
|
1151 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCU, "RTCU",
|
1152 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1153 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1154 | 76a66253 | j_mayer | 0x00000000);
|
1155 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCL, "RTCL",
|
1156 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1157 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcl, |
1158 | 76a66253 | j_mayer | 0x00000000);
|
1159 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCL, "RTCL",
|
1160 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1161 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1162 | 76a66253 | j_mayer | 0x00000000);
|
1163 | 76a66253 | j_mayer | /* Timer */
|
1164 | 76a66253 | j_mayer | #if 0 /* ? */
|
1165 | 76a66253 | j_mayer | spr_register(env, SPR_601_UDECR, "UDECR",
|
1166 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1167 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1168 | 76a66253 | j_mayer | 0x00000000);
|
1169 | 76a66253 | j_mayer | #endif
|
1170 | 76a66253 | j_mayer | /* External access control */
|
1171 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1172 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1173 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1174 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1175 | 76a66253 | j_mayer | 0x00000000);
|
1176 | 76a66253 | j_mayer | /* Memory management */
|
1177 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1178 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
1179 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1180 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1181 | 76a66253 | j_mayer | 0x00000000);
|
1182 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
1183 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1184 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1185 | 76a66253 | j_mayer | 0x00000000);
|
1186 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
1187 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1188 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1189 | 76a66253 | j_mayer | 0x00000000);
|
1190 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
1191 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1192 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1193 | 76a66253 | j_mayer | 0x00000000);
|
1194 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
1195 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1196 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1197 | 76a66253 | j_mayer | 0x00000000);
|
1198 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
1199 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1200 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1201 | 76a66253 | j_mayer | 0x00000000);
|
1202 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
1203 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1204 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1205 | 76a66253 | j_mayer | 0x00000000);
|
1206 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
1207 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1208 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1209 | 76a66253 | j_mayer | 0x00000000);
|
1210 | a750fc0b | j_mayer | env->nb_BATs = 4;
|
1211 | f2e63a42 | j_mayer | #endif
|
1212 | a750fc0b | j_mayer | } |
1213 | a750fc0b | j_mayer | |
1214 | a750fc0b | j_mayer | static void gen_spr_74xx (CPUPPCState *env) |
1215 | a750fc0b | j_mayer | { |
1216 | a750fc0b | j_mayer | /* Processor identification */
|
1217 | a750fc0b | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
1218 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1219 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_pir, |
1220 | a750fc0b | j_mayer | 0x00000000);
|
1221 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1222 | a750fc0b | j_mayer | spr_register(env, SPR_MMCR2, "MMCR2",
|
1223 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1224 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1225 | a750fc0b | j_mayer | 0x00000000);
|
1226 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1227 | a750fc0b | j_mayer | spr_register(env, SPR_UMMCR2, "UMMCR2",
|
1228 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1229 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1230 | a750fc0b | j_mayer | 0x00000000);
|
1231 | a750fc0b | j_mayer | /* XXX: not implemented */
|
1232 | a750fc0b | j_mayer | spr_register(env, SPR_BAMR, "BAMR",
|
1233 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1234 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1235 | a750fc0b | j_mayer | 0x00000000);
|
1236 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1237 | a750fc0b | j_mayer | spr_register(env, SPR_MSSCR0, "MSSCR0",
|
1238 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1239 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1240 | a750fc0b | j_mayer | 0x00000000);
|
1241 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
1242 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1243 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
1244 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1245 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1246 | a750fc0b | j_mayer | 0x00000000);
|
1247 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1248 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
1249 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1250 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1251 | a750fc0b | j_mayer | 0x00000000);
|
1252 | a750fc0b | j_mayer | /* Altivec */
|
1253 | a750fc0b | j_mayer | spr_register(env, SPR_VRSAVE, "VRSAVE",
|
1254 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1255 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1256 | a750fc0b | j_mayer | 0x00000000);
|
1257 | bd928eba | j_mayer | /* XXX : not implemented */
|
1258 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
1259 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1260 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
1261 | bd928eba | j_mayer | 0x00000000);
|
1262 | cf8358c8 | aurel32 | /* Not strictly an SPR */
|
1263 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
1264 | a750fc0b | j_mayer | } |
1265 | a750fc0b | j_mayer | |
1266 | a750fc0b | j_mayer | static void gen_l3_ctrl (CPUPPCState *env) |
1267 | a750fc0b | j_mayer | { |
1268 | a750fc0b | j_mayer | /* L3CR */
|
1269 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1270 | a750fc0b | j_mayer | spr_register(env, SPR_L3CR, "L3CR",
|
1271 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1272 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1273 | a750fc0b | j_mayer | 0x00000000);
|
1274 | a750fc0b | j_mayer | /* L3ITCR0 */
|
1275 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1276 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR0, "L3ITCR0",
|
1277 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1278 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1279 | a750fc0b | j_mayer | 0x00000000);
|
1280 | a750fc0b | j_mayer | /* L3PM */
|
1281 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1282 | a750fc0b | j_mayer | spr_register(env, SPR_L3PM, "L3PM",
|
1283 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1284 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1285 | a750fc0b | j_mayer | 0x00000000);
|
1286 | a750fc0b | j_mayer | } |
1287 | a750fc0b | j_mayer | |
1288 | 578bb252 | j_mayer | static void gen_74xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
1289 | a750fc0b | j_mayer | { |
1290 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1291 | 578bb252 | j_mayer | env->nb_tlb = nb_tlbs; |
1292 | 578bb252 | j_mayer | env->nb_ways = nb_ways; |
1293 | 578bb252 | j_mayer | env->id_tlbs = 1;
|
1294 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1295 | a750fc0b | j_mayer | spr_register(env, SPR_PTEHI, "PTEHI",
|
1296 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1297 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1298 | a750fc0b | j_mayer | 0x00000000);
|
1299 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1300 | a750fc0b | j_mayer | spr_register(env, SPR_PTELO, "PTELO",
|
1301 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1302 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1303 | a750fc0b | j_mayer | 0x00000000);
|
1304 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1305 | a750fc0b | j_mayer | spr_register(env, SPR_TLBMISS, "TLBMISS",
|
1306 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1307 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1308 | a750fc0b | j_mayer | 0x00000000);
|
1309 | f2e63a42 | j_mayer | #endif
|
1310 | 76a66253 | j_mayer | } |
1311 | 76a66253 | j_mayer | |
1312 | 80d11f44 | j_mayer | static void gen_spr_usprgh (CPUPPCState *env) |
1313 | 76a66253 | j_mayer | { |
1314 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
1315 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1316 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1317 | 80d11f44 | j_mayer | 0x00000000);
|
1318 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
1319 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1320 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1321 | 80d11f44 | j_mayer | 0x00000000);
|
1322 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
1323 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1324 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1325 | 80d11f44 | j_mayer | 0x00000000);
|
1326 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
1327 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1328 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1329 | 76a66253 | j_mayer | 0x00000000);
|
1330 | 80d11f44 | j_mayer | } |
1331 | 80d11f44 | j_mayer | |
1332 | 80d11f44 | j_mayer | /* PowerPC BookE SPR */
|
1333 | 80d11f44 | j_mayer | static void gen_spr_BookE (CPUPPCState *env, uint64_t ivor_mask) |
1334 | 80d11f44 | j_mayer | { |
1335 | b55266b5 | blueswir1 | const char *ivor_names[64] = { |
1336 | 80d11f44 | j_mayer | "IVOR0", "IVOR1", "IVOR2", "IVOR3", |
1337 | 80d11f44 | j_mayer | "IVOR4", "IVOR5", "IVOR6", "IVOR7", |
1338 | 80d11f44 | j_mayer | "IVOR8", "IVOR9", "IVOR10", "IVOR11", |
1339 | 80d11f44 | j_mayer | "IVOR12", "IVOR13", "IVOR14", "IVOR15", |
1340 | 80d11f44 | j_mayer | "IVOR16", "IVOR17", "IVOR18", "IVOR19", |
1341 | 80d11f44 | j_mayer | "IVOR20", "IVOR21", "IVOR22", "IVOR23", |
1342 | 80d11f44 | j_mayer | "IVOR24", "IVOR25", "IVOR26", "IVOR27", |
1343 | 80d11f44 | j_mayer | "IVOR28", "IVOR29", "IVOR30", "IVOR31", |
1344 | 80d11f44 | j_mayer | "IVOR32", "IVOR33", "IVOR34", "IVOR35", |
1345 | 80d11f44 | j_mayer | "IVOR36", "IVOR37", "IVOR38", "IVOR39", |
1346 | 80d11f44 | j_mayer | "IVOR40", "IVOR41", "IVOR42", "IVOR43", |
1347 | 80d11f44 | j_mayer | "IVOR44", "IVOR45", "IVOR46", "IVOR47", |
1348 | 80d11f44 | j_mayer | "IVOR48", "IVOR49", "IVOR50", "IVOR51", |
1349 | 80d11f44 | j_mayer | "IVOR52", "IVOR53", "IVOR54", "IVOR55", |
1350 | 80d11f44 | j_mayer | "IVOR56", "IVOR57", "IVOR58", "IVOR59", |
1351 | 80d11f44 | j_mayer | "IVOR60", "IVOR61", "IVOR62", "IVOR63", |
1352 | 80d11f44 | j_mayer | }; |
1353 | 80d11f44 | j_mayer | #define SPR_BOOKE_IVORxx (-1) |
1354 | 80d11f44 | j_mayer | int ivor_sprn[64] = { |
1355 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR0, SPR_BOOKE_IVOR1, SPR_BOOKE_IVOR2, SPR_BOOKE_IVOR3, |
1356 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR4, SPR_BOOKE_IVOR5, SPR_BOOKE_IVOR6, SPR_BOOKE_IVOR7, |
1357 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR8, SPR_BOOKE_IVOR9, SPR_BOOKE_IVOR10, SPR_BOOKE_IVOR11, |
1358 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR12, SPR_BOOKE_IVOR13, SPR_BOOKE_IVOR14, SPR_BOOKE_IVOR15, |
1359 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1360 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1361 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1362 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1363 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR32, SPR_BOOKE_IVOR33, SPR_BOOKE_IVOR34, SPR_BOOKE_IVOR35, |
1364 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR36, SPR_BOOKE_IVOR37, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1365 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1366 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1367 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1368 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1369 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1370 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1371 | 80d11f44 | j_mayer | }; |
1372 | 80d11f44 | j_mayer | int i;
|
1373 | 80d11f44 | j_mayer | |
1374 | 76a66253 | j_mayer | /* Interrupt processing */
|
1375 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1376 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1377 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1378 | 76a66253 | j_mayer | 0x00000000);
|
1379 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1380 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1381 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1382 | 363be49c | j_mayer | 0x00000000);
|
1383 | 76a66253 | j_mayer | /* Debug */
|
1384 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1385 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC1, "IAC1",
|
1386 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1387 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1388 | 76a66253 | j_mayer | 0x00000000);
|
1389 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1390 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC2, "IAC2",
|
1391 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1392 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1393 | 76a66253 | j_mayer | 0x00000000);
|
1394 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1395 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC1, "DAC1",
|
1396 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1397 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1398 | 76a66253 | j_mayer | 0x00000000);
|
1399 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1400 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC2, "DAC2",
|
1401 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1402 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1403 | 76a66253 | j_mayer | 0x00000000);
|
1404 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1405 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR0, "DBCR0",
|
1406 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1407 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1408 | 76a66253 | j_mayer | 0x00000000);
|
1409 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1410 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR1, "DBCR1",
|
1411 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1412 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1413 | 76a66253 | j_mayer | 0x00000000);
|
1414 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1415 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR2, "DBCR2",
|
1416 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1417 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1418 | 76a66253 | j_mayer | 0x00000000);
|
1419 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1420 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBSR, "DBSR",
|
1421 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1422 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1423 | 76a66253 | j_mayer | 0x00000000);
|
1424 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DEAR, "DEAR",
|
1425 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1426 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1427 | 76a66253 | j_mayer | 0x00000000);
|
1428 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_ESR, "ESR",
|
1429 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1430 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1431 | 76a66253 | j_mayer | 0x00000000);
|
1432 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVPR, "IVPR",
|
1433 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1434 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1435 | 363be49c | j_mayer | 0x00000000);
|
1436 | 363be49c | j_mayer | /* Exception vectors */
|
1437 | 80d11f44 | j_mayer | for (i = 0; i < 64; i++) { |
1438 | 80d11f44 | j_mayer | if (ivor_mask & (1ULL << i)) { |
1439 | 80d11f44 | j_mayer | if (ivor_sprn[i] == SPR_BOOKE_IVORxx) {
|
1440 | 80d11f44 | j_mayer | fprintf(stderr, "ERROR: IVOR %d SPR is not defined\n", i);
|
1441 | 80d11f44 | j_mayer | exit(1);
|
1442 | 80d11f44 | j_mayer | } |
1443 | 80d11f44 | j_mayer | spr_register(env, ivor_sprn[i], ivor_names[i], |
1444 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1445 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_excp_vector, |
1446 | 80d11f44 | j_mayer | 0x00000000);
|
1447 | 80d11f44 | j_mayer | } |
1448 | 80d11f44 | j_mayer | } |
1449 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_PID, "PID",
|
1450 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1451 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1452 | 76a66253 | j_mayer | 0x00000000);
|
1453 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TCR, "TCR",
|
1454 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1455 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1456 | 76a66253 | j_mayer | 0x00000000);
|
1457 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TSR, "TSR",
|
1458 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1459 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1460 | 76a66253 | j_mayer | 0x00000000);
|
1461 | 76a66253 | j_mayer | /* Timer */
|
1462 | 76a66253 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
1463 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1464 | 76a66253 | j_mayer | &spr_read_decr, &spr_write_decr, |
1465 | 76a66253 | j_mayer | 0x00000000);
|
1466 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DECAR, "DECAR",
|
1467 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1468 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
1469 | 76a66253 | j_mayer | 0x00000000);
|
1470 | 76a66253 | j_mayer | /* SPRGs */
|
1471 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1472 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1473 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1474 | 76a66253 | j_mayer | 0x00000000);
|
1475 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1476 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1477 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1478 | 76a66253 | j_mayer | 0x00000000);
|
1479 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1480 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1481 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1482 | 76a66253 | j_mayer | 0x00000000);
|
1483 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1484 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1485 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1486 | 76a66253 | j_mayer | 0x00000000);
|
1487 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1488 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1489 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1490 | 76a66253 | j_mayer | 0x00000000);
|
1491 | 76a66253 | j_mayer | } |
1492 | 76a66253 | j_mayer | |
1493 | 363be49c | j_mayer | /* FSL storage control registers */
|
1494 | 80d11f44 | j_mayer | static void gen_spr_BookE_FSL (CPUPPCState *env, uint32_t mas_mask) |
1495 | 363be49c | j_mayer | { |
1496 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1497 | b55266b5 | blueswir1 | const char *mas_names[8] = { |
1498 | 80d11f44 | j_mayer | "MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7", |
1499 | 80d11f44 | j_mayer | }; |
1500 | 80d11f44 | j_mayer | int mas_sprn[8] = { |
1501 | 80d11f44 | j_mayer | SPR_BOOKE_MAS0, SPR_BOOKE_MAS1, SPR_BOOKE_MAS2, SPR_BOOKE_MAS3, |
1502 | 80d11f44 | j_mayer | SPR_BOOKE_MAS4, SPR_BOOKE_MAS5, SPR_BOOKE_MAS6, SPR_BOOKE_MAS7, |
1503 | 80d11f44 | j_mayer | }; |
1504 | 80d11f44 | j_mayer | int i;
|
1505 | 80d11f44 | j_mayer | |
1506 | 363be49c | j_mayer | /* TLB assist registers */
|
1507 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1508 | 80d11f44 | j_mayer | for (i = 0; i < 8; i++) { |
1509 | 80d11f44 | j_mayer | if (mas_mask & (1 << i)) { |
1510 | 80d11f44 | j_mayer | spr_register(env, mas_sprn[i], mas_names[i], |
1511 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1512 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
1513 | 80d11f44 | j_mayer | 0x00000000);
|
1514 | 80d11f44 | j_mayer | } |
1515 | 80d11f44 | j_mayer | } |
1516 | 363be49c | j_mayer | if (env->nb_pids > 1) { |
1517 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1518 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID1, "PID1",
|
1519 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1520 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1521 | 363be49c | j_mayer | 0x00000000);
|
1522 | 363be49c | j_mayer | } |
1523 | 363be49c | j_mayer | if (env->nb_pids > 2) { |
1524 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1525 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID2, "PID2",
|
1526 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1527 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1528 | 363be49c | j_mayer | 0x00000000);
|
1529 | 363be49c | j_mayer | } |
1530 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1531 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
1532 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1533 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1534 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1535 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1536 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
1537 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1538 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1539 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1540 | 363be49c | j_mayer | switch (env->nb_ways) {
|
1541 | 363be49c | j_mayer | case 4: |
1542 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1543 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB3CFG, "TLB3CFG",
|
1544 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1545 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1546 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1547 | 363be49c | j_mayer | /* Fallthru */
|
1548 | 363be49c | j_mayer | case 3: |
1549 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1550 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB2CFG, "TLB2CFG",
|
1551 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1552 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1553 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1554 | 363be49c | j_mayer | /* Fallthru */
|
1555 | 363be49c | j_mayer | case 2: |
1556 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1557 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
1558 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1559 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1560 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1561 | 363be49c | j_mayer | /* Fallthru */
|
1562 | 363be49c | j_mayer | case 1: |
1563 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1564 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
1565 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1566 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1567 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1568 | 363be49c | j_mayer | /* Fallthru */
|
1569 | 363be49c | j_mayer | case 0: |
1570 | 363be49c | j_mayer | default:
|
1571 | 363be49c | j_mayer | break;
|
1572 | 363be49c | j_mayer | } |
1573 | f2e63a42 | j_mayer | #endif
|
1574 | 363be49c | j_mayer | } |
1575 | 363be49c | j_mayer | |
1576 | 76a66253 | j_mayer | /* SPR specific to PowerPC 440 implementation */
|
1577 | 76a66253 | j_mayer | static void gen_spr_440 (CPUPPCState *env) |
1578 | 76a66253 | j_mayer | { |
1579 | 76a66253 | j_mayer | /* Cache control */
|
1580 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1581 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV0, "DNV0",
|
1582 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1583 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1584 | 76a66253 | j_mayer | 0x00000000);
|
1585 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1586 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV1, "DNV1",
|
1587 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1588 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1589 | 76a66253 | j_mayer | 0x00000000);
|
1590 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1591 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV2, "DNV2",
|
1592 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1593 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1594 | 76a66253 | j_mayer | 0x00000000);
|
1595 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1596 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV3, "DNV3",
|
1597 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1598 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1599 | 76a66253 | j_mayer | 0x00000000);
|
1600 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1601 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV0, "DTV0",
|
1602 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1603 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1604 | 76a66253 | j_mayer | 0x00000000);
|
1605 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1606 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV1, "DTV1",
|
1607 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1608 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1609 | 76a66253 | j_mayer | 0x00000000);
|
1610 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1611 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV2, "DTV2",
|
1612 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1613 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1614 | 76a66253 | j_mayer | 0x00000000);
|
1615 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1616 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV3, "DTV3",
|
1617 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1618 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1619 | 76a66253 | j_mayer | 0x00000000);
|
1620 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1621 | 76a66253 | j_mayer | spr_register(env, SPR_440_DVLIM, "DVLIM",
|
1622 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1623 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1624 | 76a66253 | j_mayer | 0x00000000);
|
1625 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1626 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV0, "INV0",
|
1627 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1628 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1629 | 76a66253 | j_mayer | 0x00000000);
|
1630 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1631 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV1, "INV1",
|
1632 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1633 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1634 | 76a66253 | j_mayer | 0x00000000);
|
1635 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1636 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV2, "INV2",
|
1637 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1638 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1639 | 76a66253 | j_mayer | 0x00000000);
|
1640 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1641 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV3, "INV3",
|
1642 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1643 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1644 | 76a66253 | j_mayer | 0x00000000);
|
1645 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1646 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV0, "ITV0",
|
1647 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1648 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1649 | 76a66253 | j_mayer | 0x00000000);
|
1650 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1651 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV1, "ITV1",
|
1652 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1653 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1654 | 76a66253 | j_mayer | 0x00000000);
|
1655 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1656 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV2, "ITV2",
|
1657 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1658 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1659 | 76a66253 | j_mayer | 0x00000000);
|
1660 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1661 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV3, "ITV3",
|
1662 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1663 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1664 | 76a66253 | j_mayer | 0x00000000);
|
1665 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1666 | 76a66253 | j_mayer | spr_register(env, SPR_440_IVLIM, "IVLIM",
|
1667 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1668 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1669 | 76a66253 | j_mayer | 0x00000000);
|
1670 | 76a66253 | j_mayer | /* Cache debug */
|
1671 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1672 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRH, "DCDBTRH",
|
1673 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1674 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1675 | 76a66253 | j_mayer | 0x00000000);
|
1676 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1677 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRL, "DCDBTRL",
|
1678 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1679 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1680 | 76a66253 | j_mayer | 0x00000000);
|
1681 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1682 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1683 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1684 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1685 | 76a66253 | j_mayer | 0x00000000);
|
1686 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1687 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRH, "ICDBTRH",
|
1688 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1689 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1690 | 76a66253 | j_mayer | 0x00000000);
|
1691 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1692 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRL, "ICDBTRL",
|
1693 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1694 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1695 | 76a66253 | j_mayer | 0x00000000);
|
1696 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1697 | 76a66253 | j_mayer | spr_register(env, SPR_440_DBDR, "DBDR",
|
1698 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1699 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1700 | 76a66253 | j_mayer | 0x00000000);
|
1701 | 76a66253 | j_mayer | /* Processor control */
|
1702 | 76a66253 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1703 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1704 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1705 | 76a66253 | j_mayer | 0x00000000);
|
1706 | 76a66253 | j_mayer | spr_register(env, SPR_440_RSTCFG, "RSTCFG",
|
1707 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1708 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1709 | 76a66253 | j_mayer | 0x00000000);
|
1710 | 76a66253 | j_mayer | /* Storage control */
|
1711 | 76a66253 | j_mayer | spr_register(env, SPR_440_MMUCR, "MMUCR",
|
1712 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1713 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1714 | 76a66253 | j_mayer | 0x00000000);
|
1715 | 76a66253 | j_mayer | } |
1716 | 76a66253 | j_mayer | |
1717 | 76a66253 | j_mayer | /* SPR shared between PowerPC 40x implementations */
|
1718 | 76a66253 | j_mayer | static void gen_spr_40x (CPUPPCState *env) |
1719 | 76a66253 | j_mayer | { |
1720 | 76a66253 | j_mayer | /* Cache */
|
1721 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1722 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DCCR, "DCCR",
|
1723 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1724 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1725 | 76a66253 | j_mayer | 0x00000000);
|
1726 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1727 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ICCR, "ICCR",
|
1728 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1729 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1730 | 76a66253 | j_mayer | 0x00000000);
|
1731 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1732 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1733 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1734 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1735 | 76a66253 | j_mayer | 0x00000000);
|
1736 | 76a66253 | j_mayer | /* Exception */
|
1737 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DEAR, "DEAR",
|
1738 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1739 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1740 | 76a66253 | j_mayer | 0x00000000);
|
1741 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ESR, "ESR",
|
1742 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1743 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1744 | 76a66253 | j_mayer | 0x00000000);
|
1745 | 76a66253 | j_mayer | spr_register(env, SPR_40x_EVPR, "EVPR",
|
1746 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1747 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1748 | 76a66253 | j_mayer | 0x00000000);
|
1749 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR2, "SRR2",
|
1750 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1751 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1752 | 76a66253 | j_mayer | 0x00000000);
|
1753 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR3, "SRR3",
|
1754 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1755 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1756 | 76a66253 | j_mayer | 0x00000000);
|
1757 | 76a66253 | j_mayer | /* Timers */
|
1758 | 76a66253 | j_mayer | spr_register(env, SPR_40x_PIT, "PIT",
|
1759 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1760 | 76a66253 | j_mayer | &spr_read_40x_pit, &spr_write_40x_pit, |
1761 | 76a66253 | j_mayer | 0x00000000);
|
1762 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TCR, "TCR",
|
1763 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1764 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1765 | 76a66253 | j_mayer | 0x00000000);
|
1766 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TSR, "TSR",
|
1767 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1768 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1769 | 76a66253 | j_mayer | 0x00000000);
|
1770 | 2662a059 | j_mayer | } |
1771 | 2662a059 | j_mayer | |
1772 | 2662a059 | j_mayer | /* SPR specific to PowerPC 405 implementation */
|
1773 | 2662a059 | j_mayer | static void gen_spr_405 (CPUPPCState *env) |
1774 | 2662a059 | j_mayer | { |
1775 | 2662a059 | j_mayer | /* MMU */
|
1776 | 2662a059 | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1777 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1778 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1779 | 76a66253 | j_mayer | 0x00000000);
|
1780 | 2662a059 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1781 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1782 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1783 | 2662a059 | j_mayer | 0x00700000);
|
1784 | 2662a059 | j_mayer | /* Debug interface */
|
1785 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1786 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1787 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1788 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1789 | 76a66253 | j_mayer | 0x00000000);
|
1790 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1791 | 2662a059 | j_mayer | spr_register(env, SPR_405_DBCR1, "DBCR1",
|
1792 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1793 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1794 | 2662a059 | j_mayer | 0x00000000);
|
1795 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1796 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1797 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1798 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1799 | 8ecc7913 | j_mayer | /* Last reset was system reset */
|
1800 | 76a66253 | j_mayer | 0x00000300);
|
1801 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1802 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1803 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1804 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1805 | 76a66253 | j_mayer | 0x00000000);
|
1806 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1807 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1808 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1809 | 76a66253 | j_mayer | 0x00000000);
|
1810 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1811 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC1, "DVC1",
|
1812 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1813 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1814 | 2662a059 | j_mayer | 0x00000000);
|
1815 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1816 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC2, "DVC2",
|
1817 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1818 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1819 | 76a66253 | j_mayer | 0x00000000);
|
1820 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1821 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1822 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1823 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1824 | 76a66253 | j_mayer | 0x00000000);
|
1825 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1826 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1827 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1828 | 76a66253 | j_mayer | 0x00000000);
|
1829 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1830 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC3, "IAC3",
|
1831 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1832 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1833 | 76a66253 | j_mayer | 0x00000000);
|
1834 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1835 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC4, "IAC4",
|
1836 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1837 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1838 | 76a66253 | j_mayer | 0x00000000);
|
1839 | 76a66253 | j_mayer | /* Storage control */
|
1840 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1841 | 76a66253 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1842 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1843 | c294fc58 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1844 | 76a66253 | j_mayer | 0x00000000);
|
1845 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1846 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1847 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1848 | 2662a059 | j_mayer | 0x00000000);
|
1849 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1850 | 76a66253 | j_mayer | spr_register(env, SPR_405_SU0R, "SU0R",
|
1851 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1852 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1853 | 76a66253 | j_mayer | 0x00000000);
|
1854 | 76a66253 | j_mayer | /* SPRG */
|
1855 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1856 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1857 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1858 | 76a66253 | j_mayer | 0x00000000);
|
1859 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1860 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1861 | 04f20795 | j_mayer | &spr_read_generic, &spr_write_generic, |
1862 | 76a66253 | j_mayer | 0x00000000);
|
1863 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1864 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1865 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1866 | 76a66253 | j_mayer | 0x00000000);
|
1867 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1868 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1869 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1870 | 76a66253 | j_mayer | 0x00000000);
|
1871 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1872 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1873 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1874 | 76a66253 | j_mayer | 0x00000000);
|
1875 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
1876 | 76a66253 | j_mayer | } |
1877 | 76a66253 | j_mayer | |
1878 | 76a66253 | j_mayer | /* SPR shared between PowerPC 401 & 403 implementations */
|
1879 | 76a66253 | j_mayer | static void gen_spr_401_403 (CPUPPCState *env) |
1880 | 76a66253 | j_mayer | { |
1881 | 76a66253 | j_mayer | /* Time base */
|
1882 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBL, "TBL",
|
1883 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1884 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1885 | 76a66253 | j_mayer | 0x00000000);
|
1886 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBL, "TBL",
|
1887 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1888 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbl, |
1889 | 76a66253 | j_mayer | 0x00000000);
|
1890 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBU, "TBU",
|
1891 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1892 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1893 | 76a66253 | j_mayer | 0x00000000);
|
1894 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBU, "TBU",
|
1895 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1896 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbu, |
1897 | 76a66253 | j_mayer | 0x00000000);
|
1898 | 76a66253 | j_mayer | /* Debug */
|
1899 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1900 | 76a66253 | j_mayer | spr_register(env, SPR_403_CDBCR, "CDBCR",
|
1901 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1902 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1903 | 76a66253 | j_mayer | 0x00000000);
|
1904 | 76a66253 | j_mayer | } |
1905 | 76a66253 | j_mayer | |
1906 | 2662a059 | j_mayer | /* SPR specific to PowerPC 401 implementation */
|
1907 | 2662a059 | j_mayer | static void gen_spr_401 (CPUPPCState *env) |
1908 | 2662a059 | j_mayer | { |
1909 | 2662a059 | j_mayer | /* Debug interface */
|
1910 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1911 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR",
|
1912 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1913 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1914 | 2662a059 | j_mayer | 0x00000000);
|
1915 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1916 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1917 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1918 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1919 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1920 | 2662a059 | j_mayer | 0x00000300);
|
1921 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1922 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC",
|
1923 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1924 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1925 | 2662a059 | j_mayer | 0x00000000);
|
1926 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1927 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC",
|
1928 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1929 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1930 | 2662a059 | j_mayer | 0x00000000);
|
1931 | 2662a059 | j_mayer | /* Storage control */
|
1932 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1933 | 2662a059 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1934 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1935 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1936 | 2662a059 | j_mayer | 0x00000000);
|
1937 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
1938 | 035feb88 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
1939 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1940 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1941 | 035feb88 | j_mayer | 0xFFFFFFFF);
|
1942 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1943 | 035feb88 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
1944 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1945 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1946 | 035feb88 | j_mayer | 0x00000000);
|
1947 | 2662a059 | j_mayer | } |
1948 | 2662a059 | j_mayer | |
1949 | a750fc0b | j_mayer | static void gen_spr_401x2 (CPUPPCState *env) |
1950 | a750fc0b | j_mayer | { |
1951 | a750fc0b | j_mayer | gen_spr_401(env); |
1952 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1953 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1954 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1955 | a750fc0b | j_mayer | 0x00000000);
|
1956 | a750fc0b | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1957 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1958 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1959 | a750fc0b | j_mayer | 0x00000000);
|
1960 | a750fc0b | j_mayer | } |
1961 | a750fc0b | j_mayer | |
1962 | 76a66253 | j_mayer | /* SPR specific to PowerPC 403 implementation */
|
1963 | 76a66253 | j_mayer | static void gen_spr_403 (CPUPPCState *env) |
1964 | 76a66253 | j_mayer | { |
1965 | 2662a059 | j_mayer | /* Debug interface */
|
1966 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1967 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1968 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1969 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1970 | 2662a059 | j_mayer | 0x00000000);
|
1971 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1972 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1973 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1974 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1975 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1976 | 2662a059 | j_mayer | 0x00000300);
|
1977 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1978 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1979 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1980 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1981 | 2662a059 | j_mayer | 0x00000000);
|
1982 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1983 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1984 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1985 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1986 | 2662a059 | j_mayer | 0x00000000);
|
1987 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1988 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1989 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1990 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1991 | 2662a059 | j_mayer | 0x00000000);
|
1992 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1993 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1994 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1995 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1996 | 2662a059 | j_mayer | 0x00000000);
|
1997 | a750fc0b | j_mayer | } |
1998 | a750fc0b | j_mayer | |
1999 | a750fc0b | j_mayer | static void gen_spr_403_real (CPUPPCState *env) |
2000 | a750fc0b | j_mayer | { |
2001 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL1, "PBL1",
|
2002 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2003 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2004 | 76a66253 | j_mayer | 0x00000000);
|
2005 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU1, "PBU1",
|
2006 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2007 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2008 | 76a66253 | j_mayer | 0x00000000);
|
2009 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL2, "PBL2",
|
2010 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2011 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2012 | 76a66253 | j_mayer | 0x00000000);
|
2013 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU2, "PBU2",
|
2014 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2015 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2016 | 76a66253 | j_mayer | 0x00000000);
|
2017 | a750fc0b | j_mayer | } |
2018 | a750fc0b | j_mayer | |
2019 | a750fc0b | j_mayer | static void gen_spr_403_mmu (CPUPPCState *env) |
2020 | a750fc0b | j_mayer | { |
2021 | a750fc0b | j_mayer | /* MMU */
|
2022 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
2023 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2024 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2025 | a750fc0b | j_mayer | 0x00000000);
|
2026 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
2027 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2028 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
2029 | 76a66253 | j_mayer | 0x00000000);
|
2030 | 76a66253 | j_mayer | } |
2031 | 76a66253 | j_mayer | |
2032 | 76a66253 | j_mayer | /* SPR specific to PowerPC compression coprocessor extension */
|
2033 | 76a66253 | j_mayer | static void gen_spr_compress (CPUPPCState *env) |
2034 | 76a66253 | j_mayer | { |
2035 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2036 | 76a66253 | j_mayer | spr_register(env, SPR_401_SKR, "SKR",
|
2037 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2038 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
2039 | 76a66253 | j_mayer | 0x00000000);
|
2040 | 76a66253 | j_mayer | } |
2041 | a750fc0b | j_mayer | |
2042 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
2043 | a750fc0b | j_mayer | /* SPR specific to PowerPC 620 */
|
2044 | a750fc0b | j_mayer | static void gen_spr_620 (CPUPPCState *env) |
2045 | a750fc0b | j_mayer | { |
2046 | 082c6681 | j_mayer | /* Processor identification */
|
2047 | 082c6681 | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
2048 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2049 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_pir, |
2050 | 082c6681 | j_mayer | 0x00000000);
|
2051 | 082c6681 | j_mayer | spr_register(env, SPR_ASR, "ASR",
|
2052 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2053 | 082c6681 | j_mayer | &spr_read_asr, &spr_write_asr, |
2054 | 082c6681 | j_mayer | 0x00000000);
|
2055 | 082c6681 | j_mayer | /* Breakpoints */
|
2056 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2057 | 082c6681 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
2058 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2059 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2060 | 082c6681 | j_mayer | 0x00000000);
|
2061 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2062 | 082c6681 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
2063 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2064 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2065 | 082c6681 | j_mayer | 0x00000000);
|
2066 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2067 | 082c6681 | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
2068 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2069 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2070 | 082c6681 | j_mayer | 0x00000000);
|
2071 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2072 | 082c6681 | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
2073 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2074 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2075 | 082c6681 | j_mayer | 0x00000000);
|
2076 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2077 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1R, "PMC1",
|
2078 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2079 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2080 | 082c6681 | j_mayer | 0x00000000);
|
2081 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1W, "PMC1",
|
2082 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2083 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2084 | 082c6681 | j_mayer | 0x00000000);
|
2085 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2086 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2R, "PMC2",
|
2087 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2088 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2089 | 082c6681 | j_mayer | 0x00000000);
|
2090 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2W, "PMC2",
|
2091 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2092 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2093 | 082c6681 | j_mayer | 0x00000000);
|
2094 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2095 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0R, "MMCR0",
|
2096 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2097 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2098 | 082c6681 | j_mayer | 0x00000000);
|
2099 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0W, "MMCR0",
|
2100 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2101 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2102 | 082c6681 | j_mayer | 0x00000000);
|
2103 | 082c6681 | j_mayer | /* External access control */
|
2104 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2105 | 082c6681 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
2106 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2107 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2108 | 082c6681 | j_mayer | 0x00000000);
|
2109 | 082c6681 | j_mayer | #if 0 // XXX: check this
|
2110 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2111 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR0, "PMR0",
|
2112 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2113 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2114 | a750fc0b | j_mayer | 0x00000000);
|
2115 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2116 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR1, "PMR1",
|
2117 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2118 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2119 | a750fc0b | j_mayer | 0x00000000);
|
2120 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2121 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR2, "PMR2",
|
2122 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2123 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2124 | a750fc0b | j_mayer | 0x00000000);
|
2125 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2126 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR3, "PMR3",
|
2127 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2128 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2129 | a750fc0b | j_mayer | 0x00000000);
|
2130 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2131 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR4, "PMR4",
|
2132 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2133 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2134 | a750fc0b | j_mayer | 0x00000000);
|
2135 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2136 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR5, "PMR5",
|
2137 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2138 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2139 | a750fc0b | j_mayer | 0x00000000);
|
2140 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2141 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR6, "PMR6",
|
2142 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2143 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2144 | a750fc0b | j_mayer | 0x00000000);
|
2145 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2146 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR7, "PMR7",
|
2147 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2148 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2149 | a750fc0b | j_mayer | 0x00000000);
|
2150 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2151 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR8, "PMR8",
|
2152 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2153 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2154 | a750fc0b | j_mayer | 0x00000000);
|
2155 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2156 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR9, "PMR9",
|
2157 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2158 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2159 | a750fc0b | j_mayer | 0x00000000);
|
2160 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2161 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRA, "PMR10",
|
2162 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2163 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2164 | a750fc0b | j_mayer | 0x00000000);
|
2165 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2166 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRB, "PMR11",
|
2167 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2168 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2169 | a750fc0b | j_mayer | 0x00000000);
|
2170 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2171 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRC, "PMR12",
|
2172 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2173 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2174 | a750fc0b | j_mayer | 0x00000000);
|
2175 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2176 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRD, "PMR13",
|
2177 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2178 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2179 | a750fc0b | j_mayer | 0x00000000);
|
2180 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2181 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRE, "PMR14",
|
2182 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2183 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2184 | a750fc0b | j_mayer | 0x00000000);
|
2185 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2186 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRF, "PMR15",
|
2187 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2188 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2189 | a750fc0b | j_mayer | 0x00000000);
|
2190 | 082c6681 | j_mayer | #endif
|
2191 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2192 | 082c6681 | j_mayer | spr_register(env, SPR_620_BUSCSR, "BUSCSR",
|
2193 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2194 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2195 | a750fc0b | j_mayer | 0x00000000);
|
2196 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2197 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2CR, "L2CR",
|
2198 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2199 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2200 | 082c6681 | j_mayer | 0x00000000);
|
2201 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2202 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2SR, "L2SR",
|
2203 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2204 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2205 | a750fc0b | j_mayer | 0x00000000);
|
2206 | a750fc0b | j_mayer | } |
2207 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
2208 | 76a66253 | j_mayer | |
2209 | 80d11f44 | j_mayer | static void gen_spr_5xx_8xx (CPUPPCState *env) |
2210 | e1833e1f | j_mayer | { |
2211 | 80d11f44 | j_mayer | /* Exception processing */
|
2212 | 80d11f44 | j_mayer | spr_register(env, SPR_DSISR, "DSISR",
|
2213 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2214 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2215 | 80d11f44 | j_mayer | 0x00000000);
|
2216 | 80d11f44 | j_mayer | spr_register(env, SPR_DAR, "DAR",
|
2217 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2218 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2219 | 80d11f44 | j_mayer | 0x00000000);
|
2220 | 80d11f44 | j_mayer | /* Timer */
|
2221 | 80d11f44 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
2222 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2223 | 80d11f44 | j_mayer | &spr_read_decr, &spr_write_decr, |
2224 | 80d11f44 | j_mayer | 0x00000000);
|
2225 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2226 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EIE, "EIE",
|
2227 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2228 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2229 | 80d11f44 | j_mayer | 0x00000000);
|
2230 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2231 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EID, "EID",
|
2232 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2233 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2234 | 80d11f44 | j_mayer | 0x00000000);
|
2235 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2236 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_NRI, "NRI",
|
2237 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2238 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2239 | 80d11f44 | j_mayer | 0x00000000);
|
2240 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2241 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPA, "CMPA",
|
2242 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2243 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2244 | 80d11f44 | j_mayer | 0x00000000);
|
2245 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2246 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPB, "CMPB",
|
2247 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2248 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2249 | 80d11f44 | j_mayer | 0x00000000);
|
2250 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2251 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPC, "CMPC",
|
2252 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2253 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2254 | 80d11f44 | j_mayer | 0x00000000);
|
2255 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2256 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPD, "CMPD",
|
2257 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2258 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2259 | 80d11f44 | j_mayer | 0x00000000);
|
2260 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2261 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_ECR, "ECR",
|
2262 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2263 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2264 | 80d11f44 | j_mayer | 0x00000000);
|
2265 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2266 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DER, "DER",
|
2267 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2268 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2269 | 80d11f44 | j_mayer | 0x00000000);
|
2270 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2271 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTA, "COUNTA",
|
2272 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2273 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2274 | 80d11f44 | j_mayer | 0x00000000);
|
2275 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2276 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTB, "COUNTB",
|
2277 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2278 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2279 | 80d11f44 | j_mayer | 0x00000000);
|
2280 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2281 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPE, "CMPE",
|
2282 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2283 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2284 | 80d11f44 | j_mayer | 0x00000000);
|
2285 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2286 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPF, "CMPF",
|
2287 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2288 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2289 | 80d11f44 | j_mayer | 0x00000000);
|
2290 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2291 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPG, "CMPG",
|
2292 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2293 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2294 | 80d11f44 | j_mayer | 0x00000000);
|
2295 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2296 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPH, "CMPH",
|
2297 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2298 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2299 | 80d11f44 | j_mayer | 0x00000000);
|
2300 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2301 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL1, "LCTRL1",
|
2302 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2303 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2304 | 80d11f44 | j_mayer | 0x00000000);
|
2305 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2306 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL2, "LCTRL2",
|
2307 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2308 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2309 | 80d11f44 | j_mayer | 0x00000000);
|
2310 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2311 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_BAR, "BAR",
|
2312 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2313 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2314 | 80d11f44 | j_mayer | 0x00000000);
|
2315 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2316 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DPDR, "DPDR",
|
2317 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2318 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2319 | 80d11f44 | j_mayer | 0x00000000);
|
2320 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2321 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IMMR, "IMMR",
|
2322 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2323 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2324 | 80d11f44 | j_mayer | 0x00000000);
|
2325 | 80d11f44 | j_mayer | } |
2326 | 80d11f44 | j_mayer | |
2327 | 80d11f44 | j_mayer | static void gen_spr_5xx (CPUPPCState *env) |
2328 | 80d11f44 | j_mayer | { |
2329 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2330 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_GRA, "MI_GRA",
|
2331 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2332 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2333 | 80d11f44 | j_mayer | 0x00000000);
|
2334 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2335 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_GRA, "L2U_GRA",
|
2336 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2337 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2338 | 80d11f44 | j_mayer | 0x00000000);
|
2339 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2340 | 80d11f44 | j_mayer | spr_register(env, SPR_RPCU_BBCMCR, "L2U_BBCMCR",
|
2341 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2342 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2343 | 80d11f44 | j_mayer | 0x00000000);
|
2344 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2345 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_MCR, "L2U_MCR",
|
2346 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2347 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2348 | 80d11f44 | j_mayer | 0x00000000);
|
2349 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2350 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA0, "MI_RBA0",
|
2351 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2352 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2353 | 80d11f44 | j_mayer | 0x00000000);
|
2354 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2355 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA1, "MI_RBA1",
|
2356 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2357 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2358 | 80d11f44 | j_mayer | 0x00000000);
|
2359 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2360 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA2, "MI_RBA2",
|
2361 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2362 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2363 | 80d11f44 | j_mayer | 0x00000000);
|
2364 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2365 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA3, "MI_RBA3",
|
2366 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2367 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2368 | 80d11f44 | j_mayer | 0x00000000);
|
2369 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2370 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA0, "L2U_RBA0",
|
2371 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2372 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2373 | 80d11f44 | j_mayer | 0x00000000);
|
2374 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2375 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA1, "L2U_RBA1",
|
2376 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2377 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2378 | 80d11f44 | j_mayer | 0x00000000);
|
2379 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2380 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA2, "L2U_RBA2",
|
2381 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2382 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2383 | 80d11f44 | j_mayer | 0x00000000);
|
2384 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2385 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA3, "L2U_RBA3",
|
2386 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2387 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2388 | 80d11f44 | j_mayer | 0x00000000);
|
2389 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2390 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA0, "MI_RA0",
|
2391 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2392 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2393 | 80d11f44 | j_mayer | 0x00000000);
|
2394 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2395 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA1, "MI_RA1",
|
2396 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2397 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2398 | 80d11f44 | j_mayer | 0x00000000);
|
2399 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2400 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA2, "MI_RA2",
|
2401 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2402 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2403 | 80d11f44 | j_mayer | 0x00000000);
|
2404 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2405 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA3, "MI_RA3",
|
2406 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2407 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2408 | 80d11f44 | j_mayer | 0x00000000);
|
2409 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2410 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA0, "L2U_RA0",
|
2411 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2412 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2413 | 80d11f44 | j_mayer | 0x00000000);
|
2414 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2415 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA1, "L2U_RA1",
|
2416 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2417 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2418 | 80d11f44 | j_mayer | 0x00000000);
|
2419 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2420 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA2, "L2U_RA2",
|
2421 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2422 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2423 | 80d11f44 | j_mayer | 0x00000000);
|
2424 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2425 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA3, "L2U_RA3",
|
2426 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2427 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2428 | 80d11f44 | j_mayer | 0x00000000);
|
2429 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2430 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_FPECR, "FPECR",
|
2431 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2432 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2433 | 80d11f44 | j_mayer | 0x00000000);
|
2434 | 80d11f44 | j_mayer | } |
2435 | 80d11f44 | j_mayer | |
2436 | 80d11f44 | j_mayer | static void gen_spr_8xx (CPUPPCState *env) |
2437 | 80d11f44 | j_mayer | { |
2438 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2439 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_CST, "IC_CST",
|
2440 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2441 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2442 | 80d11f44 | j_mayer | 0x00000000);
|
2443 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2444 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_ADR, "IC_ADR",
|
2445 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2446 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2447 | 80d11f44 | j_mayer | 0x00000000);
|
2448 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2449 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_DAT, "IC_DAT",
|
2450 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2451 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2452 | 80d11f44 | j_mayer | 0x00000000);
|
2453 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2454 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_CST, "DC_CST",
|
2455 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2456 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2457 | 80d11f44 | j_mayer | 0x00000000);
|
2458 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2459 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_ADR, "DC_ADR",
|
2460 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2461 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2462 | 80d11f44 | j_mayer | 0x00000000);
|
2463 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2464 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_DAT, "DC_DAT",
|
2465 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2466 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2467 | 80d11f44 | j_mayer | 0x00000000);
|
2468 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2469 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_CTR, "MI_CTR",
|
2470 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2471 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2472 | 80d11f44 | j_mayer | 0x00000000);
|
2473 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2474 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_AP, "MI_AP",
|
2475 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2476 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2477 | 80d11f44 | j_mayer | 0x00000000);
|
2478 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2479 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_EPN, "MI_EPN",
|
2480 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2481 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2482 | 80d11f44 | j_mayer | 0x00000000);
|
2483 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2484 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_TWC, "MI_TWC",
|
2485 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2486 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2487 | 80d11f44 | j_mayer | 0x00000000);
|
2488 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2489 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_RPN, "MI_RPN",
|
2490 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2491 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2492 | 80d11f44 | j_mayer | 0x00000000);
|
2493 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2494 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBCAM, "MI_DBCAM",
|
2495 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2496 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2497 | 80d11f44 | j_mayer | 0x00000000);
|
2498 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2499 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBRAM0, "MI_DBRAM0",
|
2500 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2501 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2502 | 80d11f44 | j_mayer | 0x00000000);
|
2503 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2504 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBRAM1, "MI_DBRAM1",
|
2505 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2506 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2507 | 80d11f44 | j_mayer | 0x00000000);
|
2508 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2509 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CTR, "MD_CTR",
|
2510 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2511 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2512 | 80d11f44 | j_mayer | 0x00000000);
|
2513 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2514 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CASID, "MD_CASID",
|
2515 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2516 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2517 | 80d11f44 | j_mayer | 0x00000000);
|
2518 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2519 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_AP, "MD_AP",
|
2520 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2521 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2522 | 80d11f44 | j_mayer | 0x00000000);
|
2523 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2524 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_EPN, "MD_EPN",
|
2525 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2526 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2527 | 80d11f44 | j_mayer | 0x00000000);
|
2528 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2529 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWB, "MD_TWB",
|
2530 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2531 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2532 | 80d11f44 | j_mayer | 0x00000000);
|
2533 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2534 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWC, "MD_TWC",
|
2535 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2536 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2537 | 80d11f44 | j_mayer | 0x00000000);
|
2538 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2539 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_RPN, "MD_RPN",
|
2540 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2541 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2542 | 80d11f44 | j_mayer | 0x00000000);
|
2543 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2544 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TW, "MD_TW",
|
2545 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2546 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2547 | 80d11f44 | j_mayer | 0x00000000);
|
2548 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2549 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBCAM, "MD_DBCAM",
|
2550 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2551 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2552 | 80d11f44 | j_mayer | 0x00000000);
|
2553 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2554 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM0, "MD_DBRAM0",
|
2555 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2556 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2557 | 80d11f44 | j_mayer | 0x00000000);
|
2558 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2559 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM1, "MD_DBRAM1",
|
2560 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2561 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2562 | 80d11f44 | j_mayer | 0x00000000);
|
2563 | 80d11f44 | j_mayer | } |
2564 | 80d11f44 | j_mayer | |
2565 | 80d11f44 | j_mayer | // XXX: TODO
|
2566 | 80d11f44 | j_mayer | /*
|
2567 | 80d11f44 | j_mayer | * AMR => SPR 29 (Power 2.04)
|
2568 | 80d11f44 | j_mayer | * CTRL => SPR 136 (Power 2.04)
|
2569 | 80d11f44 | j_mayer | * CTRL => SPR 152 (Power 2.04)
|
2570 | 80d11f44 | j_mayer | * SCOMC => SPR 276 (64 bits ?)
|
2571 | 80d11f44 | j_mayer | * SCOMD => SPR 277 (64 bits ?)
|
2572 | 80d11f44 | j_mayer | * TBU40 => SPR 286 (Power 2.04 hypv)
|
2573 | 80d11f44 | j_mayer | * HSPRG0 => SPR 304 (Power 2.04 hypv)
|
2574 | 80d11f44 | j_mayer | * HSPRG1 => SPR 305 (Power 2.04 hypv)
|
2575 | 80d11f44 | j_mayer | * HDSISR => SPR 306 (Power 2.04 hypv)
|
2576 | 80d11f44 | j_mayer | * HDAR => SPR 307 (Power 2.04 hypv)
|
2577 | 80d11f44 | j_mayer | * PURR => SPR 309 (Power 2.04 hypv)
|
2578 | 80d11f44 | j_mayer | * HDEC => SPR 310 (Power 2.04 hypv)
|
2579 | 80d11f44 | j_mayer | * HIOR => SPR 311 (hypv)
|
2580 | 80d11f44 | j_mayer | * RMOR => SPR 312 (970)
|
2581 | 80d11f44 | j_mayer | * HRMOR => SPR 313 (Power 2.04 hypv)
|
2582 | 80d11f44 | j_mayer | * HSRR0 => SPR 314 (Power 2.04 hypv)
|
2583 | 80d11f44 | j_mayer | * HSRR1 => SPR 315 (Power 2.04 hypv)
|
2584 | 80d11f44 | j_mayer | * LPCR => SPR 316 (970)
|
2585 | 80d11f44 | j_mayer | * LPIDR => SPR 317 (970)
|
2586 | 80d11f44 | j_mayer | * EPR => SPR 702 (Power 2.04 emb)
|
2587 | 80d11f44 | j_mayer | * perf => 768-783 (Power 2.04)
|
2588 | 80d11f44 | j_mayer | * perf => 784-799 (Power 2.04)
|
2589 | 80d11f44 | j_mayer | * PPR => SPR 896 (Power 2.04)
|
2590 | 80d11f44 | j_mayer | * EPLC => SPR 947 (Power 2.04 emb)
|
2591 | 80d11f44 | j_mayer | * EPSC => SPR 948 (Power 2.04 emb)
|
2592 | 80d11f44 | j_mayer | * DABRX => 1015 (Power 2.04 hypv)
|
2593 | 80d11f44 | j_mayer | * FPECR => SPR 1022 (?)
|
2594 | 80d11f44 | j_mayer | * ... and more (thermal management, performance counters, ...)
|
2595 | 80d11f44 | j_mayer | */
|
2596 | 80d11f44 | j_mayer | |
2597 | 80d11f44 | j_mayer | /*****************************************************************************/
|
2598 | 80d11f44 | j_mayer | /* Exception vectors models */
|
2599 | 80d11f44 | j_mayer | static void init_excp_4xx_real (CPUPPCState *env) |
2600 | 80d11f44 | j_mayer | { |
2601 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2602 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2603 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2604 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2605 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2606 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2607 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2608 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2609 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2610 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2611 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2612 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2613 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2614 | faadf50e | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2615 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2616 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2617 | e1833e1f | j_mayer | #endif
|
2618 | e1833e1f | j_mayer | } |
2619 | e1833e1f | j_mayer | |
2620 | 80d11f44 | j_mayer | static void init_excp_4xx_softmmu (CPUPPCState *env) |
2621 | 80d11f44 | j_mayer | { |
2622 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2623 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2624 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2625 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2626 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2627 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2628 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2629 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2630 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2631 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2632 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2633 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2634 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001100;
|
2635 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001200;
|
2636 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2637 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2638 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2639 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2640 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2641 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2642 | 80d11f44 | j_mayer | #endif
|
2643 | 80d11f44 | j_mayer | } |
2644 | 80d11f44 | j_mayer | |
2645 | 80d11f44 | j_mayer | static void init_excp_MPC5xx (CPUPPCState *env) |
2646 | 80d11f44 | j_mayer | { |
2647 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2648 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2649 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2650 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2651 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2652 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2653 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2654 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2655 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2656 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2657 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2658 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2659 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2660 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2661 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2662 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2663 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2664 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2665 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2666 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2667 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2668 | 80d11f44 | j_mayer | #endif
|
2669 | 80d11f44 | j_mayer | } |
2670 | 80d11f44 | j_mayer | |
2671 | 80d11f44 | j_mayer | static void init_excp_MPC8xx (CPUPPCState *env) |
2672 | e1833e1f | j_mayer | { |
2673 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2674 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2675 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2676 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2677 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2678 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2679 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2680 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2681 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2682 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2683 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2684 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2685 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2686 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2687 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001100;
|
2688 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001200;
|
2689 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLBE] = 0x00001300;
|
2690 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLBE] = 0x00001400;
|
2691 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2692 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2693 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2694 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2695 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2696 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2697 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2698 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2699 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2700 | e1833e1f | j_mayer | #endif
|
2701 | e1833e1f | j_mayer | } |
2702 | e1833e1f | j_mayer | |
2703 | 80d11f44 | j_mayer | static void init_excp_G2 (CPUPPCState *env) |
2704 | e1833e1f | j_mayer | { |
2705 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2706 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2707 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2708 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2709 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2710 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2711 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2712 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2713 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2714 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2715 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000A00;
|
2716 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2717 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2718 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2719 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2720 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2721 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2722 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2723 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2724 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2725 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2726 | 80d11f44 | j_mayer | #endif
|
2727 | 80d11f44 | j_mayer | } |
2728 | 80d11f44 | j_mayer | |
2729 | 80d11f44 | j_mayer | static void init_excp_e200 (CPUPPCState *env) |
2730 | 80d11f44 | j_mayer | { |
2731 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2732 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000FFC;
|
2733 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2734 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2735 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2736 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2737 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2738 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2739 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2740 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2741 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2742 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2743 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2744 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2745 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2746 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2747 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2748 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2749 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SPEU] = 0x00000000;
|
2750 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPDI] = 0x00000000;
|
2751 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPRI] = 0x00000000;
|
2752 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2753 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF7UL;
|
2754 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2755 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2756 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2757 | 80d11f44 | j_mayer | #endif
|
2758 | 80d11f44 | j_mayer | } |
2759 | 80d11f44 | j_mayer | |
2760 | 80d11f44 | j_mayer | static void init_excp_BookE (CPUPPCState *env) |
2761 | 80d11f44 | j_mayer | { |
2762 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2763 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2764 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2765 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2766 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2767 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2768 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2769 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2770 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2771 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2772 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2773 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2774 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2775 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2776 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2777 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2778 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2779 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2780 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFE0UL;
|
2781 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2782 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2783 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2784 | 80d11f44 | j_mayer | #endif
|
2785 | 80d11f44 | j_mayer | } |
2786 | 80d11f44 | j_mayer | |
2787 | 80d11f44 | j_mayer | static void init_excp_601 (CPUPPCState *env) |
2788 | 80d11f44 | j_mayer | { |
2789 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2790 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2791 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2792 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2793 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2794 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2795 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2796 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2797 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2798 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2799 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IO] = 0x00000A00;
|
2800 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2801 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RUNM] = 0x00002000;
|
2802 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2803 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2804 | 80d11f44 | j_mayer | env->hreset_vector = 0x00000100UL;
|
2805 | e1833e1f | j_mayer | #endif
|
2806 | e1833e1f | j_mayer | } |
2807 | e1833e1f | j_mayer | |
2808 | 80d11f44 | j_mayer | static void init_excp_602 (CPUPPCState *env) |
2809 | e1833e1f | j_mayer | { |
2810 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2811 | 082c6681 | j_mayer | /* XXX: exception prefix has a special behavior on 602 */
|
2812 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2813 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2814 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2815 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2816 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2817 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2818 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2819 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2820 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2821 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2822 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2823 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2824 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2825 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2826 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2827 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2828 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001500;
|
2829 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001600;
|
2830 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2831 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2832 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2833 | e1833e1f | j_mayer | #endif
|
2834 | e1833e1f | j_mayer | } |
2835 | e1833e1f | j_mayer | |
2836 | 80d11f44 | j_mayer | static void init_excp_603 (CPUPPCState *env) |
2837 | e1833e1f | j_mayer | { |
2838 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2839 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2840 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2841 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2842 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2843 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2844 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2845 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2846 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2847 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2848 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2849 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2850 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2851 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2852 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2853 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2854 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2855 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2856 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2857 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2858 | e1833e1f | j_mayer | #endif
|
2859 | e1833e1f | j_mayer | } |
2860 | e1833e1f | j_mayer | |
2861 | e1833e1f | j_mayer | static void init_excp_604 (CPUPPCState *env) |
2862 | e1833e1f | j_mayer | { |
2863 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2864 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2865 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2866 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2867 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2868 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2869 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2870 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2871 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2872 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2873 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2874 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2875 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2876 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2877 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2878 | 2d3eb7bf | Tristan Gingold | env->hreset_excp_prefix = 0xFFF00000UL;
|
2879 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2880 | 2d3eb7bf | Tristan Gingold | env->hreset_vector = 0x00000100UL;
|
2881 | e1833e1f | j_mayer | #endif
|
2882 | e1833e1f | j_mayer | } |
2883 | e1833e1f | j_mayer | |
2884 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
2885 | e1833e1f | j_mayer | static void init_excp_620 (CPUPPCState *env) |
2886 | e1833e1f | j_mayer | { |
2887 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2888 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2889 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2890 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2891 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2892 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2893 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2894 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2895 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2896 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2897 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2898 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2899 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2900 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2901 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2902 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2903 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2904 | faadf50e | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
2905 | e1833e1f | j_mayer | #endif
|
2906 | e1833e1f | j_mayer | } |
2907 | 578bb252 | j_mayer | #endif /* defined(TARGET_PPC64) */ |
2908 | e1833e1f | j_mayer | |
2909 | e1833e1f | j_mayer | static void init_excp_7x0 (CPUPPCState *env) |
2910 | e1833e1f | j_mayer | { |
2911 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2912 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2913 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2914 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2915 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2916 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2917 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2918 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2919 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2920 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2921 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2922 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2923 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2924 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2925 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2926 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2927 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2928 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2929 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2930 | e1833e1f | j_mayer | #endif
|
2931 | e1833e1f | j_mayer | } |
2932 | e1833e1f | j_mayer | |
2933 | bd928eba | j_mayer | static void init_excp_750cl (CPUPPCState *env) |
2934 | e1833e1f | j_mayer | { |
2935 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2936 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2937 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2938 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2939 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2940 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2941 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2942 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2943 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2944 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2945 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2946 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2947 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2948 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2949 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2950 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2951 | bd928eba | j_mayer | /* Hardware reset vector */
|
2952 | bd928eba | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2953 | bd928eba | j_mayer | #endif
|
2954 | bd928eba | j_mayer | } |
2955 | bd928eba | j_mayer | |
2956 | bd928eba | j_mayer | static void init_excp_750cx (CPUPPCState *env) |
2957 | bd928eba | j_mayer | { |
2958 | bd928eba | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2959 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2960 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2961 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2962 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2963 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2964 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2965 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2966 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2967 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2968 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2969 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2970 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2971 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2972 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2973 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2974 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2975 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2976 | e1833e1f | j_mayer | #endif
|
2977 | e1833e1f | j_mayer | } |
2978 | e1833e1f | j_mayer | |
2979 | 7a3a6927 | j_mayer | /* XXX: Check if this is correct */
|
2980 | 7a3a6927 | j_mayer | static void init_excp_7x5 (CPUPPCState *env) |
2981 | 7a3a6927 | j_mayer | { |
2982 | 7a3a6927 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2983 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2984 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2985 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2986 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2987 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2988 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2989 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2990 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2991 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2992 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2993 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2994 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2995 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2996 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2997 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2998 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2999 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3000 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
3001 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3002 | 7a3a6927 | j_mayer | /* Hardware reset vector */
|
3003 | 7a3a6927 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3004 | 7a3a6927 | j_mayer | #endif
|
3005 | 7a3a6927 | j_mayer | } |
3006 | 7a3a6927 | j_mayer | |
3007 | e1833e1f | j_mayer | static void init_excp_7400 (CPUPPCState *env) |
3008 | e1833e1f | j_mayer | { |
3009 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3010 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3011 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3012 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3013 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3014 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3015 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3016 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3017 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3018 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3019 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3020 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3021 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3022 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3023 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3024 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3025 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
3026 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
3027 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3028 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3029 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3030 | e1833e1f | j_mayer | #endif
|
3031 | e1833e1f | j_mayer | } |
3032 | e1833e1f | j_mayer | |
3033 | e1833e1f | j_mayer | static void init_excp_7450 (CPUPPCState *env) |
3034 | e1833e1f | j_mayer | { |
3035 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3036 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3037 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3038 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3039 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3040 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3041 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3042 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3043 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3044 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3045 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3046 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3047 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3048 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3049 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
3050 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
3051 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
3052 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3053 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3054 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
3055 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3056 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3057 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3058 | e1833e1f | j_mayer | #endif
|
3059 | e1833e1f | j_mayer | } |
3060 | e1833e1f | j_mayer | |
3061 | e1833e1f | j_mayer | #if defined (TARGET_PPC64)
|
3062 | e1833e1f | j_mayer | static void init_excp_970 (CPUPPCState *env) |
3063 | e1833e1f | j_mayer | { |
3064 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3065 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3066 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3067 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3068 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSEG] = 0x00000380;
|
3069 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3070 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISEG] = 0x00000480;
|
3071 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3072 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3073 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3074 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3075 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3076 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_HDECR] = 0x00000980;
|
3077 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3078 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3079 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3080 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3081 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3082 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MAINT] = 0x00001600;
|
3083 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001700;
|
3084 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001800;
|
3085 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000FFF00000ULL;
|
3086 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3087 | 1c27f8fb | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
3088 | e1833e1f | j_mayer | #endif
|
3089 | e1833e1f | j_mayer | } |
3090 | e1833e1f | j_mayer | #endif
|
3091 | e1833e1f | j_mayer | |
3092 | e1833e1f | j_mayer | /*****************************************************************************/
|
3093 | 2f462816 | j_mayer | /* Power management enable checks */
|
3094 | 2f462816 | j_mayer | static int check_pow_none (CPUPPCState *env) |
3095 | 2f462816 | j_mayer | { |
3096 | 2f462816 | j_mayer | return 0; |
3097 | 2f462816 | j_mayer | } |
3098 | 2f462816 | j_mayer | |
3099 | 2f462816 | j_mayer | static int check_pow_nocheck (CPUPPCState *env) |
3100 | 2f462816 | j_mayer | { |
3101 | 2f462816 | j_mayer | return 1; |
3102 | 2f462816 | j_mayer | } |
3103 | 2f462816 | j_mayer | |
3104 | 2f462816 | j_mayer | static int check_pow_hid0 (CPUPPCState *env) |
3105 | 2f462816 | j_mayer | { |
3106 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00E00000) |
3107 | 2f462816 | j_mayer | return 1; |
3108 | 2f462816 | j_mayer | |
3109 | 2f462816 | j_mayer | return 0; |
3110 | 2f462816 | j_mayer | } |
3111 | 2f462816 | j_mayer | |
3112 | 4e777442 | j_mayer | static int check_pow_hid0_74xx (CPUPPCState *env) |
3113 | 4e777442 | j_mayer | { |
3114 | 4e777442 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
3115 | 4e777442 | j_mayer | return 1; |
3116 | 4e777442 | j_mayer | |
3117 | 4e777442 | j_mayer | return 0; |
3118 | 4e777442 | j_mayer | } |
3119 | 4e777442 | j_mayer | |
3120 | 2f462816 | j_mayer | /*****************************************************************************/
|
3121 | a750fc0b | j_mayer | /* PowerPC implementations definitions */
|
3122 | 76a66253 | j_mayer | |
3123 | a750fc0b | j_mayer | /* PowerPC 401 */
|
3124 | 082c6681 | j_mayer | #define POWERPC_INSNS_401 (PPC_INSNS_BASE | PPC_STRING | \
|
3125 | 082c6681 | j_mayer | PPC_WRTEE | PPC_DCR | \ |
3126 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3127 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3128 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3129 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3130 | a750fc0b | j_mayer | #define POWERPC_MSRM_401 (0x00000000000FD201ULL) |
3131 | b4095fed | j_mayer | #define POWERPC_MMU_401 (POWERPC_MMU_REAL)
|
3132 | a750fc0b | j_mayer | #define POWERPC_EXCP_401 (POWERPC_EXCP_40x)
|
3133 | a750fc0b | j_mayer | #define POWERPC_INPUT_401 (PPC_FLAGS_INPUT_401)
|
3134 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401 (bfd_mach_ppc_403)
|
3135 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3136 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3137 | 2f462816 | j_mayer | #define check_pow_401 check_pow_nocheck
|
3138 | 76a66253 | j_mayer | |
3139 | a750fc0b | j_mayer | static void init_proc_401 (CPUPPCState *env) |
3140 | a750fc0b | j_mayer | { |
3141 | a750fc0b | j_mayer | gen_spr_40x(env); |
3142 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3143 | a750fc0b | j_mayer | gen_spr_401(env); |
3144 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3145 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3146 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3147 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3148 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3149 | a750fc0b | j_mayer | } |
3150 | 76a66253 | j_mayer | |
3151 | a750fc0b | j_mayer | /* PowerPC 401x2 */
|
3152 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3153 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3154 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3155 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3156 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3157 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3158 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3159 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x2 (0x00000000001FD231ULL) |
3160 | a750fc0b | j_mayer | #define POWERPC_MMU_401x2 (POWERPC_MMU_SOFT_4xx_Z)
|
3161 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x2 (POWERPC_EXCP_40x)
|
3162 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x2 (PPC_FLAGS_INPUT_401)
|
3163 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x2 (bfd_mach_ppc_403)
|
3164 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x2 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3165 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3166 | 2f462816 | j_mayer | #define check_pow_401x2 check_pow_nocheck
|
3167 | a750fc0b | j_mayer | |
3168 | a750fc0b | j_mayer | static void init_proc_401x2 (CPUPPCState *env) |
3169 | a750fc0b | j_mayer | { |
3170 | a750fc0b | j_mayer | gen_spr_40x(env); |
3171 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3172 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3173 | a750fc0b | j_mayer | gen_spr_compress(env); |
3174 | a750fc0b | j_mayer | /* Memory management */
|
3175 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3176 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3177 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3178 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3179 | f2e63a42 | j_mayer | #endif
|
3180 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3181 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3182 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3183 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3184 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3185 | 76a66253 | j_mayer | } |
3186 | 76a66253 | j_mayer | |
3187 | a750fc0b | j_mayer | /* PowerPC 401x3 */
|
3188 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x3 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3189 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3190 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3191 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3192 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3193 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3194 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3195 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x3 (0x00000000001FD631ULL) |
3196 | a750fc0b | j_mayer | #define POWERPC_MMU_401x3 (POWERPC_MMU_SOFT_4xx_Z)
|
3197 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x3 (POWERPC_EXCP_40x)
|
3198 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x3 (PPC_FLAGS_INPUT_401)
|
3199 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x3 (bfd_mach_ppc_403)
|
3200 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x3 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3201 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3202 | 2f462816 | j_mayer | #define check_pow_401x3 check_pow_nocheck
|
3203 | a750fc0b | j_mayer | |
3204 | 578bb252 | j_mayer | __attribute__ (( unused )) |
3205 | e1833e1f | j_mayer | static void init_proc_401x3 (CPUPPCState *env) |
3206 | 76a66253 | j_mayer | { |
3207 | 4e290a0b | j_mayer | gen_spr_40x(env); |
3208 | 4e290a0b | j_mayer | gen_spr_401_403(env); |
3209 | 4e290a0b | j_mayer | gen_spr_401(env); |
3210 | 4e290a0b | j_mayer | gen_spr_401x2(env); |
3211 | 4e290a0b | j_mayer | gen_spr_compress(env); |
3212 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3213 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3214 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3215 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3216 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3217 | 3fc6c082 | bellard | } |
3218 | a750fc0b | j_mayer | |
3219 | a750fc0b | j_mayer | /* IOP480 */
|
3220 | 082c6681 | j_mayer | #define POWERPC_INSNS_IOP480 (PPC_INSNS_BASE | PPC_STRING | \
|
3221 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3222 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3223 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3224 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3225 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3226 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3227 | a750fc0b | j_mayer | #define POWERPC_MSRM_IOP480 (0x00000000001FD231ULL) |
3228 | a750fc0b | j_mayer | #define POWERPC_MMU_IOP480 (POWERPC_MMU_SOFT_4xx_Z)
|
3229 | a750fc0b | j_mayer | #define POWERPC_EXCP_IOP480 (POWERPC_EXCP_40x)
|
3230 | a750fc0b | j_mayer | #define POWERPC_INPUT_IOP480 (PPC_FLAGS_INPUT_401)
|
3231 | 237c0af0 | j_mayer | #define POWERPC_BFDM_IOP480 (bfd_mach_ppc_403)
|
3232 | 4018bae9 | j_mayer | #define POWERPC_FLAG_IOP480 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3233 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3234 | 2f462816 | j_mayer | #define check_pow_IOP480 check_pow_nocheck
|
3235 | a750fc0b | j_mayer | |
3236 | a750fc0b | j_mayer | static void init_proc_IOP480 (CPUPPCState *env) |
3237 | 3fc6c082 | bellard | { |
3238 | a750fc0b | j_mayer | gen_spr_40x(env); |
3239 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3240 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3241 | a750fc0b | j_mayer | gen_spr_compress(env); |
3242 | a750fc0b | j_mayer | /* Memory management */
|
3243 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3244 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3245 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3246 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3247 | f2e63a42 | j_mayer | #endif
|
3248 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3249 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3250 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3251 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3252 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3253 | 3fc6c082 | bellard | } |
3254 | 3fc6c082 | bellard | |
3255 | a750fc0b | j_mayer | /* PowerPC 403 */
|
3256 | 082c6681 | j_mayer | #define POWERPC_INSNS_403 (PPC_INSNS_BASE | PPC_STRING | \
|
3257 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3258 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3259 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3260 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3261 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3262 | a750fc0b | j_mayer | #define POWERPC_MSRM_403 (0x000000000007D00DULL) |
3263 | b4095fed | j_mayer | #define POWERPC_MMU_403 (POWERPC_MMU_REAL)
|
3264 | a750fc0b | j_mayer | #define POWERPC_EXCP_403 (POWERPC_EXCP_40x)
|
3265 | a750fc0b | j_mayer | #define POWERPC_INPUT_403 (PPC_FLAGS_INPUT_401)
|
3266 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403 (bfd_mach_ppc_403)
|
3267 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403 (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3268 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3269 | 2f462816 | j_mayer | #define check_pow_403 check_pow_nocheck
|
3270 | a750fc0b | j_mayer | |
3271 | a750fc0b | j_mayer | static void init_proc_403 (CPUPPCState *env) |
3272 | 3fc6c082 | bellard | { |
3273 | a750fc0b | j_mayer | gen_spr_40x(env); |
3274 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3275 | a750fc0b | j_mayer | gen_spr_403(env); |
3276 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3277 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3278 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3279 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3280 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3281 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3282 | 3fc6c082 | bellard | } |
3283 | 3fc6c082 | bellard | |
3284 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
3285 | 082c6681 | j_mayer | #define POWERPC_INSNS_403GCX (PPC_INSNS_BASE | PPC_STRING | \
|
3286 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3287 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3288 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3289 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3290 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3291 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3292 | a750fc0b | j_mayer | #define POWERPC_MSRM_403GCX (0x000000000007D00DULL) |
3293 | a750fc0b | j_mayer | #define POWERPC_MMU_403GCX (POWERPC_MMU_SOFT_4xx_Z)
|
3294 | a750fc0b | j_mayer | #define POWERPC_EXCP_403GCX (POWERPC_EXCP_40x)
|
3295 | a750fc0b | j_mayer | #define POWERPC_INPUT_403GCX (PPC_FLAGS_INPUT_401)
|
3296 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403GCX (bfd_mach_ppc_403)
|
3297 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403GCX (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3298 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3299 | 2f462816 | j_mayer | #define check_pow_403GCX check_pow_nocheck
|
3300 | a750fc0b | j_mayer | |
3301 | a750fc0b | j_mayer | static void init_proc_403GCX (CPUPPCState *env) |
3302 | 3fc6c082 | bellard | { |
3303 | a750fc0b | j_mayer | gen_spr_40x(env); |
3304 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3305 | a750fc0b | j_mayer | gen_spr_403(env); |
3306 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3307 | a750fc0b | j_mayer | gen_spr_403_mmu(env); |
3308 | a750fc0b | j_mayer | /* Bus access control */
|
3309 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3310 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3311 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3312 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3313 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
3314 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3315 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3316 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3317 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3318 | a750fc0b | j_mayer | 0x00000000);
|
3319 | a750fc0b | j_mayer | /* Memory management */
|
3320 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3321 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3322 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3323 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3324 | f2e63a42 | j_mayer | #endif
|
3325 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3326 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3327 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3328 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3329 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3330 | 80d11f44 | j_mayer | } |
3331 | 80d11f44 | j_mayer | |
3332 | 80d11f44 | j_mayer | /* PowerPC 405 */
|
3333 | 082c6681 | j_mayer | #define POWERPC_INSNS_405 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3334 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3335 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3336 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3337 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3338 | 80d11f44 | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3339 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_405_MAC | PPC_40x_EXCP) |
3340 | 80d11f44 | j_mayer | #define POWERPC_MSRM_405 (0x000000000006E630ULL) |
3341 | 80d11f44 | j_mayer | #define POWERPC_MMU_405 (POWERPC_MMU_SOFT_4xx)
|
3342 | 80d11f44 | j_mayer | #define POWERPC_EXCP_405 (POWERPC_EXCP_40x)
|
3343 | 80d11f44 | j_mayer | #define POWERPC_INPUT_405 (PPC_FLAGS_INPUT_405)
|
3344 | 80d11f44 | j_mayer | #define POWERPC_BFDM_405 (bfd_mach_ppc_403)
|
3345 | 80d11f44 | j_mayer | #define POWERPC_FLAG_405 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3346 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3347 | 80d11f44 | j_mayer | #define check_pow_405 check_pow_nocheck
|
3348 | 80d11f44 | j_mayer | |
3349 | 80d11f44 | j_mayer | static void init_proc_405 (CPUPPCState *env) |
3350 | 80d11f44 | j_mayer | { |
3351 | 80d11f44 | j_mayer | /* Time base */
|
3352 | 80d11f44 | j_mayer | gen_tbl(env); |
3353 | 80d11f44 | j_mayer | gen_spr_40x(env); |
3354 | 80d11f44 | j_mayer | gen_spr_405(env); |
3355 | 80d11f44 | j_mayer | /* Bus access control */
|
3356 | 80d11f44 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3357 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3358 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3359 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3360 | 80d11f44 | j_mayer | 0xFFFFFFFF);
|
3361 | 80d11f44 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3362 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3363 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3364 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3365 | 80d11f44 | j_mayer | 0x00000000);
|
3366 | 80d11f44 | j_mayer | /* Memory management */
|
3367 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3368 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3369 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3370 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3371 | 80d11f44 | j_mayer | #endif
|
3372 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3373 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3374 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3375 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3376 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3377 | 80d11f44 | j_mayer | } |
3378 | 80d11f44 | j_mayer | |
3379 | 80d11f44 | j_mayer | /* PowerPC 440 EP */
|
3380 | 082c6681 | j_mayer | #define POWERPC_INSNS_440EP (PPC_INSNS_BASE | PPC_STRING | \
|
3381 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3382 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3383 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3384 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3385 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3386 | 082c6681 | j_mayer | PPC_440_SPEC) |
3387 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440EP (0x000000000006D630ULL) |
3388 | 80d11f44 | j_mayer | #define POWERPC_MMU_440EP (POWERPC_MMU_BOOKE)
|
3389 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440EP (POWERPC_EXCP_BOOKE)
|
3390 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440EP (PPC_FLAGS_INPUT_BookE)
|
3391 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440EP (bfd_mach_ppc_403)
|
3392 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440EP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3393 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3394 | 80d11f44 | j_mayer | #define check_pow_440EP check_pow_nocheck
|
3395 | 80d11f44 | j_mayer | |
3396 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3397 | 80d11f44 | j_mayer | static void init_proc_440EP (CPUPPCState *env) |
3398 | 80d11f44 | j_mayer | { |
3399 | 80d11f44 | j_mayer | /* Time base */
|
3400 | 80d11f44 | j_mayer | gen_tbl(env); |
3401 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3402 | 80d11f44 | j_mayer | gen_spr_440(env); |
3403 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3404 | 80d11f44 | j_mayer | /* Processor identification */
|
3405 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3406 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3407 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3408 | 80d11f44 | j_mayer | 0x00000000);
|
3409 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3410 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3411 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3412 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3413 | 80d11f44 | j_mayer | 0x00000000);
|
3414 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3415 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3416 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3417 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3418 | 80d11f44 | j_mayer | 0x00000000);
|
3419 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3420 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3421 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3422 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3423 | 80d11f44 | j_mayer | 0x00000000);
|
3424 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3425 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3426 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3427 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3428 | 80d11f44 | j_mayer | 0x00000000);
|
3429 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3430 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3431 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3432 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3433 | 80d11f44 | j_mayer | 0x00000000);
|
3434 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3435 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3436 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3437 | 80d11f44 | j_mayer | 0x00000000);
|
3438 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3439 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3440 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3441 | 80d11f44 | j_mayer | 0x00000000);
|
3442 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3443 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3444 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3445 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3446 | 80d11f44 | j_mayer | 0x00000000);
|
3447 | 80d11f44 | j_mayer | /* Memory management */
|
3448 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3449 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3450 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3451 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3452 | 80d11f44 | j_mayer | #endif
|
3453 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3454 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3455 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3456 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3457 | 80d11f44 | j_mayer | } |
3458 | 80d11f44 | j_mayer | |
3459 | 80d11f44 | j_mayer | /* PowerPC 440 GP */
|
3460 | 082c6681 | j_mayer | #define POWERPC_INSNS_440GP (PPC_INSNS_BASE | PPC_STRING | \
|
3461 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_WRTEE | PPC_MFAPIDI | \ |
3462 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3463 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3464 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3465 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3466 | 082c6681 | j_mayer | PPC_440_SPEC) |
3467 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440GP (0x000000000006FF30ULL) |
3468 | 80d11f44 | j_mayer | #define POWERPC_MMU_440GP (POWERPC_MMU_BOOKE)
|
3469 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440GP (POWERPC_EXCP_BOOKE)
|
3470 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440GP (PPC_FLAGS_INPUT_BookE)
|
3471 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440GP (bfd_mach_ppc_403)
|
3472 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440GP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3473 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3474 | 80d11f44 | j_mayer | #define check_pow_440GP check_pow_nocheck
|
3475 | 80d11f44 | j_mayer | |
3476 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3477 | 80d11f44 | j_mayer | static void init_proc_440GP (CPUPPCState *env) |
3478 | 80d11f44 | j_mayer | { |
3479 | 80d11f44 | j_mayer | /* Time base */
|
3480 | 80d11f44 | j_mayer | gen_tbl(env); |
3481 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3482 | 80d11f44 | j_mayer | gen_spr_440(env); |
3483 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3484 | 80d11f44 | j_mayer | /* Processor identification */
|
3485 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3486 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3487 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3488 | 80d11f44 | j_mayer | 0x00000000);
|
3489 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3490 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3491 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3492 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3493 | 80d11f44 | j_mayer | 0x00000000);
|
3494 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3495 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3496 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3497 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3498 | 80d11f44 | j_mayer | 0x00000000);
|
3499 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3500 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3501 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3502 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3503 | 80d11f44 | j_mayer | 0x00000000);
|
3504 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3505 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3506 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3507 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3508 | 80d11f44 | j_mayer | 0x00000000);
|
3509 | 80d11f44 | j_mayer | /* Memory management */
|
3510 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3511 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3512 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3513 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3514 | 80d11f44 | j_mayer | #endif
|
3515 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3516 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3517 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3518 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3519 | 80d11f44 | j_mayer | } |
3520 | 80d11f44 | j_mayer | |
3521 | 80d11f44 | j_mayer | /* PowerPC 440x4 */
|
3522 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x4 (PPC_INSNS_BASE | PPC_STRING | \
|
3523 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3524 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3525 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3526 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3527 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3528 | 80d11f44 | j_mayer | PPC_440_SPEC) |
3529 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x4 (0x000000000006FF30ULL) |
3530 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x4 (POWERPC_MMU_BOOKE)
|
3531 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x4 (POWERPC_EXCP_BOOKE)
|
3532 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x4 (PPC_FLAGS_INPUT_BookE)
|
3533 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x4 (bfd_mach_ppc_403)
|
3534 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x4 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3535 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3536 | 80d11f44 | j_mayer | #define check_pow_440x4 check_pow_nocheck
|
3537 | 80d11f44 | j_mayer | |
3538 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3539 | 80d11f44 | j_mayer | static void init_proc_440x4 (CPUPPCState *env) |
3540 | 80d11f44 | j_mayer | { |
3541 | 80d11f44 | j_mayer | /* Time base */
|
3542 | 80d11f44 | j_mayer | gen_tbl(env); |
3543 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3544 | 80d11f44 | j_mayer | gen_spr_440(env); |
3545 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3546 | 80d11f44 | j_mayer | /* Processor identification */
|
3547 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3548 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3549 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3550 | 80d11f44 | j_mayer | 0x00000000);
|
3551 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3552 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3553 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3554 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3555 | 80d11f44 | j_mayer | 0x00000000);
|
3556 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3557 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3558 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3559 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3560 | 80d11f44 | j_mayer | 0x00000000);
|
3561 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3562 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3563 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3564 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3565 | 80d11f44 | j_mayer | 0x00000000);
|
3566 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3567 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3568 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3569 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3570 | 80d11f44 | j_mayer | 0x00000000);
|
3571 | 80d11f44 | j_mayer | /* Memory management */
|
3572 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3573 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3574 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3575 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3576 | 80d11f44 | j_mayer | #endif
|
3577 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3578 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3579 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3580 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3581 | 3fc6c082 | bellard | } |
3582 | 3fc6c082 | bellard | |
3583 | 80d11f44 | j_mayer | /* PowerPC 440x5 */
|
3584 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x5 (PPC_INSNS_BASE | PPC_STRING | \
|
3585 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3586 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3587 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3588 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3589 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3590 | 082c6681 | j_mayer | PPC_440_SPEC) |
3591 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x5 (0x000000000006FF30ULL) |
3592 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x5 (POWERPC_MMU_BOOKE)
|
3593 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x5 (POWERPC_EXCP_BOOKE)
|
3594 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x5 (PPC_FLAGS_INPUT_BookE)
|
3595 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x5 (bfd_mach_ppc_403)
|
3596 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x5 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3597 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3598 | 80d11f44 | j_mayer | #define check_pow_440x5 check_pow_nocheck
|
3599 | a750fc0b | j_mayer | |
3600 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3601 | 80d11f44 | j_mayer | static void init_proc_440x5 (CPUPPCState *env) |
3602 | 3fc6c082 | bellard | { |
3603 | a750fc0b | j_mayer | /* Time base */
|
3604 | a750fc0b | j_mayer | gen_tbl(env); |
3605 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3606 | 80d11f44 | j_mayer | gen_spr_440(env); |
3607 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3608 | 80d11f44 | j_mayer | /* Processor identification */
|
3609 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3610 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3611 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3612 | 80d11f44 | j_mayer | 0x00000000);
|
3613 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3614 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3615 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3616 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3617 | 80d11f44 | j_mayer | 0x00000000);
|
3618 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3619 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3620 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3621 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3622 | 80d11f44 | j_mayer | 0x00000000);
|
3623 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3624 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3625 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3626 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3627 | 80d11f44 | j_mayer | 0x00000000);
|
3628 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3629 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3630 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3631 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3632 | 80d11f44 | j_mayer | 0x00000000);
|
3633 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3634 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3635 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3636 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3637 | 80d11f44 | j_mayer | 0x00000000);
|
3638 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3639 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3640 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3641 | 80d11f44 | j_mayer | 0x00000000);
|
3642 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3643 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3644 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3645 | 80d11f44 | j_mayer | 0x00000000);
|
3646 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3647 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3648 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3649 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3650 | a750fc0b | j_mayer | 0x00000000);
|
3651 | a750fc0b | j_mayer | /* Memory management */
|
3652 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3653 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3654 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3655 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3656 | f2e63a42 | j_mayer | #endif
|
3657 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3658 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3659 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3660 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3661 | 3fc6c082 | bellard | } |
3662 | 3fc6c082 | bellard | |
3663 | 80d11f44 | j_mayer | /* PowerPC 460 (guessed) */
|
3664 | 082c6681 | j_mayer | #define POWERPC_INSNS_460 (PPC_INSNS_BASE | PPC_STRING | \
|
3665 | 80d11f44 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3666 | 082c6681 | j_mayer | PPC_WRTEE | PPC_MFAPIDI | \ |
3667 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3668 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3669 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3670 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3671 | 082c6681 | j_mayer | PPC_440_SPEC) |
3672 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3673 | 80d11f44 | j_mayer | #define POWERPC_MMU_460 (POWERPC_MMU_BOOKE)
|
3674 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460 (POWERPC_EXCP_BOOKE)
|
3675 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460 (PPC_FLAGS_INPUT_BookE)
|
3676 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460 (bfd_mach_ppc_403)
|
3677 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3678 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3679 | 80d11f44 | j_mayer | #define check_pow_460 check_pow_nocheck
|
3680 | a750fc0b | j_mayer | |
3681 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3682 | 80d11f44 | j_mayer | static void init_proc_460 (CPUPPCState *env) |
3683 | 3fc6c082 | bellard | { |
3684 | a750fc0b | j_mayer | /* Time base */
|
3685 | a750fc0b | j_mayer | gen_tbl(env); |
3686 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3687 | a750fc0b | j_mayer | gen_spr_440(env); |
3688 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3689 | 80d11f44 | j_mayer | /* Processor identification */
|
3690 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3691 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3692 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3693 | 80d11f44 | j_mayer | 0x00000000);
|
3694 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3695 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3696 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3697 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3698 | 80d11f44 | j_mayer | 0x00000000);
|
3699 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3700 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3701 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3702 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3703 | 80d11f44 | j_mayer | 0x00000000);
|
3704 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3705 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3706 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3707 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3708 | 80d11f44 | j_mayer | 0x00000000);
|
3709 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3710 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3711 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3712 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3713 | 80d11f44 | j_mayer | 0x00000000);
|
3714 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3715 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3716 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3717 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3718 | a750fc0b | j_mayer | 0x00000000);
|
3719 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3720 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3721 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3722 | a750fc0b | j_mayer | 0x00000000);
|
3723 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3724 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3725 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3726 | a750fc0b | j_mayer | 0x00000000);
|
3727 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3728 | a750fc0b | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3729 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3730 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3731 | a750fc0b | j_mayer | 0x00000000);
|
3732 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3733 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3734 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3735 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3736 | 80d11f44 | j_mayer | 0x00000000);
|
3737 | a750fc0b | j_mayer | /* Memory management */
|
3738 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3739 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3740 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3741 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3742 | f2e63a42 | j_mayer | #endif
|
3743 | e1833e1f | j_mayer | init_excp_BookE(env); |
3744 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3745 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3746 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3747 | 3fc6c082 | bellard | } |
3748 | 3fc6c082 | bellard | |
3749 | 80d11f44 | j_mayer | /* PowerPC 460F (guessed) */
|
3750 | 082c6681 | j_mayer | #define POWERPC_INSNS_460F (PPC_INSNS_BASE | PPC_STRING | \
|
3751 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FRES | PPC_FLOAT_FSEL | \ |
3752 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
3753 | 80d11f44 | j_mayer | PPC_FLOAT_STFIWX | \ |
3754 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3755 | 082c6681 | j_mayer | PPC_WRTEE | PPC_MFAPIDI | \ |
3756 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3757 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3758 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3759 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3760 | 082c6681 | j_mayer | PPC_440_SPEC) |
3761 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3762 | 80d11f44 | j_mayer | #define POWERPC_MMU_460F (POWERPC_MMU_BOOKE)
|
3763 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460F (POWERPC_EXCP_BOOKE)
|
3764 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460F (PPC_FLAGS_INPUT_BookE)
|
3765 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460F (bfd_mach_ppc_403)
|
3766 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460F (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3767 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3768 | 80d11f44 | j_mayer | #define check_pow_460F check_pow_nocheck
|
3769 | a750fc0b | j_mayer | |
3770 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3771 | 80d11f44 | j_mayer | static void init_proc_460F (CPUPPCState *env) |
3772 | 3fc6c082 | bellard | { |
3773 | a750fc0b | j_mayer | /* Time base */
|
3774 | a750fc0b | j_mayer | gen_tbl(env); |
3775 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3776 | a750fc0b | j_mayer | gen_spr_440(env); |
3777 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3778 | 80d11f44 | j_mayer | /* Processor identification */
|
3779 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3780 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3781 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3782 | 80d11f44 | j_mayer | 0x00000000);
|
3783 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3784 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3785 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3786 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3787 | 80d11f44 | j_mayer | 0x00000000);
|
3788 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3789 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3790 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3791 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3792 | 80d11f44 | j_mayer | 0x00000000);
|
3793 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3794 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3795 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3796 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3797 | 80d11f44 | j_mayer | 0x00000000);
|
3798 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3799 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3800 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3801 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3802 | 80d11f44 | j_mayer | 0x00000000);
|
3803 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3804 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3805 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3806 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3807 | 80d11f44 | j_mayer | 0x00000000);
|
3808 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3809 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3810 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3811 | 80d11f44 | j_mayer | 0x00000000);
|
3812 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3813 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3814 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3815 | 80d11f44 | j_mayer | 0x00000000);
|
3816 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3817 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3818 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3819 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3820 | 80d11f44 | j_mayer | 0x00000000);
|
3821 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3822 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3823 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3824 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3825 | 80d11f44 | j_mayer | 0x00000000);
|
3826 | a750fc0b | j_mayer | /* Memory management */
|
3827 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3828 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3829 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3830 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3831 | f2e63a42 | j_mayer | #endif
|
3832 | e1833e1f | j_mayer | init_excp_BookE(env); |
3833 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3834 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3835 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3836 | 3fc6c082 | bellard | } |
3837 | 3fc6c082 | bellard | |
3838 | 80d11f44 | j_mayer | /* Freescale 5xx cores (aka RCPU) */
|
3839 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC5xx (PPC_INSNS_BASE | PPC_STRING | \
|
3840 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3841 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_FLOAT | PPC_FLOAT_STFIWX | \ |
3842 | 80d11f44 | j_mayer | PPC_MFTB) |
3843 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC5xx (0x000000000001FF43ULL) |
3844 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC5xx (POWERPC_MMU_REAL)
|
3845 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC5xx (POWERPC_EXCP_603)
|
3846 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC5xx (PPC_FLAGS_INPUT_RCPU)
|
3847 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC5xx (bfd_mach_ppc_505)
|
3848 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC5xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3849 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3850 | 80d11f44 | j_mayer | #define check_pow_MPC5xx check_pow_none
|
3851 | 80d11f44 | j_mayer | |
3852 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3853 | 80d11f44 | j_mayer | static void init_proc_MPC5xx (CPUPPCState *env) |
3854 | 80d11f44 | j_mayer | { |
3855 | 80d11f44 | j_mayer | /* Time base */
|
3856 | 80d11f44 | j_mayer | gen_tbl(env); |
3857 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3858 | 80d11f44 | j_mayer | gen_spr_5xx(env); |
3859 | 80d11f44 | j_mayer | init_excp_MPC5xx(env); |
3860 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3861 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3862 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3863 | 80d11f44 | j_mayer | } |
3864 | 80d11f44 | j_mayer | |
3865 | 80d11f44 | j_mayer | /* Freescale 8xx cores (aka PowerQUICC) */
|
3866 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC8xx (PPC_INSNS_BASE | PPC_STRING | \
|
3867 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3868 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_MFTB) |
3869 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC8xx (0x000000000001F673ULL) |
3870 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC8xx (POWERPC_MMU_MPC8xx)
|
3871 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC8xx (POWERPC_EXCP_603)
|
3872 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC8xx (PPC_FLAGS_INPUT_RCPU)
|
3873 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC8xx (bfd_mach_ppc_860)
|
3874 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC8xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3875 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3876 | 80d11f44 | j_mayer | #define check_pow_MPC8xx check_pow_none
|
3877 | 80d11f44 | j_mayer | |
3878 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3879 | 80d11f44 | j_mayer | static void init_proc_MPC8xx (CPUPPCState *env) |
3880 | 80d11f44 | j_mayer | { |
3881 | 80d11f44 | j_mayer | /* Time base */
|
3882 | 80d11f44 | j_mayer | gen_tbl(env); |
3883 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3884 | 80d11f44 | j_mayer | gen_spr_8xx(env); |
3885 | 80d11f44 | j_mayer | init_excp_MPC8xx(env); |
3886 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3887 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3888 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3889 | 80d11f44 | j_mayer | } |
3890 | 80d11f44 | j_mayer | |
3891 | 80d11f44 | j_mayer | /* Freescale 82xx cores (aka PowerQUICC-II) */
|
3892 | 80d11f44 | j_mayer | /* PowerPC G2 */
|
3893 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3894 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3895 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3896 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3897 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3898 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3899 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3900 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2 (0x000000000006FFF2ULL) |
3901 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2 (POWERPC_MMU_SOFT_6xx)
|
3902 | 80d11f44 | j_mayer | //#define POWERPC_EXCP_G2 (POWERPC_EXCP_G2)
|
3903 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2 (PPC_FLAGS_INPUT_6xx)
|
3904 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2 (bfd_mach_ppc_ec603e)
|
3905 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3906 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3907 | 80d11f44 | j_mayer | #define check_pow_G2 check_pow_hid0
|
3908 | a750fc0b | j_mayer | |
3909 | 80d11f44 | j_mayer | static void init_proc_G2 (CPUPPCState *env) |
3910 | 3fc6c082 | bellard | { |
3911 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3912 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3913 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3914 | a750fc0b | j_mayer | /* Time base */
|
3915 | a750fc0b | j_mayer | gen_tbl(env); |
3916 | bd928eba | j_mayer | /* External access control */
|
3917 | bd928eba | j_mayer | /* XXX : not implemented */
|
3918 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3919 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3920 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3921 | bd928eba | j_mayer | 0x00000000);
|
3922 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3923 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3924 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3925 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3926 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3927 | 80d11f44 | j_mayer | 0x00000000);
|
3928 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3929 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3930 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3931 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3932 | 80d11f44 | j_mayer | 0x00000000);
|
3933 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3934 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3935 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3936 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3937 | 80d11f44 | j_mayer | 0x00000000);
|
3938 | a750fc0b | j_mayer | /* Memory management */
|
3939 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3940 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3941 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3942 | 80d11f44 | j_mayer | init_excp_G2(env); |
3943 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3944 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3945 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3946 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
3947 | 3fc6c082 | bellard | } |
3948 | a750fc0b | j_mayer | |
3949 | 80d11f44 | j_mayer | /* PowerPC G2LE */
|
3950 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2LE (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3951 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3952 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3953 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3954 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3955 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3956 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3957 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2LE (0x000000000007FFF3ULL) |
3958 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2LE (POWERPC_MMU_SOFT_6xx)
|
3959 | 80d11f44 | j_mayer | #define POWERPC_EXCP_G2LE (POWERPC_EXCP_G2)
|
3960 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2LE (PPC_FLAGS_INPUT_6xx)
|
3961 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2LE (bfd_mach_ppc_ec603e)
|
3962 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2LE (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3963 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3964 | 80d11f44 | j_mayer | #define check_pow_G2LE check_pow_hid0
|
3965 | a750fc0b | j_mayer | |
3966 | 80d11f44 | j_mayer | static void init_proc_G2LE (CPUPPCState *env) |
3967 | 3fc6c082 | bellard | { |
3968 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3969 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3970 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3971 | a750fc0b | j_mayer | /* Time base */
|
3972 | a750fc0b | j_mayer | gen_tbl(env); |
3973 | bd928eba | j_mayer | /* External access control */
|
3974 | bd928eba | j_mayer | /* XXX : not implemented */
|
3975 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3976 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3977 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3978 | bd928eba | j_mayer | 0x00000000);
|
3979 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3980 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3981 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3982 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3983 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3984 | a750fc0b | j_mayer | 0x00000000);
|
3985 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3986 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3987 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3988 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3989 | a750fc0b | j_mayer | 0x00000000);
|
3990 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3991 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3992 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3993 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3994 | a750fc0b | j_mayer | 0x00000000);
|
3995 | a750fc0b | j_mayer | /* Memory management */
|
3996 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3997 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3998 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3999 | 80d11f44 | j_mayer | init_excp_G2(env); |
4000 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4001 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4002 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
4003 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
4004 | 3fc6c082 | bellard | } |
4005 | 3fc6c082 | bellard | |
4006 | 80d11f44 | j_mayer | /* e200 core */
|
4007 | 80d11f44 | j_mayer | /* XXX: unimplemented instructions:
|
4008 | 80d11f44 | j_mayer | * dcblc
|
4009 | 80d11f44 | j_mayer | * dcbtlst
|
4010 | 80d11f44 | j_mayer | * dcbtstls
|
4011 | 80d11f44 | j_mayer | * icblc
|
4012 | 80d11f44 | j_mayer | * icbtls
|
4013 | 80d11f44 | j_mayer | * tlbivax
|
4014 | 80d11f44 | j_mayer | * all SPE multiply-accumulate instructions
|
4015 | 80d11f44 | j_mayer | */
|
4016 | 082c6681 | j_mayer | #define POWERPC_INSNS_e200 (PPC_INSNS_BASE | PPC_ISEL | \
|
4017 | 40569b7e | aurel32 | PPC_SPE | PPC_SPE_SINGLE | \ |
4018 | 082c6681 | j_mayer | PPC_WRTEE | PPC_RFDI | \ |
4019 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4020 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4021 | 80d11f44 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4022 | 082c6681 | j_mayer | PPC_BOOKE) |
4023 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e200 (0x000000000606FF30ULL) |
4024 | 80d11f44 | j_mayer | #define POWERPC_MMU_e200 (POWERPC_MMU_BOOKE_FSL)
|
4025 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e200 (POWERPC_EXCP_BOOKE)
|
4026 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e200 (PPC_FLAGS_INPUT_BookE)
|
4027 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e200 (bfd_mach_ppc_860)
|
4028 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e200 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4029 | 4018bae9 | j_mayer | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4030 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
4031 | 80d11f44 | j_mayer | #define check_pow_e200 check_pow_hid0
|
4032 | 80d11f44 | j_mayer | |
4033 | 578bb252 | j_mayer | __attribute__ (( unused )) |
4034 | 80d11f44 | j_mayer | static void init_proc_e200 (CPUPPCState *env) |
4035 | 3fc6c082 | bellard | { |
4036 | e1833e1f | j_mayer | /* Time base */
|
4037 | e1833e1f | j_mayer | gen_tbl(env); |
4038 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000070000FFFFULL);
|
4039 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4040 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4041 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4042 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4043 | e1833e1f | j_mayer | 0x00000000);
|
4044 | 80d11f44 | j_mayer | /* Memory management */
|
4045 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005D);
|
4046 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4047 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4048 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4049 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4050 | e1833e1f | j_mayer | 0x00000000);
|
4051 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4052 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4053 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4054 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4055 | e1833e1f | j_mayer | 0x00000000);
|
4056 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4057 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_ALTCTXCR, "ALTCTXCR",
|
4058 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4059 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4060 | e1833e1f | j_mayer | 0x00000000);
|
4061 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4062 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
4063 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4064 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4065 | 80d11f44 | j_mayer | 0x00000000);
|
4066 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4067 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_CTXCR, "CTXCR",
|
4068 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4069 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4070 | 80d11f44 | j_mayer | 0x00000000);
|
4071 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4072 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCNT, "DBCNT",
|
4073 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4074 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4075 | 80d11f44 | j_mayer | 0x00000000);
|
4076 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4077 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCR3, "DBCR3",
|
4078 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4079 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4080 | 80d11f44 | j_mayer | 0x00000000);
|
4081 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4082 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
4083 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4084 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4085 | 80d11f44 | j_mayer | 0x00000000);
|
4086 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4087 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4088 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4089 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4090 | 80d11f44 | j_mayer | 0x00000000);
|
4091 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4092 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1FINV0, "L1FINV0",
|
4093 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4094 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4095 | 80d11f44 | j_mayer | 0x00000000);
|
4096 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4097 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4098 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4099 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4100 | 80d11f44 | j_mayer | 0x00000000);
|
4101 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4102 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4103 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4104 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4105 | 80d11f44 | j_mayer | 0x00000000);
|
4106 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4107 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
4108 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4109 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4110 | 80d11f44 | j_mayer | 0x00000000);
|
4111 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4112 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
4113 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4114 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4115 | 80d11f44 | j_mayer | 0x00000000);
|
4116 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR0, "DSRR0",
|
4117 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4118 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4119 | 80d11f44 | j_mayer | 0x00000000);
|
4120 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR1, "DSRR1",
|
4121 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4122 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4123 | e1833e1f | j_mayer | 0x00000000);
|
4124 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4125 | e1833e1f | j_mayer | env->nb_tlb = 64;
|
4126 | e1833e1f | j_mayer | env->nb_ways = 1;
|
4127 | e1833e1f | j_mayer | env->id_tlbs = 0;
|
4128 | f2e63a42 | j_mayer | #endif
|
4129 | 80d11f44 | j_mayer | init_excp_e200(env); |
4130 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4131 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4132 | e1833e1f | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
4133 | 3fc6c082 | bellard | } |
4134 | a750fc0b | j_mayer | |
4135 | 80d11f44 | j_mayer | /* e300 core */
|
4136 | 082c6681 | j_mayer | #define POWERPC_INSNS_e300 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4137 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4138 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
4139 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4140 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4141 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4142 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4143 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e300 (0x000000000007FFF3ULL) |
4144 | 80d11f44 | j_mayer | #define POWERPC_MMU_e300 (POWERPC_MMU_SOFT_6xx)
|
4145 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e300 (POWERPC_EXCP_603)
|
4146 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e300 (PPC_FLAGS_INPUT_6xx)
|
4147 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e300 (bfd_mach_ppc_603)
|
4148 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e300 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4149 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4150 | 80d11f44 | j_mayer | #define check_pow_e300 check_pow_hid0
|
4151 | a750fc0b | j_mayer | |
4152 | 578bb252 | j_mayer | __attribute__ (( unused )) |
4153 | 80d11f44 | j_mayer | static void init_proc_e300 (CPUPPCState *env) |
4154 | 3fc6c082 | bellard | { |
4155 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
4156 | 80d11f44 | j_mayer | gen_spr_603(env); |
4157 | a750fc0b | j_mayer | /* Time base */
|
4158 | a750fc0b | j_mayer | gen_tbl(env); |
4159 | 80d11f44 | j_mayer | /* hardware implementation registers */
|
4160 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4161 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4162 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4163 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4164 | 80d11f44 | j_mayer | 0x00000000);
|
4165 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4166 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4167 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4168 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4169 | 80d11f44 | j_mayer | 0x00000000);
|
4170 | 80d11f44 | j_mayer | /* Memory management */
|
4171 | 80d11f44 | j_mayer | gen_low_BATs(env); |
4172 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4173 | 80d11f44 | j_mayer | init_excp_603(env); |
4174 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
4175 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
4176 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
4177 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
4178 | 80d11f44 | j_mayer | } |
4179 | 80d11f44 | j_mayer | |
4180 | bd5ea513 | aurel32 | /* e500v1 core */
|
4181 | bd5ea513 | aurel32 | #define POWERPC_INSNS_e500v1 (PPC_INSNS_BASE | PPC_ISEL | \
|
4182 | bd5ea513 | aurel32 | PPC_SPE | PPC_SPE_SINGLE | \ |
4183 | bd5ea513 | aurel32 | PPC_WRTEE | PPC_RFDI | \ |
4184 | bd5ea513 | aurel32 | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4185 | bd5ea513 | aurel32 | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4186 | bd5ea513 | aurel32 | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4187 | bd5ea513 | aurel32 | PPC_BOOKE) |
4188 | bd5ea513 | aurel32 | #define POWERPC_MSRM_e500v1 (0x000000000606FF30ULL) |
4189 | bd5ea513 | aurel32 | #define POWERPC_MMU_e500v1 (POWERPC_MMU_BOOKE_FSL)
|
4190 | bd5ea513 | aurel32 | #define POWERPC_EXCP_e500v1 (POWERPC_EXCP_BOOKE)
|
4191 | bd5ea513 | aurel32 | #define POWERPC_INPUT_e500v1 (PPC_FLAGS_INPUT_BookE)
|
4192 | bd5ea513 | aurel32 | #define POWERPC_BFDM_e500v1 (bfd_mach_ppc_860)
|
4193 | bd5ea513 | aurel32 | #define POWERPC_FLAG_e500v1 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4194 | bd5ea513 | aurel32 | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4195 | bd5ea513 | aurel32 | POWERPC_FLAG_BUS_CLK) |
4196 | bd5ea513 | aurel32 | #define check_pow_e500v1 check_pow_hid0
|
4197 | bd5ea513 | aurel32 | #define init_proc_e500v1 init_proc_e500
|
4198 | bd5ea513 | aurel32 | |
4199 | bd5ea513 | aurel32 | /* e500v2 core */
|
4200 | bd5ea513 | aurel32 | #define POWERPC_INSNS_e500v2 (PPC_INSNS_BASE | PPC_ISEL | \
|
4201 | bd5ea513 | aurel32 | PPC_SPE | PPC_SPE_SINGLE | PPC_SPE_DOUBLE | \ |
4202 | bd5ea513 | aurel32 | PPC_WRTEE | PPC_RFDI | \ |
4203 | bd5ea513 | aurel32 | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4204 | bd5ea513 | aurel32 | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4205 | bd5ea513 | aurel32 | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4206 | bd5ea513 | aurel32 | PPC_BOOKE) |
4207 | bd5ea513 | aurel32 | #define POWERPC_MSRM_e500v2 (0x000000000606FF30ULL) |
4208 | bd5ea513 | aurel32 | #define POWERPC_MMU_e500v2 (POWERPC_MMU_BOOKE_FSL)
|
4209 | bd5ea513 | aurel32 | #define POWERPC_EXCP_e500v2 (POWERPC_EXCP_BOOKE)
|
4210 | bd5ea513 | aurel32 | #define POWERPC_INPUT_e500v2 (PPC_FLAGS_INPUT_BookE)
|
4211 | bd5ea513 | aurel32 | #define POWERPC_BFDM_e500v2 (bfd_mach_ppc_860)
|
4212 | bd5ea513 | aurel32 | #define POWERPC_FLAG_e500v2 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4213 | bd5ea513 | aurel32 | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4214 | bd5ea513 | aurel32 | POWERPC_FLAG_BUS_CLK) |
4215 | bd5ea513 | aurel32 | #define check_pow_e500v2 check_pow_hid0
|
4216 | bd5ea513 | aurel32 | #define init_proc_e500v2 init_proc_e500
|
4217 | 80d11f44 | j_mayer | |
4218 | 80d11f44 | j_mayer | static void init_proc_e500 (CPUPPCState *env) |
4219 | 80d11f44 | j_mayer | { |
4220 | 80d11f44 | j_mayer | /* Time base */
|
4221 | 80d11f44 | j_mayer | gen_tbl(env); |
4222 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x0000000F0000FD7FULL);
|
4223 | 80d11f44 | j_mayer | /* Processor identification */
|
4224 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
4225 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4226 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
4227 | 80d11f44 | j_mayer | 0x00000000);
|
4228 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4229 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4230 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4231 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4232 | 80d11f44 | j_mayer | 0x00000000);
|
4233 | 80d11f44 | j_mayer | /* Memory management */
|
4234 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4235 | 80d11f44 | j_mayer | env->nb_pids = 3;
|
4236 | 80d11f44 | j_mayer | #endif
|
4237 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005F);
|
4238 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4239 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 | /* XXX : not implemented */
|
4244 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4245 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4246 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4247 | 80d11f44 | j_mayer | 0x00000000);
|
4248 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4249 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BBEAR, "BBEAR",
|
4250 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4251 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4252 | 80d11f44 | j_mayer | 0x00000000);
|
4253 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4254 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BBTAR, "BBTAR",
|
4255 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4256 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4257 | 80d11f44 | j_mayer | 0x00000000);
|
4258 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4259 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_MCAR, "MCAR",
|
4260 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4261 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4262 | 80d11f44 | j_mayer | 0x00000000);
|
4263 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4264 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
4265 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4266 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4267 | a750fc0b | j_mayer | 0x00000000);
|
4268 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4269 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_NPIDR, "NPIDR",
|
4270 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4271 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4272 | a750fc0b | j_mayer | 0x00000000);
|
4273 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4274 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
4275 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4276 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4277 | a750fc0b | j_mayer | 0x00000000);
|
4278 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4279 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
4280 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4281 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4282 | a750fc0b | j_mayer | 0x00000000);
|
4283 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4284 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4285 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4286 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4287 | 80d11f44 | j_mayer | 0x00000000);
|
4288 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4289 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR1, "L1CSR1",
|
4290 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4291 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4292 | 80d11f44 | j_mayer | 0x00000000);
|
4293 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4294 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4295 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4296 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4297 | 80d11f44 | j_mayer | 0x00000000);
|
4298 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4299 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4300 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4301 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4302 | 80d11f44 | j_mayer | 0x00000000);
|
4303 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
4304 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4305 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4306 | 80d11f44 | j_mayer | 0x00000000);
|
4307 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
4308 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4309 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4310 | a750fc0b | j_mayer | 0x00000000);
|
4311 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4312 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
4313 | a750fc0b | j_mayer | env->nb_ways = 1;
|
4314 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
4315 | f2e63a42 | j_mayer | #endif
|
4316 | 80d11f44 | j_mayer | init_excp_e200(env); |
4317 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4318 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4319 | 9fdc60bf | aurel32 | /* Allocate hardware IRQ controller */
|
4320 | 9fdc60bf | aurel32 | ppce500_irq_init(env); |
4321 | 3fc6c082 | bellard | } |
4322 | a750fc0b | j_mayer | |
4323 | a750fc0b | j_mayer | /* Non-embedded PowerPC */
|
4324 | a750fc0b | j_mayer | |
4325 | a750fc0b | j_mayer | /* POWER : same as 601, without mfmsr, mfsr */
|
4326 | a750fc0b | j_mayer | #if defined(TODO)
|
4327 | a750fc0b | j_mayer | #define POWERPC_INSNS_POWER (XXX_TODO)
|
4328 | a750fc0b | j_mayer | /* POWER RSC (from RAD6000) */
|
4329 | a750fc0b | j_mayer | #define POWERPC_MSRM_POWER (0x00000000FEF0ULL) |
4330 | a750fc0b | j_mayer | #endif /* TODO */ |
4331 | a750fc0b | j_mayer | |
4332 | a750fc0b | j_mayer | /* PowerPC 601 */
|
4333 | 082c6681 | j_mayer | #define POWERPC_INSNS_601 (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4334 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4335 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4336 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4337 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4338 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_601 (0x000000000000FD70ULL) |
4339 | 082c6681 | j_mayer | #define POWERPC_MSRR_601 (0x0000000000001040ULL) |
4340 | faadf50e | j_mayer | //#define POWERPC_MMU_601 (POWERPC_MMU_601)
|
4341 | a750fc0b | j_mayer | //#define POWERPC_EXCP_601 (POWERPC_EXCP_601)
|
4342 | a750fc0b | j_mayer | #define POWERPC_INPUT_601 (PPC_FLAGS_INPUT_6xx)
|
4343 | 237c0af0 | j_mayer | #define POWERPC_BFDM_601 (bfd_mach_ppc_601)
|
4344 | 4018bae9 | j_mayer | #define POWERPC_FLAG_601 (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4345 | 2f462816 | j_mayer | #define check_pow_601 check_pow_none
|
4346 | a750fc0b | j_mayer | |
4347 | a750fc0b | j_mayer | static void init_proc_601 (CPUPPCState *env) |
4348 | 3fc6c082 | bellard | { |
4349 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4350 | a750fc0b | j_mayer | gen_spr_601(env); |
4351 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4352 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4353 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4354 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4355 | 056401ea | j_mayer | &spr_read_generic, &spr_write_hid0_601, |
4356 | faadf50e | j_mayer | 0x80010080);
|
4357 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4358 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4359 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4360 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4361 | a750fc0b | j_mayer | 0x00000000);
|
4362 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4363 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID2, "HID2",
|
4364 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4365 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4366 | a750fc0b | j_mayer | 0x00000000);
|
4367 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4368 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID5, "HID5",
|
4369 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4370 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4371 | a750fc0b | j_mayer | 0x00000000);
|
4372 | a750fc0b | j_mayer | /* Memory management */
|
4373 | e1833e1f | j_mayer | init_excp_601(env); |
4374 | 082c6681 | j_mayer | /* XXX: beware that dcache line size is 64
|
4375 | 082c6681 | j_mayer | * but dcbz uses 32 bytes "sectors"
|
4376 | 082c6681 | j_mayer | * XXX: this breaks clcs instruction !
|
4377 | 082c6681 | j_mayer | */
|
4378 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4379 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
4380 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
4381 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
4382 | 3fc6c082 | bellard | } |
4383 | 3fc6c082 | bellard | |
4384 | 082c6681 | j_mayer | /* PowerPC 601v */
|
4385 | 082c6681 | j_mayer | #define POWERPC_INSNS_601v (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4386 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4387 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4388 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4389 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4390 | 082c6681 | j_mayer | #define POWERPC_MSRM_601v (0x000000000000FD70ULL) |
4391 | 082c6681 | j_mayer | #define POWERPC_MSRR_601v (0x0000000000001040ULL) |
4392 | 082c6681 | j_mayer | #define POWERPC_MMU_601v (POWERPC_MMU_601)
|
4393 | 082c6681 | j_mayer | #define POWERPC_EXCP_601v (POWERPC_EXCP_601)
|
4394 | 082c6681 | j_mayer | #define POWERPC_INPUT_601v (PPC_FLAGS_INPUT_6xx)
|
4395 | 082c6681 | j_mayer | #define POWERPC_BFDM_601v (bfd_mach_ppc_601)
|
4396 | 082c6681 | j_mayer | #define POWERPC_FLAG_601v (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4397 | 082c6681 | j_mayer | #define check_pow_601v check_pow_none
|
4398 | 082c6681 | j_mayer | |
4399 | 082c6681 | j_mayer | static void init_proc_601v (CPUPPCState *env) |
4400 | 082c6681 | j_mayer | { |
4401 | 082c6681 | j_mayer | init_proc_601(env); |
4402 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4403 | 082c6681 | j_mayer | spr_register(env, SPR_601_HID15, "HID15",
|
4404 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4405 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4406 | 082c6681 | j_mayer | 0x00000000);
|
4407 | 082c6681 | j_mayer | } |
4408 | 082c6681 | j_mayer | |
4409 | a750fc0b | j_mayer | /* PowerPC 602 */
|
4410 | 082c6681 | j_mayer | #define POWERPC_INSNS_602 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4411 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4412 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4413 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4414 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4415 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_6xx_TLB | PPC_MEM_TLBSYNC | \ |
4416 | 12de9a39 | j_mayer | PPC_SEGMENT | PPC_602_SPEC) |
4417 | 082c6681 | j_mayer | #define POWERPC_MSRM_602 (0x0000000000C7FF73ULL) |
4418 | 082c6681 | j_mayer | /* XXX: 602 MMU is quite specific. Should add a special case */
|
4419 | a750fc0b | j_mayer | #define POWERPC_MMU_602 (POWERPC_MMU_SOFT_6xx)
|
4420 | a750fc0b | j_mayer | //#define POWERPC_EXCP_602 (POWERPC_EXCP_602)
|
4421 | a750fc0b | j_mayer | #define POWERPC_INPUT_602 (PPC_FLAGS_INPUT_6xx)
|
4422 | 237c0af0 | j_mayer | #define POWERPC_BFDM_602 (bfd_mach_ppc_602)
|
4423 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_602 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4424 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4425 | 2f462816 | j_mayer | #define check_pow_602 check_pow_hid0
|
4426 | a750fc0b | j_mayer | |
4427 | a750fc0b | j_mayer | static void init_proc_602 (CPUPPCState *env) |
4428 | 3fc6c082 | bellard | { |
4429 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4430 | a750fc0b | j_mayer | gen_spr_602(env); |
4431 | a750fc0b | j_mayer | /* Time base */
|
4432 | a750fc0b | j_mayer | gen_tbl(env); |
4433 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4434 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4435 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4436 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4437 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4438 | a750fc0b | j_mayer | 0x00000000);
|
4439 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4440 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4441 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4442 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4443 | a750fc0b | j_mayer | 0x00000000);
|
4444 | a750fc0b | j_mayer | /* Memory management */
|
4445 | a750fc0b | j_mayer | gen_low_BATs(env); |
4446 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4447 | e1833e1f | j_mayer | init_excp_602(env); |
4448 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4449 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4450 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4451 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4452 | a750fc0b | j_mayer | } |
4453 | 3fc6c082 | bellard | |
4454 | a750fc0b | j_mayer | /* PowerPC 603 */
|
4455 | 082c6681 | j_mayer | #define POWERPC_INSNS_603 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4456 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4457 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4458 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4459 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4460 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4461 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4462 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_603 (0x000000000007FF73ULL) |
4463 | a750fc0b | j_mayer | #define POWERPC_MMU_603 (POWERPC_MMU_SOFT_6xx)
|
4464 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603 (POWERPC_EXCP_603)
|
4465 | a750fc0b | j_mayer | #define POWERPC_INPUT_603 (PPC_FLAGS_INPUT_6xx)
|
4466 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603 (bfd_mach_ppc_603)
|
4467 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4468 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4469 | 2f462816 | j_mayer | #define check_pow_603 check_pow_hid0
|
4470 | a750fc0b | j_mayer | |
4471 | a750fc0b | j_mayer | static void init_proc_603 (CPUPPCState *env) |
4472 | a750fc0b | j_mayer | { |
4473 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4474 | a750fc0b | j_mayer | gen_spr_603(env); |
4475 | a750fc0b | j_mayer | /* Time base */
|
4476 | a750fc0b | j_mayer | gen_tbl(env); |
4477 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4478 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4479 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4480 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4481 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4482 | a750fc0b | j_mayer | 0x00000000);
|
4483 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4484 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4485 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4486 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4487 | a750fc0b | j_mayer | 0x00000000);
|
4488 | a750fc0b | j_mayer | /* Memory management */
|
4489 | a750fc0b | j_mayer | gen_low_BATs(env); |
4490 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4491 | e1833e1f | j_mayer | init_excp_603(env); |
4492 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4493 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4494 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4495 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4496 | 3fc6c082 | bellard | } |
4497 | 3fc6c082 | bellard | |
4498 | a750fc0b | j_mayer | /* PowerPC 603e */
|
4499 | 082c6681 | j_mayer | #define POWERPC_INSNS_603E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4500 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4501 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4502 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4503 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4504 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4505 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4506 | a750fc0b | j_mayer | #define POWERPC_MSRM_603E (0x000000000007FF73ULL) |
4507 | a750fc0b | j_mayer | #define POWERPC_MMU_603E (POWERPC_MMU_SOFT_6xx)
|
4508 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603E (POWERPC_EXCP_603E)
|
4509 | a750fc0b | j_mayer | #define POWERPC_INPUT_603E (PPC_FLAGS_INPUT_6xx)
|
4510 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603E (bfd_mach_ppc_ec603e)
|
4511 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603E (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4512 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4513 | 2f462816 | j_mayer | #define check_pow_603E check_pow_hid0
|
4514 | a750fc0b | j_mayer | |
4515 | a750fc0b | j_mayer | static void init_proc_603E (CPUPPCState *env) |
4516 | a750fc0b | j_mayer | { |
4517 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4518 | a750fc0b | j_mayer | gen_spr_603(env); |
4519 | a750fc0b | j_mayer | /* Time base */
|
4520 | a750fc0b | j_mayer | gen_tbl(env); |
4521 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4522 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4523 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4524 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4525 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4526 | a750fc0b | j_mayer | 0x00000000);
|
4527 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4528 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4529 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4530 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4531 | a750fc0b | j_mayer | 0x00000000);
|
4532 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4533 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
4534 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4535 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4536 | a750fc0b | j_mayer | 0x00000000);
|
4537 | a750fc0b | j_mayer | /* Memory management */
|
4538 | a750fc0b | j_mayer | gen_low_BATs(env); |
4539 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4540 | e1833e1f | j_mayer | init_excp_603(env); |
4541 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4542 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4543 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4544 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4545 | a750fc0b | j_mayer | } |
4546 | a750fc0b | j_mayer | |
4547 | a750fc0b | j_mayer | /* PowerPC 604 */
|
4548 | 082c6681 | j_mayer | #define POWERPC_INSNS_604 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4549 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4550 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4551 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4552 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4553 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4554 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4555 | a750fc0b | j_mayer | #define POWERPC_MSRM_604 (0x000000000005FF77ULL) |
4556 | a750fc0b | j_mayer | #define POWERPC_MMU_604 (POWERPC_MMU_32B)
|
4557 | a750fc0b | j_mayer | //#define POWERPC_EXCP_604 (POWERPC_EXCP_604)
|
4558 | a750fc0b | j_mayer | #define POWERPC_INPUT_604 (PPC_FLAGS_INPUT_6xx)
|
4559 | 237c0af0 | j_mayer | #define POWERPC_BFDM_604 (bfd_mach_ppc_604)
|
4560 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_604 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4561 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4562 | 2f462816 | j_mayer | #define check_pow_604 check_pow_nocheck
|
4563 | a750fc0b | j_mayer | |
4564 | a750fc0b | j_mayer | static void init_proc_604 (CPUPPCState *env) |
4565 | a750fc0b | j_mayer | { |
4566 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4567 | a750fc0b | j_mayer | gen_spr_604(env); |
4568 | a750fc0b | j_mayer | /* Time base */
|
4569 | a750fc0b | j_mayer | gen_tbl(env); |
4570 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4571 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4572 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4573 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4574 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4575 | a750fc0b | j_mayer | 0x00000000);
|
4576 | 082c6681 | j_mayer | /* Memory management */
|
4577 | 082c6681 | j_mayer | gen_low_BATs(env); |
4578 | 082c6681 | j_mayer | init_excp_604(env); |
4579 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4580 | 082c6681 | j_mayer | env->icache_line_size = 32;
|
4581 | 082c6681 | j_mayer | /* Allocate hardware IRQ controller */
|
4582 | 082c6681 | j_mayer | ppc6xx_irq_init(env); |
4583 | 082c6681 | j_mayer | } |
4584 | 082c6681 | j_mayer | |
4585 | 082c6681 | j_mayer | /* PowerPC 604E */
|
4586 | 082c6681 | j_mayer | #define POWERPC_INSNS_604E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4587 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4588 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4589 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4590 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4591 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4592 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4593 | 082c6681 | j_mayer | #define POWERPC_MSRM_604E (0x000000000005FF77ULL) |
4594 | 082c6681 | j_mayer | #define POWERPC_MMU_604E (POWERPC_MMU_32B)
|
4595 | 082c6681 | j_mayer | #define POWERPC_EXCP_604E (POWERPC_EXCP_604)
|
4596 | 082c6681 | j_mayer | #define POWERPC_INPUT_604E (PPC_FLAGS_INPUT_6xx)
|
4597 | 082c6681 | j_mayer | #define POWERPC_BFDM_604E (bfd_mach_ppc_604)
|
4598 | 082c6681 | j_mayer | #define POWERPC_FLAG_604E (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4599 | 082c6681 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4600 | 082c6681 | j_mayer | #define check_pow_604E check_pow_nocheck
|
4601 | 082c6681 | j_mayer | |
4602 | 082c6681 | j_mayer | static void init_proc_604E (CPUPPCState *env) |
4603 | 082c6681 | j_mayer | { |
4604 | 082c6681 | j_mayer | gen_spr_ne_601(env); |
4605 | 082c6681 | j_mayer | gen_spr_604(env); |
4606 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4607 | 082c6681 | j_mayer | spr_register(env, SPR_MMCR1, "MMCR1",
|
4608 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4609 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4610 | 082c6681 | j_mayer | 0x00000000);
|
4611 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4612 | 082c6681 | j_mayer | spr_register(env, SPR_PMC3, "PMC3",
|
4613 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4614 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4615 | 082c6681 | j_mayer | 0x00000000);
|
4616 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4617 | 082c6681 | j_mayer | spr_register(env, SPR_PMC4, "PMC4",
|
4618 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4619 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4620 | 082c6681 | j_mayer | 0x00000000);
|
4621 | 082c6681 | j_mayer | /* Time base */
|
4622 | 082c6681 | j_mayer | gen_tbl(env); |
4623 | 082c6681 | j_mayer | /* Hardware implementation registers */
|
4624 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4625 | 082c6681 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4626 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4627 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4628 | 082c6681 | j_mayer | 0x00000000);
|
4629 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4630 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4631 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4632 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4633 | a750fc0b | j_mayer | 0x00000000);
|
4634 | a750fc0b | j_mayer | /* Memory management */
|
4635 | a750fc0b | j_mayer | gen_low_BATs(env); |
4636 | e1833e1f | j_mayer | init_excp_604(env); |
4637 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4638 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4639 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4640 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4641 | a750fc0b | j_mayer | } |
4642 | a750fc0b | j_mayer | |
4643 | bd928eba | j_mayer | /* PowerPC 740 */
|
4644 | bd928eba | j_mayer | #define POWERPC_INSNS_740 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4645 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4646 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4647 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4648 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4649 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4650 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4651 | bd928eba | j_mayer | #define POWERPC_MSRM_740 (0x000000000005FF77ULL) |
4652 | bd928eba | j_mayer | #define POWERPC_MMU_740 (POWERPC_MMU_32B)
|
4653 | bd928eba | j_mayer | #define POWERPC_EXCP_740 (POWERPC_EXCP_7x0)
|
4654 | bd928eba | j_mayer | #define POWERPC_INPUT_740 (PPC_FLAGS_INPUT_6xx)
|
4655 | bd928eba | j_mayer | #define POWERPC_BFDM_740 (bfd_mach_ppc_750)
|
4656 | bd928eba | j_mayer | #define POWERPC_FLAG_740 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4657 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4658 | bd928eba | j_mayer | #define check_pow_740 check_pow_hid0
|
4659 | a750fc0b | j_mayer | |
4660 | bd928eba | j_mayer | static void init_proc_740 (CPUPPCState *env) |
4661 | a750fc0b | j_mayer | { |
4662 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4663 | a750fc0b | j_mayer | gen_spr_7xx(env); |
4664 | a750fc0b | j_mayer | /* Time base */
|
4665 | a750fc0b | j_mayer | gen_tbl(env); |
4666 | a750fc0b | j_mayer | /* Thermal management */
|
4667 | a750fc0b | j_mayer | gen_spr_thrm(env); |
4668 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4669 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4670 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4671 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4672 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4673 | a750fc0b | j_mayer | 0x00000000);
|
4674 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4675 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4676 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4677 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4678 | a750fc0b | j_mayer | 0x00000000);
|
4679 | a750fc0b | j_mayer | /* Memory management */
|
4680 | a750fc0b | j_mayer | gen_low_BATs(env); |
4681 | e1833e1f | j_mayer | init_excp_7x0(env); |
4682 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4683 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4684 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4685 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4686 | a750fc0b | j_mayer | } |
4687 | a750fc0b | j_mayer | |
4688 | bd928eba | j_mayer | /* PowerPC 750 */
|
4689 | bd928eba | j_mayer | #define POWERPC_INSNS_750 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4690 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4691 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4692 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4693 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4694 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4695 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4696 | bd928eba | j_mayer | #define POWERPC_MSRM_750 (0x000000000005FF77ULL) |
4697 | bd928eba | j_mayer | #define POWERPC_MMU_750 (POWERPC_MMU_32B)
|
4698 | bd928eba | j_mayer | #define POWERPC_EXCP_750 (POWERPC_EXCP_7x0)
|
4699 | bd928eba | j_mayer | #define POWERPC_INPUT_750 (PPC_FLAGS_INPUT_6xx)
|
4700 | bd928eba | j_mayer | #define POWERPC_BFDM_750 (bfd_mach_ppc_750)
|
4701 | bd928eba | j_mayer | #define POWERPC_FLAG_750 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4702 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4703 | bd928eba | j_mayer | #define check_pow_750 check_pow_hid0
|
4704 | bd928eba | j_mayer | |
4705 | bd928eba | j_mayer | static void init_proc_750 (CPUPPCState *env) |
4706 | bd928eba | j_mayer | { |
4707 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4708 | bd928eba | j_mayer | gen_spr_7xx(env); |
4709 | bd928eba | j_mayer | /* XXX : not implemented */
|
4710 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4711 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4712 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4713 | bd928eba | j_mayer | 0x00000000);
|
4714 | bd928eba | j_mayer | /* Time base */
|
4715 | bd928eba | j_mayer | gen_tbl(env); |
4716 | bd928eba | j_mayer | /* Thermal management */
|
4717 | bd928eba | j_mayer | gen_spr_thrm(env); |
4718 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4719 | bd928eba | j_mayer | /* XXX : not implemented */
|
4720 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4721 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4722 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4723 | bd928eba | j_mayer | 0x00000000);
|
4724 | bd928eba | j_mayer | /* XXX : not implemented */
|
4725 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4726 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4727 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4728 | bd928eba | j_mayer | 0x00000000);
|
4729 | bd928eba | j_mayer | /* Memory management */
|
4730 | bd928eba | j_mayer | gen_low_BATs(env); |
4731 | bd928eba | j_mayer | /* XXX: high BATs are also present but are known to be bugged on
|
4732 | bd928eba | j_mayer | * die version 1.x
|
4733 | bd928eba | j_mayer | */
|
4734 | bd928eba | j_mayer | init_excp_7x0(env); |
4735 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4736 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4737 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4738 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4739 | bd928eba | j_mayer | } |
4740 | bd928eba | j_mayer | |
4741 | bd928eba | j_mayer | /* PowerPC 750 CL */
|
4742 | bd928eba | j_mayer | /* XXX: not implemented:
|
4743 | bd928eba | j_mayer | * cache lock instructions:
|
4744 | bd928eba | j_mayer | * dcbz_l
|
4745 | bd928eba | j_mayer | * floating point paired instructions
|
4746 | bd928eba | j_mayer | * psq_lux
|
4747 | bd928eba | j_mayer | * psq_lx
|
4748 | bd928eba | j_mayer | * psq_stux
|
4749 | bd928eba | j_mayer | * psq_stx
|
4750 | bd928eba | j_mayer | * ps_abs
|
4751 | bd928eba | j_mayer | * ps_add
|
4752 | bd928eba | j_mayer | * ps_cmpo0
|
4753 | bd928eba | j_mayer | * ps_cmpo1
|
4754 | bd928eba | j_mayer | * ps_cmpu0
|
4755 | bd928eba | j_mayer | * ps_cmpu1
|
4756 | bd928eba | j_mayer | * ps_div
|
4757 | bd928eba | j_mayer | * ps_madd
|
4758 | bd928eba | j_mayer | * ps_madds0
|
4759 | bd928eba | j_mayer | * ps_madds1
|
4760 | bd928eba | j_mayer | * ps_merge00
|
4761 | bd928eba | j_mayer | * ps_merge01
|
4762 | bd928eba | j_mayer | * ps_merge10
|
4763 | bd928eba | j_mayer | * ps_merge11
|
4764 | bd928eba | j_mayer | * ps_mr
|
4765 | bd928eba | j_mayer | * ps_msub
|
4766 | bd928eba | j_mayer | * ps_mul
|
4767 | bd928eba | j_mayer | * ps_muls0
|
4768 | bd928eba | j_mayer | * ps_muls1
|
4769 | bd928eba | j_mayer | * ps_nabs
|
4770 | bd928eba | j_mayer | * ps_neg
|
4771 | bd928eba | j_mayer | * ps_nmadd
|
4772 | bd928eba | j_mayer | * ps_nmsub
|
4773 | bd928eba | j_mayer | * ps_res
|
4774 | bd928eba | j_mayer | * ps_rsqrte
|
4775 | bd928eba | j_mayer | * ps_sel
|
4776 | bd928eba | j_mayer | * ps_sub
|
4777 | bd928eba | j_mayer | * ps_sum0
|
4778 | bd928eba | j_mayer | * ps_sum1
|
4779 | bd928eba | j_mayer | */
|
4780 | bd928eba | j_mayer | #define POWERPC_INSNS_750cl (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4781 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4782 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4783 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4784 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4785 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4786 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4787 | bd928eba | j_mayer | #define POWERPC_MSRM_750cl (0x000000000005FF77ULL) |
4788 | bd928eba | j_mayer | #define POWERPC_MMU_750cl (POWERPC_MMU_32B)
|
4789 | bd928eba | j_mayer | #define POWERPC_EXCP_750cl (POWERPC_EXCP_7x0)
|
4790 | bd928eba | j_mayer | #define POWERPC_INPUT_750cl (PPC_FLAGS_INPUT_6xx)
|
4791 | bd928eba | j_mayer | #define POWERPC_BFDM_750cl (bfd_mach_ppc_750)
|
4792 | bd928eba | j_mayer | #define POWERPC_FLAG_750cl (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4793 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4794 | bd928eba | j_mayer | #define check_pow_750cl check_pow_hid0
|
4795 | bd928eba | j_mayer | |
4796 | bd928eba | j_mayer | static void init_proc_750cl (CPUPPCState *env) |
4797 | bd928eba | j_mayer | { |
4798 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4799 | bd928eba | j_mayer | gen_spr_7xx(env); |
4800 | bd928eba | j_mayer | /* XXX : not implemented */
|
4801 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4802 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4803 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4804 | bd928eba | j_mayer | 0x00000000);
|
4805 | bd928eba | j_mayer | /* Time base */
|
4806 | bd928eba | j_mayer | gen_tbl(env); |
4807 | bd928eba | j_mayer | /* Thermal management */
|
4808 | bd928eba | j_mayer | /* Those registers are fake on 750CL */
|
4809 | bd928eba | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
4810 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4811 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4812 | bd928eba | j_mayer | 0x00000000);
|
4813 | bd928eba | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
4814 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4815 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4816 | bd928eba | j_mayer | 0x00000000);
|
4817 | bd928eba | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
4818 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4819 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4820 | bd928eba | j_mayer | 0x00000000);
|
4821 | bd928eba | j_mayer | /* XXX: not implemented */
|
4822 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCL, "TDCL",
|
4823 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4824 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4825 | bd928eba | j_mayer | 0x00000000);
|
4826 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCH, "TDCH",
|
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 | /* DMA */
|
4831 | bd928eba | j_mayer | /* XXX : not implemented */
|
4832 | bd928eba | j_mayer | spr_register(env, SPR_750_WPAR, "WPAR",
|
4833 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4834 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4835 | bd928eba | j_mayer | 0x00000000);
|
4836 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAL, "DMAL",
|
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 | spr_register(env, SPR_750_DMAU, "DMAU",
|
4841 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4842 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4843 | bd928eba | j_mayer | 0x00000000);
|
4844 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4845 | bd928eba | j_mayer | /* XXX : not implemented */
|
4846 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4847 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4848 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4849 | bd928eba | j_mayer | 0x00000000);
|
4850 | bd928eba | j_mayer | /* XXX : not implemented */
|
4851 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4852 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4853 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4854 | bd928eba | j_mayer | 0x00000000);
|
4855 | bd928eba | j_mayer | /* XXX : not implemented */
|
4856 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID2, "HID2",
|
4857 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4858 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4859 | bd928eba | j_mayer | 0x00000000);
|
4860 | bd928eba | j_mayer | /* XXX : not implemented */
|
4861 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID4, "HID4",
|
4862 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4863 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4864 | bd928eba | j_mayer | 0x00000000);
|
4865 | bd928eba | j_mayer | /* Quantization registers */
|
4866 | bd928eba | j_mayer | /* XXX : not implemented */
|
4867 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR0, "GQR0",
|
4868 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4869 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4870 | bd928eba | j_mayer | 0x00000000);
|
4871 | bd928eba | j_mayer | /* XXX : not implemented */
|
4872 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR1, "GQR1",
|
4873 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4874 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4875 | bd928eba | j_mayer | 0x00000000);
|
4876 | bd928eba | j_mayer | /* XXX : not implemented */
|
4877 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR2, "GQR2",
|
4878 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4879 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4880 | bd928eba | j_mayer | 0x00000000);
|
4881 | bd928eba | j_mayer | /* XXX : not implemented */
|
4882 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR3, "GQR3",
|
4883 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4884 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4885 | bd928eba | j_mayer | 0x00000000);
|
4886 | bd928eba | j_mayer | /* XXX : not implemented */
|
4887 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR4, "GQR4",
|
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 | /* XXX : not implemented */
|
4892 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR5, "GQR5",
|
4893 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4894 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4895 | bd928eba | j_mayer | 0x00000000);
|
4896 | bd928eba | j_mayer | /* XXX : not implemented */
|
4897 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR6, "GQR6",
|
4898 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4899 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4900 | bd928eba | j_mayer | 0x00000000);
|
4901 | bd928eba | j_mayer | /* XXX : not implemented */
|
4902 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR7, "GQR7",
|
4903 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4904 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4905 | bd928eba | j_mayer | 0x00000000);
|
4906 | bd928eba | j_mayer | /* Memory management */
|
4907 | bd928eba | j_mayer | gen_low_BATs(env); |
4908 | bd928eba | j_mayer | /* PowerPC 750cl has 8 DBATs and 8 IBATs */
|
4909 | bd928eba | j_mayer | gen_high_BATs(env); |
4910 | bd928eba | j_mayer | init_excp_750cl(env); |
4911 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4912 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4913 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4914 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4915 | bd928eba | j_mayer | } |
4916 | bd928eba | j_mayer | |
4917 | 4e777442 | j_mayer | /* PowerPC 750CX */
|
4918 | bd928eba | j_mayer | #define POWERPC_INSNS_750cx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4919 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4920 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4921 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4922 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4923 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4924 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4925 | bd928eba | j_mayer | #define POWERPC_MSRM_750cx (0x000000000005FF77ULL) |
4926 | bd928eba | j_mayer | #define POWERPC_MMU_750cx (POWERPC_MMU_32B)
|
4927 | bd928eba | j_mayer | #define POWERPC_EXCP_750cx (POWERPC_EXCP_7x0)
|
4928 | bd928eba | j_mayer | #define POWERPC_INPUT_750cx (PPC_FLAGS_INPUT_6xx)
|
4929 | bd928eba | j_mayer | #define POWERPC_BFDM_750cx (bfd_mach_ppc_750)
|
4930 | bd928eba | j_mayer | #define POWERPC_FLAG_750cx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4931 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4932 | bd928eba | j_mayer | #define check_pow_750cx check_pow_hid0
|
4933 | bd928eba | j_mayer | |
4934 | bd928eba | j_mayer | static void init_proc_750cx (CPUPPCState *env) |
4935 | bd928eba | j_mayer | { |
4936 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4937 | bd928eba | j_mayer | gen_spr_7xx(env); |
4938 | bd928eba | j_mayer | /* XXX : not implemented */
|
4939 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4940 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4941 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4942 | bd928eba | j_mayer | 0x00000000);
|
4943 | bd928eba | j_mayer | /* Time base */
|
4944 | bd928eba | j_mayer | gen_tbl(env); |
4945 | bd928eba | j_mayer | /* Thermal management */
|
4946 | bd928eba | j_mayer | gen_spr_thrm(env); |
4947 | bd928eba | j_mayer | /* This register is not implemented but is present for compatibility */
|
4948 | bd928eba | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
4949 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4950 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4951 | bd928eba | j_mayer | 0x00000000);
|
4952 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4953 | bd928eba | j_mayer | /* XXX : not implemented */
|
4954 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4955 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4956 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4957 | bd928eba | j_mayer | 0x00000000);
|
4958 | bd928eba | j_mayer | /* XXX : not implemented */
|
4959 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4960 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4961 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4962 | bd928eba | j_mayer | 0x00000000);
|
4963 | bd928eba | j_mayer | /* Memory management */
|
4964 | bd928eba | j_mayer | gen_low_BATs(env); |
4965 | 4e777442 | j_mayer | /* PowerPC 750cx has 8 DBATs and 8 IBATs */
|
4966 | 4e777442 | j_mayer | gen_high_BATs(env); |
4967 | bd928eba | j_mayer | init_excp_750cx(env); |
4968 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4969 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4970 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4971 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4972 | bd928eba | j_mayer | } |
4973 | bd928eba | j_mayer | |
4974 | bd928eba | j_mayer | /* PowerPC 750FX */
|
4975 | 082c6681 | j_mayer | #define POWERPC_INSNS_750fx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4976 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4977 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4978 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4979 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4980 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4981 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4982 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_750fx (0x000000000005FF77ULL) |
4983 | a750fc0b | j_mayer | #define POWERPC_MMU_750fx (POWERPC_MMU_32B)
|
4984 | a750fc0b | j_mayer | #define POWERPC_EXCP_750fx (POWERPC_EXCP_7x0)
|
4985 | a750fc0b | j_mayer | #define POWERPC_INPUT_750fx (PPC_FLAGS_INPUT_6xx)
|
4986 | 237c0af0 | j_mayer | #define POWERPC_BFDM_750fx (bfd_mach_ppc_750)
|
4987 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_750fx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4988 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4989 | 2f462816 | j_mayer | #define check_pow_750fx check_pow_hid0
|
4990 | a750fc0b | j_mayer | |
4991 | a750fc0b | j_mayer | static void init_proc_750fx (CPUPPCState *env) |
4992 | a750fc0b | j_mayer | { |
4993 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4994 | a750fc0b | j_mayer | gen_spr_7xx(env); |
4995 | bd928eba | j_mayer | /* XXX : not implemented */
|
4996 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4997 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4998 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4999 | bd928eba | j_mayer | 0x00000000);
|
5000 | a750fc0b | j_mayer | /* Time base */
|
5001 | a750fc0b | j_mayer | gen_tbl(env); |
5002 | a750fc0b | j_mayer | /* Thermal management */
|
5003 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5004 | bd928eba | j_mayer | /* XXX : not implemented */
|
5005 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
5006 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5007 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5008 | bd928eba | j_mayer | 0x00000000);
|
5009 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5010 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5011 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5012 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5013 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5014 | a750fc0b | j_mayer | 0x00000000);
|
5015 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5016 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5017 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5018 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5019 | a750fc0b | j_mayer | 0x00000000);
|
5020 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5021 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5022 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5023 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5024 | a750fc0b | j_mayer | 0x00000000);
|
5025 | a750fc0b | j_mayer | /* Memory management */
|
5026 | a750fc0b | j_mayer | gen_low_BATs(env); |
5027 | a750fc0b | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
5028 | a750fc0b | j_mayer | gen_high_BATs(env); |
5029 | bd928eba | j_mayer | init_excp_7x0(env); |
5030 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5031 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5032 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5033 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5034 | a750fc0b | j_mayer | } |
5035 | a750fc0b | j_mayer | |
5036 | bd928eba | j_mayer | /* PowerPC 750GX */
|
5037 | bd928eba | j_mayer | #define POWERPC_INSNS_750gx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5038 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5039 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5040 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5041 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5042 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5043 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5044 | bd928eba | j_mayer | #define POWERPC_MSRM_750gx (0x000000000005FF77ULL) |
5045 | bd928eba | j_mayer | #define POWERPC_MMU_750gx (POWERPC_MMU_32B)
|
5046 | bd928eba | j_mayer | #define POWERPC_EXCP_750gx (POWERPC_EXCP_7x0)
|
5047 | bd928eba | j_mayer | #define POWERPC_INPUT_750gx (PPC_FLAGS_INPUT_6xx)
|
5048 | bd928eba | j_mayer | #define POWERPC_BFDM_750gx (bfd_mach_ppc_750)
|
5049 | bd928eba | j_mayer | #define POWERPC_FLAG_750gx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5050 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5051 | bd928eba | j_mayer | #define check_pow_750gx check_pow_hid0
|
5052 | bd928eba | j_mayer | |
5053 | bd928eba | j_mayer | static void init_proc_750gx (CPUPPCState *env) |
5054 | bd928eba | j_mayer | { |
5055 | bd928eba | j_mayer | gen_spr_ne_601(env); |
5056 | bd928eba | j_mayer | gen_spr_7xx(env); |
5057 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5058 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5059 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5060 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5061 | bd928eba | j_mayer | 0x00000000);
|
5062 | bd928eba | j_mayer | /* Time base */
|
5063 | bd928eba | j_mayer | gen_tbl(env); |
5064 | bd928eba | j_mayer | /* Thermal management */
|
5065 | bd928eba | j_mayer | gen_spr_thrm(env); |
5066 | bd928eba | j_mayer | /* XXX : not implemented */
|
5067 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
5068 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5069 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5070 | bd928eba | j_mayer | 0x00000000);
|
5071 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5072 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5073 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5074 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5075 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5076 | bd928eba | j_mayer | 0x00000000);
|
5077 | bd928eba | j_mayer | /* XXX : not implemented */
|
5078 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5079 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5080 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5081 | bd928eba | j_mayer | 0x00000000);
|
5082 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5083 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5084 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5085 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5086 | bd928eba | j_mayer | 0x00000000);
|
5087 | bd928eba | j_mayer | /* Memory management */
|
5088 | bd928eba | j_mayer | gen_low_BATs(env); |
5089 | bd928eba | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
5090 | bd928eba | j_mayer | gen_high_BATs(env); |
5091 | bd928eba | j_mayer | init_excp_7x0(env); |
5092 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5093 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5094 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5095 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5096 | bd928eba | j_mayer | } |
5097 | bd928eba | j_mayer | |
5098 | bd928eba | j_mayer | /* PowerPC 745 */
|
5099 | bd928eba | j_mayer | #define POWERPC_INSNS_745 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5100 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5101 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5102 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5103 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5104 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5105 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5106 | bd928eba | j_mayer | #define POWERPC_MSRM_745 (0x000000000005FF77ULL) |
5107 | bd928eba | j_mayer | #define POWERPC_MMU_745 (POWERPC_MMU_SOFT_6xx)
|
5108 | bd928eba | j_mayer | #define POWERPC_EXCP_745 (POWERPC_EXCP_7x5)
|
5109 | bd928eba | j_mayer | #define POWERPC_INPUT_745 (PPC_FLAGS_INPUT_6xx)
|
5110 | bd928eba | j_mayer | #define POWERPC_BFDM_745 (bfd_mach_ppc_750)
|
5111 | bd928eba | j_mayer | #define POWERPC_FLAG_745 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5112 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5113 | bd928eba | j_mayer | #define check_pow_745 check_pow_hid0
|
5114 | bd928eba | j_mayer | |
5115 | bd928eba | j_mayer | static void init_proc_745 (CPUPPCState *env) |
5116 | bd928eba | j_mayer | { |
5117 | bd928eba | j_mayer | gen_spr_ne_601(env); |
5118 | bd928eba | j_mayer | gen_spr_7xx(env); |
5119 | bd928eba | j_mayer | gen_spr_G2_755(env); |
5120 | bd928eba | j_mayer | /* Time base */
|
5121 | bd928eba | j_mayer | gen_tbl(env); |
5122 | bd928eba | j_mayer | /* Thermal management */
|
5123 | bd928eba | j_mayer | gen_spr_thrm(env); |
5124 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5125 | bd928eba | j_mayer | /* XXX : not implemented */
|
5126 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5127 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5128 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5129 | bd928eba | j_mayer | 0x00000000);
|
5130 | bd928eba | j_mayer | /* XXX : not implemented */
|
5131 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5132 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5133 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5134 | bd928eba | j_mayer | 0x00000000);
|
5135 | bd928eba | j_mayer | /* XXX : not implemented */
|
5136 | bd928eba | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5137 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5138 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5139 | bd928eba | j_mayer | 0x00000000);
|
5140 | bd928eba | j_mayer | /* Memory management */
|
5141 | bd928eba | j_mayer | gen_low_BATs(env); |
5142 | bd928eba | j_mayer | gen_high_BATs(env); |
5143 | bd928eba | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5144 | bd928eba | j_mayer | init_excp_7x5(env); |
5145 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5146 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5147 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5148 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5149 | bd928eba | j_mayer | } |
5150 | bd928eba | j_mayer | |
5151 | bd928eba | j_mayer | /* PowerPC 755 */
|
5152 | bd928eba | j_mayer | #define POWERPC_INSNS_755 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5153 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5154 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5155 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5156 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5157 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5158 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5159 | bd928eba | j_mayer | #define POWERPC_MSRM_755 (0x000000000005FF77ULL) |
5160 | bd928eba | j_mayer | #define POWERPC_MMU_755 (POWERPC_MMU_SOFT_6xx)
|
5161 | bd928eba | j_mayer | #define POWERPC_EXCP_755 (POWERPC_EXCP_7x5)
|
5162 | bd928eba | j_mayer | #define POWERPC_INPUT_755 (PPC_FLAGS_INPUT_6xx)
|
5163 | bd928eba | j_mayer | #define POWERPC_BFDM_755 (bfd_mach_ppc_750)
|
5164 | bd928eba | j_mayer | #define POWERPC_FLAG_755 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5165 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5166 | bd928eba | j_mayer | #define check_pow_755 check_pow_hid0
|
5167 | a750fc0b | j_mayer | |
5168 | bd928eba | j_mayer | static void init_proc_755 (CPUPPCState *env) |
5169 | a750fc0b | j_mayer | { |
5170 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5171 | bd928eba | j_mayer | gen_spr_7xx(env); |
5172 | a750fc0b | j_mayer | gen_spr_G2_755(env); |
5173 | a750fc0b | j_mayer | /* Time base */
|
5174 | a750fc0b | j_mayer | gen_tbl(env); |
5175 | a750fc0b | j_mayer | /* L2 cache control */
|
5176 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5177 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5178 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5179 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5180 | a750fc0b | j_mayer | 0x00000000);
|
5181 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5182 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5183 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5184 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5185 | a750fc0b | j_mayer | 0x00000000);
|
5186 | bd928eba | j_mayer | /* Thermal management */
|
5187 | bd928eba | j_mayer | gen_spr_thrm(env); |
5188 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5189 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5190 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5191 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5192 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5193 | a750fc0b | j_mayer | 0x00000000);
|
5194 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5195 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5196 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5197 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5198 | a750fc0b | j_mayer | 0x00000000);
|
5199 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5200 | a750fc0b | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5201 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5202 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5203 | a750fc0b | j_mayer | 0x00000000);
|
5204 | a750fc0b | j_mayer | /* Memory management */
|
5205 | a750fc0b | j_mayer | gen_low_BATs(env); |
5206 | a750fc0b | j_mayer | gen_high_BATs(env); |
5207 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5208 | 7a3a6927 | j_mayer | init_excp_7x5(env); |
5209 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5210 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5211 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5212 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5213 | a750fc0b | j_mayer | } |
5214 | a750fc0b | j_mayer | |
5215 | a750fc0b | j_mayer | /* PowerPC 7400 (aka G4) */
|
5216 | 082c6681 | j_mayer | #define POWERPC_INSNS_7400 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5217 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5218 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5219 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5220 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5221 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5222 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5223 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5224 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5225 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5226 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5227 | a750fc0b | j_mayer | #define POWERPC_MSRM_7400 (0x000000000205FF77ULL) |
5228 | a750fc0b | j_mayer | #define POWERPC_MMU_7400 (POWERPC_MMU_32B)
|
5229 | a750fc0b | j_mayer | #define POWERPC_EXCP_7400 (POWERPC_EXCP_74xx)
|
5230 | a750fc0b | j_mayer | #define POWERPC_INPUT_7400 (PPC_FLAGS_INPUT_6xx)
|
5231 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7400 (bfd_mach_ppc_7400)
|
5232 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7400 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5233 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5234 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5235 | 4e777442 | j_mayer | #define check_pow_7400 check_pow_hid0_74xx
|
5236 | a750fc0b | j_mayer | |
5237 | a750fc0b | j_mayer | static void init_proc_7400 (CPUPPCState *env) |
5238 | a750fc0b | j_mayer | { |
5239 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5240 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5241 | a750fc0b | j_mayer | /* Time base */
|
5242 | a750fc0b | j_mayer | gen_tbl(env); |
5243 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5244 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5245 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5246 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5247 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5248 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5249 | 4e777442 | j_mayer | 0x00000000);
|
5250 | 4e777442 | j_mayer | /* XXX: this seems not implemented on all revisions. */
|
5251 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5252 | 4e777442 | j_mayer | spr_register(env, SPR_MSSCR1, "MSSCR1",
|
5253 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5254 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5255 | 4e777442 | j_mayer | 0x00000000);
|
5256 | a750fc0b | j_mayer | /* Thermal management */
|
5257 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5258 | a750fc0b | j_mayer | /* Memory management */
|
5259 | a750fc0b | j_mayer | gen_low_BATs(env); |
5260 | e1833e1f | j_mayer | init_excp_7400(env); |
5261 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5262 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5263 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5264 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5265 | a750fc0b | j_mayer | } |
5266 | a750fc0b | j_mayer | |
5267 | a750fc0b | j_mayer | /* PowerPC 7410 (aka G4) */
|
5268 | 082c6681 | j_mayer | #define POWERPC_INSNS_7410 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5269 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5270 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5271 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5272 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5273 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5274 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5275 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5276 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5277 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5278 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5279 | a750fc0b | j_mayer | #define POWERPC_MSRM_7410 (0x000000000205FF77ULL) |
5280 | a750fc0b | j_mayer | #define POWERPC_MMU_7410 (POWERPC_MMU_32B)
|
5281 | a750fc0b | j_mayer | #define POWERPC_EXCP_7410 (POWERPC_EXCP_74xx)
|
5282 | a750fc0b | j_mayer | #define POWERPC_INPUT_7410 (PPC_FLAGS_INPUT_6xx)
|
5283 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7410 (bfd_mach_ppc_7400)
|
5284 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7410 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5285 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5286 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5287 | 4e777442 | j_mayer | #define check_pow_7410 check_pow_hid0_74xx
|
5288 | a750fc0b | j_mayer | |
5289 | a750fc0b | j_mayer | static void init_proc_7410 (CPUPPCState *env) |
5290 | a750fc0b | j_mayer | { |
5291 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5292 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5293 | a750fc0b | j_mayer | /* Time base */
|
5294 | a750fc0b | j_mayer | gen_tbl(env); |
5295 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5296 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5297 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5298 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5299 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5300 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5301 | 4e777442 | j_mayer | 0x00000000);
|
5302 | a750fc0b | j_mayer | /* Thermal management */
|
5303 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5304 | a750fc0b | j_mayer | /* L2PMCR */
|
5305 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5306 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5307 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5308 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5309 | a750fc0b | j_mayer | 0x00000000);
|
5310 | a750fc0b | j_mayer | /* LDSTDB */
|
5311 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5312 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTDB, "LDSTDB",
|
5313 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5314 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5315 | a750fc0b | j_mayer | 0x00000000);
|
5316 | a750fc0b | j_mayer | /* Memory management */
|
5317 | a750fc0b | j_mayer | gen_low_BATs(env); |
5318 | e1833e1f | j_mayer | init_excp_7400(env); |
5319 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5320 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5321 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5322 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5323 | a750fc0b | j_mayer | } |
5324 | a750fc0b | j_mayer | |
5325 | a750fc0b | j_mayer | /* PowerPC 7440 (aka G4) */
|
5326 | 082c6681 | j_mayer | #define POWERPC_INSNS_7440 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5327 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5328 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5329 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5330 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5331 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5332 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5333 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5334 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5335 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5336 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5337 | a750fc0b | j_mayer | #define POWERPC_MSRM_7440 (0x000000000205FF77ULL) |
5338 | a750fc0b | j_mayer | #define POWERPC_MMU_7440 (POWERPC_MMU_SOFT_74xx)
|
5339 | a750fc0b | j_mayer | #define POWERPC_EXCP_7440 (POWERPC_EXCP_74xx)
|
5340 | a750fc0b | j_mayer | #define POWERPC_INPUT_7440 (PPC_FLAGS_INPUT_6xx)
|
5341 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7440 (bfd_mach_ppc_7400)
|
5342 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7440 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5343 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5344 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5345 | 4e777442 | j_mayer | #define check_pow_7440 check_pow_hid0_74xx
|
5346 | a750fc0b | j_mayer | |
5347 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5348 | a750fc0b | j_mayer | static void init_proc_7440 (CPUPPCState *env) |
5349 | a750fc0b | j_mayer | { |
5350 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5351 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5352 | a750fc0b | j_mayer | /* Time base */
|
5353 | a750fc0b | j_mayer | gen_tbl(env); |
5354 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5355 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5356 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5357 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5358 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5359 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5360 | 4e777442 | j_mayer | 0x00000000);
|
5361 | a750fc0b | j_mayer | /* LDSTCR */
|
5362 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5363 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5364 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5365 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5366 | a750fc0b | j_mayer | 0x00000000);
|
5367 | a750fc0b | j_mayer | /* ICTRL */
|
5368 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5369 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5370 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5371 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5372 | a750fc0b | j_mayer | 0x00000000);
|
5373 | a750fc0b | j_mayer | /* MSSSR0 */
|
5374 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5375 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5376 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5377 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5378 | a750fc0b | j_mayer | 0x00000000);
|
5379 | a750fc0b | j_mayer | /* PMC */
|
5380 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5381 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5382 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5383 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5384 | a750fc0b | j_mayer | 0x00000000);
|
5385 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5386 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5387 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5388 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5389 | a750fc0b | j_mayer | 0x00000000);
|
5390 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5391 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5392 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5393 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5394 | a750fc0b | j_mayer | 0x00000000);
|
5395 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5396 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5397 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5398 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5399 | a750fc0b | j_mayer | 0x00000000);
|
5400 | a750fc0b | j_mayer | /* Memory management */
|
5401 | a750fc0b | j_mayer | gen_low_BATs(env); |
5402 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5403 | 1c27f8fb | j_mayer | init_excp_7450(env); |
5404 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5405 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5406 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5407 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5408 | a750fc0b | j_mayer | } |
5409 | a750fc0b | j_mayer | |
5410 | a750fc0b | j_mayer | /* PowerPC 7450 (aka G4) */
|
5411 | 082c6681 | j_mayer | #define POWERPC_INSNS_7450 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5412 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5413 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5414 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5415 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5416 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5417 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5418 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5419 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5420 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5421 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5422 | a750fc0b | j_mayer | #define POWERPC_MSRM_7450 (0x000000000205FF77ULL) |
5423 | a750fc0b | j_mayer | #define POWERPC_MMU_7450 (POWERPC_MMU_SOFT_74xx)
|
5424 | a750fc0b | j_mayer | #define POWERPC_EXCP_7450 (POWERPC_EXCP_74xx)
|
5425 | a750fc0b | j_mayer | #define POWERPC_INPUT_7450 (PPC_FLAGS_INPUT_6xx)
|
5426 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7450 (bfd_mach_ppc_7400)
|
5427 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7450 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5428 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5429 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5430 | 4e777442 | j_mayer | #define check_pow_7450 check_pow_hid0_74xx
|
5431 | a750fc0b | j_mayer | |
5432 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5433 | a750fc0b | j_mayer | static void init_proc_7450 (CPUPPCState *env) |
5434 | a750fc0b | j_mayer | { |
5435 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5436 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5437 | a750fc0b | j_mayer | /* Time base */
|
5438 | a750fc0b | j_mayer | gen_tbl(env); |
5439 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5440 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5441 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5442 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5443 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5444 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5445 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5446 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5447 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5448 | 4e777442 | j_mayer | 0x00000000);
|
5449 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5450 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5451 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5452 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5453 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5454 | 4e777442 | j_mayer | 0x00000000);
|
5455 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5456 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5457 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5458 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5459 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5460 | 4e777442 | j_mayer | 0x00000000);
|
5461 | 4e777442 | j_mayer | /* L3OHCR */
|
5462 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5463 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5464 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5465 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5466 | 4e777442 | j_mayer | 0x00000000);
|
5467 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5468 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5469 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5470 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5471 | 4e777442 | j_mayer | 0x00000000);
|
5472 | a750fc0b | j_mayer | /* LDSTCR */
|
5473 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5474 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5475 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5476 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5477 | a750fc0b | j_mayer | 0x00000000);
|
5478 | a750fc0b | j_mayer | /* ICTRL */
|
5479 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5480 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5481 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5482 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5483 | a750fc0b | j_mayer | 0x00000000);
|
5484 | a750fc0b | j_mayer | /* MSSSR0 */
|
5485 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5486 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5487 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5488 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5489 | a750fc0b | j_mayer | 0x00000000);
|
5490 | a750fc0b | j_mayer | /* PMC */
|
5491 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5492 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5493 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5494 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5495 | a750fc0b | j_mayer | 0x00000000);
|
5496 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5497 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5498 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5499 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5500 | a750fc0b | j_mayer | 0x00000000);
|
5501 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5502 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5503 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5504 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5505 | a750fc0b | j_mayer | 0x00000000);
|
5506 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5507 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5508 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5509 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5510 | a750fc0b | j_mayer | 0x00000000);
|
5511 | a750fc0b | j_mayer | /* Memory management */
|
5512 | a750fc0b | j_mayer | gen_low_BATs(env); |
5513 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5514 | e1833e1f | j_mayer | init_excp_7450(env); |
5515 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5516 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5517 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5518 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5519 | a750fc0b | j_mayer | } |
5520 | a750fc0b | j_mayer | |
5521 | a750fc0b | j_mayer | /* PowerPC 7445 (aka G4) */
|
5522 | 082c6681 | j_mayer | #define POWERPC_INSNS_7445 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5523 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5524 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5525 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5526 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5527 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5528 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5529 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5530 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5531 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5532 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5533 | a750fc0b | j_mayer | #define POWERPC_MSRM_7445 (0x000000000205FF77ULL) |
5534 | a750fc0b | j_mayer | #define POWERPC_MMU_7445 (POWERPC_MMU_SOFT_74xx)
|
5535 | a750fc0b | j_mayer | #define POWERPC_EXCP_7445 (POWERPC_EXCP_74xx)
|
5536 | a750fc0b | j_mayer | #define POWERPC_INPUT_7445 (PPC_FLAGS_INPUT_6xx)
|
5537 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7445 (bfd_mach_ppc_7400)
|
5538 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7445 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5539 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5540 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5541 | 4e777442 | j_mayer | #define check_pow_7445 check_pow_hid0_74xx
|
5542 | a750fc0b | j_mayer | |
5543 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5544 | a750fc0b | j_mayer | static void init_proc_7445 (CPUPPCState *env) |
5545 | a750fc0b | j_mayer | { |
5546 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5547 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5548 | a750fc0b | j_mayer | /* Time base */
|
5549 | a750fc0b | j_mayer | gen_tbl(env); |
5550 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5551 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5552 | a750fc0b | j_mayer | /* LDSTCR */
|
5553 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5554 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5555 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5556 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5557 | a750fc0b | j_mayer | 0x00000000);
|
5558 | a750fc0b | j_mayer | /* ICTRL */
|
5559 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5560 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5561 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5562 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5563 | a750fc0b | j_mayer | 0x00000000);
|
5564 | a750fc0b | j_mayer | /* MSSSR0 */
|
5565 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5566 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5567 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5568 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5569 | a750fc0b | j_mayer | 0x00000000);
|
5570 | a750fc0b | j_mayer | /* PMC */
|
5571 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5572 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5573 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5574 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5575 | a750fc0b | j_mayer | 0x00000000);
|
5576 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5577 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5578 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5579 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5580 | a750fc0b | j_mayer | 0x00000000);
|
5581 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5582 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5583 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5584 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5585 | a750fc0b | j_mayer | 0x00000000);
|
5586 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5587 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5588 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5589 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5590 | a750fc0b | j_mayer | 0x00000000);
|
5591 | a750fc0b | j_mayer | /* SPRGs */
|
5592 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5593 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5594 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5595 | a750fc0b | j_mayer | 0x00000000);
|
5596 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5597 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5598 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5599 | a750fc0b | j_mayer | 0x00000000);
|
5600 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5601 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5602 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5603 | a750fc0b | j_mayer | 0x00000000);
|
5604 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5605 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5606 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5607 | a750fc0b | j_mayer | 0x00000000);
|
5608 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5609 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5610 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5611 | a750fc0b | j_mayer | 0x00000000);
|
5612 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5613 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5614 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5615 | a750fc0b | j_mayer | 0x00000000);
|
5616 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5617 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5618 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5619 | a750fc0b | j_mayer | 0x00000000);
|
5620 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5621 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5622 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5623 | a750fc0b | j_mayer | 0x00000000);
|
5624 | a750fc0b | j_mayer | /* Memory management */
|
5625 | a750fc0b | j_mayer | gen_low_BATs(env); |
5626 | a750fc0b | j_mayer | gen_high_BATs(env); |
5627 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5628 | e1833e1f | j_mayer | init_excp_7450(env); |
5629 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5630 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5631 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5632 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5633 | a750fc0b | j_mayer | } |
5634 | a750fc0b | j_mayer | |
5635 | a750fc0b | j_mayer | /* PowerPC 7455 (aka G4) */
|
5636 | 082c6681 | j_mayer | #define POWERPC_INSNS_7455 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5637 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5638 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5639 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5640 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5641 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5642 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5643 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5644 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5645 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5646 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5647 | a750fc0b | j_mayer | #define POWERPC_MSRM_7455 (0x000000000205FF77ULL) |
5648 | a750fc0b | j_mayer | #define POWERPC_MMU_7455 (POWERPC_MMU_SOFT_74xx)
|
5649 | a750fc0b | j_mayer | #define POWERPC_EXCP_7455 (POWERPC_EXCP_74xx)
|
5650 | a750fc0b | j_mayer | #define POWERPC_INPUT_7455 (PPC_FLAGS_INPUT_6xx)
|
5651 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7455 (bfd_mach_ppc_7400)
|
5652 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7455 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5653 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5654 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5655 | 4e777442 | j_mayer | #define check_pow_7455 check_pow_hid0_74xx
|
5656 | a750fc0b | j_mayer | |
5657 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5658 | a750fc0b | j_mayer | static void init_proc_7455 (CPUPPCState *env) |
5659 | a750fc0b | j_mayer | { |
5660 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5661 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5662 | a750fc0b | j_mayer | /* Time base */
|
5663 | a750fc0b | j_mayer | gen_tbl(env); |
5664 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5665 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5666 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5667 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5668 | a750fc0b | j_mayer | /* LDSTCR */
|
5669 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5670 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5671 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5672 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5673 | a750fc0b | j_mayer | 0x00000000);
|
5674 | a750fc0b | j_mayer | /* ICTRL */
|
5675 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5676 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5677 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5678 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5679 | a750fc0b | j_mayer | 0x00000000);
|
5680 | a750fc0b | j_mayer | /* MSSSR0 */
|
5681 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5682 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5683 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5684 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5685 | a750fc0b | j_mayer | 0x00000000);
|
5686 | a750fc0b | j_mayer | /* PMC */
|
5687 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5688 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5689 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5690 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5691 | a750fc0b | j_mayer | 0x00000000);
|
5692 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5693 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5694 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5695 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5696 | a750fc0b | j_mayer | 0x00000000);
|
5697 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5698 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5699 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5700 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5701 | a750fc0b | j_mayer | 0x00000000);
|
5702 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5703 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5704 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5705 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5706 | a750fc0b | j_mayer | 0x00000000);
|
5707 | a750fc0b | j_mayer | /* SPRGs */
|
5708 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5709 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5710 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5711 | a750fc0b | j_mayer | 0x00000000);
|
5712 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5713 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5714 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5715 | a750fc0b | j_mayer | 0x00000000);
|
5716 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5717 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5718 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5719 | a750fc0b | j_mayer | 0x00000000);
|
5720 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5721 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5722 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5723 | a750fc0b | j_mayer | 0x00000000);
|
5724 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5725 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5726 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5727 | a750fc0b | j_mayer | 0x00000000);
|
5728 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5729 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5730 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5731 | a750fc0b | j_mayer | 0x00000000);
|
5732 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5733 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5734 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5735 | a750fc0b | j_mayer | 0x00000000);
|
5736 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5737 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5738 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5739 | a750fc0b | j_mayer | 0x00000000);
|
5740 | a750fc0b | j_mayer | /* Memory management */
|
5741 | a750fc0b | j_mayer | gen_low_BATs(env); |
5742 | a750fc0b | j_mayer | gen_high_BATs(env); |
5743 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5744 | e1833e1f | j_mayer | init_excp_7450(env); |
5745 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5746 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5747 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5748 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5749 | a750fc0b | j_mayer | } |
5750 | a750fc0b | j_mayer | |
5751 | 4e777442 | j_mayer | /* PowerPC 7457 (aka G4) */
|
5752 | 4e777442 | j_mayer | #define POWERPC_INSNS_7457 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5753 | 4e777442 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5754 | 4e777442 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5755 | 4e777442 | j_mayer | PPC_FLOAT_STFIWX | \ |
5756 | 4e777442 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5757 | 4e777442 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5758 | 4e777442 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5759 | 4e777442 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5760 | 4e777442 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5761 | 4e777442 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5762 | 4e777442 | j_mayer | PPC_ALTIVEC) |
5763 | 4e777442 | j_mayer | #define POWERPC_MSRM_7457 (0x000000000205FF77ULL) |
5764 | 4e777442 | j_mayer | #define POWERPC_MMU_7457 (POWERPC_MMU_SOFT_74xx)
|
5765 | 4e777442 | j_mayer | #define POWERPC_EXCP_7457 (POWERPC_EXCP_74xx)
|
5766 | 4e777442 | j_mayer | #define POWERPC_INPUT_7457 (PPC_FLAGS_INPUT_6xx)
|
5767 | 4e777442 | j_mayer | #define POWERPC_BFDM_7457 (bfd_mach_ppc_7400)
|
5768 | 4e777442 | j_mayer | #define POWERPC_FLAG_7457 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5769 | 4e777442 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5770 | 4e777442 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5771 | 4e777442 | j_mayer | #define check_pow_7457 check_pow_hid0_74xx
|
5772 | 4e777442 | j_mayer | |
5773 | 4e777442 | j_mayer | __attribute__ (( unused )) |
5774 | 4e777442 | j_mayer | static void init_proc_7457 (CPUPPCState *env) |
5775 | 4e777442 | j_mayer | { |
5776 | 4e777442 | j_mayer | gen_spr_ne_601(env); |
5777 | 4e777442 | j_mayer | gen_spr_7xx(env); |
5778 | 4e777442 | j_mayer | /* Time base */
|
5779 | 4e777442 | j_mayer | gen_tbl(env); |
5780 | 4e777442 | j_mayer | /* 74xx specific SPR */
|
5781 | 4e777442 | j_mayer | gen_spr_74xx(env); |
5782 | 4e777442 | j_mayer | /* Level 3 cache control */
|
5783 | 4e777442 | j_mayer | gen_l3_ctrl(env); |
5784 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5785 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5786 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5787 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5788 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5789 | 4e777442 | j_mayer | 0x00000000);
|
5790 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5791 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5792 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5793 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5794 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5795 | 4e777442 | j_mayer | 0x00000000);
|
5796 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5797 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5798 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5799 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5800 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5801 | 4e777442 | j_mayer | 0x00000000);
|
5802 | 4e777442 | j_mayer | /* L3OHCR */
|
5803 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5804 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5805 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5806 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5807 | 4e777442 | j_mayer | 0x00000000);
|
5808 | 4e777442 | j_mayer | /* LDSTCR */
|
5809 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5810 | 4e777442 | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5811 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5812 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5813 | 4e777442 | j_mayer | 0x00000000);
|
5814 | 4e777442 | j_mayer | /* ICTRL */
|
5815 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5816 | 4e777442 | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5817 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5818 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5819 | 4e777442 | j_mayer | 0x00000000);
|
5820 | 4e777442 | j_mayer | /* MSSSR0 */
|
5821 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5822 | 4e777442 | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5823 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5824 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5825 | 4e777442 | j_mayer | 0x00000000);
|
5826 | 4e777442 | j_mayer | /* PMC */
|
5827 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5828 | 4e777442 | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5829 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5830 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5831 | 4e777442 | j_mayer | 0x00000000);
|
5832 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5833 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5834 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5835 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5836 | 4e777442 | j_mayer | 0x00000000);
|
5837 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5838 | 4e777442 | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5839 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5840 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5841 | 4e777442 | j_mayer | 0x00000000);
|
5842 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5843 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5844 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5845 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5846 | 4e777442 | j_mayer | 0x00000000);
|
5847 | 4e777442 | j_mayer | /* SPRGs */
|
5848 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5849 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5850 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5851 | 4e777442 | j_mayer | 0x00000000);
|
5852 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5853 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5854 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5855 | 4e777442 | j_mayer | 0x00000000);
|
5856 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5857 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5858 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5859 | 4e777442 | j_mayer | 0x00000000);
|
5860 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5861 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5862 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5863 | 4e777442 | j_mayer | 0x00000000);
|
5864 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5865 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5866 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5867 | 4e777442 | j_mayer | 0x00000000);
|
5868 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5869 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5870 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5871 | 4e777442 | j_mayer | 0x00000000);
|
5872 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5873 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5874 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5875 | 4e777442 | j_mayer | 0x00000000);
|
5876 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5877 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5878 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5879 | 4e777442 | j_mayer | 0x00000000);
|
5880 | 4e777442 | j_mayer | /* Memory management */
|
5881 | 4e777442 | j_mayer | gen_low_BATs(env); |
5882 | 4e777442 | j_mayer | gen_high_BATs(env); |
5883 | 4e777442 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5884 | 4e777442 | j_mayer | init_excp_7450(env); |
5885 | 4e777442 | j_mayer | env->dcache_line_size = 32;
|
5886 | 4e777442 | j_mayer | env->icache_line_size = 32;
|
5887 | 4e777442 | j_mayer | /* Allocate hardware IRQ controller */
|
5888 | 4e777442 | j_mayer | ppc6xx_irq_init(env); |
5889 | 4e777442 | j_mayer | } |
5890 | 4e777442 | j_mayer | |
5891 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
5892 | a750fc0b | j_mayer | /* PowerPC 970 */
|
5893 | 082c6681 | j_mayer | #define POWERPC_INSNS_970 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5894 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5895 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5896 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5897 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5898 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5899 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5900 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5901 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5902 | a750fc0b | j_mayer | #define POWERPC_MSRM_970 (0x900000000204FF36ULL) |
5903 | 12de9a39 | j_mayer | #define POWERPC_MMU_970 (POWERPC_MMU_64B)
|
5904 | a750fc0b | j_mayer | //#define POWERPC_EXCP_970 (POWERPC_EXCP_970)
|
5905 | a750fc0b | j_mayer | #define POWERPC_INPUT_970 (PPC_FLAGS_INPUT_970)
|
5906 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970 (bfd_mach_ppc64)
|
5907 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5908 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5909 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5910 | a750fc0b | j_mayer | |
5911 | 417bf010 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
5912 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000080 |
5913 | 417bf010 | j_mayer | #else
|
5914 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000000 |
5915 | 417bf010 | j_mayer | #endif
|
5916 | 417bf010 | j_mayer | |
5917 | 2f462816 | j_mayer | static int check_pow_970 (CPUPPCState *env) |
5918 | 2f462816 | j_mayer | { |
5919 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
5920 | 2f462816 | j_mayer | return 1; |
5921 | 2f462816 | j_mayer | |
5922 | 2f462816 | j_mayer | return 0; |
5923 | 2f462816 | j_mayer | } |
5924 | 2f462816 | j_mayer | |
5925 | a750fc0b | j_mayer | static void init_proc_970 (CPUPPCState *env) |
5926 | a750fc0b | j_mayer | { |
5927 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5928 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5929 | a750fc0b | j_mayer | /* Time base */
|
5930 | a750fc0b | j_mayer | gen_tbl(env); |
5931 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5932 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5933 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5934 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5935 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
5936 | d63001d1 | j_mayer | 0x60000000);
|
5937 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5938 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5939 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5940 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5941 | a750fc0b | j_mayer | 0x00000000);
|
5942 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5943 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5944 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5945 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5946 | a750fc0b | j_mayer | 0x00000000);
|
5947 | e57448f1 | j_mayer | /* XXX : not implemented */
|
5948 | e57448f1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
5949 | e57448f1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5950 | e57448f1 | j_mayer | &spr_read_generic, &spr_write_generic, |
5951 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
5952 | bd928eba | j_mayer | /* XXX : not implemented */
|
5953 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5954 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5955 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5956 | bd928eba | j_mayer | 0x00000000);
|
5957 | a750fc0b | j_mayer | /* Memory management */
|
5958 | a750fc0b | j_mayer | /* XXX: not correct */
|
5959 | a750fc0b | j_mayer | gen_low_BATs(env); |
5960 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5961 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
5962 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5963 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
5964 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5965 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5966 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
5967 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5968 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5969 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5970 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
5971 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5972 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
5973 | 2adab7d6 | blueswir1 | 0x00000000);
|
5974 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5975 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
5976 | f2e63a42 | j_mayer | #endif
|
5977 | e1833e1f | j_mayer | init_excp_970(env); |
5978 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
5979 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
5980 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5981 | a750fc0b | j_mayer | ppc970_irq_init(env); |
5982 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
5983 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
5984 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
5985 | a750fc0b | j_mayer | } |
5986 | a750fc0b | j_mayer | |
5987 | a750fc0b | j_mayer | /* PowerPC 970FX (aka G5) */
|
5988 | 082c6681 | j_mayer | #define POWERPC_INSNS_970FX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5989 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5990 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5991 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5992 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5993 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5994 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5995 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5996 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5997 | a750fc0b | j_mayer | #define POWERPC_MSRM_970FX (0x800000000204FF36ULL) |
5998 | 12de9a39 | j_mayer | #define POWERPC_MMU_970FX (POWERPC_MMU_64B)
|
5999 | a750fc0b | j_mayer | #define POWERPC_EXCP_970FX (POWERPC_EXCP_970)
|
6000 | a750fc0b | j_mayer | #define POWERPC_INPUT_970FX (PPC_FLAGS_INPUT_970)
|
6001 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970FX (bfd_mach_ppc64)
|
6002 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970FX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6003 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6004 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6005 | a750fc0b | j_mayer | |
6006 | 2f462816 | j_mayer | static int check_pow_970FX (CPUPPCState *env) |
6007 | 2f462816 | j_mayer | { |
6008 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
6009 | 2f462816 | j_mayer | return 1; |
6010 | 2f462816 | j_mayer | |
6011 | 2f462816 | j_mayer | return 0; |
6012 | 2f462816 | j_mayer | } |
6013 | 2f462816 | j_mayer | |
6014 | a750fc0b | j_mayer | static void init_proc_970FX (CPUPPCState *env) |
6015 | a750fc0b | j_mayer | { |
6016 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6017 | a750fc0b | j_mayer | gen_spr_7xx(env); |
6018 | a750fc0b | j_mayer | /* Time base */
|
6019 | a750fc0b | j_mayer | gen_tbl(env); |
6020 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6021 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6022 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6023 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6024 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
6025 | d63001d1 | j_mayer | 0x60000000);
|
6026 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6027 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6028 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6029 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6030 | a750fc0b | j_mayer | 0x00000000);
|
6031 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6032 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6033 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6034 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6035 | a750fc0b | j_mayer | 0x00000000);
|
6036 | d63001d1 | j_mayer | /* XXX : not implemented */
|
6037 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6038 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6039 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6040 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6041 | bd928eba | j_mayer | /* XXX : not implemented */
|
6042 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6043 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6044 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6045 | bd928eba | j_mayer | 0x00000000);
|
6046 | a750fc0b | j_mayer | /* Memory management */
|
6047 | a750fc0b | j_mayer | /* XXX: not correct */
|
6048 | a750fc0b | j_mayer | gen_low_BATs(env); |
6049 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6050 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6051 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6052 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6053 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6054 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6055 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6056 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6057 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6058 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6059 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6060 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6061 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6062 | 2adab7d6 | blueswir1 | 0x00000000);
|
6063 | 4e98d8cf | blueswir1 | spr_register(env, SPR_CTRL, "SPR_CTRL",
|
6064 | 4e98d8cf | blueswir1 | SPR_NOACCESS, SPR_NOACCESS, |
6065 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6066 | 4e98d8cf | blueswir1 | 0x00000000);
|
6067 | 4e98d8cf | blueswir1 | spr_register(env, SPR_UCTRL, "SPR_UCTRL",
|
6068 | 4e98d8cf | blueswir1 | SPR_NOACCESS, SPR_NOACCESS, |
6069 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6070 | 4e98d8cf | blueswir1 | 0x00000000);
|
6071 | 4e98d8cf | blueswir1 | spr_register(env, SPR_VRSAVE, "SPR_VRSAVE",
|
6072 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6073 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6074 | 4e98d8cf | blueswir1 | 0x00000000);
|
6075 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6076 | 8eee0af9 | blueswir1 | env->slb_nr = 64;
|
6077 | f2e63a42 | j_mayer | #endif
|
6078 | e1833e1f | j_mayer | init_excp_970(env); |
6079 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6080 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6081 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6082 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6083 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6084 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6085 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6086 | a750fc0b | j_mayer | } |
6087 | a750fc0b | j_mayer | |
6088 | a750fc0b | j_mayer | /* PowerPC 970 GX */
|
6089 | 082c6681 | j_mayer | #define POWERPC_INSNS_970GX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6090 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6091 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6092 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6093 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6094 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6095 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6096 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6097 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6098 | a750fc0b | j_mayer | #define POWERPC_MSRM_970GX (0x800000000204FF36ULL) |
6099 | 12de9a39 | j_mayer | #define POWERPC_MMU_970GX (POWERPC_MMU_64B)
|
6100 | a750fc0b | j_mayer | #define POWERPC_EXCP_970GX (POWERPC_EXCP_970)
|
6101 | a750fc0b | j_mayer | #define POWERPC_INPUT_970GX (PPC_FLAGS_INPUT_970)
|
6102 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970GX (bfd_mach_ppc64)
|
6103 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970GX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6104 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6105 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6106 | a750fc0b | j_mayer | |
6107 | 2f462816 | j_mayer | static int check_pow_970GX (CPUPPCState *env) |
6108 | 2f462816 | j_mayer | { |
6109 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
6110 | 2f462816 | j_mayer | return 1; |
6111 | 2f462816 | j_mayer | |
6112 | 2f462816 | j_mayer | return 0; |
6113 | 2f462816 | j_mayer | } |
6114 | 2f462816 | j_mayer | |
6115 | a750fc0b | j_mayer | static void init_proc_970GX (CPUPPCState *env) |
6116 | a750fc0b | j_mayer | { |
6117 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6118 | a750fc0b | j_mayer | gen_spr_7xx(env); |
6119 | a750fc0b | j_mayer | /* Time base */
|
6120 | a750fc0b | j_mayer | gen_tbl(env); |
6121 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6122 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6123 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6124 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6125 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
6126 | d63001d1 | j_mayer | 0x60000000);
|
6127 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6128 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6129 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6130 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6131 | a750fc0b | j_mayer | 0x00000000);
|
6132 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6133 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6134 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6135 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6136 | a750fc0b | j_mayer | 0x00000000);
|
6137 | d63001d1 | j_mayer | /* XXX : not implemented */
|
6138 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6139 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6140 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6141 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6142 | bd928eba | j_mayer | /* XXX : not implemented */
|
6143 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6144 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6145 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6146 | bd928eba | j_mayer | 0x00000000);
|
6147 | a750fc0b | j_mayer | /* Memory management */
|
6148 | a750fc0b | j_mayer | /* XXX: not correct */
|
6149 | a750fc0b | j_mayer | gen_low_BATs(env); |
6150 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6151 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6152 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6153 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6154 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6155 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6156 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6157 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6158 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6159 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6160 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6161 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6162 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6163 | 2adab7d6 | blueswir1 | 0x00000000);
|
6164 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6165 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
6166 | f2e63a42 | j_mayer | #endif
|
6167 | e1833e1f | j_mayer | init_excp_970(env); |
6168 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6169 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6170 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6171 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6172 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6173 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6174 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6175 | a750fc0b | j_mayer | } |
6176 | a750fc0b | j_mayer | |
6177 | 2f462816 | j_mayer | /* PowerPC 970 MP */
|
6178 | 082c6681 | j_mayer | #define POWERPC_INSNS_970MP (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6179 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6180 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6181 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6182 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6183 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6184 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6185 | 2f462816 | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6186 | 2f462816 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6187 | 2f462816 | j_mayer | #define POWERPC_MSRM_970MP (0x900000000204FF36ULL) |
6188 | 2f462816 | j_mayer | #define POWERPC_MMU_970MP (POWERPC_MMU_64B)
|
6189 | 2f462816 | j_mayer | #define POWERPC_EXCP_970MP (POWERPC_EXCP_970)
|
6190 | 2f462816 | j_mayer | #define POWERPC_INPUT_970MP (PPC_FLAGS_INPUT_970)
|
6191 | 2f462816 | j_mayer | #define POWERPC_BFDM_970MP (bfd_mach_ppc64)
|
6192 | 2f462816 | j_mayer | #define POWERPC_FLAG_970MP (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6193 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6194 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6195 | 2f462816 | j_mayer | |
6196 | 2f462816 | j_mayer | static int check_pow_970MP (CPUPPCState *env) |
6197 | 2f462816 | j_mayer | { |
6198 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x01C00000) |
6199 | 2f462816 | j_mayer | return 1; |
6200 | 2f462816 | j_mayer | |
6201 | 2f462816 | j_mayer | return 0; |
6202 | 2f462816 | j_mayer | } |
6203 | 2f462816 | j_mayer | |
6204 | 2f462816 | j_mayer | static void init_proc_970MP (CPUPPCState *env) |
6205 | 2f462816 | j_mayer | { |
6206 | 2f462816 | j_mayer | gen_spr_ne_601(env); |
6207 | 2f462816 | j_mayer | gen_spr_7xx(env); |
6208 | 2f462816 | j_mayer | /* Time base */
|
6209 | 2f462816 | j_mayer | gen_tbl(env); |
6210 | 2f462816 | j_mayer | /* Hardware implementation registers */
|
6211 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6212 | 2f462816 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6213 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6214 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_clear, |
6215 | 2f462816 | j_mayer | 0x60000000);
|
6216 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6217 | 2f462816 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6218 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6219 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6220 | 2f462816 | j_mayer | 0x00000000);
|
6221 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6222 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6223 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6224 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6225 | 2f462816 | j_mayer | 0x00000000);
|
6226 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6227 | 2f462816 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6228 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6229 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6230 | 2f462816 | j_mayer | POWERPC970_HID5_INIT); |
6231 | bd928eba | j_mayer | /* XXX : not implemented */
|
6232 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6233 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6234 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6235 | bd928eba | j_mayer | 0x00000000);
|
6236 | 2f462816 | j_mayer | /* Memory management */
|
6237 | 2f462816 | j_mayer | /* XXX: not correct */
|
6238 | 2f462816 | j_mayer | gen_low_BATs(env); |
6239 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6240 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6241 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6242 | 2f462816 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6243 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6244 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6245 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6246 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6247 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6248 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6249 | 2f462816 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6250 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6251 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6252 | 2adab7d6 | blueswir1 | 0x00000000);
|
6253 | 2f462816 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6254 | 2f462816 | j_mayer | env->slb_nr = 32;
|
6255 | 2f462816 | j_mayer | #endif
|
6256 | 2f462816 | j_mayer | init_excp_970(env); |
6257 | 2f462816 | j_mayer | env->dcache_line_size = 128;
|
6258 | 2f462816 | j_mayer | env->icache_line_size = 128;
|
6259 | 2f462816 | j_mayer | /* Allocate hardware IRQ controller */
|
6260 | 2f462816 | j_mayer | ppc970_irq_init(env); |
6261 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6262 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6263 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6264 | 2f462816 | j_mayer | } |
6265 | 2f462816 | j_mayer | |
6266 | a750fc0b | j_mayer | /* PowerPC 620 */
|
6267 | 082c6681 | j_mayer | #define POWERPC_INSNS_620 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6268 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6269 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6270 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6271 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
6272 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6273 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6274 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
6275 | a750fc0b | j_mayer | PPC_64B | PPC_SLBI) |
6276 | add78955 | j_mayer | #define POWERPC_MSRM_620 (0x800000000005FF77ULL) |
6277 | add78955 | j_mayer | //#define POWERPC_MMU_620 (POWERPC_MMU_620)
|
6278 | a750fc0b | j_mayer | #define POWERPC_EXCP_620 (POWERPC_EXCP_970)
|
6279 | faadf50e | j_mayer | #define POWERPC_INPUT_620 (PPC_FLAGS_INPUT_6xx)
|
6280 | 237c0af0 | j_mayer | #define POWERPC_BFDM_620 (bfd_mach_ppc64)
|
6281 | 4018bae9 | j_mayer | #define POWERPC_FLAG_620 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
6282 | add78955 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
6283 | 2f462816 | j_mayer | #define check_pow_620 check_pow_nocheck /* Check this */ |
6284 | a750fc0b | j_mayer | |
6285 | 578bb252 | j_mayer | __attribute__ (( unused )) |
6286 | a750fc0b | j_mayer | static void init_proc_620 (CPUPPCState *env) |
6287 | a750fc0b | j_mayer | { |
6288 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6289 | a750fc0b | j_mayer | gen_spr_620(env); |
6290 | a750fc0b | j_mayer | /* Time base */
|
6291 | a750fc0b | j_mayer | gen_tbl(env); |
6292 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6293 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6294 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6295 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6296 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6297 | a750fc0b | j_mayer | 0x00000000);
|
6298 | a750fc0b | j_mayer | /* Memory management */
|
6299 | a750fc0b | j_mayer | gen_low_BATs(env); |
6300 | e1833e1f | j_mayer | init_excp_620(env); |
6301 | d63001d1 | j_mayer | env->dcache_line_size = 64;
|
6302 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
6303 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
6304 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
6305 | a750fc0b | j_mayer | } |
6306 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
6307 | a750fc0b | j_mayer | |
6308 | a750fc0b | j_mayer | /* Default 32 bits PowerPC target will be 604 */
|
6309 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC32 CPU_POWERPC_604
|
6310 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC32 POWERPC_INSNS_604
|
6311 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC32 POWERPC_MSRM_604
|
6312 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC32 POWERPC_MMU_604
|
6313 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC32 POWERPC_EXCP_604
|
6314 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC32 POWERPC_INPUT_604
|
6315 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC32 POWERPC_BFDM_604
|
6316 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC32 POWERPC_FLAG_604
|
6317 | 2f462816 | j_mayer | #define check_pow_PPC32 check_pow_604
|
6318 | 2f462816 | j_mayer | #define init_proc_PPC32 init_proc_604
|
6319 | a750fc0b | j_mayer | |
6320 | a750fc0b | j_mayer | /* Default 64 bits PowerPC target will be 970 FX */
|
6321 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC64 CPU_POWERPC_970FX
|
6322 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC64 POWERPC_INSNS_970FX
|
6323 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC64 POWERPC_MSRM_970FX
|
6324 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC64 POWERPC_MMU_970FX
|
6325 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC64 POWERPC_EXCP_970FX
|
6326 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC64 POWERPC_INPUT_970FX
|
6327 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC64 POWERPC_BFDM_970FX
|
6328 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC64 POWERPC_FLAG_970FX
|
6329 | 2f462816 | j_mayer | #define check_pow_PPC64 check_pow_970FX
|
6330 | 2f462816 | j_mayer | #define init_proc_PPC64 init_proc_970FX
|
6331 | a750fc0b | j_mayer | |
6332 | a750fc0b | j_mayer | /* Default PowerPC target will be PowerPC 32 */
|
6333 | a750fc0b | j_mayer | #if defined (TARGET_PPC64) && 0 // XXX: TODO |
6334 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64
|
6335 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64
|
6336 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64
|
6337 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64
|
6338 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64
|
6339 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC64
|
6340 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC64
|
6341 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC64
|
6342 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC64
|
6343 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC64
|
6344 | a750fc0b | j_mayer | #else
|
6345 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32
|
6346 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32
|
6347 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32
|
6348 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32
|
6349 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
|
6350 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC32
|
6351 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC32
|
6352 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC32
|
6353 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC32
|
6354 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC32
|
6355 | a750fc0b | j_mayer | #endif
|
6356 | a750fc0b | j_mayer | |
6357 | a750fc0b | j_mayer | /*****************************************************************************/
|
6358 | a750fc0b | j_mayer | /* PVR definitions for most known PowerPC */
|
6359 | a750fc0b | j_mayer | enum {
|
6360 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
6361 | a750fc0b | j_mayer | /* Generic PowerPC 401 */
|
6362 | 80d11f44 | j_mayer | #define CPU_POWERPC_401 CPU_POWERPC_401G2
|
6363 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
6364 | 80d11f44 | j_mayer | CPU_POWERPC_401A1 = 0x00210000,
|
6365 | 80d11f44 | j_mayer | CPU_POWERPC_401B2 = 0x00220000,
|
6366 | a750fc0b | j_mayer | #if 0
|
6367 | 80d11f44 | j_mayer | CPU_POWERPC_401B3 = xxx,
|
6368 | a750fc0b | j_mayer | #endif
|
6369 | 80d11f44 | j_mayer | CPU_POWERPC_401C2 = 0x00230000,
|
6370 | 80d11f44 | j_mayer | CPU_POWERPC_401D2 = 0x00240000,
|
6371 | 80d11f44 | j_mayer | CPU_POWERPC_401E2 = 0x00250000,
|
6372 | 80d11f44 | j_mayer | CPU_POWERPC_401F2 = 0x00260000,
|
6373 | 80d11f44 | j_mayer | CPU_POWERPC_401G2 = 0x00270000,
|
6374 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
6375 | a750fc0b | j_mayer | #if 0
|
6376 | 80d11f44 | j_mayer | CPU_POWERPC_401GF = xxx,
|
6377 | a750fc0b | j_mayer | #endif
|
6378 | 80d11f44 | j_mayer | #define CPU_POWERPC_IOP480 CPU_POWERPC_401B2
|
6379 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
6380 | 80d11f44 | j_mayer | CPU_POWERPC_COBRA = 0x10100000, /* XXX: 405 ? */ |
6381 | a750fc0b | j_mayer | #if 0
|
6382 | 80d11f44 | j_mayer | CPU_POWERPC_XIPCHIP = xxx,
|
6383 | a750fc0b | j_mayer | #endif
|
6384 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
6385 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
6386 | 80d11f44 | j_mayer | #define CPU_POWERPC_403 CPU_POWERPC_403GC
|
6387 | a750fc0b | j_mayer | /* PowerPC 403 microcontrollers */
|
6388 | 80d11f44 | j_mayer | CPU_POWERPC_403GA = 0x00200011,
|
6389 | 80d11f44 | j_mayer | CPU_POWERPC_403GB = 0x00200100,
|
6390 | 80d11f44 | j_mayer | CPU_POWERPC_403GC = 0x00200200,
|
6391 | 80d11f44 | j_mayer | CPU_POWERPC_403GCX = 0x00201400,
|
6392 | a750fc0b | j_mayer | #if 0
|
6393 | 80d11f44 | j_mayer | CPU_POWERPC_403GP = xxx,
|
6394 | a750fc0b | j_mayer | #endif
|
6395 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
6396 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
6397 | 80d11f44 | j_mayer | #define CPU_POWERPC_405 CPU_POWERPC_405D4
|
6398 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
6399 | a750fc0b | j_mayer | #if 0
|
6400 | 80d11f44 | j_mayer | CPU_POWERPC_405A3 = xxx,
|
6401 | a750fc0b | j_mayer | #endif
|
6402 | a750fc0b | j_mayer | #if 0
|
6403 | 80d11f44 | j_mayer | CPU_POWERPC_405A4 = xxx,
|
6404 | a750fc0b | j_mayer | #endif
|
6405 | a750fc0b | j_mayer | #if 0
|
6406 | 80d11f44 | j_mayer | CPU_POWERPC_405B3 = xxx,
|
6407 | a750fc0b | j_mayer | #endif
|
6408 | a750fc0b | j_mayer | #if 0
|
6409 | 80d11f44 | j_mayer | CPU_POWERPC_405B4 = xxx,
|
6410 | a750fc0b | j_mayer | #endif
|
6411 | a750fc0b | j_mayer | #if 0
|
6412 | 80d11f44 | j_mayer | CPU_POWERPC_405C3 = xxx,
|
6413 | a750fc0b | j_mayer | #endif
|
6414 | a750fc0b | j_mayer | #if 0
|
6415 | 80d11f44 | j_mayer | CPU_POWERPC_405C4 = xxx,
|
6416 | a750fc0b | j_mayer | #endif
|
6417 | 80d11f44 | j_mayer | CPU_POWERPC_405D2 = 0x20010000,
|
6418 | a750fc0b | j_mayer | #if 0
|
6419 | 80d11f44 | j_mayer | CPU_POWERPC_405D3 = xxx,
|
6420 | a750fc0b | j_mayer | #endif
|
6421 | 80d11f44 | j_mayer | CPU_POWERPC_405D4 = 0x41810000,
|
6422 | a750fc0b | j_mayer | #if 0
|
6423 | 80d11f44 | j_mayer | CPU_POWERPC_405D5 = xxx,
|
6424 | a750fc0b | j_mayer | #endif
|
6425 | a750fc0b | j_mayer | #if 0
|
6426 | 80d11f44 | j_mayer | CPU_POWERPC_405E4 = xxx,
|
6427 | a750fc0b | j_mayer | #endif
|
6428 | a750fc0b | j_mayer | #if 0
|
6429 | 80d11f44 | j_mayer | CPU_POWERPC_405F4 = xxx,
|
6430 | a750fc0b | j_mayer | #endif
|
6431 | a750fc0b | j_mayer | #if 0
|
6432 | 80d11f44 | j_mayer | CPU_POWERPC_405F5 = xxx,
|
6433 | a750fc0b | j_mayer | #endif
|
6434 | a750fc0b | j_mayer | #if 0
|
6435 | 80d11f44 | j_mayer | CPU_POWERPC_405F6 = xxx,
|
6436 | a750fc0b | j_mayer | #endif
|
6437 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
6438 | a750fc0b | j_mayer | /* XXX: missing 0x200108a0 */
|
6439 | 80d11f44 | j_mayer | #define CPU_POWERPC_405CR CPU_POWERPC_405CRc
|
6440 | 80d11f44 | j_mayer | CPU_POWERPC_405CRa = 0x40110041,
|
6441 | 80d11f44 | j_mayer | CPU_POWERPC_405CRb = 0x401100C5,
|
6442 | 80d11f44 | j_mayer | CPU_POWERPC_405CRc = 0x40110145,
|
6443 | 80d11f44 | j_mayer | CPU_POWERPC_405EP = 0x51210950,
|
6444 | a750fc0b | j_mayer | #if 0
|
6445 | 80d11f44 | j_mayer | CPU_POWERPC_405EXr = xxx,
|
6446 | a750fc0b | j_mayer | #endif
|
6447 | 80d11f44 | j_mayer | CPU_POWERPC_405EZ = 0x41511460, /* 0x51210950 ? */ |
6448 | a750fc0b | j_mayer | #if 0
|
6449 | 80d11f44 | j_mayer | CPU_POWERPC_405FX = xxx,
|
6450 | 80d11f44 | j_mayer | #endif
|
6451 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GP CPU_POWERPC_405GPd
|
6452 | 80d11f44 | j_mayer | CPU_POWERPC_405GPa = 0x40110000,
|
6453 | 80d11f44 | j_mayer | CPU_POWERPC_405GPb = 0x40110040,
|
6454 | 80d11f44 | j_mayer | CPU_POWERPC_405GPc = 0x40110082,
|
6455 | 80d11f44 | j_mayer | CPU_POWERPC_405GPd = 0x401100C4,
|
6456 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GPe CPU_POWERPC_405CRc
|
6457 | 80d11f44 | j_mayer | CPU_POWERPC_405GPR = 0x50910951,
|
6458 | a750fc0b | j_mayer | #if 0
|
6459 | 80d11f44 | j_mayer | CPU_POWERPC_405H = xxx,
|
6460 | a750fc0b | j_mayer | #endif
|
6461 | a750fc0b | j_mayer | #if 0
|
6462 | 80d11f44 | j_mayer | CPU_POWERPC_405L = xxx,
|
6463 | a750fc0b | j_mayer | #endif
|
6464 | 80d11f44 | j_mayer | CPU_POWERPC_405LP = 0x41F10000,
|
6465 | a750fc0b | j_mayer | #if 0
|
6466 | 80d11f44 | j_mayer | CPU_POWERPC_405PM = xxx,
|
6467 | a750fc0b | j_mayer | #endif
|
6468 | a750fc0b | j_mayer | #if 0
|
6469 | 80d11f44 | j_mayer | CPU_POWERPC_405PS = xxx,
|
6470 | a750fc0b | j_mayer | #endif
|
6471 | a750fc0b | j_mayer | #if 0
|
6472 | 80d11f44 | j_mayer | CPU_POWERPC_405S = xxx,
|
6473 | a750fc0b | j_mayer | #endif
|
6474 | a750fc0b | j_mayer | /* IBM network processors */
|
6475 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H = 0x414100C0,
|
6476 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H2 = 0x41410140,
|
6477 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405L = 0x416100C0,
|
6478 | 80d11f44 | j_mayer | CPU_POWERPC_NPE4GS3 = 0x40B10000,
|
6479 | a750fc0b | j_mayer | #if 0
|
6480 | 80d11f44 | j_mayer | CPU_POWERPC_NPCxx1 = xxx,
|
6481 | a750fc0b | j_mayer | #endif
|
6482 | a750fc0b | j_mayer | #if 0
|
6483 | 80d11f44 | j_mayer | CPU_POWERPC_NPR161 = xxx,
|
6484 | a750fc0b | j_mayer | #endif
|
6485 | a750fc0b | j_mayer | #if 0
|
6486 | 80d11f44 | j_mayer | CPU_POWERPC_LC77700 = xxx,
|
6487 | a750fc0b | j_mayer | #endif
|
6488 | a750fc0b | j_mayer | /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
|
6489 | a750fc0b | j_mayer | #if 0
|
6490 | 80d11f44 | j_mayer | CPU_POWERPC_STB01000 = xxx,
|
6491 | a750fc0b | j_mayer | #endif
|
6492 | a750fc0b | j_mayer | #if 0
|
6493 | 80d11f44 | j_mayer | CPU_POWERPC_STB01010 = xxx,
|
6494 | a750fc0b | j_mayer | #endif
|
6495 | a750fc0b | j_mayer | #if 0
|
6496 | 80d11f44 | j_mayer | CPU_POWERPC_STB0210 = xxx, /* 401B3 */
|
6497 | a750fc0b | j_mayer | #endif
|
6498 | 80d11f44 | j_mayer | CPU_POWERPC_STB03 = 0x40310000, /* 0x40130000 ? */ |
6499 | a750fc0b | j_mayer | #if 0
|
6500 | 80d11f44 | j_mayer | CPU_POWERPC_STB043 = xxx,
|
6501 | a750fc0b | j_mayer | #endif
|
6502 | a750fc0b | j_mayer | #if 0
|
6503 | 80d11f44 | j_mayer | CPU_POWERPC_STB045 = xxx,
|
6504 | a750fc0b | j_mayer | #endif
|
6505 | 80d11f44 | j_mayer | CPU_POWERPC_STB04 = 0x41810000,
|
6506 | 80d11f44 | j_mayer | CPU_POWERPC_STB25 = 0x51510950,
|
6507 | a750fc0b | j_mayer | #if 0
|
6508 | 80d11f44 | j_mayer | CPU_POWERPC_STB130 = xxx,
|
6509 | a750fc0b | j_mayer | #endif
|
6510 | a750fc0b | j_mayer | /* Xilinx cores */
|
6511 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP4 = 0x20010820,
|
6512 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP7 CPU_POWERPC_X2VP4
|
6513 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP20 = 0x20010860,
|
6514 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP50 CPU_POWERPC_X2VP20
|
6515 | a750fc0b | j_mayer | #if 0
|
6516 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10310 = xxx,
|
6517 | a750fc0b | j_mayer | #endif
|
6518 | a750fc0b | j_mayer | #if 0
|
6519 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10311 = xxx,
|
6520 | a750fc0b | j_mayer | #endif
|
6521 | a750fc0b | j_mayer | #if 0
|
6522 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10320 = xxx,
|
6523 | a750fc0b | j_mayer | #endif
|
6524 | a750fc0b | j_mayer | #if 0
|
6525 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10321 = xxx,
|
6526 | a750fc0b | j_mayer | #endif
|
6527 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
6528 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
6529 | 80d11f44 | j_mayer | #define CPU_POWERPC_440 CPU_POWERPC_440GXf
|
6530 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
6531 | a750fc0b | j_mayer | #if 0
|
6532 | 80d11f44 | j_mayer | CPU_POWERPC_440A4 = xxx,
|
6533 | a750fc0b | j_mayer | #endif
|
6534 | a750fc0b | j_mayer | #if 0
|
6535 | 80d11f44 | j_mayer | CPU_POWERPC_440A5 = xxx,
|
6536 | a750fc0b | j_mayer | #endif
|
6537 | a750fc0b | j_mayer | #if 0
|
6538 | 80d11f44 | j_mayer | CPU_POWERPC_440B4 = xxx,
|
6539 | a750fc0b | j_mayer | #endif
|
6540 | a750fc0b | j_mayer | #if 0
|
6541 | 80d11f44 | j_mayer | CPU_POWERPC_440F5 = xxx,
|
6542 | a750fc0b | j_mayer | #endif
|
6543 | a750fc0b | j_mayer | #if 0
|
6544 | 80d11f44 | j_mayer | CPU_POWERPC_440G5 = xxx,
|
6545 | a750fc0b | j_mayer | #endif
|
6546 | a750fc0b | j_mayer | #if 0
|
6547 | 80d11f44 | j_mayer | CPU_POWERPC_440H4 = xxx,
|
6548 | a750fc0b | j_mayer | #endif
|
6549 | a750fc0b | j_mayer | #if 0
|
6550 | 80d11f44 | j_mayer | CPU_POWERPC_440H6 = xxx,
|
6551 | a750fc0b | j_mayer | #endif
|
6552 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
6553 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EP CPU_POWERPC_440EPb
|
6554 | 80d11f44 | j_mayer | CPU_POWERPC_440EPa = 0x42221850,
|
6555 | 80d11f44 | j_mayer | CPU_POWERPC_440EPb = 0x422218D3,
|
6556 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GP CPU_POWERPC_440GPc
|
6557 | 80d11f44 | j_mayer | CPU_POWERPC_440GPb = 0x40120440,
|
6558 | 80d11f44 | j_mayer | CPU_POWERPC_440GPc = 0x40120481,
|
6559 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GR CPU_POWERPC_440GRa
|
6560 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GRa CPU_POWERPC_440EPb
|
6561 | 80d11f44 | j_mayer | CPU_POWERPC_440GRX = 0x200008D0,
|
6562 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EPX CPU_POWERPC_440GRX
|
6563 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GX CPU_POWERPC_440GXf
|
6564 | 80d11f44 | j_mayer | CPU_POWERPC_440GXa = 0x51B21850,
|
6565 | 80d11f44 | j_mayer | CPU_POWERPC_440GXb = 0x51B21851,
|
6566 | 80d11f44 | j_mayer | CPU_POWERPC_440GXc = 0x51B21892,
|
6567 | 80d11f44 | j_mayer | CPU_POWERPC_440GXf = 0x51B21894,
|
6568 | a750fc0b | j_mayer | #if 0
|
6569 | 80d11f44 | j_mayer | CPU_POWERPC_440S = xxx,
|
6570 | a750fc0b | j_mayer | #endif
|
6571 | 80d11f44 | j_mayer | CPU_POWERPC_440SP = 0x53221850,
|
6572 | 80d11f44 | j_mayer | CPU_POWERPC_440SP2 = 0x53221891,
|
6573 | 80d11f44 | j_mayer | CPU_POWERPC_440SPE = 0x53421890,
|
6574 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
6575 | a750fc0b | j_mayer | #if 0
|
6576 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
6577 | 80d11f44 | j_mayer | #define CPU_POWERPC_464 CPU_POWERPC_464H90
|
6578 | a750fc0b | j_mayer | #endif
|
6579 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
6580 | a750fc0b | j_mayer | #if 0
|
6581 | 80d11f44 | j_mayer | CPU_POWERPC_464H90 = xxx,
|
6582 | a750fc0b | j_mayer | #endif
|
6583 | a750fc0b | j_mayer | #if 0
|
6584 | 80d11f44 | j_mayer | CPU_POWERPC_464H90FP = xxx,
|
6585 | a750fc0b | j_mayer | #endif
|
6586 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
6587 | c3e36823 | j_mayer | /* PowerPC MPC 5xx cores (aka RCPU) */
|
6588 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5xx = 0x00020020,
|
6589 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT560 CPU_POWERPC_MPC5xx
|
6590 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC509 CPU_POWERPC_MPC5xx
|
6591 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC533 CPU_POWERPC_MPC5xx
|
6592 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC534 CPU_POWERPC_MPC5xx
|
6593 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC555 CPU_POWERPC_MPC5xx
|
6594 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC556 CPU_POWERPC_MPC5xx
|
6595 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC560 CPU_POWERPC_MPC5xx
|
6596 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC561 CPU_POWERPC_MPC5xx
|
6597 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC562 CPU_POWERPC_MPC5xx
|
6598 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC563 CPU_POWERPC_MPC5xx
|
6599 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC564 CPU_POWERPC_MPC5xx
|
6600 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC565 CPU_POWERPC_MPC5xx
|
6601 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC566 CPU_POWERPC_MPC5xx
|
6602 | c3e36823 | j_mayer | /* PowerPC MPC 8xx cores (aka PowerQUICC) */
|
6603 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8xx = 0x00500000,
|
6604 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT823 CPU_POWERPC_MPC8xx
|
6605 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC821 CPU_POWERPC_MPC8xx
|
6606 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC823 CPU_POWERPC_MPC8xx
|
6607 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC850 CPU_POWERPC_MPC8xx
|
6608 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC852T CPU_POWERPC_MPC8xx
|
6609 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC855T CPU_POWERPC_MPC8xx
|
6610 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC857 CPU_POWERPC_MPC8xx
|
6611 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC859 CPU_POWERPC_MPC8xx
|
6612 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC860 CPU_POWERPC_MPC8xx
|
6613 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC862 CPU_POWERPC_MPC8xx
|
6614 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC866 CPU_POWERPC_MPC8xx
|
6615 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC870 CPU_POWERPC_MPC8xx
|
6616 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC875 CPU_POWERPC_MPC8xx
|
6617 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC880 CPU_POWERPC_MPC8xx
|
6618 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC885 CPU_POWERPC_MPC8xx
|
6619 | c3e36823 | j_mayer | /* G2 cores (aka PowerQUICC-II) */
|
6620 | 80d11f44 | j_mayer | CPU_POWERPC_G2 = 0x00810011,
|
6621 | 80d11f44 | j_mayer | CPU_POWERPC_G2H4 = 0x80811010,
|
6622 | 80d11f44 | j_mayer | CPU_POWERPC_G2gp = 0x80821010,
|
6623 | 80d11f44 | j_mayer | CPU_POWERPC_G2ls = 0x90810010,
|
6624 | 80d11f44 | j_mayer | CPU_POWERPC_MPC603 = 0x00810100,
|
6625 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP3 = 0x00810101,
|
6626 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP4 = 0x80811014,
|
6627 | c3e36823 | j_mayer | /* G2_LE core (aka PowerQUICC-II) */
|
6628 | 80d11f44 | j_mayer | CPU_POWERPC_G2LE = 0x80820010,
|
6629 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp = 0x80822010,
|
6630 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEls = 0xA0822010,
|
6631 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp1 = 0x80822011,
|
6632 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp3 = 0x80822013,
|
6633 | 80d11f44 | j_mayer | /* MPC52xx microcontrollers */
|
6634 | c3e36823 | j_mayer | /* XXX: MPC 5121 ? */
|
6635 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC52xx CPU_POWERPC_MPC5200
|
6636 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200 CPU_POWERPC_MPC5200_v12
|
6637 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v10 CPU_POWERPC_G2LEgp1
|
6638 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v11 CPU_POWERPC_G2LEgp1
|
6639 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v12 CPU_POWERPC_G2LEgp1
|
6640 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B CPU_POWERPC_MPC5200B_v21
|
6641 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v20 CPU_POWERPC_G2LEgp1
|
6642 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v21 CPU_POWERPC_G2LEgp1
|
6643 | 80d11f44 | j_mayer | /* MPC82xx microcontrollers */
|
6644 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC82xx CPU_POWERPC_MPC8280
|
6645 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8240 CPU_POWERPC_MPC603
|
6646 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8241 CPU_POWERPC_G2_HIP4
|
6647 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8245 CPU_POWERPC_G2_HIP4
|
6648 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8247 CPU_POWERPC_G2LEgp3
|
6649 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8248 CPU_POWERPC_G2LEgp3
|
6650 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250 CPU_POWERPC_MPC8250_HiP4
|
6651 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP3 CPU_POWERPC_G2_HIP3
|
6652 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP4 CPU_POWERPC_G2_HIP4
|
6653 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255 CPU_POWERPC_MPC8255_HiP4
|
6654 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP3 CPU_POWERPC_G2_HIP3
|
6655 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP4 CPU_POWERPC_G2_HIP4
|
6656 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260 CPU_POWERPC_MPC8260_HiP4
|
6657 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP3 CPU_POWERPC_G2_HIP3
|
6658 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP4 CPU_POWERPC_G2_HIP4
|
6659 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264 CPU_POWERPC_MPC8264_HiP4
|
6660 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP3 CPU_POWERPC_G2_HIP3
|
6661 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP4 CPU_POWERPC_G2_HIP4
|
6662 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265 CPU_POWERPC_MPC8265_HiP4
|
6663 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP3 CPU_POWERPC_G2_HIP3
|
6664 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP4 CPU_POWERPC_G2_HIP4
|
6665 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266 CPU_POWERPC_MPC8266_HiP4
|
6666 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP3 CPU_POWERPC_G2_HIP3
|
6667 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP4 CPU_POWERPC_G2_HIP4
|
6668 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8270 CPU_POWERPC_G2LEgp3
|
6669 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8271 CPU_POWERPC_G2LEgp3
|
6670 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8272 CPU_POWERPC_G2LEgp3
|
6671 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8275 CPU_POWERPC_G2LEgp3
|
6672 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8280 CPU_POWERPC_G2LEgp3
|
6673 | a750fc0b | j_mayer | /* e200 family */
|
6674 | 80d11f44 | j_mayer | /* e200 cores */
|
6675 | 80d11f44 | j_mayer | #define CPU_POWERPC_e200 CPU_POWERPC_e200z6
|
6676 | a750fc0b | j_mayer | #if 0
|
6677 | 80d11f44 | j_mayer | CPU_POWERPC_e200z0 = xxx,
|
6678 | a750fc0b | j_mayer | #endif
|
6679 | a750fc0b | j_mayer | #if 0
|
6680 | 80d11f44 | j_mayer | CPU_POWERPC_e200z1 = xxx,
|
6681 | c3e36823 | j_mayer | #endif
|
6682 | c3e36823 | j_mayer | #if 0 /* ? */
|
6683 | 80d11f44 | j_mayer | CPU_POWERPC_e200z3 = 0x81120000,
|
6684 | 80d11f44 | j_mayer | #endif
|
6685 | 80d11f44 | j_mayer | CPU_POWERPC_e200z5 = 0x81000000,
|
6686 | 80d11f44 | j_mayer | CPU_POWERPC_e200z6 = 0x81120000,
|
6687 | 80d11f44 | j_mayer | /* MPC55xx microcontrollers */
|
6688 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC55xx CPU_POWERPC_MPC5567
|
6689 | 80d11f44 | j_mayer | #if 0
|
6690 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E CPU_POWERPC_MPC5514E_v1
|
6691 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v0 CPU_POWERPC_e200z0
|
6692 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v1 CPU_POWERPC_e200z1
|
6693 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G CPU_POWERPC_MPC5514G_v1
|
6694 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v0 CPU_POWERPC_e200z0
|
6695 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v1 CPU_POWERPC_e200z1
|
6696 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5515S CPU_POWERPC_e200z1
|
6697 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E CPU_POWERPC_MPC5516E_v1
|
6698 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v0 CPU_POWERPC_e200z0
|
6699 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v1 CPU_POWERPC_e200z1
|
6700 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G CPU_POWERPC_MPC5516G_v1
|
6701 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v0 CPU_POWERPC_e200z0
|
6702 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v1 CPU_POWERPC_e200z1
|
6703 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516S CPU_POWERPC_e200z1
|
6704 | 80d11f44 | j_mayer | #endif
|
6705 | 80d11f44 | j_mayer | #if 0
|
6706 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5533 CPU_POWERPC_e200z3
|
6707 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5534 CPU_POWERPC_e200z3
|
6708 | 80d11f44 | j_mayer | #endif
|
6709 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5553 CPU_POWERPC_e200z6
|
6710 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5554 CPU_POWERPC_e200z6
|
6711 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5561 CPU_POWERPC_e200z6
|
6712 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5565 CPU_POWERPC_e200z6
|
6713 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5566 CPU_POWERPC_e200z6
|
6714 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5567 CPU_POWERPC_e200z6
|
6715 | a750fc0b | j_mayer | /* e300 family */
|
6716 | 80d11f44 | j_mayer | /* e300 cores */
|
6717 | 80d11f44 | j_mayer | #define CPU_POWERPC_e300 CPU_POWERPC_e300c3
|
6718 | 80d11f44 | j_mayer | CPU_POWERPC_e300c1 = 0x00830010,
|
6719 | 80d11f44 | j_mayer | CPU_POWERPC_e300c2 = 0x00840010,
|
6720 | 80d11f44 | j_mayer | CPU_POWERPC_e300c3 = 0x00850010,
|
6721 | 80d11f44 | j_mayer | CPU_POWERPC_e300c4 = 0x00860010,
|
6722 | 80d11f44 | j_mayer | /* MPC83xx microcontrollers */
|
6723 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8313 CPU_POWERPC_e300c3
|
6724 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8313E CPU_POWERPC_e300c3
|
6725 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8314 CPU_POWERPC_e300c3
|
6726 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8314E CPU_POWERPC_e300c3
|
6727 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8315 CPU_POWERPC_e300c3
|
6728 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8315E CPU_POWERPC_e300c3
|
6729 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8321 CPU_POWERPC_e300c2
|
6730 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8321E CPU_POWERPC_e300c2
|
6731 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8323 CPU_POWERPC_e300c2
|
6732 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8323E CPU_POWERPC_e300c2
|
6733 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8343A CPU_POWERPC_e300c1
|
6734 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8343EA CPU_POWERPC_e300c1
|
6735 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347A CPU_POWERPC_e300c1
|
6736 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347AT CPU_POWERPC_e300c1
|
6737 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347AP CPU_POWERPC_e300c1
|
6738 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EA CPU_POWERPC_e300c1
|
6739 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EAT CPU_POWERPC_e300c1
|
6740 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EAP CPU_POWERPC_e300c1
|
6741 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349 CPU_POWERPC_e300c1
|
6742 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349A CPU_POWERPC_e300c1
|
6743 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349E CPU_POWERPC_e300c1
|
6744 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349EA CPU_POWERPC_e300c1
|
6745 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8358E CPU_POWERPC_e300c1
|
6746 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8360E CPU_POWERPC_e300c1
|
6747 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8377 CPU_POWERPC_e300c4
|
6748 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8377E CPU_POWERPC_e300c4
|
6749 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8378 CPU_POWERPC_e300c4
|
6750 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8378E CPU_POWERPC_e300c4
|
6751 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8379 CPU_POWERPC_e300c4
|
6752 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8379E CPU_POWERPC_e300c4
|
6753 | a750fc0b | j_mayer | /* e500 family */
|
6754 | 80d11f44 | j_mayer | /* e500 cores */
|
6755 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500 CPU_POWERPC_e500v2_v22
|
6756 | bd5ea513 | aurel32 | #define CPU_POWERPC_e500v1 CPU_POWERPC_e500v1_v20
|
6757 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500v2 CPU_POWERPC_e500v2_v22
|
6758 | bd5ea513 | aurel32 | CPU_POWERPC_e500v1_v10 = 0x80200010,
|
6759 | bd5ea513 | aurel32 | CPU_POWERPC_e500v1_v20 = 0x80200020,
|
6760 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v10 = 0x80210010,
|
6761 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v11 = 0x80210011,
|
6762 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v20 = 0x80210020,
|
6763 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v21 = 0x80210021,
|
6764 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v22 = 0x80210022,
|
6765 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v30 = 0x80210030,
|
6766 | 80d11f44 | j_mayer | /* MPC85xx microcontrollers */
|
6767 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533 CPU_POWERPC_MPC8533_v11
|
6768 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v10 CPU_POWERPC_e500v2_v21
|
6769 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v11 CPU_POWERPC_e500v2_v22
|
6770 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E CPU_POWERPC_MPC8533E_v11
|
6771 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v10 CPU_POWERPC_e500v2_v21
|
6772 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v11 CPU_POWERPC_e500v2_v22
|
6773 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540 CPU_POWERPC_MPC8540_v21
|
6774 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v10 CPU_POWERPC_e500v1_v10
|
6775 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v20 CPU_POWERPC_e500v1_v20
|
6776 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v21 CPU_POWERPC_e500v1_v20
|
6777 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541 CPU_POWERPC_MPC8541_v11
|
6778 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541_v10 CPU_POWERPC_e500v1_v20
|
6779 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541_v11 CPU_POWERPC_e500v1_v20
|
6780 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E CPU_POWERPC_MPC8541E_v11
|
6781 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541E_v10 CPU_POWERPC_e500v1_v20
|
6782 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541E_v11 CPU_POWERPC_e500v1_v20
|
6783 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543 CPU_POWERPC_MPC8543_v21
|
6784 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v10 CPU_POWERPC_e500v2_v10
|
6785 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v11 CPU_POWERPC_e500v2_v11
|
6786 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v20 CPU_POWERPC_e500v2_v20
|
6787 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v21 CPU_POWERPC_e500v2_v21
|
6788 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E CPU_POWERPC_MPC8543E_v21
|
6789 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v10 CPU_POWERPC_e500v2_v10
|
6790 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v11 CPU_POWERPC_e500v2_v11
|
6791 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v20 CPU_POWERPC_e500v2_v20
|
6792 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v21 CPU_POWERPC_e500v2_v21
|
6793 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544 CPU_POWERPC_MPC8544_v11
|
6794 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v10 CPU_POWERPC_e500v2_v21
|
6795 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v11 CPU_POWERPC_e500v2_v22
|
6796 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v11 CPU_POWERPC_e500v2_v22
|
6797 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E CPU_POWERPC_MPC8544E_v11
|
6798 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v10 CPU_POWERPC_e500v2_v21
|
6799 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545 CPU_POWERPC_MPC8545_v21
|
6800 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v10 CPU_POWERPC_e500v2_v10
|
6801 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v20 CPU_POWERPC_e500v2_v20
|
6802 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v21 CPU_POWERPC_e500v2_v21
|
6803 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E CPU_POWERPC_MPC8545E_v21
|
6804 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v10 CPU_POWERPC_e500v2_v10
|
6805 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v20 CPU_POWERPC_e500v2_v20
|
6806 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v21 CPU_POWERPC_e500v2_v21
|
6807 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E CPU_POWERPC_MPC8545E_v21
|
6808 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v10 CPU_POWERPC_e500v2_v10
|
6809 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v20 CPU_POWERPC_e500v2_v20
|
6810 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v21 CPU_POWERPC_e500v2_v21
|
6811 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548 CPU_POWERPC_MPC8548_v21
|
6812 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v10 CPU_POWERPC_e500v2_v10
|
6813 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v11 CPU_POWERPC_e500v2_v11
|
6814 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v20 CPU_POWERPC_e500v2_v20
|
6815 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v21 CPU_POWERPC_e500v2_v21
|
6816 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E CPU_POWERPC_MPC8548E_v21
|
6817 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v10 CPU_POWERPC_e500v2_v10
|
6818 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v11 CPU_POWERPC_e500v2_v11
|
6819 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v20 CPU_POWERPC_e500v2_v20
|
6820 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v21 CPU_POWERPC_e500v2_v21
|
6821 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555 CPU_POWERPC_MPC8555_v11
|
6822 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v10 CPU_POWERPC_e500v2_v10
|
6823 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v11 CPU_POWERPC_e500v2_v11
|
6824 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E CPU_POWERPC_MPC8555E_v11
|
6825 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v10 CPU_POWERPC_e500v2_v10
|
6826 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v11 CPU_POWERPC_e500v2_v11
|
6827 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560 CPU_POWERPC_MPC8560_v21
|
6828 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v10 CPU_POWERPC_e500v2_v10
|
6829 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v20 CPU_POWERPC_e500v2_v20
|
6830 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v21 CPU_POWERPC_e500v2_v21
|
6831 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567 CPU_POWERPC_e500v2_v22
|
6832 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567E CPU_POWERPC_e500v2_v22
|
6833 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568 CPU_POWERPC_e500v2_v22
|
6834 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568E CPU_POWERPC_e500v2_v22
|
6835 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572 CPU_POWERPC_e500v2_v30
|
6836 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572E CPU_POWERPC_e500v2_v30
|
6837 | a750fc0b | j_mayer | /* e600 family */
|
6838 | 80d11f44 | j_mayer | /* e600 cores */
|
6839 | 80d11f44 | j_mayer | CPU_POWERPC_e600 = 0x80040010,
|
6840 | 80d11f44 | j_mayer | /* MPC86xx microcontrollers */
|
6841 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8610 CPU_POWERPC_e600
|
6842 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641 CPU_POWERPC_e600
|
6843 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641D CPU_POWERPC_e600
|
6844 | a750fc0b | j_mayer | /* PowerPC 6xx cores */
|
6845 | 80d11f44 | j_mayer | #define CPU_POWERPC_601 CPU_POWERPC_601_v2
|
6846 | 80d11f44 | j_mayer | CPU_POWERPC_601_v0 = 0x00010001,
|
6847 | 80d11f44 | j_mayer | CPU_POWERPC_601_v1 = 0x00010001,
|
6848 | bd928eba | j_mayer | #define CPU_POWERPC_601v CPU_POWERPC_601_v2
|
6849 | 80d11f44 | j_mayer | CPU_POWERPC_601_v2 = 0x00010002,
|
6850 | 80d11f44 | j_mayer | CPU_POWERPC_602 = 0x00050100,
|
6851 | 80d11f44 | j_mayer | CPU_POWERPC_603 = 0x00030100,
|
6852 | 80d11f44 | j_mayer | #define CPU_POWERPC_603E CPU_POWERPC_603E_v41
|
6853 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v11 = 0x00060101,
|
6854 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v12 = 0x00060102,
|
6855 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v13 = 0x00060103,
|
6856 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v14 = 0x00060104,
|
6857 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v22 = 0x00060202,
|
6858 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v3 = 0x00060300,
|
6859 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v4 = 0x00060400,
|
6860 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v41 = 0x00060401,
|
6861 | 80d11f44 | j_mayer | CPU_POWERPC_603E7t = 0x00071201,
|
6862 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v = 0x00070100,
|
6863 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v1 = 0x00070101,
|
6864 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v2 = 0x00070201,
|
6865 | 80d11f44 | j_mayer | CPU_POWERPC_603E7 = 0x00070200,
|
6866 | 80d11f44 | j_mayer | CPU_POWERPC_603P = 0x00070000,
|
6867 | 80d11f44 | j_mayer | #define CPU_POWERPC_603R CPU_POWERPC_603E7t
|
6868 | c3e36823 | j_mayer | /* XXX: missing 0x00040303 (604) */
|
6869 | 80d11f44 | j_mayer | CPU_POWERPC_604 = 0x00040103,
|
6870 | 80d11f44 | j_mayer | #define CPU_POWERPC_604E CPU_POWERPC_604E_v24
|
6871 | c3e36823 | j_mayer | /* XXX: missing 0x00091203 */
|
6872 | c3e36823 | j_mayer | /* XXX: missing 0x00092110 */
|
6873 | c3e36823 | j_mayer | /* XXX: missing 0x00092120 */
|
6874 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v10 = 0x00090100,
|
6875 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v22 = 0x00090202,
|
6876 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v24 = 0x00090204,
|
6877 | c3e36823 | j_mayer | /* XXX: missing 0x000a0100 */
|
6878 | c3e36823 | j_mayer | /* XXX: missing 0x00093102 */
|
6879 | 80d11f44 | j_mayer | CPU_POWERPC_604R = 0x000a0101,
|
6880 | a750fc0b | j_mayer | #if 0
|
6881 | 80d11f44 | j_mayer | CPU_POWERPC_604EV = xxx, /* XXX: same as 604R ? */
|
6882 | a750fc0b | j_mayer | #endif
|
6883 | a750fc0b | j_mayer | /* PowerPC 740/750 cores (aka G3) */
|
6884 | a750fc0b | j_mayer | /* XXX: missing 0x00084202 */
|
6885 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x0 CPU_POWERPC_7x0_v31
|
6886 | bd928eba | j_mayer | CPU_POWERPC_7x0_v10 = 0x00080100,
|
6887 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v20 = 0x00080200,
|
6888 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v21 = 0x00080201,
|
6889 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v22 = 0x00080202,
|
6890 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v30 = 0x00080300,
|
6891 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v31 = 0x00080301,
|
6892 | 80d11f44 | j_mayer | CPU_POWERPC_740E = 0x00080100,
|
6893 | bd928eba | j_mayer | CPU_POWERPC_750E = 0x00080200,
|
6894 | 80d11f44 | j_mayer | CPU_POWERPC_7x0P = 0x10080000,
|
6895 | a750fc0b | j_mayer | /* XXX: missing 0x00087010 (CL ?) */
|
6896 | bd928eba | j_mayer | #define CPU_POWERPC_750CL CPU_POWERPC_750CL_v20
|
6897 | bd928eba | j_mayer | CPU_POWERPC_750CL_v10 = 0x00087200,
|
6898 | bd928eba | j_mayer | CPU_POWERPC_750CL_v20 = 0x00087210, /* aka rev E */ |
6899 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CX CPU_POWERPC_750CX_v22
|
6900 | bd928eba | j_mayer | CPU_POWERPC_750CX_v10 = 0x00082100,
|
6901 | bd928eba | j_mayer | CPU_POWERPC_750CX_v20 = 0x00082200,
|
6902 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v21 = 0x00082201,
|
6903 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v22 = 0x00082202,
|
6904 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CXE CPU_POWERPC_750CXE_v31b
|
6905 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v21 = 0x00082211,
|
6906 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v22 = 0x00082212,
|
6907 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v23 = 0x00082213,
|
6908 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24 = 0x00082214,
|
6909 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24b = 0x00083214,
|
6910 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v30 = 0x00082310,
|
6911 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v31 = 0x00082311,
|
6912 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v31b = 0x00083311,
|
6913 | 80d11f44 | j_mayer | CPU_POWERPC_750CXR = 0x00083410,
|
6914 | bd928eba | j_mayer | CPU_POWERPC_750FL = 0x70000203,
|
6915 | 80d11f44 | j_mayer | #define CPU_POWERPC_750FX CPU_POWERPC_750FX_v23
|
6916 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v10 = 0x70000100,
|
6917 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v20 = 0x70000200,
|
6918 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v21 = 0x70000201,
|
6919 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v22 = 0x70000202,
|
6920 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v23 = 0x70000203,
|
6921 | 80d11f44 | j_mayer | CPU_POWERPC_750GL = 0x70020102,
|
6922 | 80d11f44 | j_mayer | #define CPU_POWERPC_750GX CPU_POWERPC_750GX_v12
|
6923 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v10 = 0x70020100,
|
6924 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v11 = 0x70020101,
|
6925 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v12 = 0x70020102,
|
6926 | 80d11f44 | j_mayer | #define CPU_POWERPC_750L CPU_POWERPC_750L_v32 /* Aka LoneStar */ |
6927 | bd928eba | j_mayer | CPU_POWERPC_750L_v20 = 0x00088200,
|
6928 | bd928eba | j_mayer | CPU_POWERPC_750L_v21 = 0x00088201,
|
6929 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v22 = 0x00088202,
|
6930 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v30 = 0x00088300,
|
6931 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v32 = 0x00088302,
|
6932 | a750fc0b | j_mayer | /* PowerPC 745/755 cores */
|
6933 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x5 CPU_POWERPC_7x5_v28
|
6934 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v10 = 0x00083100,
|
6935 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v11 = 0x00083101,
|
6936 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v20 = 0x00083200,
|
6937 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v21 = 0x00083201,
|
6938 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v22 = 0x00083202, /* aka D */ |
6939 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v23 = 0x00083203, /* aka E */ |
6940 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v24 = 0x00083204,
|
6941 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v25 = 0x00083205,
|
6942 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v26 = 0x00083206,
|
6943 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v27 = 0x00083207,
|
6944 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v28 = 0x00083208,
|
6945 | a750fc0b | j_mayer | #if 0
|
6946 | 80d11f44 | j_mayer | CPU_POWERPC_7x5P = xxx,
|
6947 | a750fc0b | j_mayer | #endif
|
6948 | a750fc0b | j_mayer | /* PowerPC 74xx cores (aka G4) */
|
6949 | a750fc0b | j_mayer | /* XXX: missing 0x000C1101 */
|
6950 | 80d11f44 | j_mayer | #define CPU_POWERPC_7400 CPU_POWERPC_7400_v29
|
6951 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v10 = 0x000C0100,
|
6952 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v11 = 0x000C0101,
|
6953 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v20 = 0x000C0200,
|
6954 | 4e777442 | j_mayer | CPU_POWERPC_7400_v21 = 0x000C0201,
|
6955 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v22 = 0x000C0202,
|
6956 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v26 = 0x000C0206,
|
6957 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v27 = 0x000C0207,
|
6958 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v28 = 0x000C0208,
|
6959 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v29 = 0x000C0209,
|
6960 | 80d11f44 | j_mayer | #define CPU_POWERPC_7410 CPU_POWERPC_7410_v14
|
6961 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v10 = 0x800C1100,
|
6962 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v11 = 0x800C1101,
|
6963 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v12 = 0x800C1102, /* aka C */ |
6964 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v13 = 0x800C1103, /* aka D */ |
6965 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v14 = 0x800C1104, /* aka E */ |
6966 | 80d11f44 | j_mayer | #define CPU_POWERPC_7448 CPU_POWERPC_7448_v21
|
6967 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v10 = 0x80040100,
|
6968 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v11 = 0x80040101,
|
6969 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v20 = 0x80040200,
|
6970 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v21 = 0x80040201,
|
6971 | 80d11f44 | j_mayer | #define CPU_POWERPC_7450 CPU_POWERPC_7450_v21
|
6972 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v10 = 0x80000100,
|
6973 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v11 = 0x80000101,
|
6974 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v12 = 0x80000102,
|
6975 | 4e777442 | j_mayer | CPU_POWERPC_7450_v20 = 0x80000200, /* aka A, B, C, D: 2.04 */ |
6976 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v21 = 0x80000201, /* aka E */ |
6977 | 4e777442 | j_mayer | #define CPU_POWERPC_74x1 CPU_POWERPC_74x1_v23
|
6978 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v23 = 0x80000203, /* aka G: 2.3 */ |
6979 | 4e777442 | j_mayer | /* XXX: this entry might be a bug in some documentation */
|
6980 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v210 = 0x80000210, /* aka G: 2.3 ? */ |
6981 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x5 CPU_POWERPC_74x5_v32
|
6982 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v10 = 0x80010100,
|
6983 | c3e36823 | j_mayer | /* XXX: missing 0x80010200 */
|
6984 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v21 = 0x80010201, /* aka C: 2.1 */ |
6985 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v32 = 0x80010302,
|
6986 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v33 = 0x80010303, /* aka F: 3.3 */ |
6987 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v34 = 0x80010304, /* aka G: 3.4 */ |
6988 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x7 CPU_POWERPC_74x7_v12
|
6989 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v10 = 0x80020100, /* aka A: 1.0 */ |
6990 | 082c6681 | j_mayer | CPU_POWERPC_74x7_v11 = 0x80020101, /* aka B: 1.1 */ |
6991 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v12 = 0x80020102, /* aka C: 1.2 */ |
6992 | 082c6681 | j_mayer | #define CPU_POWERPC_74x7A CPU_POWERPC_74x7A_v12
|
6993 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v10 = 0x80030100, /* aka A: 1.0 */ |
6994 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v11 = 0x80030101, /* aka B: 1.1 */ |
6995 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v12 = 0x80030102, /* aka C: 1.2 */ |
6996 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
6997 | 00af685f | j_mayer | #if defined(TARGET_PPC64)
|
6998 | 80d11f44 | j_mayer | CPU_POWERPC_620 = 0x00140000,
|
6999 | 80d11f44 | j_mayer | CPU_POWERPC_630 = 0x00400000,
|
7000 | 80d11f44 | j_mayer | CPU_POWERPC_631 = 0x00410104,
|
7001 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4 = 0x00350000,
|
7002 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4P = 0x00380000,
|
7003 | c3e36823 | j_mayer | /* XXX: missing 0x003A0201 */
|
7004 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5 = 0x003A0203,
|
7005 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GR CPU_POWERPC_POWER5
|
7006 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5P = 0x003B0000,
|
7007 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GS CPU_POWERPC_POWER5P
|
7008 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6 = 0x003E0000,
|
7009 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6_5 = 0x0F000001, /* POWER6 in POWER5 mode */ |
7010 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6A = 0x0F000002,
|
7011 | 80d11f44 | j_mayer | CPU_POWERPC_970 = 0x00390202,
|
7012 | 80d11f44 | j_mayer | #define CPU_POWERPC_970FX CPU_POWERPC_970FX_v31
|
7013 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v10 = 0x00391100,
|
7014 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v20 = 0x003C0200,
|
7015 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v21 = 0x003C0201,
|
7016 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v30 = 0x003C0300,
|
7017 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v31 = 0x003C0301,
|
7018 | 80d11f44 | j_mayer | CPU_POWERPC_970GX = 0x00450000,
|
7019 | 80d11f44 | j_mayer | #define CPU_POWERPC_970MP CPU_POWERPC_970MP_v11
|
7020 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v10 = 0x00440100,
|
7021 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v11 = 0x00440101,
|
7022 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL CPU_POWERPC_CELL_v32
|
7023 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v10 = 0x00700100,
|
7024 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v20 = 0x00700400,
|
7025 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v30 = 0x00700500,
|
7026 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v31 = 0x00700501,
|
7027 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL_v32 CPU_POWERPC_CELL_v31
|
7028 | 80d11f44 | j_mayer | CPU_POWERPC_RS64 = 0x00330000,
|
7029 | 80d11f44 | j_mayer | CPU_POWERPC_RS64II = 0x00340000,
|
7030 | 80d11f44 | j_mayer | CPU_POWERPC_RS64III = 0x00360000,
|
7031 | 80d11f44 | j_mayer | CPU_POWERPC_RS64IV = 0x00370000,
|
7032 | 00af685f | j_mayer | #endif /* defined(TARGET_PPC64) */ |
7033 | a750fc0b | j_mayer | /* Original POWER */
|
7034 | a750fc0b | j_mayer | /* XXX: should be POWER (RIOS), RSC3308, RSC4608,
|
7035 | a750fc0b | j_mayer | * POWER2 (RIOS2) & RSC2 (P2SC) here
|
7036 | a750fc0b | j_mayer | */
|
7037 | a750fc0b | j_mayer | #if 0
|
7038 | 80d11f44 | j_mayer | CPU_POWER = xxx, /* 0x20000 ? 0x30000 for RSC ? */
|
7039 | a750fc0b | j_mayer | #endif
|
7040 | a750fc0b | j_mayer | #if 0
|
7041 | 80d11f44 | j_mayer | CPU_POWER2 = xxx, /* 0x40000 ? */
|
7042 | a750fc0b | j_mayer | #endif
|
7043 | a750fc0b | j_mayer | /* PA Semi core */
|
7044 | 80d11f44 | j_mayer | CPU_POWERPC_PA6T = 0x00900000,
|
7045 | a750fc0b | j_mayer | }; |
7046 | a750fc0b | j_mayer | |
7047 | a750fc0b | j_mayer | /* System version register (used on MPC 8xxx) */
|
7048 | a750fc0b | j_mayer | enum {
|
7049 | 80d11f44 | j_mayer | POWERPC_SVR_NONE = 0x00000000,
|
7050 | 80d11f44 | j_mayer | #define POWERPC_SVR_52xx POWERPC_SVR_5200
|
7051 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200 POWERPC_SVR_5200_v12
|
7052 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v10 = 0x80110010,
|
7053 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v11 = 0x80110011,
|
7054 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v12 = 0x80110012,
|
7055 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200B POWERPC_SVR_5200B_v21
|
7056 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v20 = 0x80110020,
|
7057 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v21 = 0x80110021,
|
7058 | 80d11f44 | j_mayer | #define POWERPC_SVR_55xx POWERPC_SVR_5567
|
7059 | c3e36823 | j_mayer | #if 0
|
7060 | 80d11f44 | j_mayer | POWERPC_SVR_5533 = xxx,
|
7061 | c3e36823 | j_mayer | #endif
|
7062 | c3e36823 | j_mayer | #if 0
|
7063 | 80d11f44 | j_mayer | POWERPC_SVR_5534 = xxx,
|
7064 | c3e36823 | j_mayer | #endif
|
7065 | c3e36823 | j_mayer | #if 0
|
7066 | 80d11f44 | j_mayer | POWERPC_SVR_5553 = xxx,
|
7067 | c3e36823 | j_mayer | #endif
|
7068 | c3e36823 | j_mayer | #if 0
|
7069 | 80d11f44 | j_mayer | POWERPC_SVR_5554 = xxx,
|
7070 | c3e36823 | j_mayer | #endif
|
7071 | c3e36823 | j_mayer | #if 0
|
7072 | 80d11f44 | j_mayer | POWERPC_SVR_5561 = xxx,
|
7073 | c3e36823 | j_mayer | #endif
|
7074 | c3e36823 | j_mayer | #if 0
|
7075 | 80d11f44 | j_mayer | POWERPC_SVR_5565 = xxx,
|
7076 | c3e36823 | j_mayer | #endif
|
7077 | c3e36823 | j_mayer | #if 0
|
7078 | 80d11f44 | j_mayer | POWERPC_SVR_5566 = xxx,
|
7079 | c3e36823 | j_mayer | #endif
|
7080 | c3e36823 | j_mayer | #if 0
|
7081 | 80d11f44 | j_mayer | POWERPC_SVR_5567 = xxx,
|
7082 | c3e36823 | j_mayer | #endif
|
7083 | c3e36823 | j_mayer | #if 0
|
7084 | 80d11f44 | j_mayer | POWERPC_SVR_8313 = xxx,
|
7085 | c3e36823 | j_mayer | #endif
|
7086 | c3e36823 | j_mayer | #if 0
|
7087 | 80d11f44 | j_mayer | POWERPC_SVR_8313E = xxx,
|
7088 | c3e36823 | j_mayer | #endif
|
7089 | c3e36823 | j_mayer | #if 0
|
7090 | 80d11f44 | j_mayer | POWERPC_SVR_8314 = xxx,
|
7091 | c3e36823 | j_mayer | #endif
|
7092 | c3e36823 | j_mayer | #if 0
|
7093 | 80d11f44 | j_mayer | POWERPC_SVR_8314E = xxx,
|
7094 | c3e36823 | j_mayer | #endif
|
7095 | c3e36823 | j_mayer | #if 0
|
7096 | 80d11f44 | j_mayer | POWERPC_SVR_8315 = xxx,
|
7097 | c3e36823 | j_mayer | #endif
|
7098 | c3e36823 | j_mayer | #if 0
|
7099 | 80d11f44 | j_mayer | POWERPC_SVR_8315E = xxx,
|
7100 | c3e36823 | j_mayer | #endif
|
7101 | c3e36823 | j_mayer | #if 0
|
7102 | 80d11f44 | j_mayer | POWERPC_SVR_8321 = xxx,
|
7103 | c3e36823 | j_mayer | #endif
|
7104 | c3e36823 | j_mayer | #if 0
|
7105 | 80d11f44 | j_mayer | POWERPC_SVR_8321E = xxx,
|
7106 | c3e36823 | j_mayer | #endif
|
7107 | c3e36823 | j_mayer | #if 0
|
7108 | 80d11f44 | j_mayer | POWERPC_SVR_8323 = xxx,
|
7109 | c3e36823 | j_mayer | #endif
|
7110 | c3e36823 | j_mayer | #if 0
|
7111 | 80d11f44 | j_mayer | POWERPC_SVR_8323E = xxx,
|
7112 | 80d11f44 | j_mayer | #endif
|
7113 | 80d11f44 | j_mayer | POWERPC_SVR_8343A = 0x80570030,
|
7114 | 80d11f44 | j_mayer | POWERPC_SVR_8343EA = 0x80560030,
|
7115 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347A POWERPC_SVR_8347AT
|
7116 | 80d11f44 | j_mayer | POWERPC_SVR_8347AP = 0x80550030, /* PBGA package */ |
7117 | 80d11f44 | j_mayer | POWERPC_SVR_8347AT = 0x80530030, /* TBGA package */ |
7118 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347EA POWERPC_SVR_8347EAT
|
7119 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAP = 0x80540030, /* PBGA package */ |
7120 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAT = 0x80520030, /* TBGA package */ |
7121 | 80d11f44 | j_mayer | POWERPC_SVR_8349 = 0x80510010,
|
7122 | 80d11f44 | j_mayer | POWERPC_SVR_8349A = 0x80510030,
|
7123 | 80d11f44 | j_mayer | POWERPC_SVR_8349E = 0x80500010,
|
7124 | 80d11f44 | j_mayer | POWERPC_SVR_8349EA = 0x80500030,
|
7125 | c3e36823 | j_mayer | #if 0
|
7126 | 80d11f44 | j_mayer | POWERPC_SVR_8358E = xxx,
|
7127 | c3e36823 | j_mayer | #endif
|
7128 | c3e36823 | j_mayer | #if 0
|
7129 | 80d11f44 | j_mayer | POWERPC_SVR_8360E = xxx,
|
7130 | 80d11f44 | j_mayer | #endif
|
7131 | 80d11f44 | j_mayer | #define POWERPC_SVR_E500 0x40000000 |
7132 | 80d11f44 | j_mayer | POWERPC_SVR_8377 = 0x80C70010 | POWERPC_SVR_E500,
|
7133 | 80d11f44 | j_mayer | POWERPC_SVR_8377E = 0x80C60010 | POWERPC_SVR_E500,
|
7134 | 80d11f44 | j_mayer | POWERPC_SVR_8378 = 0x80C50010 | POWERPC_SVR_E500,
|
7135 | 80d11f44 | j_mayer | POWERPC_SVR_8378E = 0x80C40010 | POWERPC_SVR_E500,
|
7136 | 80d11f44 | j_mayer | POWERPC_SVR_8379 = 0x80C30010 | POWERPC_SVR_E500,
|
7137 | 80d11f44 | j_mayer | POWERPC_SVR_8379E = 0x80C00010 | POWERPC_SVR_E500,
|
7138 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533 POWERPC_SVR_8533_v11
|
7139 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v10 = 0x80340010 | POWERPC_SVR_E500,
|
7140 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v11 = 0x80340011 | POWERPC_SVR_E500,
|
7141 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533E POWERPC_SVR_8533E_v11
|
7142 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v10 = 0x803C0010 | POWERPC_SVR_E500,
|
7143 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v11 = 0x803C0011 | POWERPC_SVR_E500,
|
7144 | 80d11f44 | j_mayer | #define POWERPC_SVR_8540 POWERPC_SVR_8540_v21
|
7145 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v10 = 0x80300010 | POWERPC_SVR_E500,
|
7146 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v20 = 0x80300020 | POWERPC_SVR_E500,
|
7147 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v21 = 0x80300021 | POWERPC_SVR_E500,
|
7148 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541 POWERPC_SVR_8541_v11
|
7149 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v10 = 0x80720010 | POWERPC_SVR_E500,
|
7150 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v11 = 0x80720011 | POWERPC_SVR_E500,
|
7151 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541E POWERPC_SVR_8541E_v11
|
7152 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v10 = 0x807A0010 | POWERPC_SVR_E500,
|
7153 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v11 = 0x807A0011 | POWERPC_SVR_E500,
|
7154 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543 POWERPC_SVR_8543_v21
|
7155 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v10 = 0x80320010 | POWERPC_SVR_E500,
|
7156 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v11 = 0x80320011 | POWERPC_SVR_E500,
|
7157 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v20 = 0x80320020 | POWERPC_SVR_E500,
|
7158 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v21 = 0x80320021 | POWERPC_SVR_E500,
|
7159 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543E POWERPC_SVR_8543E_v21
|
7160 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v10 = 0x803A0010 | POWERPC_SVR_E500,
|
7161 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v11 = 0x803A0011 | POWERPC_SVR_E500,
|
7162 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v20 = 0x803A0020 | POWERPC_SVR_E500,
|
7163 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v21 = 0x803A0021 | POWERPC_SVR_E500,
|
7164 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544 POWERPC_SVR_8544_v11
|
7165 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v10 = 0x80340110 | POWERPC_SVR_E500,
|
7166 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v11 = 0x80340111 | POWERPC_SVR_E500,
|
7167 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544E POWERPC_SVR_8544E_v11
|
7168 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v10 = 0x803C0110 | POWERPC_SVR_E500,
|
7169 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v11 = 0x803C0111 | POWERPC_SVR_E500,
|
7170 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545 POWERPC_SVR_8545_v21
|
7171 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v20 = 0x80310220 | POWERPC_SVR_E500,
|
7172 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v21 = 0x80310221 | POWERPC_SVR_E500,
|
7173 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545E POWERPC_SVR_8545E_v21
|
7174 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v20 = 0x80390220 | POWERPC_SVR_E500,
|
7175 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v21 = 0x80390221 | POWERPC_SVR_E500,
|
7176 | 80d11f44 | j_mayer | #define POWERPC_SVR_8547E POWERPC_SVR_8547E_v21
|
7177 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v20 = 0x80390120 | POWERPC_SVR_E500,
|
7178 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v21 = 0x80390121 | POWERPC_SVR_E500,
|
7179 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548 POWERPC_SVR_8548_v21
|
7180 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v10 = 0x80310010 | POWERPC_SVR_E500,
|
7181 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v11 = 0x80310011 | POWERPC_SVR_E500,
|
7182 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v20 = 0x80310020 | POWERPC_SVR_E500,
|
7183 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v21 = 0x80310021 | POWERPC_SVR_E500,
|
7184 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548E POWERPC_SVR_8548E_v21
|
7185 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v10 = 0x80390010 | POWERPC_SVR_E500,
|
7186 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v11 = 0x80390011 | POWERPC_SVR_E500,
|
7187 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v20 = 0x80390020 | POWERPC_SVR_E500,
|
7188 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v21 = 0x80390021 | POWERPC_SVR_E500,
|
7189 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555 POWERPC_SVR_8555_v11
|
7190 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v10 = 0x80710010 | POWERPC_SVR_E500,
|
7191 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v11 = 0x80710011 | POWERPC_SVR_E500,
|
7192 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555E POWERPC_SVR_8555_v11
|
7193 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v10 = 0x80790010 | POWERPC_SVR_E500,
|
7194 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v11 = 0x80790011 | POWERPC_SVR_E500,
|
7195 | 80d11f44 | j_mayer | #define POWERPC_SVR_8560 POWERPC_SVR_8560_v21
|
7196 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v10 = 0x80700010 | POWERPC_SVR_E500,
|
7197 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v20 = 0x80700020 | POWERPC_SVR_E500,
|
7198 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v21 = 0x80700021 | POWERPC_SVR_E500,
|
7199 | 80d11f44 | j_mayer | POWERPC_SVR_8567 = 0x80750111 | POWERPC_SVR_E500,
|
7200 | 80d11f44 | j_mayer | POWERPC_SVR_8567E = 0x807D0111 | POWERPC_SVR_E500,
|
7201 | 80d11f44 | j_mayer | POWERPC_SVR_8568 = 0x80750011 | POWERPC_SVR_E500,
|
7202 | 80d11f44 | j_mayer | POWERPC_SVR_8568E = 0x807D0011 | POWERPC_SVR_E500,
|
7203 | 80d11f44 | j_mayer | POWERPC_SVR_8572 = 0x80E00010 | POWERPC_SVR_E500,
|
7204 | 80d11f44 | j_mayer | POWERPC_SVR_8572E = 0x80E80010 | POWERPC_SVR_E500,
|
7205 | c3e36823 | j_mayer | #if 0
|
7206 | 80d11f44 | j_mayer | POWERPC_SVR_8610 = xxx,
|
7207 | c3e36823 | j_mayer | #endif
|
7208 | 80d11f44 | j_mayer | POWERPC_SVR_8641 = 0x80900021,
|
7209 | 80d11f44 | j_mayer | POWERPC_SVR_8641D = 0x80900121,
|
7210 | a750fc0b | j_mayer | }; |
7211 | a750fc0b | j_mayer | |
7212 | 3fc6c082 | bellard | /*****************************************************************************/
|
7213 | a750fc0b | j_mayer | /* PowerPC CPU definitions */
|
7214 | 80d11f44 | j_mayer | #define POWERPC_DEF_SVR(_name, _pvr, _svr, _type) \
|
7215 | a750fc0b | j_mayer | { \ |
7216 | a750fc0b | j_mayer | .name = _name, \ |
7217 | a750fc0b | j_mayer | .pvr = _pvr, \ |
7218 | 80d11f44 | j_mayer | .svr = _svr, \ |
7219 | a750fc0b | j_mayer | .insns_flags = glue(POWERPC_INSNS_,_type), \ |
7220 | a750fc0b | j_mayer | .msr_mask = glue(POWERPC_MSRM_,_type), \ |
7221 | a750fc0b | j_mayer | .mmu_model = glue(POWERPC_MMU_,_type), \ |
7222 | a750fc0b | j_mayer | .excp_model = glue(POWERPC_EXCP_,_type), \ |
7223 | a750fc0b | j_mayer | .bus_model = glue(POWERPC_INPUT_,_type), \ |
7224 | 237c0af0 | j_mayer | .bfd_mach = glue(POWERPC_BFDM_,_type), \ |
7225 | d26bfc9a | j_mayer | .flags = glue(POWERPC_FLAG_,_type), \ |
7226 | a750fc0b | j_mayer | .init_proc = &glue(init_proc_,_type), \ |
7227 | 2f462816 | j_mayer | .check_pow = &glue(check_pow_,_type), \ |
7228 | a750fc0b | j_mayer | } |
7229 | 80d11f44 | j_mayer | #define POWERPC_DEF(_name, _pvr, _type) \
|
7230 | 80d11f44 | j_mayer | POWERPC_DEF_SVR(_name, _pvr, POWERPC_SVR_NONE, _type) |
7231 | a750fc0b | j_mayer | |
7232 | ee4e83ed | j_mayer | static const ppc_def_t ppc_defs[] = { |
7233 | a750fc0b | j_mayer | /* Embedded PowerPC */
|
7234 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
7235 | 2662a059 | j_mayer | /* Generic PowerPC 401 */
|
7236 | 80d11f44 | j_mayer | POWERPC_DEF("401", CPU_POWERPC_401, 401), |
7237 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
7238 | 2662a059 | j_mayer | /* PowerPC 401A1 */
|
7239 | 80d11f44 | j_mayer | POWERPC_DEF("401A1", CPU_POWERPC_401A1, 401), |
7240 | a750fc0b | j_mayer | /* PowerPC 401B2 */
|
7241 | 80d11f44 | j_mayer | POWERPC_DEF("401B2", CPU_POWERPC_401B2, 401x2), |
7242 | 2662a059 | j_mayer | #if defined (TODO)
|
7243 | a750fc0b | j_mayer | /* PowerPC 401B3 */
|
7244 | 80d11f44 | j_mayer | POWERPC_DEF("401B3", CPU_POWERPC_401B3, 401x3), |
7245 | a750fc0b | j_mayer | #endif
|
7246 | a750fc0b | j_mayer | /* PowerPC 401C2 */
|
7247 | 80d11f44 | j_mayer | POWERPC_DEF("401C2", CPU_POWERPC_401C2, 401x2), |
7248 | a750fc0b | j_mayer | /* PowerPC 401D2 */
|
7249 | 80d11f44 | j_mayer | POWERPC_DEF("401D2", CPU_POWERPC_401D2, 401x2), |
7250 | a750fc0b | j_mayer | /* PowerPC 401E2 */
|
7251 | 80d11f44 | j_mayer | POWERPC_DEF("401E2", CPU_POWERPC_401E2, 401x2), |
7252 | a750fc0b | j_mayer | /* PowerPC 401F2 */
|
7253 | 80d11f44 | j_mayer | POWERPC_DEF("401F2", CPU_POWERPC_401F2, 401x2), |
7254 | a750fc0b | j_mayer | /* PowerPC 401G2 */
|
7255 | a750fc0b | j_mayer | /* XXX: to be checked */
|
7256 | 80d11f44 | j_mayer | POWERPC_DEF("401G2", CPU_POWERPC_401G2, 401x2), |
7257 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
7258 | 2662a059 | j_mayer | #if defined (TODO)
|
7259 | a750fc0b | j_mayer | /* PowerPC 401GF */
|
7260 | 80d11f44 | j_mayer | POWERPC_DEF("401GF", CPU_POWERPC_401GF, 401), |
7261 | 3fc6c082 | bellard | #endif
|
7262 | a750fc0b | j_mayer | /* IOP480 (401 microcontroler) */
|
7263 | 80d11f44 | j_mayer | POWERPC_DEF("IOP480", CPU_POWERPC_IOP480, IOP480),
|
7264 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
7265 | 80d11f44 | j_mayer | POWERPC_DEF("Cobra", CPU_POWERPC_COBRA, 401), |
7266 | 3fc6c082 | bellard | #if defined (TODO)
|
7267 | 80d11f44 | j_mayer | POWERPC_DEF("Xipchip", CPU_POWERPC_XIPCHIP, 401), |
7268 | 3fc6c082 | bellard | #endif
|
7269 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
7270 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
7271 | 80d11f44 | j_mayer | POWERPC_DEF("403", CPU_POWERPC_403, 403), |
7272 | a750fc0b | j_mayer | /* PowerPC 403 microcontrolers */
|
7273 | a750fc0b | j_mayer | /* PowerPC 403 GA */
|
7274 | 80d11f44 | j_mayer | POWERPC_DEF("403GA", CPU_POWERPC_403GA, 403), |
7275 | a750fc0b | j_mayer | /* PowerPC 403 GB */
|
7276 | 80d11f44 | j_mayer | POWERPC_DEF("403GB", CPU_POWERPC_403GB, 403), |
7277 | a750fc0b | j_mayer | /* PowerPC 403 GC */
|
7278 | 80d11f44 | j_mayer | POWERPC_DEF("403GC", CPU_POWERPC_403GC, 403), |
7279 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
7280 | 80d11f44 | j_mayer | POWERPC_DEF("403GCX", CPU_POWERPC_403GCX, 403GCX), |
7281 | 3fc6c082 | bellard | #if defined (TODO)
|
7282 | a750fc0b | j_mayer | /* PowerPC 403 GP */
|
7283 | 80d11f44 | j_mayer | POWERPC_DEF("403GP", CPU_POWERPC_403GP, 403), |
7284 | 3fc6c082 | bellard | #endif
|
7285 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
7286 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
7287 | 80d11f44 | j_mayer | POWERPC_DEF("405", CPU_POWERPC_405, 405), |
7288 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
7289 | 2662a059 | j_mayer | #if defined (TODO)
|
7290 | a750fc0b | j_mayer | /* PowerPC 405 A3 */
|
7291 | 80d11f44 | j_mayer | POWERPC_DEF("405A3", CPU_POWERPC_405A3, 405), |
7292 | 3a607854 | j_mayer | #endif
|
7293 | 3a607854 | j_mayer | #if defined (TODO)
|
7294 | a750fc0b | j_mayer | /* PowerPC 405 A4 */
|
7295 | 80d11f44 | j_mayer | POWERPC_DEF("405A4", CPU_POWERPC_405A4, 405), |
7296 | 3a607854 | j_mayer | #endif
|
7297 | 3a607854 | j_mayer | #if defined (TODO)
|
7298 | a750fc0b | j_mayer | /* PowerPC 405 B3 */
|
7299 | 80d11f44 | j_mayer | POWERPC_DEF("405B3", CPU_POWERPC_405B3, 405), |
7300 | 3fc6c082 | bellard | #endif
|
7301 | 3fc6c082 | bellard | #if defined (TODO)
|
7302 | a750fc0b | j_mayer | /* PowerPC 405 B4 */
|
7303 | 80d11f44 | j_mayer | POWERPC_DEF("405B4", CPU_POWERPC_405B4, 405), |
7304 | a750fc0b | j_mayer | #endif
|
7305 | a750fc0b | j_mayer | #if defined (TODO)
|
7306 | a750fc0b | j_mayer | /* PowerPC 405 C3 */
|
7307 | 80d11f44 | j_mayer | POWERPC_DEF("405C3", CPU_POWERPC_405C3, 405), |
7308 | a750fc0b | j_mayer | #endif
|
7309 | a750fc0b | j_mayer | #if defined (TODO)
|
7310 | a750fc0b | j_mayer | /* PowerPC 405 C4 */
|
7311 | 80d11f44 | j_mayer | POWERPC_DEF("405C4", CPU_POWERPC_405C4, 405), |
7312 | a750fc0b | j_mayer | #endif
|
7313 | a750fc0b | j_mayer | /* PowerPC 405 D2 */
|
7314 | 80d11f44 | j_mayer | POWERPC_DEF("405D2", CPU_POWERPC_405D2, 405), |
7315 | a750fc0b | j_mayer | #if defined (TODO)
|
7316 | a750fc0b | j_mayer | /* PowerPC 405 D3 */
|
7317 | 80d11f44 | j_mayer | POWERPC_DEF("405D3", CPU_POWERPC_405D3, 405), |
7318 | a750fc0b | j_mayer | #endif
|
7319 | a750fc0b | j_mayer | /* PowerPC 405 D4 */
|
7320 | 80d11f44 | j_mayer | POWERPC_DEF("405D4", CPU_POWERPC_405D4, 405), |
7321 | a750fc0b | j_mayer | #if defined (TODO)
|
7322 | a750fc0b | j_mayer | /* PowerPC 405 D5 */
|
7323 | 80d11f44 | j_mayer | POWERPC_DEF("405D5", CPU_POWERPC_405D5, 405), |
7324 | a750fc0b | j_mayer | #endif
|
7325 | a750fc0b | j_mayer | #if defined (TODO)
|
7326 | a750fc0b | j_mayer | /* PowerPC 405 E4 */
|
7327 | 80d11f44 | j_mayer | POWERPC_DEF("405E4", CPU_POWERPC_405E4, 405), |
7328 | a750fc0b | j_mayer | #endif
|
7329 | a750fc0b | j_mayer | #if defined (TODO)
|
7330 | a750fc0b | j_mayer | /* PowerPC 405 F4 */
|
7331 | 80d11f44 | j_mayer | POWERPC_DEF("405F4", CPU_POWERPC_405F4, 405), |
7332 | a750fc0b | j_mayer | #endif
|
7333 | a750fc0b | j_mayer | #if defined (TODO)
|
7334 | a750fc0b | j_mayer | /* PowerPC 405 F5 */
|
7335 | 80d11f44 | j_mayer | POWERPC_DEF("405F5", CPU_POWERPC_405F5, 405), |
7336 | a750fc0b | j_mayer | #endif
|
7337 | a750fc0b | j_mayer | #if defined (TODO)
|
7338 | a750fc0b | j_mayer | /* PowerPC 405 F6 */
|
7339 | 80d11f44 | j_mayer | POWERPC_DEF("405F6", CPU_POWERPC_405F6, 405), |
7340 | a750fc0b | j_mayer | #endif
|
7341 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
7342 | a750fc0b | j_mayer | /* PowerPC 405 CR */
|
7343 | 80d11f44 | j_mayer | POWERPC_DEF("405CR", CPU_POWERPC_405CR, 405), |
7344 | a750fc0b | j_mayer | /* PowerPC 405 CRa */
|
7345 | 80d11f44 | j_mayer | POWERPC_DEF("405CRa", CPU_POWERPC_405CRa, 405), |
7346 | a750fc0b | j_mayer | /* PowerPC 405 CRb */
|
7347 | 80d11f44 | j_mayer | POWERPC_DEF("405CRb", CPU_POWERPC_405CRb, 405), |
7348 | a750fc0b | j_mayer | /* PowerPC 405 CRc */
|
7349 | 80d11f44 | j_mayer | POWERPC_DEF("405CRc", CPU_POWERPC_405CRc, 405), |
7350 | a750fc0b | j_mayer | /* PowerPC 405 EP */
|
7351 | 80d11f44 | j_mayer | POWERPC_DEF("405EP", CPU_POWERPC_405EP, 405), |
7352 | a750fc0b | j_mayer | #if defined(TODO)
|
7353 | a750fc0b | j_mayer | /* PowerPC 405 EXr */
|
7354 | 80d11f44 | j_mayer | POWERPC_DEF("405EXr", CPU_POWERPC_405EXr, 405), |
7355 | a750fc0b | j_mayer | #endif
|
7356 | a750fc0b | j_mayer | /* PowerPC 405 EZ */
|
7357 | 80d11f44 | j_mayer | POWERPC_DEF("405EZ", CPU_POWERPC_405EZ, 405), |
7358 | a750fc0b | j_mayer | #if defined(TODO)
|
7359 | a750fc0b | j_mayer | /* PowerPC 405 FX */
|
7360 | 80d11f44 | j_mayer | POWERPC_DEF("405FX", CPU_POWERPC_405FX, 405), |
7361 | a750fc0b | j_mayer | #endif
|
7362 | a750fc0b | j_mayer | /* PowerPC 405 GP */
|
7363 | 80d11f44 | j_mayer | POWERPC_DEF("405GP", CPU_POWERPC_405GP, 405), |
7364 | a750fc0b | j_mayer | /* PowerPC 405 GPa */
|
7365 | 80d11f44 | j_mayer | POWERPC_DEF("405GPa", CPU_POWERPC_405GPa, 405), |
7366 | a750fc0b | j_mayer | /* PowerPC 405 GPb */
|
7367 | 80d11f44 | j_mayer | POWERPC_DEF("405GPb", CPU_POWERPC_405GPb, 405), |
7368 | a750fc0b | j_mayer | /* PowerPC 405 GPc */
|
7369 | 80d11f44 | j_mayer | POWERPC_DEF("405GPc", CPU_POWERPC_405GPc, 405), |
7370 | a750fc0b | j_mayer | /* PowerPC 405 GPd */
|
7371 | 80d11f44 | j_mayer | POWERPC_DEF("405GPd", CPU_POWERPC_405GPd, 405), |
7372 | a750fc0b | j_mayer | /* PowerPC 405 GPe */
|
7373 | 80d11f44 | j_mayer | POWERPC_DEF("405GPe", CPU_POWERPC_405GPe, 405), |
7374 | a750fc0b | j_mayer | /* PowerPC 405 GPR */
|
7375 | 80d11f44 | j_mayer | POWERPC_DEF("405GPR", CPU_POWERPC_405GPR, 405), |
7376 | a750fc0b | j_mayer | #if defined(TODO)
|
7377 | a750fc0b | j_mayer | /* PowerPC 405 H */
|
7378 | 80d11f44 | j_mayer | POWERPC_DEF("405H", CPU_POWERPC_405H, 405), |
7379 | a750fc0b | j_mayer | #endif
|
7380 | a750fc0b | j_mayer | #if defined(TODO)
|
7381 | a750fc0b | j_mayer | /* PowerPC 405 L */
|
7382 | 80d11f44 | j_mayer | POWERPC_DEF("405L", CPU_POWERPC_405L, 405), |
7383 | a750fc0b | j_mayer | #endif
|
7384 | a750fc0b | j_mayer | /* PowerPC 405 LP */
|
7385 | 80d11f44 | j_mayer | POWERPC_DEF("405LP", CPU_POWERPC_405LP, 405), |
7386 | a750fc0b | j_mayer | #if defined(TODO)
|
7387 | a750fc0b | j_mayer | /* PowerPC 405 PM */
|
7388 | 80d11f44 | j_mayer | POWERPC_DEF("405PM", CPU_POWERPC_405PM, 405), |
7389 | a750fc0b | j_mayer | #endif
|
7390 | a750fc0b | j_mayer | #if defined(TODO)
|
7391 | a750fc0b | j_mayer | /* PowerPC 405 PS */
|
7392 | 80d11f44 | j_mayer | POWERPC_DEF("405PS", CPU_POWERPC_405PS, 405), |
7393 | a750fc0b | j_mayer | #endif
|
7394 | a750fc0b | j_mayer | #if defined(TODO)
|
7395 | a750fc0b | j_mayer | /* PowerPC 405 S */
|
7396 | 80d11f44 | j_mayer | POWERPC_DEF("405S", CPU_POWERPC_405S, 405), |
7397 | a750fc0b | j_mayer | #endif
|
7398 | a750fc0b | j_mayer | /* Npe405 H */
|
7399 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H", CPU_POWERPC_NPE405H, 405), |
7400 | a750fc0b | j_mayer | /* Npe405 H2 */
|
7401 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H2", CPU_POWERPC_NPE405H2, 405), |
7402 | a750fc0b | j_mayer | /* Npe405 L */
|
7403 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405L", CPU_POWERPC_NPE405L, 405), |
7404 | a750fc0b | j_mayer | /* Npe4GS3 */
|
7405 | 80d11f44 | j_mayer | POWERPC_DEF("Npe4GS3", CPU_POWERPC_NPE4GS3, 405), |
7406 | a750fc0b | j_mayer | #if defined (TODO)
|
7407 | 80d11f44 | j_mayer | POWERPC_DEF("Npcxx1", CPU_POWERPC_NPCxx1, 405), |
7408 | a750fc0b | j_mayer | #endif
|
7409 | a750fc0b | j_mayer | #if defined (TODO)
|
7410 | 80d11f44 | j_mayer | POWERPC_DEF("Npr161", CPU_POWERPC_NPR161, 405), |
7411 | a750fc0b | j_mayer | #endif
|
7412 | a750fc0b | j_mayer | #if defined (TODO)
|
7413 | a750fc0b | j_mayer | /* PowerPC LC77700 (Sanyo) */
|
7414 | 80d11f44 | j_mayer | POWERPC_DEF("LC77700", CPU_POWERPC_LC77700, 405), |
7415 | a750fc0b | j_mayer | #endif
|
7416 | a750fc0b | j_mayer | /* PowerPC 401/403/405 based set-top-box microcontrolers */
|
7417 | a750fc0b | j_mayer | #if defined (TODO)
|
7418 | a750fc0b | j_mayer | /* STB010000 */
|
7419 | 80d11f44 | j_mayer | POWERPC_DEF("STB01000", CPU_POWERPC_STB01000, 401x2), |
7420 | a750fc0b | j_mayer | #endif
|
7421 | a750fc0b | j_mayer | #if defined (TODO)
|
7422 | a750fc0b | j_mayer | /* STB01010 */
|
7423 | 80d11f44 | j_mayer | POWERPC_DEF("STB01010", CPU_POWERPC_STB01010, 401x2), |
7424 | a750fc0b | j_mayer | #endif
|
7425 | a750fc0b | j_mayer | #if defined (TODO)
|
7426 | a750fc0b | j_mayer | /* STB0210 */
|
7427 | 80d11f44 | j_mayer | POWERPC_DEF("STB0210", CPU_POWERPC_STB0210, 401x3), |
7428 | a750fc0b | j_mayer | #endif
|
7429 | a750fc0b | j_mayer | /* STB03xx */
|
7430 | 80d11f44 | j_mayer | POWERPC_DEF("STB03", CPU_POWERPC_STB03, 405), |
7431 | a750fc0b | j_mayer | #if defined (TODO)
|
7432 | a750fc0b | j_mayer | /* STB043x */
|
7433 | 80d11f44 | j_mayer | POWERPC_DEF("STB043", CPU_POWERPC_STB043, 405), |
7434 | a750fc0b | j_mayer | #endif
|
7435 | a750fc0b | j_mayer | #if defined (TODO)
|
7436 | a750fc0b | j_mayer | /* STB045x */
|
7437 | 80d11f44 | j_mayer | POWERPC_DEF("STB045", CPU_POWERPC_STB045, 405), |
7438 | a750fc0b | j_mayer | #endif
|
7439 | a750fc0b | j_mayer | /* STB04xx */
|
7440 | 80d11f44 | j_mayer | POWERPC_DEF("STB04", CPU_POWERPC_STB04, 405), |
7441 | a750fc0b | j_mayer | /* STB25xx */
|
7442 | 80d11f44 | j_mayer | POWERPC_DEF("STB25", CPU_POWERPC_STB25, 405), |
7443 | a750fc0b | j_mayer | #if defined (TODO)
|
7444 | a750fc0b | j_mayer | /* STB130 */
|
7445 | 80d11f44 | j_mayer | POWERPC_DEF("STB130", CPU_POWERPC_STB130, 405), |
7446 | a750fc0b | j_mayer | #endif
|
7447 | a750fc0b | j_mayer | /* Xilinx PowerPC 405 cores */
|
7448 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp4", CPU_POWERPC_X2VP4, 405), |
7449 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp7", CPU_POWERPC_X2VP7, 405), |
7450 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp20", CPU_POWERPC_X2VP20, 405), |
7451 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp50", CPU_POWERPC_X2VP50, 405), |
7452 | a750fc0b | j_mayer | #if defined (TODO)
|
7453 | a750fc0b | j_mayer | /* Zarlink ZL10310 */
|
7454 | 80d11f44 | j_mayer | POWERPC_DEF("zl10310", CPU_POWERPC_ZL10310, 405), |
7455 | a750fc0b | j_mayer | #endif
|
7456 | a750fc0b | j_mayer | #if defined (TODO)
|
7457 | a750fc0b | j_mayer | /* Zarlink ZL10311 */
|
7458 | 80d11f44 | j_mayer | POWERPC_DEF("zl10311", CPU_POWERPC_ZL10311, 405), |
7459 | a750fc0b | j_mayer | #endif
|
7460 | a750fc0b | j_mayer | #if defined (TODO)
|
7461 | a750fc0b | j_mayer | /* Zarlink ZL10320 */
|
7462 | 80d11f44 | j_mayer | POWERPC_DEF("zl10320", CPU_POWERPC_ZL10320, 405), |
7463 | a750fc0b | j_mayer | #endif
|
7464 | a750fc0b | j_mayer | #if defined (TODO)
|
7465 | a750fc0b | j_mayer | /* Zarlink ZL10321 */
|
7466 | 80d11f44 | j_mayer | POWERPC_DEF("zl10321", CPU_POWERPC_ZL10321, 405), |
7467 | a750fc0b | j_mayer | #endif
|
7468 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
7469 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7470 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
7471 | 80d11f44 | j_mayer | POWERPC_DEF("440", CPU_POWERPC_440, 440GP), |
7472 | 80d11f44 | j_mayer | #endif
|
7473 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
7474 | a750fc0b | j_mayer | #if defined (TODO)
|
7475 | a750fc0b | j_mayer | /* PowerPC 440 A4 */
|
7476 | 80d11f44 | j_mayer | POWERPC_DEF("440A4", CPU_POWERPC_440A4, 440x4), |
7477 | a750fc0b | j_mayer | #endif
|
7478 | a750fc0b | j_mayer | #if defined (TODO)
|
7479 | a750fc0b | j_mayer | /* PowerPC 440 A5 */
|
7480 | 80d11f44 | j_mayer | POWERPC_DEF("440A5", CPU_POWERPC_440A5, 440x5), |
7481 | a750fc0b | j_mayer | #endif
|
7482 | a750fc0b | j_mayer | #if defined (TODO)
|
7483 | a750fc0b | j_mayer | /* PowerPC 440 B4 */
|
7484 | 80d11f44 | j_mayer | POWERPC_DEF("440B4", CPU_POWERPC_440B4, 440x4), |
7485 | a750fc0b | j_mayer | #endif
|
7486 | a750fc0b | j_mayer | #if defined (TODO)
|
7487 | a750fc0b | j_mayer | /* PowerPC 440 G4 */
|
7488 | 80d11f44 | j_mayer | POWERPC_DEF("440G4", CPU_POWERPC_440G4, 440x4), |
7489 | a750fc0b | j_mayer | #endif
|
7490 | a750fc0b | j_mayer | #if defined (TODO)
|
7491 | a750fc0b | j_mayer | /* PowerPC 440 F5 */
|
7492 | 80d11f44 | j_mayer | POWERPC_DEF("440F5", CPU_POWERPC_440F5, 440x5), |
7493 | a750fc0b | j_mayer | #endif
|
7494 | a750fc0b | j_mayer | #if defined (TODO)
|
7495 | a750fc0b | j_mayer | /* PowerPC 440 G5 */
|
7496 | 80d11f44 | j_mayer | POWERPC_DEF("440G5", CPU_POWERPC_440G5, 440x5), |
7497 | a750fc0b | j_mayer | #endif
|
7498 | a750fc0b | j_mayer | #if defined (TODO)
|
7499 | a750fc0b | j_mayer | /* PowerPC 440H4 */
|
7500 | 80d11f44 | j_mayer | POWERPC_DEF("440H4", CPU_POWERPC_440H4, 440x4), |
7501 | a750fc0b | j_mayer | #endif
|
7502 | a750fc0b | j_mayer | #if defined (TODO)
|
7503 | a750fc0b | j_mayer | /* PowerPC 440H6 */
|
7504 | 80d11f44 | j_mayer | POWERPC_DEF("440H6", CPU_POWERPC_440H6, 440Gx5), |
7505 | a750fc0b | j_mayer | #endif
|
7506 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
7507 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7508 | a750fc0b | j_mayer | /* PowerPC 440 EP */
|
7509 | 80d11f44 | j_mayer | POWERPC_DEF("440EP", CPU_POWERPC_440EP, 440EP), |
7510 | 80d11f44 | j_mayer | #endif
|
7511 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7512 | a750fc0b | j_mayer | /* PowerPC 440 EPa */
|
7513 | 80d11f44 | j_mayer | POWERPC_DEF("440EPa", CPU_POWERPC_440EPa, 440EP), |
7514 | 80d11f44 | j_mayer | #endif
|
7515 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7516 | a750fc0b | j_mayer | /* PowerPC 440 EPb */
|
7517 | 80d11f44 | j_mayer | POWERPC_DEF("440EPb", CPU_POWERPC_440EPb, 440EP), |
7518 | 80d11f44 | j_mayer | #endif
|
7519 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7520 | a750fc0b | j_mayer | /* PowerPC 440 EPX */
|
7521 | 80d11f44 | j_mayer | POWERPC_DEF("440EPX", CPU_POWERPC_440EPX, 440EP), |
7522 | 80d11f44 | j_mayer | #endif
|
7523 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7524 | a750fc0b | j_mayer | /* PowerPC 440 GP */
|
7525 | 80d11f44 | j_mayer | POWERPC_DEF("440GP", CPU_POWERPC_440GP, 440GP), |
7526 | 80d11f44 | j_mayer | #endif
|
7527 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7528 | a750fc0b | j_mayer | /* PowerPC 440 GPb */
|
7529 | 80d11f44 | j_mayer | POWERPC_DEF("440GPb", CPU_POWERPC_440GPb, 440GP), |
7530 | 80d11f44 | j_mayer | #endif
|
7531 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7532 | a750fc0b | j_mayer | /* PowerPC 440 GPc */
|
7533 | 80d11f44 | j_mayer | POWERPC_DEF("440GPc", CPU_POWERPC_440GPc, 440GP), |
7534 | 80d11f44 | j_mayer | #endif
|
7535 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7536 | a750fc0b | j_mayer | /* PowerPC 440 GR */
|
7537 | 80d11f44 | j_mayer | POWERPC_DEF("440GR", CPU_POWERPC_440GR, 440x5), |
7538 | 80d11f44 | j_mayer | #endif
|
7539 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7540 | a750fc0b | j_mayer | /* PowerPC 440 GRa */
|
7541 | 80d11f44 | j_mayer | POWERPC_DEF("440GRa", CPU_POWERPC_440GRa, 440x5), |
7542 | 80d11f44 | j_mayer | #endif
|
7543 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7544 | a750fc0b | j_mayer | /* PowerPC 440 GRX */
|
7545 | 80d11f44 | j_mayer | POWERPC_DEF("440GRX", CPU_POWERPC_440GRX, 440x5), |
7546 | 80d11f44 | j_mayer | #endif
|
7547 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7548 | a750fc0b | j_mayer | /* PowerPC 440 GX */
|
7549 | 80d11f44 | j_mayer | POWERPC_DEF("440GX", CPU_POWERPC_440GX, 440EP), |
7550 | 80d11f44 | j_mayer | #endif
|
7551 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7552 | a750fc0b | j_mayer | /* PowerPC 440 GXa */
|
7553 | 80d11f44 | j_mayer | POWERPC_DEF("440GXa", CPU_POWERPC_440GXa, 440EP), |
7554 | 80d11f44 | j_mayer | #endif
|
7555 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7556 | a750fc0b | j_mayer | /* PowerPC 440 GXb */
|
7557 | 80d11f44 | j_mayer | POWERPC_DEF("440GXb", CPU_POWERPC_440GXb, 440EP), |
7558 | 80d11f44 | j_mayer | #endif
|
7559 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7560 | a750fc0b | j_mayer | /* PowerPC 440 GXc */
|
7561 | 80d11f44 | j_mayer | POWERPC_DEF("440GXc", CPU_POWERPC_440GXc, 440EP), |
7562 | 80d11f44 | j_mayer | #endif
|
7563 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7564 | a750fc0b | j_mayer | /* PowerPC 440 GXf */
|
7565 | 80d11f44 | j_mayer | POWERPC_DEF("440GXf", CPU_POWERPC_440GXf, 440EP), |
7566 | 80d11f44 | j_mayer | #endif
|
7567 | a750fc0b | j_mayer | #if defined(TODO)
|
7568 | a750fc0b | j_mayer | /* PowerPC 440 S */
|
7569 | 80d11f44 | j_mayer | POWERPC_DEF("440S", CPU_POWERPC_440S, 440), |
7570 | a750fc0b | j_mayer | #endif
|
7571 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7572 | a750fc0b | j_mayer | /* PowerPC 440 SP */
|
7573 | 80d11f44 | j_mayer | POWERPC_DEF("440SP", CPU_POWERPC_440SP, 440EP), |
7574 | 80d11f44 | j_mayer | #endif
|
7575 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7576 | a750fc0b | j_mayer | /* PowerPC 440 SP2 */
|
7577 | 80d11f44 | j_mayer | POWERPC_DEF("440SP2", CPU_POWERPC_440SP2, 440EP), |
7578 | 80d11f44 | j_mayer | #endif
|
7579 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7580 | a750fc0b | j_mayer | /* PowerPC 440 SPE */
|
7581 | 80d11f44 | j_mayer | POWERPC_DEF("440SPE", CPU_POWERPC_440SPE, 440EP), |
7582 | 80d11f44 | j_mayer | #endif
|
7583 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
7584 | a750fc0b | j_mayer | #if defined (TODO)
|
7585 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
7586 | 80d11f44 | j_mayer | POWERPC_DEF("464", CPU_POWERPC_464, 460), |
7587 | a750fc0b | j_mayer | #endif
|
7588 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
7589 | a750fc0b | j_mayer | #if defined (TODO)
|
7590 | a750fc0b | j_mayer | /* PowerPC 464H90 */
|
7591 | 80d11f44 | j_mayer | POWERPC_DEF("464H90", CPU_POWERPC_464H90, 460), |
7592 | a750fc0b | j_mayer | #endif
|
7593 | a750fc0b | j_mayer | #if defined (TODO)
|
7594 | a750fc0b | j_mayer | /* PowerPC 464H90F */
|
7595 | 80d11f44 | j_mayer | POWERPC_DEF("464H90F", CPU_POWERPC_464H90F, 460F), |
7596 | a750fc0b | j_mayer | #endif
|
7597 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
7598 | 80d11f44 | j_mayer | /* MPC5xx family (aka RCPU) */
|
7599 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7600 | 80d11f44 | j_mayer | /* Generic MPC5xx core */
|
7601 | 80d11f44 | j_mayer | POWERPC_DEF("MPC5xx", CPU_POWERPC_MPC5xx, MPC5xx),
|
7602 | 80d11f44 | j_mayer | #endif
|
7603 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7604 | 80d11f44 | j_mayer | /* Codename for MPC5xx core */
|
7605 | 80d11f44 | j_mayer | POWERPC_DEF("RCPU", CPU_POWERPC_MPC5xx, MPC5xx),
|
7606 | 80d11f44 | j_mayer | #endif
|
7607 | 80d11f44 | j_mayer | /* MPC5xx microcontrollers */
|
7608 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7609 | 80d11f44 | j_mayer | /* MGT560 */
|
7610 | 80d11f44 | j_mayer | POWERPC_DEF("MGT560", CPU_POWERPC_MGT560, MPC5xx),
|
7611 | 80d11f44 | j_mayer | #endif
|
7612 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7613 | 80d11f44 | j_mayer | /* MPC509 */
|
7614 | 80d11f44 | j_mayer | POWERPC_DEF("MPC509", CPU_POWERPC_MPC509, MPC5xx),
|
7615 | 80d11f44 | j_mayer | #endif
|
7616 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7617 | 80d11f44 | j_mayer | /* MPC533 */
|
7618 | 80d11f44 | j_mayer | POWERPC_DEF("MPC533", CPU_POWERPC_MPC533, MPC5xx),
|
7619 | 80d11f44 | j_mayer | #endif
|
7620 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7621 | 80d11f44 | j_mayer | /* MPC534 */
|
7622 | 80d11f44 | j_mayer | POWERPC_DEF("MPC534", CPU_POWERPC_MPC534, MPC5xx),
|
7623 | 80d11f44 | j_mayer | #endif
|
7624 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7625 | 80d11f44 | j_mayer | /* MPC555 */
|
7626 | 80d11f44 | j_mayer | POWERPC_DEF("MPC555", CPU_POWERPC_MPC555, MPC5xx),
|
7627 | 80d11f44 | j_mayer | #endif
|
7628 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7629 | 80d11f44 | j_mayer | /* MPC556 */
|
7630 | 80d11f44 | j_mayer | POWERPC_DEF("MPC556", CPU_POWERPC_MPC556, MPC5xx),
|
7631 | 80d11f44 | j_mayer | #endif
|
7632 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7633 | 80d11f44 | j_mayer | /* MPC560 */
|
7634 | 80d11f44 | j_mayer | POWERPC_DEF("MPC560", CPU_POWERPC_MPC560, MPC5xx),
|
7635 | 80d11f44 | j_mayer | #endif
|
7636 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7637 | 80d11f44 | j_mayer | /* MPC561 */
|
7638 | 80d11f44 | j_mayer | POWERPC_DEF("MPC561", CPU_POWERPC_MPC561, MPC5xx),
|
7639 | 80d11f44 | j_mayer | #endif
|
7640 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7641 | 80d11f44 | j_mayer | /* MPC562 */
|
7642 | 80d11f44 | j_mayer | POWERPC_DEF("MPC562", CPU_POWERPC_MPC562, MPC5xx),
|
7643 | 80d11f44 | j_mayer | #endif
|
7644 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7645 | 80d11f44 | j_mayer | /* MPC563 */
|
7646 | 80d11f44 | j_mayer | POWERPC_DEF("MPC563", CPU_POWERPC_MPC563, MPC5xx),
|
7647 | 80d11f44 | j_mayer | #endif
|
7648 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7649 | 80d11f44 | j_mayer | /* MPC564 */
|
7650 | 80d11f44 | j_mayer | POWERPC_DEF("MPC564", CPU_POWERPC_MPC564, MPC5xx),
|
7651 | 80d11f44 | j_mayer | #endif
|
7652 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7653 | 80d11f44 | j_mayer | /* MPC565 */
|
7654 | 80d11f44 | j_mayer | POWERPC_DEF("MPC565", CPU_POWERPC_MPC565, MPC5xx),
|
7655 | 80d11f44 | j_mayer | #endif
|
7656 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7657 | 80d11f44 | j_mayer | /* MPC566 */
|
7658 | 80d11f44 | j_mayer | POWERPC_DEF("MPC566", CPU_POWERPC_MPC566, MPC5xx),
|
7659 | 80d11f44 | j_mayer | #endif
|
7660 | 80d11f44 | j_mayer | /* MPC8xx family (aka PowerQUICC) */
|
7661 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7662 | 80d11f44 | j_mayer | /* Generic MPC8xx core */
|
7663 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8xx", CPU_POWERPC_MPC8xx, MPC8xx),
|
7664 | 80d11f44 | j_mayer | #endif
|
7665 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7666 | 80d11f44 | j_mayer | /* Codename for MPC8xx core */
|
7667 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC", CPU_POWERPC_MPC8xx, MPC8xx),
|
7668 | 80d11f44 | j_mayer | #endif
|
7669 | 80d11f44 | j_mayer | /* MPC8xx microcontrollers */
|
7670 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7671 | 80d11f44 | j_mayer | /* MGT823 */
|
7672 | 80d11f44 | j_mayer | POWERPC_DEF("MGT823", CPU_POWERPC_MGT823, MPC8xx),
|
7673 | 80d11f44 | j_mayer | #endif
|
7674 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7675 | 80d11f44 | j_mayer | /* MPC821 */
|
7676 | 80d11f44 | j_mayer | POWERPC_DEF("MPC821", CPU_POWERPC_MPC821, MPC8xx),
|
7677 | 80d11f44 | j_mayer | #endif
|
7678 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7679 | 80d11f44 | j_mayer | /* MPC823 */
|
7680 | 80d11f44 | j_mayer | POWERPC_DEF("MPC823", CPU_POWERPC_MPC823, MPC8xx),
|
7681 | 80d11f44 | j_mayer | #endif
|
7682 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7683 | 80d11f44 | j_mayer | /* MPC850 */
|
7684 | 80d11f44 | j_mayer | POWERPC_DEF("MPC850", CPU_POWERPC_MPC850, MPC8xx),
|
7685 | 80d11f44 | j_mayer | #endif
|
7686 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7687 | 80d11f44 | j_mayer | /* MPC852T */
|
7688 | 80d11f44 | j_mayer | POWERPC_DEF("MPC852T", CPU_POWERPC_MPC852T, MPC8xx),
|
7689 | 80d11f44 | j_mayer | #endif
|
7690 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7691 | 80d11f44 | j_mayer | /* MPC855T */
|
7692 | 80d11f44 | j_mayer | POWERPC_DEF("MPC855T", CPU_POWERPC_MPC855T, MPC8xx),
|
7693 | 80d11f44 | j_mayer | #endif
|
7694 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7695 | 80d11f44 | j_mayer | /* MPC857 */
|
7696 | 80d11f44 | j_mayer | POWERPC_DEF("MPC857", CPU_POWERPC_MPC857, MPC8xx),
|
7697 | 80d11f44 | j_mayer | #endif
|
7698 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7699 | 80d11f44 | j_mayer | /* MPC859 */
|
7700 | 80d11f44 | j_mayer | POWERPC_DEF("MPC859", CPU_POWERPC_MPC859, MPC8xx),
|
7701 | 80d11f44 | j_mayer | #endif
|
7702 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7703 | 80d11f44 | j_mayer | /* MPC860 */
|
7704 | 80d11f44 | j_mayer | POWERPC_DEF("MPC860", CPU_POWERPC_MPC860, MPC8xx),
|
7705 | 80d11f44 | j_mayer | #endif
|
7706 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7707 | 80d11f44 | j_mayer | /* MPC862 */
|
7708 | 80d11f44 | j_mayer | POWERPC_DEF("MPC862", CPU_POWERPC_MPC862, MPC8xx),
|
7709 | 80d11f44 | j_mayer | #endif
|
7710 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7711 | 80d11f44 | j_mayer | /* MPC866 */
|
7712 | 80d11f44 | j_mayer | POWERPC_DEF("MPC866", CPU_POWERPC_MPC866, MPC8xx),
|
7713 | 80d11f44 | j_mayer | #endif
|
7714 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7715 | 80d11f44 | j_mayer | /* MPC870 */
|
7716 | 80d11f44 | j_mayer | POWERPC_DEF("MPC870", CPU_POWERPC_MPC870, MPC8xx),
|
7717 | 80d11f44 | j_mayer | #endif
|
7718 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7719 | 80d11f44 | j_mayer | /* MPC875 */
|
7720 | 80d11f44 | j_mayer | POWERPC_DEF("MPC875", CPU_POWERPC_MPC875, MPC8xx),
|
7721 | 80d11f44 | j_mayer | #endif
|
7722 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7723 | 80d11f44 | j_mayer | /* MPC880 */
|
7724 | 80d11f44 | j_mayer | POWERPC_DEF("MPC880", CPU_POWERPC_MPC880, MPC8xx),
|
7725 | 80d11f44 | j_mayer | #endif
|
7726 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7727 | 80d11f44 | j_mayer | /* MPC885 */
|
7728 | 80d11f44 | j_mayer | POWERPC_DEF("MPC885", CPU_POWERPC_MPC885, MPC8xx),
|
7729 | 80d11f44 | j_mayer | #endif
|
7730 | 80d11f44 | j_mayer | /* MPC82xx family (aka PowerQUICC-II) */
|
7731 | 80d11f44 | j_mayer | /* Generic MPC52xx core */
|
7732 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC52xx",
|
7733 | 80d11f44 | j_mayer | CPU_POWERPC_MPC52xx, POWERPC_SVR_52xx, G2LE), |
7734 | 80d11f44 | j_mayer | /* Generic MPC82xx core */
|
7735 | 80d11f44 | j_mayer | POWERPC_DEF("MPC82xx", CPU_POWERPC_MPC82xx, G2),
|
7736 | 80d11f44 | j_mayer | /* Codename for MPC82xx */
|
7737 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC-II", CPU_POWERPC_MPC82xx, G2),
|
7738 | 80d11f44 | j_mayer | /* PowerPC G2 core */
|
7739 | 80d11f44 | j_mayer | POWERPC_DEF("G2", CPU_POWERPC_G2, G2),
|
7740 | 80d11f44 | j_mayer | /* PowerPC G2 H4 core */
|
7741 | 80d11f44 | j_mayer | POWERPC_DEF("G2H4", CPU_POWERPC_G2H4, G2),
|
7742 | 80d11f44 | j_mayer | /* PowerPC G2 GP core */
|
7743 | 80d11f44 | j_mayer | POWERPC_DEF("G2GP", CPU_POWERPC_G2gp, G2),
|
7744 | 80d11f44 | j_mayer | /* PowerPC G2 LS core */
|
7745 | 80d11f44 | j_mayer | POWERPC_DEF("G2LS", CPU_POWERPC_G2ls, G2),
|
7746 | 80d11f44 | j_mayer | /* PowerPC G2 HiP3 core */
|
7747 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP3", CPU_POWERPC_G2_HIP3, G2),
|
7748 | 80d11f44 | j_mayer | /* PowerPC G2 HiP4 core */
|
7749 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP4", CPU_POWERPC_G2_HIP4, G2),
|
7750 | 80d11f44 | j_mayer | /* PowerPC MPC603 core */
|
7751 | 80d11f44 | j_mayer | POWERPC_DEF("MPC603", CPU_POWERPC_MPC603, 603E), |
7752 | 80d11f44 | j_mayer | /* PowerPC G2le core (same as G2 plus little-endian mode support) */
|
7753 | 80d11f44 | j_mayer | POWERPC_DEF("G2le", CPU_POWERPC_G2LE, G2LE),
|
7754 | 80d11f44 | j_mayer | /* PowerPC G2LE GP core */
|
7755 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP", CPU_POWERPC_G2LEgp, G2LE),
|
7756 | 80d11f44 | j_mayer | /* PowerPC G2LE LS core */
|
7757 | 80d11f44 | j_mayer | POWERPC_DEF("G2leLS", CPU_POWERPC_G2LEls, G2LE),
|
7758 | 80d11f44 | j_mayer | /* PowerPC G2LE GP1 core */
|
7759 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP1", CPU_POWERPC_G2LEgp1, G2LE),
|
7760 | 80d11f44 | j_mayer | /* PowerPC G2LE GP3 core */
|
7761 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP3", CPU_POWERPC_G2LEgp1, G2LE),
|
7762 | 80d11f44 | j_mayer | /* PowerPC MPC603 microcontrollers */
|
7763 | 80d11f44 | j_mayer | /* MPC8240 */
|
7764 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8240", CPU_POWERPC_MPC8240, 603E), |
7765 | 80d11f44 | j_mayer | /* PowerPC G2 microcontrollers */
|
7766 | 082c6681 | j_mayer | #if defined(TODO)
|
7767 | 80d11f44 | j_mayer | /* MPC5121 */
|
7768 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5121",
|
7769 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5121, POWERPC_SVR_5121, G2LE), |
7770 | 80d11f44 | j_mayer | #endif
|
7771 | 80d11f44 | j_mayer | /* MPC5200 */
|
7772 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200",
|
7773 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200, POWERPC_SVR_5200, G2LE), |
7774 | 80d11f44 | j_mayer | /* MPC5200 v1.0 */
|
7775 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v10",
|
7776 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v10, POWERPC_SVR_5200_v10, G2LE), |
7777 | 80d11f44 | j_mayer | /* MPC5200 v1.1 */
|
7778 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v11",
|
7779 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v11, POWERPC_SVR_5200_v11, G2LE), |
7780 | 80d11f44 | j_mayer | /* MPC5200 v1.2 */
|
7781 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v12",
|
7782 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v12, POWERPC_SVR_5200_v12, G2LE), |
7783 | 80d11f44 | j_mayer | /* MPC5200B */
|
7784 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B",
|
7785 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B, POWERPC_SVR_5200B, G2LE), |
7786 | 80d11f44 | j_mayer | /* MPC5200B v2.0 */
|
7787 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v20",
|
7788 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v20, POWERPC_SVR_5200B_v20, G2LE), |
7789 | 80d11f44 | j_mayer | /* MPC5200B v2.1 */
|
7790 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v21",
|
7791 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v21, POWERPC_SVR_5200B_v21, G2LE), |
7792 | 80d11f44 | j_mayer | /* MPC8241 */
|
7793 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8241", CPU_POWERPC_MPC8241, G2),
|
7794 | 80d11f44 | j_mayer | /* MPC8245 */
|
7795 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8245", CPU_POWERPC_MPC8245, G2),
|
7796 | 80d11f44 | j_mayer | /* MPC8247 */
|
7797 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8247", CPU_POWERPC_MPC8247, G2LE),
|
7798 | 80d11f44 | j_mayer | /* MPC8248 */
|
7799 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8248", CPU_POWERPC_MPC8248, G2LE),
|
7800 | 80d11f44 | j_mayer | /* MPC8250 */
|
7801 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250", CPU_POWERPC_MPC8250, G2),
|
7802 | 80d11f44 | j_mayer | /* MPC8250 HiP3 */
|
7803 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP3", CPU_POWERPC_MPC8250_HiP3, G2),
|
7804 | 80d11f44 | j_mayer | /* MPC8250 HiP4 */
|
7805 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP4", CPU_POWERPC_MPC8250_HiP4, G2),
|
7806 | 80d11f44 | j_mayer | /* MPC8255 */
|
7807 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255", CPU_POWERPC_MPC8255, G2),
|
7808 | 80d11f44 | j_mayer | /* MPC8255 HiP3 */
|
7809 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP3", CPU_POWERPC_MPC8255_HiP3, G2),
|
7810 | 80d11f44 | j_mayer | /* MPC8255 HiP4 */
|
7811 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP4", CPU_POWERPC_MPC8255_HiP4, G2),
|
7812 | 80d11f44 | j_mayer | /* MPC8260 */
|
7813 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260", CPU_POWERPC_MPC8260, G2),
|
7814 | 80d11f44 | j_mayer | /* MPC8260 HiP3 */
|
7815 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP3", CPU_POWERPC_MPC8260_HiP3, G2),
|
7816 | 80d11f44 | j_mayer | /* MPC8260 HiP4 */
|
7817 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP4", CPU_POWERPC_MPC8260_HiP4, G2),
|
7818 | 80d11f44 | j_mayer | /* MPC8264 */
|
7819 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264", CPU_POWERPC_MPC8264, G2),
|
7820 | 80d11f44 | j_mayer | /* MPC8264 HiP3 */
|
7821 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP3", CPU_POWERPC_MPC8264_HiP3, G2),
|
7822 | 80d11f44 | j_mayer | /* MPC8264 HiP4 */
|
7823 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP4", CPU_POWERPC_MPC8264_HiP4, G2),
|
7824 | 80d11f44 | j_mayer | /* MPC8265 */
|
7825 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265", CPU_POWERPC_MPC8265, G2),
|
7826 | 80d11f44 | j_mayer | /* MPC8265 HiP3 */
|
7827 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP3", CPU_POWERPC_MPC8265_HiP3, G2),
|
7828 | 80d11f44 | j_mayer | /* MPC8265 HiP4 */
|
7829 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP4", CPU_POWERPC_MPC8265_HiP4, G2),
|
7830 | 80d11f44 | j_mayer | /* MPC8266 */
|
7831 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266", CPU_POWERPC_MPC8266, G2),
|
7832 | 80d11f44 | j_mayer | /* MPC8266 HiP3 */
|
7833 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP3", CPU_POWERPC_MPC8266_HiP3, G2),
|
7834 | 80d11f44 | j_mayer | /* MPC8266 HiP4 */
|
7835 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP4", CPU_POWERPC_MPC8266_HiP4, G2),
|
7836 | 80d11f44 | j_mayer | /* MPC8270 */
|
7837 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8270", CPU_POWERPC_MPC8270, G2LE),
|
7838 | 80d11f44 | j_mayer | /* MPC8271 */
|
7839 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8271", CPU_POWERPC_MPC8271, G2LE),
|
7840 | 80d11f44 | j_mayer | /* MPC8272 */
|
7841 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8272", CPU_POWERPC_MPC8272, G2LE),
|
7842 | 80d11f44 | j_mayer | /* MPC8275 */
|
7843 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8275", CPU_POWERPC_MPC8275, G2LE),
|
7844 | 80d11f44 | j_mayer | /* MPC8280 */
|
7845 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8280", CPU_POWERPC_MPC8280, G2LE),
|
7846 | a750fc0b | j_mayer | /* e200 family */
|
7847 | a750fc0b | j_mayer | /* Generic PowerPC e200 core */
|
7848 | 80d11f44 | j_mayer | POWERPC_DEF("e200", CPU_POWERPC_e200, e200),
|
7849 | 80d11f44 | j_mayer | /* Generic MPC55xx core */
|
7850 | 80d11f44 | j_mayer | #if defined (TODO)
|
7851 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC55xx",
|
7852 | 80d11f44 | j_mayer | CPU_POWERPC_MPC55xx, POWERPC_SVR_55xx, e200), |
7853 | a750fc0b | j_mayer | #endif
|
7854 | a750fc0b | j_mayer | #if defined (TODO)
|
7855 | 80d11f44 | j_mayer | /* PowerPC e200z0 core */
|
7856 | 80d11f44 | j_mayer | POWERPC_DEF("e200z0", CPU_POWERPC_e200z0, e200),
|
7857 | a750fc0b | j_mayer | #endif
|
7858 | a750fc0b | j_mayer | #if defined (TODO)
|
7859 | 80d11f44 | j_mayer | /* PowerPC e200z1 core */
|
7860 | 80d11f44 | j_mayer | POWERPC_DEF("e200z1", CPU_POWERPC_e200z1, e200),
|
7861 | 80d11f44 | j_mayer | #endif
|
7862 | 80d11f44 | j_mayer | #if defined (TODO)
|
7863 | 80d11f44 | j_mayer | /* PowerPC e200z3 core */
|
7864 | 80d11f44 | j_mayer | POWERPC_DEF("e200z3", CPU_POWERPC_e200z3, e200),
|
7865 | 80d11f44 | j_mayer | #endif
|
7866 | 80d11f44 | j_mayer | /* PowerPC e200z5 core */
|
7867 | 80d11f44 | j_mayer | POWERPC_DEF("e200z5", CPU_POWERPC_e200z5, e200),
|
7868 | a750fc0b | j_mayer | /* PowerPC e200z6 core */
|
7869 | 80d11f44 | j_mayer | POWERPC_DEF("e200z6", CPU_POWERPC_e200z6, e200),
|
7870 | 80d11f44 | j_mayer | /* PowerPC e200 microcontrollers */
|
7871 | 80d11f44 | j_mayer | #if defined (TODO)
|
7872 | 80d11f44 | j_mayer | /* MPC5514E */
|
7873 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E",
|
7874 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E, POWERPC_SVR_5514E, e200), |
7875 | a750fc0b | j_mayer | #endif
|
7876 | a750fc0b | j_mayer | #if defined (TODO)
|
7877 | 80d11f44 | j_mayer | /* MPC5514E v0 */
|
7878 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v0",
|
7879 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v0, POWERPC_SVR_5514E_v0, e200), |
7880 | a750fc0b | j_mayer | #endif
|
7881 | a750fc0b | j_mayer | #if defined (TODO)
|
7882 | 80d11f44 | j_mayer | /* MPC5514E v1 */
|
7883 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v1",
|
7884 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v1, POWERPC_SVR_5514E_v1, e200), |
7885 | a750fc0b | j_mayer | #endif
|
7886 | a750fc0b | j_mayer | #if defined (TODO)
|
7887 | 80d11f44 | j_mayer | /* MPC5514G */
|
7888 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G",
|
7889 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G, POWERPC_SVR_5514G, e200), |
7890 | a750fc0b | j_mayer | #endif
|
7891 | a750fc0b | j_mayer | #if defined (TODO)
|
7892 | 80d11f44 | j_mayer | /* MPC5514G v0 */
|
7893 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v0",
|
7894 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v0, POWERPC_SVR_5514G_v0, e200), |
7895 | a750fc0b | j_mayer | #endif
|
7896 | a750fc0b | j_mayer | #if defined (TODO)
|
7897 | 80d11f44 | j_mayer | /* MPC5514G v1 */
|
7898 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v1",
|
7899 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v1, POWERPC_SVR_5514G_v1, e200), |
7900 | a750fc0b | j_mayer | #endif
|
7901 | a750fc0b | j_mayer | #if defined (TODO)
|
7902 | 80d11f44 | j_mayer | /* MPC5515S */
|
7903 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5515S",
|
7904 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5515S, POWERPC_SVR_5515S, e200), |
7905 | a750fc0b | j_mayer | #endif
|
7906 | a750fc0b | j_mayer | #if defined (TODO)
|
7907 | 80d11f44 | j_mayer | /* MPC5516E */
|
7908 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E",
|
7909 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E, POWERPC_SVR_5516E, e200), |
7910 | a750fc0b | j_mayer | #endif
|
7911 | a750fc0b | j_mayer | #if defined (TODO)
|
7912 | 80d11f44 | j_mayer | /* MPC5516E v0 */
|
7913 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v0",
|
7914 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v0, POWERPC_SVR_5516E_v0, e200), |
7915 | a750fc0b | j_mayer | #endif
|
7916 | a750fc0b | j_mayer | #if defined (TODO)
|
7917 | 80d11f44 | j_mayer | /* MPC5516E v1 */
|
7918 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v1",
|
7919 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v1, POWERPC_SVR_5516E_v1, e200), |
7920 | a750fc0b | j_mayer | #endif
|
7921 | a750fc0b | j_mayer | #if defined (TODO)
|
7922 | 80d11f44 | j_mayer | /* MPC5516G */
|
7923 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G",
|
7924 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G, POWERPC_SVR_5516G, e200), |
7925 | a750fc0b | j_mayer | #endif
|
7926 | a750fc0b | j_mayer | #if defined (TODO)
|
7927 | 80d11f44 | j_mayer | /* MPC5516G v0 */
|
7928 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v0",
|
7929 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v0, POWERPC_SVR_5516G_v0, e200), |
7930 | a750fc0b | j_mayer | #endif
|
7931 | a750fc0b | j_mayer | #if defined (TODO)
|
7932 | 80d11f44 | j_mayer | /* MPC5516G v1 */
|
7933 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v1",
|
7934 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v1, POWERPC_SVR_5516G_v1, e200), |
7935 | a750fc0b | j_mayer | #endif
|
7936 | a750fc0b | j_mayer | #if defined (TODO)
|
7937 | 80d11f44 | j_mayer | /* MPC5516S */
|
7938 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516S",
|
7939 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516S, POWERPC_SVR_5516S, e200), |
7940 | a750fc0b | j_mayer | #endif
|
7941 | a750fc0b | j_mayer | #if defined (TODO)
|
7942 | 80d11f44 | j_mayer | /* MPC5533 */
|
7943 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5533",
|
7944 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5533, POWERPC_SVR_5533, e200), |
7945 | a750fc0b | j_mayer | #endif
|
7946 | a750fc0b | j_mayer | #if defined (TODO)
|
7947 | 80d11f44 | j_mayer | /* MPC5534 */
|
7948 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5534",
|
7949 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5534, POWERPC_SVR_5534, e200), |
7950 | a750fc0b | j_mayer | #endif
|
7951 | 80d11f44 | j_mayer | #if defined (TODO)
|
7952 | 80d11f44 | j_mayer | /* MPC5553 */
|
7953 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5553",
|
7954 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5553, POWERPC_SVR_5553, e200), |
7955 | 80d11f44 | j_mayer | #endif
|
7956 | 80d11f44 | j_mayer | #if defined (TODO)
|
7957 | 80d11f44 | j_mayer | /* MPC5554 */
|
7958 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5554",
|
7959 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5554, POWERPC_SVR_5554, e200), |
7960 | 80d11f44 | j_mayer | #endif
|
7961 | 80d11f44 | j_mayer | #if defined (TODO)
|
7962 | 80d11f44 | j_mayer | /* MPC5561 */
|
7963 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5561",
|
7964 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5561, POWERPC_SVR_5561, e200), |
7965 | 80d11f44 | j_mayer | #endif
|
7966 | 80d11f44 | j_mayer | #if defined (TODO)
|
7967 | 80d11f44 | j_mayer | /* MPC5565 */
|
7968 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5565",
|
7969 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5565, POWERPC_SVR_5565, e200), |
7970 | 80d11f44 | j_mayer | #endif
|
7971 | 80d11f44 | j_mayer | #if defined (TODO)
|
7972 | 80d11f44 | j_mayer | /* MPC5566 */
|
7973 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5566",
|
7974 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5566, POWERPC_SVR_5566, e200), |
7975 | 80d11f44 | j_mayer | #endif
|
7976 | 80d11f44 | j_mayer | #if defined (TODO)
|
7977 | 80d11f44 | j_mayer | /* MPC5567 */
|
7978 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5567",
|
7979 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5567, POWERPC_SVR_5567, e200), |
7980 | 80d11f44 | j_mayer | #endif
|
7981 | 80d11f44 | j_mayer | /* e300 family */
|
7982 | 80d11f44 | j_mayer | /* Generic PowerPC e300 core */
|
7983 | 80d11f44 | j_mayer | POWERPC_DEF("e300", CPU_POWERPC_e300, e300),
|
7984 | 80d11f44 | j_mayer | /* PowerPC e300c1 core */
|
7985 | 80d11f44 | j_mayer | POWERPC_DEF("e300c1", CPU_POWERPC_e300c1, e300),
|
7986 | 80d11f44 | j_mayer | /* PowerPC e300c2 core */
|
7987 | 80d11f44 | j_mayer | POWERPC_DEF("e300c2", CPU_POWERPC_e300c2, e300),
|
7988 | 80d11f44 | j_mayer | /* PowerPC e300c3 core */
|
7989 | 80d11f44 | j_mayer | POWERPC_DEF("e300c3", CPU_POWERPC_e300c3, e300),
|
7990 | 80d11f44 | j_mayer | /* PowerPC e300c4 core */
|
7991 | 80d11f44 | j_mayer | POWERPC_DEF("e300c4", CPU_POWERPC_e300c4, e300),
|
7992 | 80d11f44 | j_mayer | /* PowerPC e300 microcontrollers */
|
7993 | 80d11f44 | j_mayer | #if defined (TODO)
|
7994 | 80d11f44 | j_mayer | /* MPC8313 */
|
7995 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313",
|
7996 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8313, POWERPC_SVR_8313, e300), |
7997 | 80d11f44 | j_mayer | #endif
|
7998 | 80d11f44 | j_mayer | #if defined (TODO)
|
7999 | 80d11f44 | j_mayer | /* MPC8313E */
|
8000 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313E",
|
8001 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8313E, POWERPC_SVR_8313E, e300), |
8002 | 80d11f44 | j_mayer | #endif
|
8003 | 80d11f44 | j_mayer | #if defined (TODO)
|
8004 | 80d11f44 | j_mayer | /* MPC8314 */
|
8005 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314",
|
8006 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8314, POWERPC_SVR_8314, e300), |
8007 | 80d11f44 | j_mayer | #endif
|
8008 | 80d11f44 | j_mayer | #if defined (TODO)
|
8009 | 80d11f44 | j_mayer | /* MPC8314E */
|
8010 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314E",
|
8011 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8314E, POWERPC_SVR_8314E, e300), |
8012 | 80d11f44 | j_mayer | #endif
|
8013 | 80d11f44 | j_mayer | #if defined (TODO)
|
8014 | 80d11f44 | j_mayer | /* MPC8315 */
|
8015 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315",
|
8016 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8315, POWERPC_SVR_8315, e300), |
8017 | 80d11f44 | j_mayer | #endif
|
8018 | 80d11f44 | j_mayer | #if defined (TODO)
|
8019 | 80d11f44 | j_mayer | /* MPC8315E */
|
8020 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315E",
|
8021 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8315E, POWERPC_SVR_8315E, e300), |
8022 | 80d11f44 | j_mayer | #endif
|
8023 | 80d11f44 | j_mayer | #if defined (TODO)
|
8024 | 80d11f44 | j_mayer | /* MPC8321 */
|
8025 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321",
|
8026 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8321, POWERPC_SVR_8321, e300), |
8027 | 80d11f44 | j_mayer | #endif
|
8028 | 80d11f44 | j_mayer | #if defined (TODO)
|
8029 | 80d11f44 | j_mayer | /* MPC8321E */
|
8030 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321E",
|
8031 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8321E, POWERPC_SVR_8321E, e300), |
8032 | 80d11f44 | j_mayer | #endif
|
8033 | 80d11f44 | j_mayer | #if defined (TODO)
|
8034 | 80d11f44 | j_mayer | /* MPC8323 */
|
8035 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323",
|
8036 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8323, POWERPC_SVR_8323, e300), |
8037 | 80d11f44 | j_mayer | #endif
|
8038 | 80d11f44 | j_mayer | #if defined (TODO)
|
8039 | 80d11f44 | j_mayer | /* MPC8323E */
|
8040 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323E",
|
8041 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8323E, POWERPC_SVR_8323E, e300), |
8042 | 80d11f44 | j_mayer | #endif
|
8043 | 80d11f44 | j_mayer | /* MPC8343A */
|
8044 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343A",
|
8045 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8343A, POWERPC_SVR_8343A, e300), |
8046 | 80d11f44 | j_mayer | /* MPC8343EA */
|
8047 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343EA",
|
8048 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8343EA, POWERPC_SVR_8343EA, e300), |
8049 | 80d11f44 | j_mayer | /* MPC8347A */
|
8050 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347A",
|
8051 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347A, POWERPC_SVR_8347A, e300), |
8052 | 80d11f44 | j_mayer | /* MPC8347AT */
|
8053 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AT",
|
8054 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347AT, POWERPC_SVR_8347AT, e300), |
8055 | 80d11f44 | j_mayer | /* MPC8347AP */
|
8056 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AP",
|
8057 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347AP, POWERPC_SVR_8347AP, e300), |
8058 | 80d11f44 | j_mayer | /* MPC8347EA */
|
8059 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EA",
|
8060 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EA, POWERPC_SVR_8347EA, e300), |
8061 | 80d11f44 | j_mayer | /* MPC8347EAT */
|
8062 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAT",
|
8063 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EAT, POWERPC_SVR_8347EAT, e300), |
8064 | 80d11f44 | j_mayer | /* MPC8343EAP */
|
8065 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAP",
|
8066 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EAP, POWERPC_SVR_8347EAP, e300), |
8067 | 80d11f44 | j_mayer | /* MPC8349 */
|
8068 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349",
|
8069 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349, POWERPC_SVR_8349, e300), |
8070 | 80d11f44 | j_mayer | /* MPC8349A */
|
8071 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349A",
|
8072 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349A, POWERPC_SVR_8349A, e300), |
8073 | 80d11f44 | j_mayer | /* MPC8349E */
|
8074 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349E",
|
8075 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349E, POWERPC_SVR_8349E, e300), |
8076 | 80d11f44 | j_mayer | /* MPC8349EA */
|
8077 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349EA",
|
8078 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349EA, POWERPC_SVR_8349EA, e300), |
8079 | 80d11f44 | j_mayer | #if defined (TODO)
|
8080 | 80d11f44 | j_mayer | /* MPC8358E */
|
8081 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8358E",
|
8082 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8358E, POWERPC_SVR_8358E, e300), |
8083 | 80d11f44 | j_mayer | #endif
|
8084 | 80d11f44 | j_mayer | #if defined (TODO)
|
8085 | 80d11f44 | j_mayer | /* MPC8360E */
|
8086 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8360E",
|
8087 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8360E, POWERPC_SVR_8360E, e300), |
8088 | 80d11f44 | j_mayer | #endif
|
8089 | 80d11f44 | j_mayer | /* MPC8377 */
|
8090 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377",
|
8091 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8377, POWERPC_SVR_8377, e300), |
8092 | 80d11f44 | j_mayer | /* MPC8377E */
|
8093 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377E",
|
8094 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8377E, POWERPC_SVR_8377E, e300), |
8095 | 80d11f44 | j_mayer | /* MPC8378 */
|
8096 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378",
|
8097 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8378, POWERPC_SVR_8378, e300), |
8098 | 80d11f44 | j_mayer | /* MPC8378E */
|
8099 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378E",
|
8100 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8378E, POWERPC_SVR_8378E, e300), |
8101 | 80d11f44 | j_mayer | /* MPC8379 */
|
8102 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379",
|
8103 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8379, POWERPC_SVR_8379, e300), |
8104 | 80d11f44 | j_mayer | /* MPC8379E */
|
8105 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379E",
|
8106 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8379E, POWERPC_SVR_8379E, e300), |
8107 | 80d11f44 | j_mayer | /* e500 family */
|
8108 | 80d11f44 | j_mayer | /* PowerPC e500 core */
|
8109 | bd5ea513 | aurel32 | POWERPC_DEF("e500", CPU_POWERPC_e500v2_v22, e500v2),
|
8110 | bd5ea513 | aurel32 | /* PowerPC e500v1 core */
|
8111 | bd5ea513 | aurel32 | POWERPC_DEF("e500v1", CPU_POWERPC_e500v1, e500v1),
|
8112 | 80d11f44 | j_mayer | /* PowerPC e500 v1.0 core */
|
8113 | bd5ea513 | aurel32 | POWERPC_DEF("e500_v10", CPU_POWERPC_e500v1_v10, e500v1),
|
8114 | 80d11f44 | j_mayer | /* PowerPC e500 v2.0 core */
|
8115 | bd5ea513 | aurel32 | POWERPC_DEF("e500_v20", CPU_POWERPC_e500v1_v20, e500v1),
|
8116 | 80d11f44 | j_mayer | /* PowerPC e500v2 core */
|
8117 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2", CPU_POWERPC_e500v2, e500v2),
|
8118 | 80d11f44 | j_mayer | /* PowerPC e500v2 v1.0 core */
|
8119 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v10", CPU_POWERPC_e500v2_v10, e500v2),
|
8120 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.0 core */
|
8121 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v20", CPU_POWERPC_e500v2_v20, e500v2),
|
8122 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.1 core */
|
8123 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v21", CPU_POWERPC_e500v2_v21, e500v2),
|
8124 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.2 core */
|
8125 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v22", CPU_POWERPC_e500v2_v22, e500v2),
|
8126 | 80d11f44 | j_mayer | /* PowerPC e500v2 v3.0 core */
|
8127 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v30", CPU_POWERPC_e500v2_v30, e500v2),
|
8128 | 80d11f44 | j_mayer | /* PowerPC e500 microcontrollers */
|
8129 | 80d11f44 | j_mayer | /* MPC8533 */
|
8130 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533",
|
8131 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533, POWERPC_SVR_8533, e500v2), |
8132 | 80d11f44 | j_mayer | /* MPC8533 v1.0 */
|
8133 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v10",
|
8134 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533_v10, POWERPC_SVR_8533_v10, e500v2), |
8135 | 80d11f44 | j_mayer | /* MPC8533 v1.1 */
|
8136 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v11",
|
8137 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533_v11, POWERPC_SVR_8533_v11, e500v2), |
8138 | 80d11f44 | j_mayer | /* MPC8533E */
|
8139 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E",
|
8140 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E, POWERPC_SVR_8533E, e500v2), |
8141 | 80d11f44 | j_mayer | /* MPC8533E v1.0 */
|
8142 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v10",
|
8143 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E_v10, POWERPC_SVR_8533E_v10, e500v2), |
8144 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v11",
|
8145 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E_v11, POWERPC_SVR_8533E_v11, e500v2), |
8146 | 80d11f44 | j_mayer | /* MPC8540 */
|
8147 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540",
|
8148 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540, POWERPC_SVR_8540, e500v1), |
8149 | 80d11f44 | j_mayer | /* MPC8540 v1.0 */
|
8150 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v10",
|
8151 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v10, POWERPC_SVR_8540_v10, e500v1), |
8152 | 80d11f44 | j_mayer | /* MPC8540 v2.0 */
|
8153 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v20",
|
8154 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v20, POWERPC_SVR_8540_v20, e500v1), |
8155 | 80d11f44 | j_mayer | /* MPC8540 v2.1 */
|
8156 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v21",
|
8157 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v21, POWERPC_SVR_8540_v21, e500v1), |
8158 | 80d11f44 | j_mayer | /* MPC8541 */
|
8159 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541",
|
8160 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541, POWERPC_SVR_8541, e500v1), |
8161 | 80d11f44 | j_mayer | /* MPC8541 v1.0 */
|
8162 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v10",
|
8163 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541_v10, POWERPC_SVR_8541_v10, e500v1), |
8164 | 80d11f44 | j_mayer | /* MPC8541 v1.1 */
|
8165 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v11",
|
8166 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541_v11, POWERPC_SVR_8541_v11, e500v1), |
8167 | 80d11f44 | j_mayer | /* MPC8541E */
|
8168 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E",
|
8169 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E, POWERPC_SVR_8541E, e500v1), |
8170 | 80d11f44 | j_mayer | /* MPC8541E v1.0 */
|
8171 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v10",
|
8172 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E_v10, POWERPC_SVR_8541E_v10, e500v1), |
8173 | 80d11f44 | j_mayer | /* MPC8541E v1.1 */
|
8174 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v11",
|
8175 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E_v11, POWERPC_SVR_8541E_v11, e500v1), |
8176 | 80d11f44 | j_mayer | /* MPC8543 */
|
8177 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543",
|
8178 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543, POWERPC_SVR_8543, e500v2), |
8179 | 80d11f44 | j_mayer | /* MPC8543 v1.0 */
|
8180 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v10",
|
8181 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v10, POWERPC_SVR_8543_v10, e500v2), |
8182 | 80d11f44 | j_mayer | /* MPC8543 v1.1 */
|
8183 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v11",
|
8184 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v11, POWERPC_SVR_8543_v11, e500v2), |
8185 | 80d11f44 | j_mayer | /* MPC8543 v2.0 */
|
8186 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v20",
|
8187 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v20, POWERPC_SVR_8543_v20, e500v2), |
8188 | 80d11f44 | j_mayer | /* MPC8543 v2.1 */
|
8189 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v21",
|
8190 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v21, POWERPC_SVR_8543_v21, e500v2), |
8191 | 80d11f44 | j_mayer | /* MPC8543E */
|
8192 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E",
|
8193 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E, POWERPC_SVR_8543E, e500v2), |
8194 | 80d11f44 | j_mayer | /* MPC8543E v1.0 */
|
8195 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v10",
|
8196 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v10, POWERPC_SVR_8543E_v10, e500v2), |
8197 | 80d11f44 | j_mayer | /* MPC8543E v1.1 */
|
8198 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v11",
|
8199 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v11, POWERPC_SVR_8543E_v11, e500v2), |
8200 | 80d11f44 | j_mayer | /* MPC8543E v2.0 */
|
8201 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v20",
|
8202 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v20, POWERPC_SVR_8543E_v20, e500v2), |
8203 | 80d11f44 | j_mayer | /* MPC8543E v2.1 */
|
8204 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v21",
|
8205 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v21, POWERPC_SVR_8543E_v21, e500v2), |
8206 | 80d11f44 | j_mayer | /* MPC8544 */
|
8207 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544",
|
8208 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544, POWERPC_SVR_8544, e500v2), |
8209 | 80d11f44 | j_mayer | /* MPC8544 v1.0 */
|
8210 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v10",
|
8211 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544_v10, POWERPC_SVR_8544_v10, e500v2), |
8212 | 80d11f44 | j_mayer | /* MPC8544 v1.1 */
|
8213 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v11",
|
8214 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544_v11, POWERPC_SVR_8544_v11, e500v2), |
8215 | 80d11f44 | j_mayer | /* MPC8544E */
|
8216 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E",
|
8217 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E, POWERPC_SVR_8544E, e500v2), |
8218 | 80d11f44 | j_mayer | /* MPC8544E v1.0 */
|
8219 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v10",
|
8220 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E_v10, POWERPC_SVR_8544E_v10, e500v2), |
8221 | 80d11f44 | j_mayer | /* MPC8544E v1.1 */
|
8222 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v11",
|
8223 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E_v11, POWERPC_SVR_8544E_v11, e500v2), |
8224 | 80d11f44 | j_mayer | /* MPC8545 */
|
8225 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545",
|
8226 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545, POWERPC_SVR_8545, e500v2), |
8227 | 80d11f44 | j_mayer | /* MPC8545 v2.0 */
|
8228 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v20",
|
8229 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545_v20, POWERPC_SVR_8545_v20, e500v2), |
8230 | 80d11f44 | j_mayer | /* MPC8545 v2.1 */
|
8231 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v21",
|
8232 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545_v21, POWERPC_SVR_8545_v21, e500v2), |
8233 | 80d11f44 | j_mayer | /* MPC8545E */
|
8234 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E",
|
8235 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E, POWERPC_SVR_8545E, e500v2), |
8236 | 80d11f44 | j_mayer | /* MPC8545E v2.0 */
|
8237 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v20",
|
8238 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E_v20, POWERPC_SVR_8545E_v20, e500v2), |
8239 | 80d11f44 | j_mayer | /* MPC8545E v2.1 */
|
8240 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v21",
|
8241 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E_v21, POWERPC_SVR_8545E_v21, e500v2), |
8242 | 80d11f44 | j_mayer | /* MPC8547E */
|
8243 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E",
|
8244 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E, POWERPC_SVR_8547E, e500v2), |
8245 | 80d11f44 | j_mayer | /* MPC8547E v2.0 */
|
8246 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v20",
|
8247 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E_v20, POWERPC_SVR_8547E_v20, e500v2), |
8248 | 80d11f44 | j_mayer | /* MPC8547E v2.1 */
|
8249 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v21",
|
8250 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E_v21, POWERPC_SVR_8547E_v21, e500v2), |
8251 | 80d11f44 | j_mayer | /* MPC8548 */
|
8252 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548",
|
8253 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548, POWERPC_SVR_8548, e500v2), |
8254 | 80d11f44 | j_mayer | /* MPC8548 v1.0 */
|
8255 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v10",
|
8256 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v10, POWERPC_SVR_8548_v10, e500v2), |
8257 | 80d11f44 | j_mayer | /* MPC8548 v1.1 */
|
8258 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v11",
|
8259 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v11, POWERPC_SVR_8548_v11, e500v2), |
8260 | 80d11f44 | j_mayer | /* MPC8548 v2.0 */
|
8261 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v20",
|
8262 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v20, POWERPC_SVR_8548_v20, e500v2), |
8263 | 80d11f44 | j_mayer | /* MPC8548 v2.1 */
|
8264 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v21",
|
8265 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v21, POWERPC_SVR_8548_v21, e500v2), |
8266 | 80d11f44 | j_mayer | /* MPC8548E */
|
8267 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E",
|
8268 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E, POWERPC_SVR_8548E, e500v2), |
8269 | 80d11f44 | j_mayer | /* MPC8548E v1.0 */
|
8270 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v10",
|
8271 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v10, POWERPC_SVR_8548E_v10, e500v2), |
8272 | 80d11f44 | j_mayer | /* MPC8548E v1.1 */
|
8273 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v11",
|
8274 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v11, POWERPC_SVR_8548E_v11, e500v2), |
8275 | 80d11f44 | j_mayer | /* MPC8548E v2.0 */
|
8276 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v20",
|
8277 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v20, POWERPC_SVR_8548E_v20, e500v2), |
8278 | 80d11f44 | j_mayer | /* MPC8548E v2.1 */
|
8279 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v21",
|
8280 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v21, POWERPC_SVR_8548E_v21, e500v2), |
8281 | 80d11f44 | j_mayer | /* MPC8555 */
|
8282 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555",
|
8283 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555, POWERPC_SVR_8555, e500v2), |
8284 | 80d11f44 | j_mayer | /* MPC8555 v1.0 */
|
8285 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v10",
|
8286 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555_v10, POWERPC_SVR_8555_v10, e500v2), |
8287 | 80d11f44 | j_mayer | /* MPC8555 v1.1 */
|
8288 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v11",
|
8289 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555_v11, POWERPC_SVR_8555_v11, e500v2), |
8290 | 80d11f44 | j_mayer | /* MPC8555E */
|
8291 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E",
|
8292 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E, POWERPC_SVR_8555E, e500v2), |
8293 | 80d11f44 | j_mayer | /* MPC8555E v1.0 */
|
8294 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v10",
|
8295 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E_v10, POWERPC_SVR_8555E_v10, e500v2), |
8296 | 80d11f44 | j_mayer | /* MPC8555E v1.1 */
|
8297 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v11",
|
8298 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E_v11, POWERPC_SVR_8555E_v11, e500v2), |
8299 | 80d11f44 | j_mayer | /* MPC8560 */
|
8300 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560",
|
8301 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560, POWERPC_SVR_8560, e500v2), |
8302 | 80d11f44 | j_mayer | /* MPC8560 v1.0 */
|
8303 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v10",
|
8304 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v10, POWERPC_SVR_8560_v10, e500v2), |
8305 | 80d11f44 | j_mayer | /* MPC8560 v2.0 */
|
8306 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v20",
|
8307 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v20, POWERPC_SVR_8560_v20, e500v2), |
8308 | 80d11f44 | j_mayer | /* MPC8560 v2.1 */
|
8309 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v21",
|
8310 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v21, POWERPC_SVR_8560_v21, e500v2), |
8311 | 80d11f44 | j_mayer | /* MPC8567 */
|
8312 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567",
|
8313 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8567, POWERPC_SVR_8567, e500v2), |
8314 | 80d11f44 | j_mayer | /* MPC8567E */
|
8315 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567E",
|
8316 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8567E, POWERPC_SVR_8567E, e500v2), |
8317 | 80d11f44 | j_mayer | /* MPC8568 */
|
8318 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568",
|
8319 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8568, POWERPC_SVR_8568, e500v2), |
8320 | 80d11f44 | j_mayer | /* MPC8568E */
|
8321 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568E",
|
8322 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8568E, POWERPC_SVR_8568E, e500v2), |
8323 | 80d11f44 | j_mayer | /* MPC8572 */
|
8324 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572",
|
8325 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8572, POWERPC_SVR_8572, e500v2), |
8326 | 80d11f44 | j_mayer | /* MPC8572E */
|
8327 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572E",
|
8328 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8572E, POWERPC_SVR_8572E, e500v2), |
8329 | 80d11f44 | j_mayer | /* e600 family */
|
8330 | 80d11f44 | j_mayer | /* PowerPC e600 core */
|
8331 | 80d11f44 | j_mayer | POWERPC_DEF("e600", CPU_POWERPC_e600, 7400), |
8332 | 80d11f44 | j_mayer | /* PowerPC e600 microcontrollers */
|
8333 | 80d11f44 | j_mayer | #if defined (TODO)
|
8334 | 80d11f44 | j_mayer | /* MPC8610 */
|
8335 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8610",
|
8336 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8610, POWERPC_SVR_8610, 7400),
|
8337 | 80d11f44 | j_mayer | #endif
|
8338 | 80d11f44 | j_mayer | /* MPC8641 */
|
8339 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641",
|
8340 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641, POWERPC_SVR_8641, 7400),
|
8341 | 80d11f44 | j_mayer | /* MPC8641D */
|
8342 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641D",
|
8343 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641D, POWERPC_SVR_8641D, 7400),
|
8344 | a750fc0b | j_mayer | /* 32 bits "classic" PowerPC */
|
8345 | a750fc0b | j_mayer | /* PowerPC 6xx family */
|
8346 | a750fc0b | j_mayer | /* PowerPC 601 */
|
8347 | bd928eba | j_mayer | POWERPC_DEF("601", CPU_POWERPC_601, 601v), |
8348 | c3e36823 | j_mayer | /* PowerPC 601v0 */
|
8349 | 082c6681 | j_mayer | POWERPC_DEF("601_v0", CPU_POWERPC_601_v0, 601), |
8350 | c3e36823 | j_mayer | /* PowerPC 601v1 */
|
8351 | 082c6681 | j_mayer | POWERPC_DEF("601_v1", CPU_POWERPC_601_v1, 601), |
8352 | 082c6681 | j_mayer | /* PowerPC 601v */
|
8353 | bd928eba | j_mayer | POWERPC_DEF("601v", CPU_POWERPC_601v, 601v), |
8354 | a750fc0b | j_mayer | /* PowerPC 601v2 */
|
8355 | 082c6681 | j_mayer | POWERPC_DEF("601_v2", CPU_POWERPC_601_v2, 601v), |
8356 | a750fc0b | j_mayer | /* PowerPC 602 */
|
8357 | 80d11f44 | j_mayer | POWERPC_DEF("602", CPU_POWERPC_602, 602), |
8358 | a750fc0b | j_mayer | /* PowerPC 603 */
|
8359 | 80d11f44 | j_mayer | POWERPC_DEF("603", CPU_POWERPC_603, 603), |
8360 | a750fc0b | j_mayer | /* Code name for PowerPC 603 */
|
8361 | 80d11f44 | j_mayer | POWERPC_DEF("Vanilla", CPU_POWERPC_603, 603), |
8362 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID6) */
|
8363 | 80d11f44 | j_mayer | POWERPC_DEF("603e", CPU_POWERPC_603E, 603E), |
8364 | a750fc0b | j_mayer | /* Code name for PowerPC 603e */
|
8365 | 80d11f44 | j_mayer | POWERPC_DEF("Stretch", CPU_POWERPC_603E, 603E), |
8366 | a750fc0b | j_mayer | /* PowerPC 603e v1.1 */
|
8367 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.1", CPU_POWERPC_603E_v11, 603E), |
8368 | a750fc0b | j_mayer | /* PowerPC 603e v1.2 */
|
8369 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.2", CPU_POWERPC_603E_v12, 603E), |
8370 | a750fc0b | j_mayer | /* PowerPC 603e v1.3 */
|
8371 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.3", CPU_POWERPC_603E_v13, 603E), |
8372 | a750fc0b | j_mayer | /* PowerPC 603e v1.4 */
|
8373 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.4", CPU_POWERPC_603E_v14, 603E), |
8374 | a750fc0b | j_mayer | /* PowerPC 603e v2.2 */
|
8375 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v2.2", CPU_POWERPC_603E_v22, 603E), |
8376 | a750fc0b | j_mayer | /* PowerPC 603e v3 */
|
8377 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v3", CPU_POWERPC_603E_v3, 603E), |
8378 | a750fc0b | j_mayer | /* PowerPC 603e v4 */
|
8379 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4", CPU_POWERPC_603E_v4, 603E), |
8380 | a750fc0b | j_mayer | /* PowerPC 603e v4.1 */
|
8381 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4.1", CPU_POWERPC_603E_v41, 603E), |
8382 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID7) */
|
8383 | 80d11f44 | j_mayer | POWERPC_DEF("603e7", CPU_POWERPC_603E7, 603E), |
8384 | a750fc0b | j_mayer | /* PowerPC 603e7t */
|
8385 | 80d11f44 | j_mayer | POWERPC_DEF("603e7t", CPU_POWERPC_603E7t, 603E), |
8386 | a750fc0b | j_mayer | /* PowerPC 603e7v */
|
8387 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v", CPU_POWERPC_603E7v, 603E), |
8388 | a750fc0b | j_mayer | /* Code name for PowerPC 603ev */
|
8389 | 80d11f44 | j_mayer | POWERPC_DEF("Vaillant", CPU_POWERPC_603E7v, 603E), |
8390 | a750fc0b | j_mayer | /* PowerPC 603e7v1 */
|
8391 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v1", CPU_POWERPC_603E7v1, 603E), |
8392 | a750fc0b | j_mayer | /* PowerPC 603e7v2 */
|
8393 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v2", CPU_POWERPC_603E7v2, 603E), |
8394 | 082c6681 | j_mayer | /* PowerPC 603p (aka PID7v) */
|
8395 | 082c6681 | j_mayer | POWERPC_DEF("603p", CPU_POWERPC_603P, 603E), |
8396 | 082c6681 | j_mayer | /* PowerPC 603r (aka PID7t) */
|
8397 | 80d11f44 | j_mayer | POWERPC_DEF("603r", CPU_POWERPC_603R, 603E), |
8398 | a750fc0b | j_mayer | /* Code name for PowerPC 603r */
|
8399 | 80d11f44 | j_mayer | POWERPC_DEF("Goldeneye", CPU_POWERPC_603R, 603E), |
8400 | a750fc0b | j_mayer | /* PowerPC 604 */
|
8401 | 80d11f44 | j_mayer | POWERPC_DEF("604", CPU_POWERPC_604, 604), |
8402 | 082c6681 | j_mayer | /* PowerPC 604e (aka PID9) */
|
8403 | 082c6681 | j_mayer | POWERPC_DEF("604e", CPU_POWERPC_604E, 604E), |
8404 | 082c6681 | j_mayer | /* Code name for PowerPC 604e */
|
8405 | 082c6681 | j_mayer | POWERPC_DEF("Sirocco", CPU_POWERPC_604E, 604E), |
8406 | a750fc0b | j_mayer | /* PowerPC 604e v1.0 */
|
8407 | 082c6681 | j_mayer | POWERPC_DEF("604e_v1.0", CPU_POWERPC_604E_v10, 604E), |
8408 | a750fc0b | j_mayer | /* PowerPC 604e v2.2 */
|
8409 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.2", CPU_POWERPC_604E_v22, 604E), |
8410 | a750fc0b | j_mayer | /* PowerPC 604e v2.4 */
|
8411 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.4", CPU_POWERPC_604E_v24, 604E), |
8412 | 082c6681 | j_mayer | /* PowerPC 604r (aka PIDA) */
|
8413 | 082c6681 | j_mayer | POWERPC_DEF("604r", CPU_POWERPC_604R, 604E), |
8414 | 082c6681 | j_mayer | /* Code name for PowerPC 604r */
|
8415 | 082c6681 | j_mayer | POWERPC_DEF("Mach5", CPU_POWERPC_604R, 604E), |
8416 | a750fc0b | j_mayer | #if defined(TODO)
|
8417 | a750fc0b | j_mayer | /* PowerPC 604ev */
|
8418 | 082c6681 | j_mayer | POWERPC_DEF("604ev", CPU_POWERPC_604EV, 604E), |
8419 | a750fc0b | j_mayer | #endif
|
8420 | a750fc0b | j_mayer | /* PowerPC 7xx family */
|
8421 | a750fc0b | j_mayer | /* Generic PowerPC 740 (G3) */
|
8422 | bd928eba | j_mayer | POWERPC_DEF("740", CPU_POWERPC_7x0, 740), |
8423 | 082c6681 | j_mayer | /* Code name for PowerPC 740 */
|
8424 | bd928eba | j_mayer | POWERPC_DEF("Arthur", CPU_POWERPC_7x0, 740), |
8425 | a750fc0b | j_mayer | /* Generic PowerPC 750 (G3) */
|
8426 | bd928eba | j_mayer | POWERPC_DEF("750", CPU_POWERPC_7x0, 750), |
8427 | 082c6681 | j_mayer | /* Code name for PowerPC 750 */
|
8428 | bd928eba | j_mayer | POWERPC_DEF("Typhoon", CPU_POWERPC_7x0, 750), |
8429 | a750fc0b | j_mayer | /* PowerPC 740/750 is also known as G3 */
|
8430 | bd928eba | j_mayer | POWERPC_DEF("G3", CPU_POWERPC_7x0, 750), |
8431 | bd928eba | j_mayer | /* PowerPC 740 v1.0 (G3) */
|
8432 | bd928eba | j_mayer | POWERPC_DEF("740_v1.0", CPU_POWERPC_7x0_v10, 740), |
8433 | bd928eba | j_mayer | /* PowerPC 750 v1.0 (G3) */
|
8434 | bd928eba | j_mayer | POWERPC_DEF("750_v1.0", CPU_POWERPC_7x0_v10, 750), |
8435 | a750fc0b | j_mayer | /* PowerPC 740 v2.0 (G3) */
|
8436 | bd928eba | j_mayer | POWERPC_DEF("740_v2.0", CPU_POWERPC_7x0_v20, 740), |
8437 | a750fc0b | j_mayer | /* PowerPC 750 v2.0 (G3) */
|
8438 | bd928eba | j_mayer | POWERPC_DEF("750_v2.0", CPU_POWERPC_7x0_v20, 750), |
8439 | a750fc0b | j_mayer | /* PowerPC 740 v2.1 (G3) */
|
8440 | bd928eba | j_mayer | POWERPC_DEF("740_v2.1", CPU_POWERPC_7x0_v21, 740), |
8441 | a750fc0b | j_mayer | /* PowerPC 750 v2.1 (G3) */
|
8442 | bd928eba | j_mayer | POWERPC_DEF("750_v2.1", CPU_POWERPC_7x0_v21, 750), |
8443 | a750fc0b | j_mayer | /* PowerPC 740 v2.2 (G3) */
|
8444 | bd928eba | j_mayer | POWERPC_DEF("740_v2.2", CPU_POWERPC_7x0_v22, 740), |
8445 | a750fc0b | j_mayer | /* PowerPC 750 v2.2 (G3) */
|
8446 | bd928eba | j_mayer | POWERPC_DEF("750_v2.2", CPU_POWERPC_7x0_v22, 750), |
8447 | a750fc0b | j_mayer | /* PowerPC 740 v3.0 (G3) */
|
8448 | bd928eba | j_mayer | POWERPC_DEF("740_v3.0", CPU_POWERPC_7x0_v30, 740), |
8449 | a750fc0b | j_mayer | /* PowerPC 750 v3.0 (G3) */
|
8450 | bd928eba | j_mayer | POWERPC_DEF("750_v3.0", CPU_POWERPC_7x0_v30, 750), |
8451 | a750fc0b | j_mayer | /* PowerPC 740 v3.1 (G3) */
|
8452 | bd928eba | j_mayer | POWERPC_DEF("740_v3.1", CPU_POWERPC_7x0_v31, 740), |
8453 | a750fc0b | j_mayer | /* PowerPC 750 v3.1 (G3) */
|
8454 | bd928eba | j_mayer | POWERPC_DEF("750_v3.1", CPU_POWERPC_7x0_v31, 750), |
8455 | a750fc0b | j_mayer | /* PowerPC 740E (G3) */
|
8456 | bd928eba | j_mayer | POWERPC_DEF("740e", CPU_POWERPC_740E, 740), |
8457 | bd928eba | j_mayer | /* PowerPC 750E (G3) */
|
8458 | bd928eba | j_mayer | POWERPC_DEF("750e", CPU_POWERPC_750E, 750), |
8459 | a750fc0b | j_mayer | /* PowerPC 740P (G3) */
|
8460 | bd928eba | j_mayer | POWERPC_DEF("740p", CPU_POWERPC_7x0P, 740), |
8461 | a750fc0b | j_mayer | /* PowerPC 750P (G3) */
|
8462 | bd928eba | j_mayer | POWERPC_DEF("750p", CPU_POWERPC_7x0P, 750), |
8463 | a750fc0b | j_mayer | /* Code name for PowerPC 740P/750P (G3) */
|
8464 | bd928eba | j_mayer | POWERPC_DEF("Conan/Doyle", CPU_POWERPC_7x0P, 750), |
8465 | a750fc0b | j_mayer | /* PowerPC 750CL (G3 embedded) */
|
8466 | bd928eba | j_mayer | POWERPC_DEF("750cl", CPU_POWERPC_750CL, 750cl), |
8467 | bd928eba | j_mayer | /* PowerPC 750CL v1.0 */
|
8468 | bd928eba | j_mayer | POWERPC_DEF("750cl_v1.0", CPU_POWERPC_750CL_v10, 750cl), |
8469 | bd928eba | j_mayer | /* PowerPC 750CL v2.0 */
|
8470 | bd928eba | j_mayer | POWERPC_DEF("750cl_v2.0", CPU_POWERPC_750CL_v20, 750cl), |
8471 | a750fc0b | j_mayer | /* PowerPC 750CX (G3 embedded) */
|
8472 | bd928eba | j_mayer | POWERPC_DEF("750cx", CPU_POWERPC_750CX, 750cx), |
8473 | bd928eba | j_mayer | /* PowerPC 750CX v1.0 (G3 embedded) */
|
8474 | bd928eba | j_mayer | POWERPC_DEF("750cx_v1.0", CPU_POWERPC_750CX_v10, 750cx), |
8475 | bd928eba | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8476 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.0", CPU_POWERPC_750CX_v20, 750cx), |
8477 | a750fc0b | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8478 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.1", CPU_POWERPC_750CX_v21, 750cx), |
8479 | a750fc0b | j_mayer | /* PowerPC 750CX v2.2 (G3 embedded) */
|
8480 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.2", CPU_POWERPC_750CX_v22, 750cx), |
8481 | a750fc0b | j_mayer | /* PowerPC 750CXe (G3 embedded) */
|
8482 | bd928eba | j_mayer | POWERPC_DEF("750cxe", CPU_POWERPC_750CXE, 750cx), |
8483 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.1 (G3 embedded) */
|
8484 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.1", CPU_POWERPC_750CXE_v21, 750cx), |
8485 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.2 (G3 embedded) */
|
8486 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.2", CPU_POWERPC_750CXE_v22, 750cx), |
8487 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.3 (G3 embedded) */
|
8488 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.3", CPU_POWERPC_750CXE_v23, 750cx), |
8489 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4 (G3 embedded) */
|
8490 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4", CPU_POWERPC_750CXE_v24, 750cx), |
8491 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4b (G3 embedded) */
|
8492 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4b", CPU_POWERPC_750CXE_v24b, 750cx), |
8493 | bd928eba | j_mayer | /* PowerPC 750CXe v3.0 (G3 embedded) */
|
8494 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.0", CPU_POWERPC_750CXE_v30, 750cx), |
8495 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1 (G3 embedded) */
|
8496 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1", CPU_POWERPC_750CXE_v31, 750cx), |
8497 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1b (G3 embedded) */
|
8498 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1b", CPU_POWERPC_750CXE_v31b, 750cx), |
8499 | a750fc0b | j_mayer | /* PowerPC 750CXr (G3 embedded) */
|
8500 | bd928eba | j_mayer | POWERPC_DEF("750cxr", CPU_POWERPC_750CXR, 750cx), |
8501 | a750fc0b | j_mayer | /* PowerPC 750FL (G3 embedded) */
|
8502 | 80d11f44 | j_mayer | POWERPC_DEF("750fl", CPU_POWERPC_750FL, 750fx), |
8503 | a750fc0b | j_mayer | /* PowerPC 750FX (G3 embedded) */
|
8504 | 80d11f44 | j_mayer | POWERPC_DEF("750fx", CPU_POWERPC_750FX, 750fx), |
8505 | a750fc0b | j_mayer | /* PowerPC 750FX v1.0 (G3 embedded) */
|
8506 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v1.0", CPU_POWERPC_750FX_v10, 750fx), |
8507 | a750fc0b | j_mayer | /* PowerPC 750FX v2.0 (G3 embedded) */
|
8508 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.0", CPU_POWERPC_750FX_v20, 750fx), |
8509 | a750fc0b | j_mayer | /* PowerPC 750FX v2.1 (G3 embedded) */
|
8510 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.1", CPU_POWERPC_750FX_v21, 750fx), |
8511 | a750fc0b | j_mayer | /* PowerPC 750FX v2.2 (G3 embedded) */
|
8512 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.2", CPU_POWERPC_750FX_v22, 750fx), |
8513 | a750fc0b | j_mayer | /* PowerPC 750FX v2.3 (G3 embedded) */
|
8514 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.3", CPU_POWERPC_750FX_v23, 750fx), |
8515 | a750fc0b | j_mayer | /* PowerPC 750GL (G3 embedded) */
|
8516 | bd928eba | j_mayer | POWERPC_DEF("750gl", CPU_POWERPC_750GL, 750gx), |
8517 | a750fc0b | j_mayer | /* PowerPC 750GX (G3 embedded) */
|
8518 | bd928eba | j_mayer | POWERPC_DEF("750gx", CPU_POWERPC_750GX, 750gx), |
8519 | a750fc0b | j_mayer | /* PowerPC 750GX v1.0 (G3 embedded) */
|
8520 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.0", CPU_POWERPC_750GX_v10, 750gx), |
8521 | a750fc0b | j_mayer | /* PowerPC 750GX v1.1 (G3 embedded) */
|
8522 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.1", CPU_POWERPC_750GX_v11, 750gx), |
8523 | a750fc0b | j_mayer | /* PowerPC 750GX v1.2 (G3 embedded) */
|
8524 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.2", CPU_POWERPC_750GX_v12, 750gx), |
8525 | a750fc0b | j_mayer | /* PowerPC 750L (G3 embedded) */
|
8526 | bd928eba | j_mayer | POWERPC_DEF("750l", CPU_POWERPC_750L, 750), |
8527 | a750fc0b | j_mayer | /* Code name for PowerPC 750L (G3 embedded) */
|
8528 | bd928eba | j_mayer | POWERPC_DEF("LoneStar", CPU_POWERPC_750L, 750), |
8529 | bd928eba | j_mayer | /* PowerPC 750L v2.0 (G3 embedded) */
|
8530 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.0", CPU_POWERPC_750L_v20, 750), |
8531 | bd928eba | j_mayer | /* PowerPC 750L v2.1 (G3 embedded) */
|
8532 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.1", CPU_POWERPC_750L_v21, 750), |
8533 | a750fc0b | j_mayer | /* PowerPC 750L v2.2 (G3 embedded) */
|
8534 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.2", CPU_POWERPC_750L_v22, 750), |
8535 | a750fc0b | j_mayer | /* PowerPC 750L v3.0 (G3 embedded) */
|
8536 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.0", CPU_POWERPC_750L_v30, 750), |
8537 | a750fc0b | j_mayer | /* PowerPC 750L v3.2 (G3 embedded) */
|
8538 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.2", CPU_POWERPC_750L_v32, 750), |
8539 | a750fc0b | j_mayer | /* Generic PowerPC 745 */
|
8540 | bd928eba | j_mayer | POWERPC_DEF("745", CPU_POWERPC_7x5, 745), |
8541 | a750fc0b | j_mayer | /* Generic PowerPC 755 */
|
8542 | bd928eba | j_mayer | POWERPC_DEF("755", CPU_POWERPC_7x5, 755), |
8543 | a750fc0b | j_mayer | /* Code name for PowerPC 745/755 */
|
8544 | bd928eba | j_mayer | POWERPC_DEF("Goldfinger", CPU_POWERPC_7x5, 755), |
8545 | a750fc0b | j_mayer | /* PowerPC 745 v1.0 */
|
8546 | bd928eba | j_mayer | POWERPC_DEF("745_v1.0", CPU_POWERPC_7x5_v10, 745), |
8547 | a750fc0b | j_mayer | /* PowerPC 755 v1.0 */
|
8548 | bd928eba | j_mayer | POWERPC_DEF("755_v1.0", CPU_POWERPC_7x5_v10, 755), |
8549 | a750fc0b | j_mayer | /* PowerPC 745 v1.1 */
|
8550 | bd928eba | j_mayer | POWERPC_DEF("745_v1.1", CPU_POWERPC_7x5_v11, 745), |
8551 | a750fc0b | j_mayer | /* PowerPC 755 v1.1 */
|
8552 | bd928eba | j_mayer | POWERPC_DEF("755_v1.1", CPU_POWERPC_7x5_v11, 755), |
8553 | a750fc0b | j_mayer | /* PowerPC 745 v2.0 */
|
8554 | bd928eba | j_mayer | POWERPC_DEF("745_v2.0", CPU_POWERPC_7x5_v20, 745), |
8555 | a750fc0b | j_mayer | /* PowerPC 755 v2.0 */
|
8556 | bd928eba | j_mayer | POWERPC_DEF("755_v2.0", CPU_POWERPC_7x5_v20, 755), |
8557 | a750fc0b | j_mayer | /* PowerPC 745 v2.1 */
|
8558 | bd928eba | j_mayer | POWERPC_DEF("745_v2.1", CPU_POWERPC_7x5_v21, 745), |
8559 | a750fc0b | j_mayer | /* PowerPC 755 v2.1 */
|
8560 | bd928eba | j_mayer | POWERPC_DEF("755_v2.1", CPU_POWERPC_7x5_v21, 755), |
8561 | a750fc0b | j_mayer | /* PowerPC 745 v2.2 */
|
8562 | bd928eba | j_mayer | POWERPC_DEF("745_v2.2", CPU_POWERPC_7x5_v22, 745), |
8563 | a750fc0b | j_mayer | /* PowerPC 755 v2.2 */
|
8564 | bd928eba | j_mayer | POWERPC_DEF("755_v2.2", CPU_POWERPC_7x5_v22, 755), |
8565 | a750fc0b | j_mayer | /* PowerPC 745 v2.3 */
|
8566 | bd928eba | j_mayer | POWERPC_DEF("745_v2.3", CPU_POWERPC_7x5_v23, 745), |
8567 | a750fc0b | j_mayer | /* PowerPC 755 v2.3 */
|
8568 | bd928eba | j_mayer | POWERPC_DEF("755_v2.3", CPU_POWERPC_7x5_v23, 755), |
8569 | a750fc0b | j_mayer | /* PowerPC 745 v2.4 */
|
8570 | bd928eba | j_mayer | POWERPC_DEF("745_v2.4", CPU_POWERPC_7x5_v24, 745), |
8571 | a750fc0b | j_mayer | /* PowerPC 755 v2.4 */
|
8572 | bd928eba | j_mayer | POWERPC_DEF("755_v2.4", CPU_POWERPC_7x5_v24, 755), |
8573 | a750fc0b | j_mayer | /* PowerPC 745 v2.5 */
|
8574 | bd928eba | j_mayer | POWERPC_DEF("745_v2.5", CPU_POWERPC_7x5_v25, 745), |
8575 | a750fc0b | j_mayer | /* PowerPC 755 v2.5 */
|
8576 | bd928eba | j_mayer | POWERPC_DEF("755_v2.5", CPU_POWERPC_7x5_v25, 755), |
8577 | a750fc0b | j_mayer | /* PowerPC 745 v2.6 */
|
8578 | bd928eba | j_mayer | POWERPC_DEF("745_v2.6", CPU_POWERPC_7x5_v26, 745), |
8579 | a750fc0b | j_mayer | /* PowerPC 755 v2.6 */
|
8580 | bd928eba | j_mayer | POWERPC_DEF("755_v2.6", CPU_POWERPC_7x5_v26, 755), |
8581 | a750fc0b | j_mayer | /* PowerPC 745 v2.7 */
|
8582 | bd928eba | j_mayer | POWERPC_DEF("745_v2.7", CPU_POWERPC_7x5_v27, 745), |
8583 | a750fc0b | j_mayer | /* PowerPC 755 v2.7 */
|
8584 | bd928eba | j_mayer | POWERPC_DEF("755_v2.7", CPU_POWERPC_7x5_v27, 755), |
8585 | a750fc0b | j_mayer | /* PowerPC 745 v2.8 */
|
8586 | bd928eba | j_mayer | POWERPC_DEF("745_v2.8", CPU_POWERPC_7x5_v28, 745), |
8587 | a750fc0b | j_mayer | /* PowerPC 755 v2.8 */
|
8588 | bd928eba | j_mayer | POWERPC_DEF("755_v2.8", CPU_POWERPC_7x5_v28, 755), |
8589 | a750fc0b | j_mayer | #if defined (TODO)
|
8590 | a750fc0b | j_mayer | /* PowerPC 745P (G3) */
|
8591 | bd928eba | j_mayer | POWERPC_DEF("745p", CPU_POWERPC_7x5P, 745), |
8592 | a750fc0b | j_mayer | /* PowerPC 755P (G3) */
|
8593 | bd928eba | j_mayer | POWERPC_DEF("755p", CPU_POWERPC_7x5P, 755), |
8594 | a750fc0b | j_mayer | #endif
|
8595 | a750fc0b | j_mayer | /* PowerPC 74xx family */
|
8596 | a750fc0b | j_mayer | /* PowerPC 7400 (G4) */
|
8597 | 80d11f44 | j_mayer | POWERPC_DEF("7400", CPU_POWERPC_7400, 7400), |
8598 | a750fc0b | j_mayer | /* Code name for PowerPC 7400 */
|
8599 | 80d11f44 | j_mayer | POWERPC_DEF("Max", CPU_POWERPC_7400, 7400), |
8600 | a750fc0b | j_mayer | /* PowerPC 74xx is also well known as G4 */
|
8601 | 80d11f44 | j_mayer | POWERPC_DEF("G4", CPU_POWERPC_7400, 7400), |
8602 | a750fc0b | j_mayer | /* PowerPC 7400 v1.0 (G4) */
|
8603 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.0", CPU_POWERPC_7400_v10, 7400), |
8604 | a750fc0b | j_mayer | /* PowerPC 7400 v1.1 (G4) */
|
8605 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.1", CPU_POWERPC_7400_v11, 7400), |
8606 | a750fc0b | j_mayer | /* PowerPC 7400 v2.0 (G4) */
|
8607 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.0", CPU_POWERPC_7400_v20, 7400), |
8608 | 4e777442 | j_mayer | /* PowerPC 7400 v2.1 (G4) */
|
8609 | 4e777442 | j_mayer | POWERPC_DEF("7400_v2.1", CPU_POWERPC_7400_v21, 7400), |
8610 | a750fc0b | j_mayer | /* PowerPC 7400 v2.2 (G4) */
|
8611 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.2", CPU_POWERPC_7400_v22, 7400), |
8612 | a750fc0b | j_mayer | /* PowerPC 7400 v2.6 (G4) */
|
8613 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.6", CPU_POWERPC_7400_v26, 7400), |
8614 | a750fc0b | j_mayer | /* PowerPC 7400 v2.7 (G4) */
|
8615 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.7", CPU_POWERPC_7400_v27, 7400), |
8616 | a750fc0b | j_mayer | /* PowerPC 7400 v2.8 (G4) */
|
8617 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.8", CPU_POWERPC_7400_v28, 7400), |
8618 | a750fc0b | j_mayer | /* PowerPC 7400 v2.9 (G4) */
|
8619 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.9", CPU_POWERPC_7400_v29, 7400), |
8620 | a750fc0b | j_mayer | /* PowerPC 7410 (G4) */
|
8621 | 80d11f44 | j_mayer | POWERPC_DEF("7410", CPU_POWERPC_7410, 7410), |
8622 | a750fc0b | j_mayer | /* Code name for PowerPC 7410 */
|
8623 | 80d11f44 | j_mayer | POWERPC_DEF("Nitro", CPU_POWERPC_7410, 7410), |
8624 | a750fc0b | j_mayer | /* PowerPC 7410 v1.0 (G4) */
|
8625 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.0", CPU_POWERPC_7410_v10, 7410), |
8626 | a750fc0b | j_mayer | /* PowerPC 7410 v1.1 (G4) */
|
8627 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.1", CPU_POWERPC_7410_v11, 7410), |
8628 | a750fc0b | j_mayer | /* PowerPC 7410 v1.2 (G4) */
|
8629 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.2", CPU_POWERPC_7410_v12, 7410), |
8630 | a750fc0b | j_mayer | /* PowerPC 7410 v1.3 (G4) */
|
8631 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.3", CPU_POWERPC_7410_v13, 7410), |
8632 | a750fc0b | j_mayer | /* PowerPC 7410 v1.4 (G4) */
|
8633 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.4", CPU_POWERPC_7410_v14, 7410), |
8634 | a750fc0b | j_mayer | /* PowerPC 7448 (G4) */
|
8635 | 80d11f44 | j_mayer | POWERPC_DEF("7448", CPU_POWERPC_7448, 7400), |
8636 | a750fc0b | j_mayer | /* PowerPC 7448 v1.0 (G4) */
|
8637 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.0", CPU_POWERPC_7448_v10, 7400), |
8638 | a750fc0b | j_mayer | /* PowerPC 7448 v1.1 (G4) */
|
8639 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.1", CPU_POWERPC_7448_v11, 7400), |
8640 | a750fc0b | j_mayer | /* PowerPC 7448 v2.0 (G4) */
|
8641 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.0", CPU_POWERPC_7448_v20, 7400), |
8642 | a750fc0b | j_mayer | /* PowerPC 7448 v2.1 (G4) */
|
8643 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.1", CPU_POWERPC_7448_v21, 7400), |
8644 | a750fc0b | j_mayer | /* PowerPC 7450 (G4) */
|
8645 | 80d11f44 | j_mayer | POWERPC_DEF("7450", CPU_POWERPC_7450, 7450), |
8646 | a750fc0b | j_mayer | /* Code name for PowerPC 7450 */
|
8647 | 80d11f44 | j_mayer | POWERPC_DEF("Vger", CPU_POWERPC_7450, 7450), |
8648 | a750fc0b | j_mayer | /* PowerPC 7450 v1.0 (G4) */
|
8649 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.0", CPU_POWERPC_7450_v10, 7450), |
8650 | a750fc0b | j_mayer | /* PowerPC 7450 v1.1 (G4) */
|
8651 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.1", CPU_POWERPC_7450_v11, 7450), |
8652 | a750fc0b | j_mayer | /* PowerPC 7450 v1.2 (G4) */
|
8653 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.2", CPU_POWERPC_7450_v12, 7450), |
8654 | a750fc0b | j_mayer | /* PowerPC 7450 v2.0 (G4) */
|
8655 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.0", CPU_POWERPC_7450_v20, 7450), |
8656 | a750fc0b | j_mayer | /* PowerPC 7450 v2.1 (G4) */
|
8657 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.1", CPU_POWERPC_7450_v21, 7450), |
8658 | a750fc0b | j_mayer | /* PowerPC 7441 (G4) */
|
8659 | 80d11f44 | j_mayer | POWERPC_DEF("7441", CPU_POWERPC_74x1, 7440), |
8660 | a750fc0b | j_mayer | /* PowerPC 7451 (G4) */
|
8661 | 80d11f44 | j_mayer | POWERPC_DEF("7451", CPU_POWERPC_74x1, 7450), |
8662 | 4e777442 | j_mayer | /* PowerPC 7441 v2.1 (G4) */
|
8663 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.1", CPU_POWERPC_7450_v21, 7440), |
8664 | 4e777442 | j_mayer | /* PowerPC 7441 v2.3 (G4) */
|
8665 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.3", CPU_POWERPC_74x1_v23, 7440), |
8666 | 4e777442 | j_mayer | /* PowerPC 7451 v2.3 (G4) */
|
8667 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.3", CPU_POWERPC_74x1_v23, 7450), |
8668 | 4e777442 | j_mayer | /* PowerPC 7441 v2.10 (G4) */
|
8669 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.10", CPU_POWERPC_74x1_v210, 7440), |
8670 | 4e777442 | j_mayer | /* PowerPC 7451 v2.10 (G4) */
|
8671 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.10", CPU_POWERPC_74x1_v210, 7450), |
8672 | a750fc0b | j_mayer | /* PowerPC 7445 (G4) */
|
8673 | 80d11f44 | j_mayer | POWERPC_DEF("7445", CPU_POWERPC_74x5, 7445), |
8674 | a750fc0b | j_mayer | /* PowerPC 7455 (G4) */
|
8675 | 80d11f44 | j_mayer | POWERPC_DEF("7455", CPU_POWERPC_74x5, 7455), |
8676 | a750fc0b | j_mayer | /* Code name for PowerPC 7445/7455 */
|
8677 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo6", CPU_POWERPC_74x5, 7455), |
8678 | a750fc0b | j_mayer | /* PowerPC 7445 v1.0 (G4) */
|
8679 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v1.0", CPU_POWERPC_74x5_v10, 7445), |
8680 | a750fc0b | j_mayer | /* PowerPC 7455 v1.0 (G4) */
|
8681 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v1.0", CPU_POWERPC_74x5_v10, 7455), |
8682 | a750fc0b | j_mayer | /* PowerPC 7445 v2.1 (G4) */
|
8683 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v2.1", CPU_POWERPC_74x5_v21, 7445), |
8684 | a750fc0b | j_mayer | /* PowerPC 7455 v2.1 (G4) */
|
8685 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v2.1", CPU_POWERPC_74x5_v21, 7455), |
8686 | a750fc0b | j_mayer | /* PowerPC 7445 v3.2 (G4) */
|
8687 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.2", CPU_POWERPC_74x5_v32, 7445), |
8688 | a750fc0b | j_mayer | /* PowerPC 7455 v3.2 (G4) */
|
8689 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.2", CPU_POWERPC_74x5_v32, 7455), |
8690 | a750fc0b | j_mayer | /* PowerPC 7445 v3.3 (G4) */
|
8691 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.3", CPU_POWERPC_74x5_v33, 7445), |
8692 | a750fc0b | j_mayer | /* PowerPC 7455 v3.3 (G4) */
|
8693 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.3", CPU_POWERPC_74x5_v33, 7455), |
8694 | a750fc0b | j_mayer | /* PowerPC 7445 v3.4 (G4) */
|
8695 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.4", CPU_POWERPC_74x5_v34, 7445), |
8696 | a750fc0b | j_mayer | /* PowerPC 7455 v3.4 (G4) */
|
8697 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.4", CPU_POWERPC_74x5_v34, 7455), |
8698 | a750fc0b | j_mayer | /* PowerPC 7447 (G4) */
|
8699 | 80d11f44 | j_mayer | POWERPC_DEF("7447", CPU_POWERPC_74x7, 7445), |
8700 | a750fc0b | j_mayer | /* PowerPC 7457 (G4) */
|
8701 | 80d11f44 | j_mayer | POWERPC_DEF("7457", CPU_POWERPC_74x7, 7455), |
8702 | a750fc0b | j_mayer | /* Code name for PowerPC 7447/7457 */
|
8703 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo7", CPU_POWERPC_74x7, 7455), |
8704 | a750fc0b | j_mayer | /* PowerPC 7447 v1.0 (G4) */
|
8705 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.0", CPU_POWERPC_74x7_v10, 7445), |
8706 | a750fc0b | j_mayer | /* PowerPC 7457 v1.0 (G4) */
|
8707 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.0", CPU_POWERPC_74x7_v10, 7455), |
8708 | a750fc0b | j_mayer | /* PowerPC 7447 v1.1 (G4) */
|
8709 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.1", CPU_POWERPC_74x7_v11, 7445), |
8710 | a750fc0b | j_mayer | /* PowerPC 7457 v1.1 (G4) */
|
8711 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.1", CPU_POWERPC_74x7_v11, 7455), |
8712 | a750fc0b | j_mayer | /* PowerPC 7457 v1.2 (G4) */
|
8713 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.2", CPU_POWERPC_74x7_v12, 7455), |
8714 | 082c6681 | j_mayer | /* PowerPC 7447A (G4) */
|
8715 | 082c6681 | j_mayer | POWERPC_DEF("7447A", CPU_POWERPC_74x7A, 7445), |
8716 | 082c6681 | j_mayer | /* PowerPC 7457A (G4) */
|
8717 | 082c6681 | j_mayer | POWERPC_DEF("7457A", CPU_POWERPC_74x7A, 7455), |
8718 | 082c6681 | j_mayer | /* PowerPC 7447A v1.0 (G4) */
|
8719 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.0", CPU_POWERPC_74x7A_v10, 7445), |
8720 | 082c6681 | j_mayer | /* PowerPC 7457A v1.0 (G4) */
|
8721 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.0", CPU_POWERPC_74x7A_v10, 7455), |
8722 | 082c6681 | j_mayer | /* Code name for PowerPC 7447A/7457A */
|
8723 | 082c6681 | j_mayer | POWERPC_DEF("Apollo7PM", CPU_POWERPC_74x7A_v10, 7455), |
8724 | 082c6681 | j_mayer | /* PowerPC 7447A v1.1 (G4) */
|
8725 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.1", CPU_POWERPC_74x7A_v11, 7445), |
8726 | 082c6681 | j_mayer | /* PowerPC 7457A v1.1 (G4) */
|
8727 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.1", CPU_POWERPC_74x7A_v11, 7455), |
8728 | 082c6681 | j_mayer | /* PowerPC 7447A v1.2 (G4) */
|
8729 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.2", CPU_POWERPC_74x7A_v12, 7445), |
8730 | 082c6681 | j_mayer | /* PowerPC 7457A v1.2 (G4) */
|
8731 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.2", CPU_POWERPC_74x7A_v12, 7455), |
8732 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
8733 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8734 | a750fc0b | j_mayer | /* PowerPC 620 */
|
8735 | 80d11f44 | j_mayer | POWERPC_DEF("620", CPU_POWERPC_620, 620), |
8736 | 082c6681 | j_mayer | /* Code name for PowerPC 620 */
|
8737 | 082c6681 | j_mayer | POWERPC_DEF("Trident", CPU_POWERPC_620, 620), |
8738 | 3fc6c082 | bellard | #if defined (TODO)
|
8739 | a750fc0b | j_mayer | /* PowerPC 630 (POWER3) */
|
8740 | 80d11f44 | j_mayer | POWERPC_DEF("630", CPU_POWERPC_630, 630), |
8741 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3", CPU_POWERPC_630, 630), |
8742 | 082c6681 | j_mayer | /* Code names for POWER3 */
|
8743 | 082c6681 | j_mayer | POWERPC_DEF("Boxer", CPU_POWERPC_630, 630), |
8744 | 082c6681 | j_mayer | POWERPC_DEF("Dino", CPU_POWERPC_630, 630), |
8745 | a750fc0b | j_mayer | #endif
|
8746 | 3a607854 | j_mayer | #if defined (TODO)
|
8747 | a750fc0b | j_mayer | /* PowerPC 631 (Power 3+) */
|
8748 | 80d11f44 | j_mayer | POWERPC_DEF("631", CPU_POWERPC_631, 631), |
8749 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3+", CPU_POWERPC_631, 631), |
8750 | 3a607854 | j_mayer | #endif
|
8751 | 3a607854 | j_mayer | #if defined (TODO)
|
8752 | a750fc0b | j_mayer | /* POWER4 */
|
8753 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4", CPU_POWERPC_POWER4, POWER4),
|
8754 | a750fc0b | j_mayer | #endif
|
8755 | 3a607854 | j_mayer | #if defined (TODO)
|
8756 | a750fc0b | j_mayer | /* POWER4p */
|
8757 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4+", CPU_POWERPC_POWER4P, POWER4P),
|
8758 | a750fc0b | j_mayer | #endif
|
8759 | 3a607854 | j_mayer | #if defined (TODO)
|
8760 | a750fc0b | j_mayer | /* POWER5 */
|
8761 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5", CPU_POWERPC_POWER5, POWER5),
|
8762 | a750fc0b | j_mayer | /* POWER5GR */
|
8763 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gr", CPU_POWERPC_POWER5GR, POWER5),
|
8764 | 2662a059 | j_mayer | #endif
|
8765 | 2662a059 | j_mayer | #if defined (TODO)
|
8766 | a750fc0b | j_mayer | /* POWER5+ */
|
8767 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5+", CPU_POWERPC_POWER5P, POWER5P),
|
8768 | a750fc0b | j_mayer | /* POWER5GS */
|
8769 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gs", CPU_POWERPC_POWER5GS, POWER5P),
|
8770 | a750fc0b | j_mayer | #endif
|
8771 | 2662a059 | j_mayer | #if defined (TODO)
|
8772 | a750fc0b | j_mayer | /* POWER6 */
|
8773 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6", CPU_POWERPC_POWER6, POWER6),
|
8774 | a750fc0b | j_mayer | /* POWER6 running in POWER5 mode */
|
8775 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6_5", CPU_POWERPC_POWER6_5, POWER5),
|
8776 | a750fc0b | j_mayer | /* POWER6A */
|
8777 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6A", CPU_POWERPC_POWER6A, POWER6),
|
8778 | 2662a059 | j_mayer | #endif
|
8779 | a750fc0b | j_mayer | /* PowerPC 970 */
|
8780 | 80d11f44 | j_mayer | POWERPC_DEF("970", CPU_POWERPC_970, 970), |
8781 | a750fc0b | j_mayer | /* PowerPC 970FX (G5) */
|
8782 | 80d11f44 | j_mayer | POWERPC_DEF("970fx", CPU_POWERPC_970FX, 970FX), |
8783 | a750fc0b | j_mayer | /* PowerPC 970FX v1.0 (G5) */
|
8784 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v1.0", CPU_POWERPC_970FX_v10, 970FX), |
8785 | a750fc0b | j_mayer | /* PowerPC 970FX v2.0 (G5) */
|
8786 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.0", CPU_POWERPC_970FX_v20, 970FX), |
8787 | a750fc0b | j_mayer | /* PowerPC 970FX v2.1 (G5) */
|
8788 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.1", CPU_POWERPC_970FX_v21, 970FX), |
8789 | a750fc0b | j_mayer | /* PowerPC 970FX v3.0 (G5) */
|
8790 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.0", CPU_POWERPC_970FX_v30, 970FX), |
8791 | a750fc0b | j_mayer | /* PowerPC 970FX v3.1 (G5) */
|
8792 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.1", CPU_POWERPC_970FX_v31, 970FX), |
8793 | a750fc0b | j_mayer | /* PowerPC 970GX (G5) */
|
8794 | 80d11f44 | j_mayer | POWERPC_DEF("970gx", CPU_POWERPC_970GX, 970GX), |
8795 | a750fc0b | j_mayer | /* PowerPC 970MP */
|
8796 | 80d11f44 | j_mayer | POWERPC_DEF("970mp", CPU_POWERPC_970MP, 970MP), |
8797 | a750fc0b | j_mayer | /* PowerPC 970MP v1.0 */
|
8798 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.0", CPU_POWERPC_970MP_v10, 970MP), |
8799 | a750fc0b | j_mayer | /* PowerPC 970MP v1.1 */
|
8800 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.1", CPU_POWERPC_970MP_v11, 970MP), |
8801 | 3a607854 | j_mayer | #if defined (TODO)
|
8802 | a750fc0b | j_mayer | /* PowerPC Cell */
|
8803 | 80d11f44 | j_mayer | POWERPC_DEF("Cell", CPU_POWERPC_CELL, 970), |
8804 | 2662a059 | j_mayer | #endif
|
8805 | 2662a059 | j_mayer | #if defined (TODO)
|
8806 | a750fc0b | j_mayer | /* PowerPC Cell v1.0 */
|
8807 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v1.0", CPU_POWERPC_CELL_v10, 970), |
8808 | 2662a059 | j_mayer | #endif
|
8809 | 2662a059 | j_mayer | #if defined (TODO)
|
8810 | a750fc0b | j_mayer | /* PowerPC Cell v2.0 */
|
8811 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v2.0", CPU_POWERPC_CELL_v20, 970), |
8812 | 2662a059 | j_mayer | #endif
|
8813 | 2662a059 | j_mayer | #if defined (TODO)
|
8814 | a750fc0b | j_mayer | /* PowerPC Cell v3.0 */
|
8815 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.0", CPU_POWERPC_CELL_v30, 970), |
8816 | 3a607854 | j_mayer | #endif
|
8817 | 3a607854 | j_mayer | #if defined (TODO)
|
8818 | a750fc0b | j_mayer | /* PowerPC Cell v3.1 */
|
8819 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.1", CPU_POWERPC_CELL_v31, 970), |
8820 | 2662a059 | j_mayer | #endif
|
8821 | 2662a059 | j_mayer | #if defined (TODO)
|
8822 | a750fc0b | j_mayer | /* PowerPC Cell v3.2 */
|
8823 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.2", CPU_POWERPC_CELL_v32, 970), |
8824 | 2662a059 | j_mayer | #endif
|
8825 | 2662a059 | j_mayer | #if defined (TODO)
|
8826 | a750fc0b | j_mayer | /* RS64 (Apache/A35) */
|
8827 | a750fc0b | j_mayer | /* This one seems to support the whole POWER2 instruction set
|
8828 | a750fc0b | j_mayer | * and the PowerPC 64 one.
|
8829 | a750fc0b | j_mayer | */
|
8830 | a750fc0b | j_mayer | /* What about A10 & A30 ? */
|
8831 | 80d11f44 | j_mayer | POWERPC_DEF("RS64", CPU_POWERPC_RS64, RS64),
|
8832 | 80d11f44 | j_mayer | POWERPC_DEF("Apache", CPU_POWERPC_RS64, RS64),
|
8833 | 80d11f44 | j_mayer | POWERPC_DEF("A35", CPU_POWERPC_RS64, RS64),
|
8834 | 3a607854 | j_mayer | #endif
|
8835 | 3a607854 | j_mayer | #if defined (TODO)
|
8836 | a750fc0b | j_mayer | /* RS64-II (NorthStar/A50) */
|
8837 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-II", CPU_POWERPC_RS64II, RS64),
|
8838 | 80d11f44 | j_mayer | POWERPC_DEF("NorthStar", CPU_POWERPC_RS64II, RS64),
|
8839 | 80d11f44 | j_mayer | POWERPC_DEF("A50", CPU_POWERPC_RS64II, RS64),
|
8840 | 3a607854 | j_mayer | #endif
|
8841 | 3a607854 | j_mayer | #if defined (TODO)
|
8842 | a750fc0b | j_mayer | /* RS64-III (Pulsar) */
|
8843 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-III", CPU_POWERPC_RS64III, RS64),
|
8844 | 80d11f44 | j_mayer | POWERPC_DEF("Pulsar", CPU_POWERPC_RS64III, RS64),
|
8845 | 2662a059 | j_mayer | #endif
|
8846 | 2662a059 | j_mayer | #if defined (TODO)
|
8847 | a750fc0b | j_mayer | /* RS64-IV (IceStar/IStar/SStar) */
|
8848 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-IV", CPU_POWERPC_RS64IV, RS64),
|
8849 | 80d11f44 | j_mayer | POWERPC_DEF("IceStar", CPU_POWERPC_RS64IV, RS64),
|
8850 | 80d11f44 | j_mayer | POWERPC_DEF("IStar", CPU_POWERPC_RS64IV, RS64),
|
8851 | 80d11f44 | j_mayer | POWERPC_DEF("SStar", CPU_POWERPC_RS64IV, RS64),
|
8852 | 3a607854 | j_mayer | #endif
|
8853 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
8854 | a750fc0b | j_mayer | /* POWER */
|
8855 | 3fc6c082 | bellard | #if defined (TODO)
|
8856 | a750fc0b | j_mayer | /* Original POWER */
|
8857 | 80d11f44 | j_mayer | POWERPC_DEF("POWER", CPU_POWERPC_POWER, POWER),
|
8858 | 80d11f44 | j_mayer | POWERPC_DEF("RIOS", CPU_POWERPC_POWER, POWER),
|
8859 | 80d11f44 | j_mayer | POWERPC_DEF("RSC", CPU_POWERPC_POWER, POWER),
|
8860 | 80d11f44 | j_mayer | POWERPC_DEF("RSC3308", CPU_POWERPC_POWER, POWER),
|
8861 | 80d11f44 | j_mayer | POWERPC_DEF("RSC4608", CPU_POWERPC_POWER, POWER),
|
8862 | 76a66253 | j_mayer | #endif
|
8863 | 76a66253 | j_mayer | #if defined (TODO)
|
8864 | a750fc0b | j_mayer | /* POWER2 */
|
8865 | 80d11f44 | j_mayer | POWERPC_DEF("POWER2", CPU_POWERPC_POWER2, POWER),
|
8866 | 80d11f44 | j_mayer | POWERPC_DEF("RSC2", CPU_POWERPC_POWER2, POWER),
|
8867 | 80d11f44 | j_mayer | POWERPC_DEF("P2SC", CPU_POWERPC_POWER2, POWER),
|
8868 | a750fc0b | j_mayer | #endif
|
8869 | a750fc0b | j_mayer | /* PA semi cores */
|
8870 | a750fc0b | j_mayer | #if defined (TODO)
|
8871 | a750fc0b | j_mayer | /* PA PA6T */
|
8872 | 80d11f44 | j_mayer | POWERPC_DEF("PA6T", CPU_POWERPC_PA6T, PA6T),
|
8873 | a750fc0b | j_mayer | #endif
|
8874 | a750fc0b | j_mayer | /* Generic PowerPCs */
|
8875 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8876 | 80d11f44 | j_mayer | POWERPC_DEF("ppc64", CPU_POWERPC_PPC64, PPC64),
|
8877 | a750fc0b | j_mayer | #endif
|
8878 | 80d11f44 | j_mayer | POWERPC_DEF("ppc32", CPU_POWERPC_PPC32, PPC32),
|
8879 | 80d11f44 | j_mayer | POWERPC_DEF("ppc", CPU_POWERPC_DEFAULT, DEFAULT),
|
8880 | a750fc0b | j_mayer | /* Fallback */
|
8881 | 80d11f44 | j_mayer | POWERPC_DEF("default", CPU_POWERPC_DEFAULT, DEFAULT),
|
8882 | a750fc0b | j_mayer | }; |
8883 | a750fc0b | j_mayer | |
8884 | a750fc0b | j_mayer | /*****************************************************************************/
|
8885 | a750fc0b | j_mayer | /* Generic CPU instanciation routine */
|
8886 | aaed909a | bellard | static void init_ppc_proc (CPUPPCState *env, const ppc_def_t *def) |
8887 | a750fc0b | j_mayer | { |
8888 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8889 | e1833e1f | j_mayer | int i;
|
8890 | e1833e1f | j_mayer | |
8891 | a750fc0b | j_mayer | env->irq_inputs = NULL;
|
8892 | e1833e1f | j_mayer | /* Set all exception vectors to an invalid address */
|
8893 | e1833e1f | j_mayer | for (i = 0; i < POWERPC_EXCP_NB; i++) |
8894 | e1833e1f | j_mayer | env->excp_vectors[i] = (target_ulong)(-1ULL);
|
8895 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000;
|
8896 | e1833e1f | j_mayer | env->ivor_mask = 0x00000000;
|
8897 | e1833e1f | j_mayer | env->ivpr_mask = 0x00000000;
|
8898 | a750fc0b | j_mayer | /* Default MMU definitions */
|
8899 | a750fc0b | j_mayer | env->nb_BATs = 0;
|
8900 | a750fc0b | j_mayer | env->nb_tlb = 0;
|
8901 | a750fc0b | j_mayer | env->nb_ways = 0;
|
8902 | f2e63a42 | j_mayer | #endif
|
8903 | a750fc0b | j_mayer | /* Register SPR common to all PowerPC implementations */
|
8904 | a750fc0b | j_mayer | gen_spr_generic(env); |
8905 | a750fc0b | j_mayer | spr_register(env, SPR_PVR, "PVR",
|
8906 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8907 | a750fc0b | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8908 | a750fc0b | j_mayer | def->pvr); |
8909 | 80d11f44 | j_mayer | /* Register SVR if it's defined to anything else than POWERPC_SVR_NONE */
|
8910 | 80d11f44 | j_mayer | if (def->svr != POWERPC_SVR_NONE) {
|
8911 | 80d11f44 | j_mayer | if (def->svr & POWERPC_SVR_E500) {
|
8912 | 80d11f44 | j_mayer | spr_register(env, SPR_E500_SVR, "SVR",
|
8913 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8914 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8915 | 80d11f44 | j_mayer | def->svr & ~POWERPC_SVR_E500); |
8916 | 80d11f44 | j_mayer | } else {
|
8917 | 80d11f44 | j_mayer | spr_register(env, SPR_SVR, "SVR",
|
8918 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8919 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8920 | 80d11f44 | j_mayer | def->svr); |
8921 | 80d11f44 | j_mayer | } |
8922 | 80d11f44 | j_mayer | } |
8923 | a750fc0b | j_mayer | /* PowerPC implementation specific initialisations (SPRs, timers, ...) */
|
8924 | a750fc0b | j_mayer | (*def->init_proc)(env); |
8925 | fc1c67bc | Blue Swirl | #if !defined(CONFIG_USER_ONLY)
|
8926 | fc1c67bc | Blue Swirl | env->excp_prefix = env->hreset_excp_prefix; |
8927 | fc1c67bc | Blue Swirl | #endif
|
8928 | 25ba3a68 | j_mayer | /* MSR bits & flags consistency checks */
|
8929 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 25)) { |
8930 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) {
|
8931 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SPE:
|
8932 | 25ba3a68 | j_mayer | case POWERPC_FLAG_VRE:
|
8933 | 25ba3a68 | j_mayer | break;
|
8934 | 25ba3a68 | j_mayer | default:
|
8935 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8936 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SPE or POWERPC_FLAG_VRE\n");
|
8937 | 25ba3a68 | j_mayer | exit(1);
|
8938 | 25ba3a68 | j_mayer | } |
8939 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) { |
8940 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8941 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SPE nor POWERPC_FLAG_VRE\n");
|
8942 | 25ba3a68 | j_mayer | exit(1);
|
8943 | 25ba3a68 | j_mayer | } |
8944 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 17)) { |
8945 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) {
|
8946 | 25ba3a68 | j_mayer | case POWERPC_FLAG_TGPR:
|
8947 | 25ba3a68 | j_mayer | case POWERPC_FLAG_CE:
|
8948 | 25ba3a68 | j_mayer | break;
|
8949 | 25ba3a68 | j_mayer | default:
|
8950 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8951 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_TGPR or POWERPC_FLAG_CE\n");
|
8952 | 25ba3a68 | j_mayer | exit(1);
|
8953 | 25ba3a68 | j_mayer | } |
8954 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) { |
8955 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8956 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_TGPR nor POWERPC_FLAG_CE\n");
|
8957 | 25ba3a68 | j_mayer | exit(1);
|
8958 | 25ba3a68 | j_mayer | } |
8959 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 10)) { |
8960 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE |
|
8961 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
8962 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SE:
|
8963 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DWE:
|
8964 | 25ba3a68 | j_mayer | case POWERPC_FLAG_UBLE:
|
8965 | 25ba3a68 | j_mayer | break;
|
8966 | 25ba3a68 | j_mayer | default:
|
8967 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8968 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SE or POWERPC_FLAG_DWE or "
|
8969 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
8970 | 25ba3a68 | j_mayer | exit(1);
|
8971 | 25ba3a68 | j_mayer | } |
8972 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE | |
8973 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
8974 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8975 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SE nor POWERPC_FLAG_DWE nor "
|
8976 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
8977 | 25ba3a68 | j_mayer | exit(1);
|
8978 | 25ba3a68 | j_mayer | } |
8979 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 9)) { |
8980 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) {
|
8981 | 25ba3a68 | j_mayer | case POWERPC_FLAG_BE:
|
8982 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DE:
|
8983 | 25ba3a68 | j_mayer | break;
|
8984 | 25ba3a68 | j_mayer | default:
|
8985 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8986 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_BE or POWERPC_FLAG_DE\n");
|
8987 | 25ba3a68 | j_mayer | exit(1);
|
8988 | 25ba3a68 | j_mayer | } |
8989 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) { |
8990 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8991 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_BE nor POWERPC_FLAG_DE\n");
|
8992 | 25ba3a68 | j_mayer | exit(1);
|
8993 | 25ba3a68 | j_mayer | } |
8994 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 2)) { |
8995 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) {
|
8996 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PX:
|
8997 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PMM:
|
8998 | 25ba3a68 | j_mayer | break;
|
8999 | 25ba3a68 | j_mayer | default:
|
9000 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9001 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_PX or POWERPC_FLAG_PMM\n");
|
9002 | 25ba3a68 | j_mayer | exit(1);
|
9003 | 25ba3a68 | j_mayer | } |
9004 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) { |
9005 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9006 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_PX nor POWERPC_FLAG_PMM\n");
|
9007 | 25ba3a68 | j_mayer | exit(1);
|
9008 | 25ba3a68 | j_mayer | } |
9009 | 4018bae9 | j_mayer | if ((env->flags & (POWERPC_FLAG_RTC_CLK | POWERPC_FLAG_BUS_CLK)) == 0) { |
9010 | 4018bae9 | j_mayer | fprintf(stderr, "PowerPC flags inconsistency\n"
|
9011 | 4018bae9 | j_mayer | "Should define the time-base and decrementer clock source\n");
|
9012 | 4018bae9 | j_mayer | exit(1);
|
9013 | 4018bae9 | j_mayer | } |
9014 | a750fc0b | j_mayer | /* Allocate TLBs buffer when needed */
|
9015 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9016 | a750fc0b | j_mayer | if (env->nb_tlb != 0) { |
9017 | a750fc0b | j_mayer | int nb_tlb = env->nb_tlb;
|
9018 | a750fc0b | j_mayer | if (env->id_tlbs != 0) |
9019 | a750fc0b | j_mayer | nb_tlb *= 2;
|
9020 | a750fc0b | j_mayer | env->tlb = qemu_mallocz(nb_tlb * sizeof(ppc_tlb_t));
|
9021 | a750fc0b | j_mayer | /* Pre-compute some useful values */
|
9022 | a750fc0b | j_mayer | env->tlb_per_way = env->nb_tlb / env->nb_ways; |
9023 | a750fc0b | j_mayer | } |
9024 | a750fc0b | j_mayer | if (env->irq_inputs == NULL) { |
9025 | a750fc0b | j_mayer | fprintf(stderr, "WARNING: no internal IRQ controller registered.\n"
|
9026 | a750fc0b | j_mayer | " Attempt Qemu to crash very soon !\n");
|
9027 | a750fc0b | j_mayer | } |
9028 | a750fc0b | j_mayer | #endif
|
9029 | 2f462816 | j_mayer | if (env->check_pow == NULL) { |
9030 | 2f462816 | j_mayer | fprintf(stderr, "WARNING: no power management check handler "
|
9031 | 2f462816 | j_mayer | "registered.\n"
|
9032 | 2f462816 | j_mayer | " Attempt Qemu to crash very soon !\n");
|
9033 | 2f462816 | j_mayer | } |
9034 | a750fc0b | j_mayer | } |
9035 | a750fc0b | j_mayer | |
9036 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9037 | a750fc0b | j_mayer | static void dump_ppc_sprs (CPUPPCState *env) |
9038 | a750fc0b | j_mayer | { |
9039 | a750fc0b | j_mayer | ppc_spr_t *spr; |
9040 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9041 | a750fc0b | j_mayer | uint32_t sr, sw; |
9042 | a750fc0b | j_mayer | #endif
|
9043 | a750fc0b | j_mayer | uint32_t ur, uw; |
9044 | a750fc0b | j_mayer | int i, j, n;
|
9045 | a750fc0b | j_mayer | |
9046 | a750fc0b | j_mayer | printf("Special purpose registers:\n");
|
9047 | a750fc0b | j_mayer | for (i = 0; i < 32; i++) { |
9048 | a750fc0b | j_mayer | for (j = 0; j < 32; j++) { |
9049 | a750fc0b | j_mayer | n = (i << 5) | j;
|
9050 | a750fc0b | j_mayer | spr = &env->spr_cb[n]; |
9051 | a750fc0b | j_mayer | uw = spr->uea_write != NULL && spr->uea_write != SPR_NOACCESS;
|
9052 | a750fc0b | j_mayer | ur = spr->uea_read != NULL && spr->uea_read != SPR_NOACCESS;
|
9053 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9054 | a750fc0b | j_mayer | sw = spr->oea_write != NULL && spr->oea_write != SPR_NOACCESS;
|
9055 | a750fc0b | j_mayer | sr = spr->oea_read != NULL && spr->oea_read != SPR_NOACCESS;
|
9056 | a750fc0b | j_mayer | if (sw || sr || uw || ur) {
|
9057 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s s%c%c u%c%c\n",
|
9058 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
9059 | a750fc0b | j_mayer | sw ? 'w' : '-', sr ? 'r' : '-', |
9060 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
9061 | a750fc0b | j_mayer | } |
9062 | a750fc0b | j_mayer | #else
|
9063 | a750fc0b | j_mayer | if (uw || ur) {
|
9064 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s u%c%c\n",
|
9065 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
9066 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
9067 | a750fc0b | j_mayer | } |
9068 | a750fc0b | j_mayer | #endif
|
9069 | a750fc0b | j_mayer | } |
9070 | a750fc0b | j_mayer | } |
9071 | a750fc0b | j_mayer | fflush(stdout); |
9072 | a750fc0b | j_mayer | fflush(stderr); |
9073 | a750fc0b | j_mayer | } |
9074 | a750fc0b | j_mayer | #endif
|
9075 | a750fc0b | j_mayer | |
9076 | a750fc0b | j_mayer | /*****************************************************************************/
|
9077 | a750fc0b | j_mayer | #include <stdlib.h> |
9078 | a750fc0b | j_mayer | #include <string.h> |
9079 | a750fc0b | j_mayer | |
9080 | a750fc0b | j_mayer | /* Opcode types */
|
9081 | a750fc0b | j_mayer | enum {
|
9082 | a750fc0b | j_mayer | PPC_DIRECT = 0, /* Opcode routine */ |
9083 | a750fc0b | j_mayer | PPC_INDIRECT = 1, /* Indirect opcode table */ |
9084 | a750fc0b | j_mayer | }; |
9085 | a750fc0b | j_mayer | |
9086 | a750fc0b | j_mayer | static inline int is_indirect_opcode (void *handler) |
9087 | a750fc0b | j_mayer | { |
9088 | a750fc0b | j_mayer | return ((unsigned long)handler & 0x03) == PPC_INDIRECT; |
9089 | a750fc0b | j_mayer | } |
9090 | a750fc0b | j_mayer | |
9091 | a750fc0b | j_mayer | static inline opc_handler_t **ind_table(void *handler) |
9092 | a750fc0b | j_mayer | { |
9093 | a750fc0b | j_mayer | return (opc_handler_t **)((unsigned long)handler & ~3); |
9094 | a750fc0b | j_mayer | } |
9095 | a750fc0b | j_mayer | |
9096 | a750fc0b | j_mayer | /* Instruction table creation */
|
9097 | a750fc0b | j_mayer | /* Opcodes tables creation */
|
9098 | a750fc0b | j_mayer | static void fill_new_table (opc_handler_t **table, int len) |
9099 | a750fc0b | j_mayer | { |
9100 | a750fc0b | j_mayer | int i;
|
9101 | a750fc0b | j_mayer | |
9102 | a750fc0b | j_mayer | for (i = 0; i < len; i++) |
9103 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9104 | a750fc0b | j_mayer | } |
9105 | a750fc0b | j_mayer | |
9106 | a750fc0b | j_mayer | static int create_new_table (opc_handler_t **table, unsigned char idx) |
9107 | a750fc0b | j_mayer | { |
9108 | a750fc0b | j_mayer | opc_handler_t **tmp; |
9109 | a750fc0b | j_mayer | |
9110 | a750fc0b | j_mayer | tmp = malloc(0x20 * sizeof(opc_handler_t)); |
9111 | a750fc0b | j_mayer | fill_new_table(tmp, 0x20);
|
9112 | a750fc0b | j_mayer | table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT); |
9113 | a750fc0b | j_mayer | |
9114 | a750fc0b | j_mayer | return 0; |
9115 | a750fc0b | j_mayer | } |
9116 | a750fc0b | j_mayer | |
9117 | a750fc0b | j_mayer | static int insert_in_table (opc_handler_t **table, unsigned char idx, |
9118 | a750fc0b | j_mayer | opc_handler_t *handler) |
9119 | a750fc0b | j_mayer | { |
9120 | a750fc0b | j_mayer | if (table[idx] != &invalid_handler)
|
9121 | a750fc0b | j_mayer | return -1; |
9122 | a750fc0b | j_mayer | table[idx] = handler; |
9123 | a750fc0b | j_mayer | |
9124 | a750fc0b | j_mayer | return 0; |
9125 | a750fc0b | j_mayer | } |
9126 | a750fc0b | j_mayer | |
9127 | a750fc0b | j_mayer | static int register_direct_insn (opc_handler_t **ppc_opcodes, |
9128 | a750fc0b | j_mayer | unsigned char idx, opc_handler_t *handler) |
9129 | a750fc0b | j_mayer | { |
9130 | a750fc0b | j_mayer | if (insert_in_table(ppc_opcodes, idx, handler) < 0) { |
9131 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in main "
|
9132 | a750fc0b | j_mayer | "opcode table\n", idx);
|
9133 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9134 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9135 | 4c1b1bfe | j_mayer | ppc_opcodes[idx]->oname, handler->oname); |
9136 | 4c1b1bfe | j_mayer | #endif
|
9137 | a750fc0b | j_mayer | return -1; |
9138 | a750fc0b | j_mayer | } |
9139 | a750fc0b | j_mayer | |
9140 | a750fc0b | j_mayer | return 0; |
9141 | a750fc0b | j_mayer | } |
9142 | a750fc0b | j_mayer | |
9143 | a750fc0b | j_mayer | static int register_ind_in_table (opc_handler_t **table, |
9144 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9145 | a750fc0b | j_mayer | opc_handler_t *handler) |
9146 | a750fc0b | j_mayer | { |
9147 | a750fc0b | j_mayer | if (table[idx1] == &invalid_handler) {
|
9148 | a750fc0b | j_mayer | if (create_new_table(table, idx1) < 0) { |
9149 | a750fc0b | j_mayer | printf("*** ERROR: unable to create indirect table "
|
9150 | a750fc0b | j_mayer | "idx=%02x\n", idx1);
|
9151 | a750fc0b | j_mayer | return -1; |
9152 | a750fc0b | j_mayer | } |
9153 | a750fc0b | j_mayer | } else {
|
9154 | a750fc0b | j_mayer | if (!is_indirect_opcode(table[idx1])) {
|
9155 | a750fc0b | j_mayer | printf("*** ERROR: idx %02x already assigned to a direct "
|
9156 | a750fc0b | j_mayer | "opcode\n", idx1);
|
9157 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9158 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9159 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9160 | 4c1b1bfe | j_mayer | #endif
|
9161 | a750fc0b | j_mayer | return -1; |
9162 | a750fc0b | j_mayer | } |
9163 | 3a607854 | j_mayer | } |
9164 | a750fc0b | j_mayer | if (handler != NULL && |
9165 | a750fc0b | j_mayer | insert_in_table(ind_table(table[idx1]), idx2, handler) < 0) {
|
9166 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in "
|
9167 | a750fc0b | j_mayer | "opcode table %02x\n", idx2, idx1);
|
9168 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9169 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9170 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9171 | 4c1b1bfe | j_mayer | #endif
|
9172 | a750fc0b | j_mayer | return -1; |
9173 | 3a607854 | j_mayer | } |
9174 | a750fc0b | j_mayer | |
9175 | a750fc0b | j_mayer | return 0; |
9176 | a750fc0b | j_mayer | } |
9177 | a750fc0b | j_mayer | |
9178 | a750fc0b | j_mayer | static int register_ind_insn (opc_handler_t **ppc_opcodes, |
9179 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9180 | a750fc0b | j_mayer | opc_handler_t *handler) |
9181 | a750fc0b | j_mayer | { |
9182 | a750fc0b | j_mayer | int ret;
|
9183 | a750fc0b | j_mayer | |
9184 | a750fc0b | j_mayer | ret = register_ind_in_table(ppc_opcodes, idx1, idx2, handler); |
9185 | a750fc0b | j_mayer | |
9186 | a750fc0b | j_mayer | return ret;
|
9187 | a750fc0b | j_mayer | } |
9188 | a750fc0b | j_mayer | |
9189 | a750fc0b | j_mayer | static int register_dblind_insn (opc_handler_t **ppc_opcodes, |
9190 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9191 | a750fc0b | j_mayer | unsigned char idx3, opc_handler_t *handler) |
9192 | a750fc0b | j_mayer | { |
9193 | a750fc0b | j_mayer | if (register_ind_in_table(ppc_opcodes, idx1, idx2, NULL) < 0) { |
9194 | a750fc0b | j_mayer | printf("*** ERROR: unable to join indirect table idx "
|
9195 | a750fc0b | j_mayer | "[%02x-%02x]\n", idx1, idx2);
|
9196 | a750fc0b | j_mayer | return -1; |
9197 | a750fc0b | j_mayer | } |
9198 | a750fc0b | j_mayer | if (register_ind_in_table(ind_table(ppc_opcodes[idx1]), idx2, idx3,
|
9199 | a750fc0b | j_mayer | handler) < 0) {
|
9200 | a750fc0b | j_mayer | printf("*** ERROR: unable to insert opcode "
|
9201 | a750fc0b | j_mayer | "[%02x-%02x-%02x]\n", idx1, idx2, idx3);
|
9202 | a750fc0b | j_mayer | return -1; |
9203 | a750fc0b | j_mayer | } |
9204 | a750fc0b | j_mayer | |
9205 | a750fc0b | j_mayer | return 0; |
9206 | a750fc0b | j_mayer | } |
9207 | a750fc0b | j_mayer | |
9208 | a750fc0b | j_mayer | static int register_insn (opc_handler_t **ppc_opcodes, opcode_t *insn) |
9209 | a750fc0b | j_mayer | { |
9210 | a750fc0b | j_mayer | if (insn->opc2 != 0xFF) { |
9211 | a750fc0b | j_mayer | if (insn->opc3 != 0xFF) { |
9212 | a750fc0b | j_mayer | if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,
|
9213 | a750fc0b | j_mayer | insn->opc3, &insn->handler) < 0)
|
9214 | a750fc0b | j_mayer | return -1; |
9215 | a750fc0b | j_mayer | } else {
|
9216 | a750fc0b | j_mayer | if (register_ind_insn(ppc_opcodes, insn->opc1,
|
9217 | a750fc0b | j_mayer | insn->opc2, &insn->handler) < 0)
|
9218 | a750fc0b | j_mayer | return -1; |
9219 | a750fc0b | j_mayer | } |
9220 | a750fc0b | j_mayer | } else {
|
9221 | a750fc0b | j_mayer | if (register_direct_insn(ppc_opcodes, insn->opc1, &insn->handler) < 0) |
9222 | a750fc0b | j_mayer | return -1; |
9223 | a750fc0b | j_mayer | } |
9224 | a750fc0b | j_mayer | |
9225 | a750fc0b | j_mayer | return 0; |
9226 | a750fc0b | j_mayer | } |
9227 | a750fc0b | j_mayer | |
9228 | a750fc0b | j_mayer | static int test_opcode_table (opc_handler_t **table, int len) |
9229 | a750fc0b | j_mayer | { |
9230 | a750fc0b | j_mayer | int i, count, tmp;
|
9231 | a750fc0b | j_mayer | |
9232 | a750fc0b | j_mayer | for (i = 0, count = 0; i < len; i++) { |
9233 | a750fc0b | j_mayer | /* Consistency fixup */
|
9234 | a750fc0b | j_mayer | if (table[i] == NULL) |
9235 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9236 | a750fc0b | j_mayer | if (table[i] != &invalid_handler) {
|
9237 | a750fc0b | j_mayer | if (is_indirect_opcode(table[i])) {
|
9238 | a750fc0b | j_mayer | tmp = test_opcode_table(ind_table(table[i]), 0x20);
|
9239 | a750fc0b | j_mayer | if (tmp == 0) { |
9240 | a750fc0b | j_mayer | free(table[i]); |
9241 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9242 | a750fc0b | j_mayer | } else {
|
9243 | a750fc0b | j_mayer | count++; |
9244 | a750fc0b | j_mayer | } |
9245 | a750fc0b | j_mayer | } else {
|
9246 | a750fc0b | j_mayer | count++; |
9247 | a750fc0b | j_mayer | } |
9248 | a750fc0b | j_mayer | } |
9249 | a750fc0b | j_mayer | } |
9250 | a750fc0b | j_mayer | |
9251 | a750fc0b | j_mayer | return count;
|
9252 | a750fc0b | j_mayer | } |
9253 | a750fc0b | j_mayer | |
9254 | a750fc0b | j_mayer | static void fix_opcode_tables (opc_handler_t **ppc_opcodes) |
9255 | a750fc0b | j_mayer | { |
9256 | a750fc0b | j_mayer | if (test_opcode_table(ppc_opcodes, 0x40) == 0) |
9257 | a750fc0b | j_mayer | printf("*** WARNING: no opcode defined !\n");
|
9258 | a750fc0b | j_mayer | } |
9259 | a750fc0b | j_mayer | |
9260 | a750fc0b | j_mayer | /*****************************************************************************/
|
9261 | aaed909a | bellard | static int create_ppc_opcodes (CPUPPCState *env, const ppc_def_t *def) |
9262 | a750fc0b | j_mayer | { |
9263 | a750fc0b | j_mayer | opcode_t *opc, *start, *end; |
9264 | a750fc0b | j_mayer | |
9265 | a750fc0b | j_mayer | fill_new_table(env->opcodes, 0x40);
|
9266 | a750fc0b | j_mayer | if (&opc_start < &opc_end) {
|
9267 | a750fc0b | j_mayer | start = &opc_start; |
9268 | a750fc0b | j_mayer | end = &opc_end; |
9269 | a750fc0b | j_mayer | } else {
|
9270 | a750fc0b | j_mayer | start = &opc_end; |
9271 | a750fc0b | j_mayer | end = &opc_start; |
9272 | a750fc0b | j_mayer | } |
9273 | a750fc0b | j_mayer | for (opc = start + 1; opc != end; opc++) { |
9274 | a750fc0b | j_mayer | if ((opc->handler.type & def->insns_flags) != 0) { |
9275 | a750fc0b | j_mayer | if (register_insn(env->opcodes, opc) < 0) { |
9276 | a750fc0b | j_mayer | printf("*** ERROR initializing PowerPC instruction "
|
9277 | a750fc0b | j_mayer | "0x%02x 0x%02x 0x%02x\n", opc->opc1, opc->opc2,
|
9278 | a750fc0b | j_mayer | opc->opc3); |
9279 | a750fc0b | j_mayer | return -1; |
9280 | a750fc0b | j_mayer | } |
9281 | a750fc0b | j_mayer | } |
9282 | a750fc0b | j_mayer | } |
9283 | a750fc0b | j_mayer | fix_opcode_tables(env->opcodes); |
9284 | a750fc0b | j_mayer | fflush(stdout); |
9285 | a750fc0b | j_mayer | fflush(stderr); |
9286 | a750fc0b | j_mayer | |
9287 | a750fc0b | j_mayer | return 0; |
9288 | a750fc0b | j_mayer | } |
9289 | a750fc0b | j_mayer | |
9290 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9291 | 25ba3a68 | j_mayer | static void dump_ppc_insns (CPUPPCState *env) |
9292 | a750fc0b | j_mayer | { |
9293 | a750fc0b | j_mayer | opc_handler_t **table, *handler; |
9294 | b55266b5 | blueswir1 | const char *p, *q; |
9295 | a750fc0b | j_mayer | uint8_t opc1, opc2, opc3; |
9296 | a750fc0b | j_mayer | |
9297 | a750fc0b | j_mayer | printf("Instructions set:\n");
|
9298 | a750fc0b | j_mayer | /* opc1 is 6 bits long */
|
9299 | a750fc0b | j_mayer | for (opc1 = 0x00; opc1 < 0x40; opc1++) { |
9300 | a750fc0b | j_mayer | table = env->opcodes; |
9301 | a750fc0b | j_mayer | handler = table[opc1]; |
9302 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9303 | a750fc0b | j_mayer | /* opc2 is 5 bits long */
|
9304 | a750fc0b | j_mayer | for (opc2 = 0; opc2 < 0x20; opc2++) { |
9305 | a750fc0b | j_mayer | table = env->opcodes; |
9306 | a750fc0b | j_mayer | handler = env->opcodes[opc1]; |
9307 | a750fc0b | j_mayer | table = ind_table(handler); |
9308 | a750fc0b | j_mayer | handler = table[opc2]; |
9309 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9310 | a750fc0b | j_mayer | table = ind_table(handler); |
9311 | a750fc0b | j_mayer | /* opc3 is 5 bits long */
|
9312 | a750fc0b | j_mayer | for (opc3 = 0; opc3 < 0x20; opc3++) { |
9313 | a750fc0b | j_mayer | handler = table[opc3]; |
9314 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9315 | 4c1b1bfe | j_mayer | /* Special hack to properly dump SPE insns */
|
9316 | 4c1b1bfe | j_mayer | p = strchr(handler->oname, '_');
|
9317 | 4c1b1bfe | j_mayer | if (p == NULL) { |
9318 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9319 | 4c1b1bfe | j_mayer | "%s\n",
|
9320 | 4c1b1bfe | j_mayer | opc1, opc2, opc3, opc1, |
9321 | 4c1b1bfe | j_mayer | (opc3 << 5) | opc2,
|
9322 | 4c1b1bfe | j_mayer | handler->oname); |
9323 | 4c1b1bfe | j_mayer | } else {
|
9324 | 4c1b1bfe | j_mayer | q = "speundef";
|
9325 | 4c1b1bfe | j_mayer | if ((p - handler->oname) != strlen(q) ||
|
9326 | 4c1b1bfe | j_mayer | memcmp(handler->oname, q, strlen(q)) != 0) {
|
9327 | 4c1b1bfe | j_mayer | /* First instruction */
|
9328 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9329 | 4c1b1bfe | j_mayer | "%.*s\n",
|
9330 | 4c1b1bfe | j_mayer | opc1, opc2 << 1, opc3, opc1,
|
9331 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1), |
9332 | 4c1b1bfe | j_mayer | (int)(p - handler->oname),
|
9333 | 4c1b1bfe | j_mayer | handler->oname); |
9334 | 4c1b1bfe | j_mayer | } |
9335 | 4c1b1bfe | j_mayer | if (strcmp(p + 1, q) != 0) { |
9336 | 4c1b1bfe | j_mayer | /* Second instruction */
|
9337 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9338 | 4c1b1bfe | j_mayer | "%s\n",
|
9339 | 4c1b1bfe | j_mayer | opc1, (opc2 << 1) | 1, opc3, opc1, |
9340 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1) | 1, |
9341 | 4c1b1bfe | j_mayer | p + 1);
|
9342 | 4c1b1bfe | j_mayer | } |
9343 | 4c1b1bfe | j_mayer | } |
9344 | a750fc0b | j_mayer | } |
9345 | a750fc0b | j_mayer | } |
9346 | a750fc0b | j_mayer | } else {
|
9347 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9348 | a750fc0b | j_mayer | printf("INSN: %02x %02x -- (%02d %04d) : %s\n",
|
9349 | a750fc0b | j_mayer | opc1, opc2, opc1, opc2, handler->oname); |
9350 | a750fc0b | j_mayer | } |
9351 | a750fc0b | j_mayer | } |
9352 | a750fc0b | j_mayer | } |
9353 | a750fc0b | j_mayer | } else {
|
9354 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9355 | a750fc0b | j_mayer | printf("INSN: %02x -- -- (%02d ----) : %s\n",
|
9356 | a750fc0b | j_mayer | opc1, opc1, handler->oname); |
9357 | a750fc0b | j_mayer | } |
9358 | a750fc0b | j_mayer | } |
9359 | a750fc0b | j_mayer | } |
9360 | a750fc0b | j_mayer | } |
9361 | 3a607854 | j_mayer | #endif
|
9362 | a750fc0b | j_mayer | |
9363 | 24951522 | aurel32 | static int gdb_get_float_reg(CPUState *env, uint8_t *mem_buf, int n) |
9364 | 24951522 | aurel32 | { |
9365 | 24951522 | aurel32 | if (n < 32) { |
9366 | 24951522 | aurel32 | stfq_p(mem_buf, env->fpr[n]); |
9367 | 24951522 | aurel32 | return 8; |
9368 | 24951522 | aurel32 | } |
9369 | 24951522 | aurel32 | if (n == 32) { |
9370 | 24951522 | aurel32 | /* FPSCR not implemented */
|
9371 | 24951522 | aurel32 | memset(mem_buf, 0, 4); |
9372 | 24951522 | aurel32 | return 4; |
9373 | 24951522 | aurel32 | } |
9374 | 24951522 | aurel32 | return 0; |
9375 | 24951522 | aurel32 | } |
9376 | 24951522 | aurel32 | |
9377 | 24951522 | aurel32 | static int gdb_set_float_reg(CPUState *env, uint8_t *mem_buf, int n) |
9378 | 24951522 | aurel32 | { |
9379 | 24951522 | aurel32 | if (n < 32) { |
9380 | 24951522 | aurel32 | env->fpr[n] = ldfq_p(mem_buf); |
9381 | 24951522 | aurel32 | return 8; |
9382 | 24951522 | aurel32 | } |
9383 | 24951522 | aurel32 | if (n == 32) { |
9384 | 24951522 | aurel32 | /* FPSCR not implemented */
|
9385 | 24951522 | aurel32 | return 4; |
9386 | 24951522 | aurel32 | } |
9387 | 24951522 | aurel32 | return 0; |
9388 | 24951522 | aurel32 | } |
9389 | 24951522 | aurel32 | |
9390 | b4f8d821 | aurel32 | static int gdb_get_avr_reg(CPUState *env, uint8_t *mem_buf, int n) |
9391 | b4f8d821 | aurel32 | { |
9392 | b4f8d821 | aurel32 | if (n < 32) { |
9393 | b4f8d821 | aurel32 | #ifdef WORDS_BIGENDIAN
|
9394 | b4f8d821 | aurel32 | stq_p(mem_buf, env->avr[n].u64[0]);
|
9395 | b4f8d821 | aurel32 | stq_p(mem_buf+8, env->avr[n].u64[1]); |
9396 | b4f8d821 | aurel32 | #else
|
9397 | b4f8d821 | aurel32 | stq_p(mem_buf, env->avr[n].u64[1]);
|
9398 | b4f8d821 | aurel32 | stq_p(mem_buf+8, env->avr[n].u64[0]); |
9399 | b4f8d821 | aurel32 | #endif
|
9400 | b4f8d821 | aurel32 | return 16; |
9401 | b4f8d821 | aurel32 | } |
9402 | 70976a79 | aurel32 | if (n == 32) { |
9403 | b4f8d821 | aurel32 | stl_p(mem_buf, env->vscr); |
9404 | b4f8d821 | aurel32 | return 4; |
9405 | b4f8d821 | aurel32 | } |
9406 | 70976a79 | aurel32 | if (n == 33) { |
9407 | b4f8d821 | aurel32 | stl_p(mem_buf, (uint32_t)env->spr[SPR_VRSAVE]); |
9408 | b4f8d821 | aurel32 | return 4; |
9409 | b4f8d821 | aurel32 | } |
9410 | b4f8d821 | aurel32 | return 0; |
9411 | b4f8d821 | aurel32 | } |
9412 | b4f8d821 | aurel32 | |
9413 | b4f8d821 | aurel32 | static int gdb_set_avr_reg(CPUState *env, uint8_t *mem_buf, int n) |
9414 | b4f8d821 | aurel32 | { |
9415 | b4f8d821 | aurel32 | if (n < 32) { |
9416 | b4f8d821 | aurel32 | #ifdef WORDS_BIGENDIAN
|
9417 | b4f8d821 | aurel32 | env->avr[n].u64[0] = ldq_p(mem_buf);
|
9418 | b4f8d821 | aurel32 | env->avr[n].u64[1] = ldq_p(mem_buf+8); |
9419 | b4f8d821 | aurel32 | #else
|
9420 | b4f8d821 | aurel32 | env->avr[n].u64[1] = ldq_p(mem_buf);
|
9421 | b4f8d821 | aurel32 | env->avr[n].u64[0] = ldq_p(mem_buf+8); |
9422 | b4f8d821 | aurel32 | #endif
|
9423 | b4f8d821 | aurel32 | return 16; |
9424 | b4f8d821 | aurel32 | } |
9425 | 70976a79 | aurel32 | if (n == 32) { |
9426 | b4f8d821 | aurel32 | env->vscr = ldl_p(mem_buf); |
9427 | b4f8d821 | aurel32 | return 4; |
9428 | b4f8d821 | aurel32 | } |
9429 | 70976a79 | aurel32 | if (n == 33) { |
9430 | b4f8d821 | aurel32 | env->spr[SPR_VRSAVE] = (target_ulong)ldl_p(mem_buf); |
9431 | b4f8d821 | aurel32 | return 4; |
9432 | b4f8d821 | aurel32 | } |
9433 | b4f8d821 | aurel32 | return 0; |
9434 | b4f8d821 | aurel32 | } |
9435 | b4f8d821 | aurel32 | |
9436 | 688890f7 | aurel32 | static int gdb_get_spe_reg(CPUState *env, uint8_t *mem_buf, int n) |
9437 | 688890f7 | aurel32 | { |
9438 | 688890f7 | aurel32 | if (n < 32) { |
9439 | 688890f7 | aurel32 | #if defined(TARGET_PPC64)
|
9440 | 688890f7 | aurel32 | stl_p(mem_buf, env->gpr[n] >> 32);
|
9441 | 688890f7 | aurel32 | #else
|
9442 | 688890f7 | aurel32 | stl_p(mem_buf, env->gprh[n]); |
9443 | 688890f7 | aurel32 | #endif
|
9444 | 688890f7 | aurel32 | return 4; |
9445 | 688890f7 | aurel32 | } |
9446 | 70976a79 | aurel32 | if (n == 32) { |
9447 | 688890f7 | aurel32 | stq_p(mem_buf, env->spe_acc); |
9448 | 688890f7 | aurel32 | return 8; |
9449 | 688890f7 | aurel32 | } |
9450 | 70976a79 | aurel32 | if (n == 33) { |
9451 | d34defbc | aurel32 | stl_p(mem_buf, env->spe_fscr); |
9452 | 688890f7 | aurel32 | return 4; |
9453 | 688890f7 | aurel32 | } |
9454 | 688890f7 | aurel32 | return 0; |
9455 | 688890f7 | aurel32 | } |
9456 | 688890f7 | aurel32 | |
9457 | 688890f7 | aurel32 | static int gdb_set_spe_reg(CPUState *env, uint8_t *mem_buf, int n) |
9458 | 688890f7 | aurel32 | { |
9459 | 688890f7 | aurel32 | if (n < 32) { |
9460 | 688890f7 | aurel32 | #if defined(TARGET_PPC64)
|
9461 | 688890f7 | aurel32 | target_ulong lo = (uint32_t)env->gpr[n]; |
9462 | 688890f7 | aurel32 | target_ulong hi = (target_ulong)ldl_p(mem_buf) << 32;
|
9463 | 688890f7 | aurel32 | env->gpr[n] = lo | hi; |
9464 | 688890f7 | aurel32 | #else
|
9465 | 688890f7 | aurel32 | env->gprh[n] = ldl_p(mem_buf); |
9466 | 688890f7 | aurel32 | #endif
|
9467 | 688890f7 | aurel32 | return 4; |
9468 | 688890f7 | aurel32 | } |
9469 | 70976a79 | aurel32 | if (n == 32) { |
9470 | 688890f7 | aurel32 | env->spe_acc = ldq_p(mem_buf); |
9471 | 688890f7 | aurel32 | return 8; |
9472 | 688890f7 | aurel32 | } |
9473 | 70976a79 | aurel32 | if (n == 33) { |
9474 | d34defbc | aurel32 | env->spe_fscr = ldl_p(mem_buf); |
9475 | 688890f7 | aurel32 | return 4; |
9476 | 688890f7 | aurel32 | } |
9477 | 688890f7 | aurel32 | return 0; |
9478 | 688890f7 | aurel32 | } |
9479 | 688890f7 | aurel32 | |
9480 | aaed909a | bellard | int cpu_ppc_register_internal (CPUPPCState *env, const ppc_def_t *def) |
9481 | a750fc0b | j_mayer | { |
9482 | a750fc0b | j_mayer | env->msr_mask = def->msr_mask; |
9483 | a750fc0b | j_mayer | env->mmu_model = def->mmu_model; |
9484 | a750fc0b | j_mayer | env->excp_model = def->excp_model; |
9485 | a750fc0b | j_mayer | env->bus_model = def->bus_model; |
9486 | d26bfc9a | j_mayer | env->flags = def->flags; |
9487 | 237c0af0 | j_mayer | env->bfd_mach = def->bfd_mach; |
9488 | 2f462816 | j_mayer | env->check_pow = def->check_pow; |
9489 | a750fc0b | j_mayer | if (create_ppc_opcodes(env, def) < 0) |
9490 | a750fc0b | j_mayer | return -1; |
9491 | a750fc0b | j_mayer | init_ppc_proc(env, def); |
9492 | 24951522 | aurel32 | |
9493 | 24951522 | aurel32 | if (def->insns_flags & PPC_FLOAT) {
|
9494 | 24951522 | aurel32 | gdb_register_coprocessor(env, gdb_get_float_reg, gdb_set_float_reg, |
9495 | 24951522 | aurel32 | 33, "power-fpu.xml", 0); |
9496 | 24951522 | aurel32 | } |
9497 | b4f8d821 | aurel32 | if (def->insns_flags & PPC_ALTIVEC) {
|
9498 | b4f8d821 | aurel32 | gdb_register_coprocessor(env, gdb_get_avr_reg, gdb_set_avr_reg, |
9499 | b4f8d821 | aurel32 | 34, "power-altivec.xml", 0); |
9500 | b4f8d821 | aurel32 | } |
9501 | 40569b7e | aurel32 | if (def->insns_flags & PPC_SPE) {
|
9502 | 688890f7 | aurel32 | gdb_register_coprocessor(env, gdb_get_spe_reg, gdb_set_spe_reg, |
9503 | 688890f7 | aurel32 | 34, "power-spe.xml", 0); |
9504 | 688890f7 | aurel32 | } |
9505 | 688890f7 | aurel32 | |
9506 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9507 | 3a607854 | j_mayer | { |
9508 | b55266b5 | blueswir1 | const char *mmu_model, *excp_model, *bus_model; |
9509 | a750fc0b | j_mayer | switch (env->mmu_model) {
|
9510 | a750fc0b | j_mayer | case POWERPC_MMU_32B:
|
9511 | a750fc0b | j_mayer | mmu_model = "PowerPC 32";
|
9512 | a750fc0b | j_mayer | break;
|
9513 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_6xx:
|
9514 | a750fc0b | j_mayer | mmu_model = "PowerPC 6xx/7xx with software driven TLBs";
|
9515 | a750fc0b | j_mayer | break;
|
9516 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_74xx:
|
9517 | a750fc0b | j_mayer | mmu_model = "PowerPC 74xx with software driven TLBs";
|
9518 | a750fc0b | j_mayer | break;
|
9519 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx:
|
9520 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs";
|
9521 | a750fc0b | j_mayer | break;
|
9522 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx_Z:
|
9523 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs "
|
9524 | a750fc0b | j_mayer | "and zones protections";
|
9525 | a750fc0b | j_mayer | break;
|
9526 | b4095fed | j_mayer | case POWERPC_MMU_REAL:
|
9527 | b4095fed | j_mayer | mmu_model = "PowerPC real mode only";
|
9528 | b4095fed | j_mayer | break;
|
9529 | b4095fed | j_mayer | case POWERPC_MMU_MPC8xx:
|
9530 | b4095fed | j_mayer | mmu_model = "PowerPC MPC8xx";
|
9531 | a750fc0b | j_mayer | break;
|
9532 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE:
|
9533 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE";
|
9534 | a750fc0b | j_mayer | break;
|
9535 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE_FSL:
|
9536 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE FSL";
|
9537 | a750fc0b | j_mayer | break;
|
9538 | b4095fed | j_mayer | case POWERPC_MMU_601:
|
9539 | b4095fed | j_mayer | mmu_model = "PowerPC 601";
|
9540 | b4095fed | j_mayer | break;
|
9541 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9542 | 00af685f | j_mayer | case POWERPC_MMU_64B:
|
9543 | 00af685f | j_mayer | mmu_model = "PowerPC 64";
|
9544 | 00af685f | j_mayer | break;
|
9545 | add78955 | j_mayer | case POWERPC_MMU_620:
|
9546 | add78955 | j_mayer | mmu_model = "PowerPC 620";
|
9547 | add78955 | j_mayer | break;
|
9548 | 00af685f | j_mayer | #endif
|
9549 | a750fc0b | j_mayer | default:
|
9550 | a750fc0b | j_mayer | mmu_model = "Unknown or invalid";
|
9551 | a750fc0b | j_mayer | break;
|
9552 | a750fc0b | j_mayer | } |
9553 | a750fc0b | j_mayer | switch (env->excp_model) {
|
9554 | a750fc0b | j_mayer | case POWERPC_EXCP_STD:
|
9555 | a750fc0b | j_mayer | excp_model = "PowerPC";
|
9556 | a750fc0b | j_mayer | break;
|
9557 | a750fc0b | j_mayer | case POWERPC_EXCP_40x:
|
9558 | a750fc0b | j_mayer | excp_model = "PowerPC 40x";
|
9559 | a750fc0b | j_mayer | break;
|
9560 | a750fc0b | j_mayer | case POWERPC_EXCP_601:
|
9561 | a750fc0b | j_mayer | excp_model = "PowerPC 601";
|
9562 | a750fc0b | j_mayer | break;
|
9563 | a750fc0b | j_mayer | case POWERPC_EXCP_602:
|
9564 | a750fc0b | j_mayer | excp_model = "PowerPC 602";
|
9565 | a750fc0b | j_mayer | break;
|
9566 | a750fc0b | j_mayer | case POWERPC_EXCP_603:
|
9567 | a750fc0b | j_mayer | excp_model = "PowerPC 603";
|
9568 | a750fc0b | j_mayer | break;
|
9569 | a750fc0b | j_mayer | case POWERPC_EXCP_603E:
|
9570 | a750fc0b | j_mayer | excp_model = "PowerPC 603e";
|
9571 | a750fc0b | j_mayer | break;
|
9572 | a750fc0b | j_mayer | case POWERPC_EXCP_604:
|
9573 | a750fc0b | j_mayer | excp_model = "PowerPC 604";
|
9574 | a750fc0b | j_mayer | break;
|
9575 | a750fc0b | j_mayer | case POWERPC_EXCP_7x0:
|
9576 | a750fc0b | j_mayer | excp_model = "PowerPC 740/750";
|
9577 | a750fc0b | j_mayer | break;
|
9578 | a750fc0b | j_mayer | case POWERPC_EXCP_7x5:
|
9579 | a750fc0b | j_mayer | excp_model = "PowerPC 745/755";
|
9580 | a750fc0b | j_mayer | break;
|
9581 | a750fc0b | j_mayer | case POWERPC_EXCP_74xx:
|
9582 | a750fc0b | j_mayer | excp_model = "PowerPC 74xx";
|
9583 | a750fc0b | j_mayer | break;
|
9584 | a750fc0b | j_mayer | case POWERPC_EXCP_BOOKE:
|
9585 | a750fc0b | j_mayer | excp_model = "PowerPC BookE";
|
9586 | a750fc0b | j_mayer | break;
|
9587 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9588 | 00af685f | j_mayer | case POWERPC_EXCP_970:
|
9589 | 00af685f | j_mayer | excp_model = "PowerPC 970";
|
9590 | 00af685f | j_mayer | break;
|
9591 | 00af685f | j_mayer | #endif
|
9592 | a750fc0b | j_mayer | default:
|
9593 | a750fc0b | j_mayer | excp_model = "Unknown or invalid";
|
9594 | a750fc0b | j_mayer | break;
|
9595 | a750fc0b | j_mayer | } |
9596 | a750fc0b | j_mayer | switch (env->bus_model) {
|
9597 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_6xx:
|
9598 | a750fc0b | j_mayer | bus_model = "PowerPC 6xx";
|
9599 | a750fc0b | j_mayer | break;
|
9600 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_BookE:
|
9601 | a750fc0b | j_mayer | bus_model = "PowerPC BookE";
|
9602 | a750fc0b | j_mayer | break;
|
9603 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_405:
|
9604 | a750fc0b | j_mayer | bus_model = "PowerPC 405";
|
9605 | a750fc0b | j_mayer | break;
|
9606 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_401:
|
9607 | a750fc0b | j_mayer | bus_model = "PowerPC 401/403";
|
9608 | a750fc0b | j_mayer | break;
|
9609 | b4095fed | j_mayer | case PPC_FLAGS_INPUT_RCPU:
|
9610 | b4095fed | j_mayer | bus_model = "RCPU / MPC8xx";
|
9611 | b4095fed | j_mayer | break;
|
9612 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9613 | 00af685f | j_mayer | case PPC_FLAGS_INPUT_970:
|
9614 | 00af685f | j_mayer | bus_model = "PowerPC 970";
|
9615 | 00af685f | j_mayer | break;
|
9616 | 00af685f | j_mayer | #endif
|
9617 | a750fc0b | j_mayer | default:
|
9618 | a750fc0b | j_mayer | bus_model = "Unknown or invalid";
|
9619 | a750fc0b | j_mayer | break;
|
9620 | a750fc0b | j_mayer | } |
9621 | a750fc0b | j_mayer | printf("PowerPC %-12s : PVR %08x MSR %016" PRIx64 "\n" |
9622 | a750fc0b | j_mayer | " MMU model : %s\n",
|
9623 | a750fc0b | j_mayer | def->name, def->pvr, def->msr_mask, mmu_model); |
9624 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9625 | a750fc0b | j_mayer | if (env->tlb != NULL) { |
9626 | a750fc0b | j_mayer | printf(" %d %s TLB in %d ways\n",
|
9627 | a750fc0b | j_mayer | env->nb_tlb, env->id_tlbs ? "splitted" : "merged", |
9628 | a750fc0b | j_mayer | env->nb_ways); |
9629 | a750fc0b | j_mayer | } |
9630 | f2e63a42 | j_mayer | #endif
|
9631 | a750fc0b | j_mayer | printf(" Exceptions model : %s\n"
|
9632 | a750fc0b | j_mayer | " Bus model : %s\n",
|
9633 | a750fc0b | j_mayer | excp_model, bus_model); |
9634 | 25ba3a68 | j_mayer | printf(" MSR features :\n");
|
9635 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SPE)
|
9636 | 25ba3a68 | j_mayer | printf(" signal processing engine enable"
|
9637 | 25ba3a68 | j_mayer | "\n");
|
9638 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_VRE) |
9639 | 25ba3a68 | j_mayer | printf(" vector processor enable\n");
|
9640 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_TGPR)
|
9641 | 25ba3a68 | j_mayer | printf(" temporary GPRs\n");
|
9642 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_CE) |
9643 | 25ba3a68 | j_mayer | printf(" critical input enable\n");
|
9644 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SE)
|
9645 | 25ba3a68 | j_mayer | printf(" single-step trace mode\n");
|
9646 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DWE) |
9647 | 25ba3a68 | j_mayer | printf(" debug wait enable\n");
|
9648 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_UBLE) |
9649 | 25ba3a68 | j_mayer | printf(" user BTB lock enable\n");
|
9650 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_BE)
|
9651 | 25ba3a68 | j_mayer | printf(" branch-step trace mode\n");
|
9652 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DE) |
9653 | 25ba3a68 | j_mayer | printf(" debug interrupt enable\n");
|
9654 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_PX)
|
9655 | 25ba3a68 | j_mayer | printf(" inclusive protection\n");
|
9656 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_PMM) |
9657 | 25ba3a68 | j_mayer | printf(" performance monitor mark\n");
|
9658 | 25ba3a68 | j_mayer | if (env->flags == POWERPC_FLAG_NONE)
|
9659 | 25ba3a68 | j_mayer | printf(" none\n");
|
9660 | 4018bae9 | j_mayer | printf(" Time-base/decrementer clock source: %s\n",
|
9661 | 4018bae9 | j_mayer | env->flags & POWERPC_FLAG_RTC_CLK ? "RTC clock" : "bus clock"); |
9662 | a750fc0b | j_mayer | } |
9663 | a750fc0b | j_mayer | dump_ppc_insns(env); |
9664 | a750fc0b | j_mayer | dump_ppc_sprs(env); |
9665 | a750fc0b | j_mayer | fflush(stdout); |
9666 | 3a607854 | j_mayer | #endif
|
9667 | a750fc0b | j_mayer | |
9668 | a750fc0b | j_mayer | return 0; |
9669 | a750fc0b | j_mayer | } |
9670 | 3fc6c082 | bellard | |
9671 | ee4e83ed | j_mayer | static const ppc_def_t *ppc_find_by_pvr (uint32_t pvr) |
9672 | 3fc6c082 | bellard | { |
9673 | ee4e83ed | j_mayer | const ppc_def_t *ret;
|
9674 | ee4e83ed | j_mayer | uint32_t pvr_rev; |
9675 | ee4e83ed | j_mayer | int i, best, match, best_match, max;
|
9676 | 3fc6c082 | bellard | |
9677 | ee4e83ed | j_mayer | ret = NULL;
|
9678 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9679 | ee4e83ed | j_mayer | best = -1;
|
9680 | ee4e83ed | j_mayer | pvr_rev = pvr & 0xFFFF;
|
9681 | ee4e83ed | j_mayer | /* We want all specified bits to match */
|
9682 | ee4e83ed | j_mayer | best_match = 32 - ctz32(pvr_rev);
|
9683 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9684 | ee4e83ed | j_mayer | /* We check that the 16 higher bits are the same to ensure the CPU
|
9685 | ee4e83ed | j_mayer | * model will be the choosen one.
|
9686 | ee4e83ed | j_mayer | */
|
9687 | ee4e83ed | j_mayer | if (((pvr ^ ppc_defs[i].pvr) >> 16) == 0) { |
9688 | ee4e83ed | j_mayer | /* We want as much as possible of the low-level 16 bits
|
9689 | ee4e83ed | j_mayer | * to be the same but we allow inexact matches.
|
9690 | ee4e83ed | j_mayer | */
|
9691 | ee4e83ed | j_mayer | match = clz32(pvr_rev ^ (ppc_defs[i].pvr & 0xFFFF));
|
9692 | ee4e83ed | j_mayer | /* We check '>=' instead of '>' because the PPC_defs table
|
9693 | ee4e83ed | j_mayer | * is ordered by increasing revision.
|
9694 | 4c1b1bfe | j_mayer | * Then, we will match the higher revision compatible
|
9695 | ee4e83ed | j_mayer | * with the requested PVR
|
9696 | ee4e83ed | j_mayer | */
|
9697 | ee4e83ed | j_mayer | if (match >= best_match) {
|
9698 | ee4e83ed | j_mayer | best = i; |
9699 | ee4e83ed | j_mayer | best_match = match; |
9700 | ee4e83ed | j_mayer | } |
9701 | 3fc6c082 | bellard | } |
9702 | 3fc6c082 | bellard | } |
9703 | ee4e83ed | j_mayer | if (best != -1) |
9704 | ee4e83ed | j_mayer | ret = &ppc_defs[best]; |
9705 | ee4e83ed | j_mayer | |
9706 | ee4e83ed | j_mayer | return ret;
|
9707 | 3fc6c082 | bellard | } |
9708 | 3fc6c082 | bellard | |
9709 | ee4e83ed | j_mayer | #include <ctype.h> |
9710 | 3fc6c082 | bellard | |
9711 | b55266b5 | blueswir1 | const ppc_def_t *cpu_ppc_find_by_name (const char *name) |
9712 | ee4e83ed | j_mayer | { |
9713 | ee4e83ed | j_mayer | const ppc_def_t *ret;
|
9714 | b55266b5 | blueswir1 | const char *p; |
9715 | ee4e83ed | j_mayer | int i, max, len;
|
9716 | ee4e83ed | j_mayer | |
9717 | ee4e83ed | j_mayer | /* Check if the given name is a PVR */
|
9718 | ee4e83ed | j_mayer | len = strlen(name); |
9719 | ee4e83ed | j_mayer | if (len == 10 && name[0] == '0' && name[1] == 'x') { |
9720 | ee4e83ed | j_mayer | p = name + 2;
|
9721 | ee4e83ed | j_mayer | goto check_pvr;
|
9722 | ee4e83ed | j_mayer | } else if (len == 8) { |
9723 | ee4e83ed | j_mayer | p = name; |
9724 | ee4e83ed | j_mayer | check_pvr:
|
9725 | ee4e83ed | j_mayer | for (i = 0; i < 8; i++) { |
9726 | cd390083 | blueswir1 | if (!qemu_isxdigit(*p++))
|
9727 | ee4e83ed | j_mayer | break;
|
9728 | ee4e83ed | j_mayer | } |
9729 | ee4e83ed | j_mayer | if (i == 8) |
9730 | ee4e83ed | j_mayer | return ppc_find_by_pvr(strtoul(name, NULL, 16)); |
9731 | ee4e83ed | j_mayer | } |
9732 | ee4e83ed | j_mayer | ret = NULL;
|
9733 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9734 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9735 | ee4e83ed | j_mayer | if (strcasecmp(name, ppc_defs[i].name) == 0) { |
9736 | ee4e83ed | j_mayer | ret = &ppc_defs[i]; |
9737 | ee4e83ed | j_mayer | break;
|
9738 | 3fc6c082 | bellard | } |
9739 | 3fc6c082 | bellard | } |
9740 | ee4e83ed | j_mayer | |
9741 | ee4e83ed | j_mayer | return ret;
|
9742 | 3fc6c082 | bellard | } |
9743 | 3fc6c082 | bellard | |
9744 | 3fc6c082 | bellard | void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) |
9745 | 3fc6c082 | bellard | { |
9746 | 068abdc8 | j_mayer | int i, max;
|
9747 | 3fc6c082 | bellard | |
9748 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9749 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9750 | a750fc0b | j_mayer | (*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n",
|
9751 | a750fc0b | j_mayer | ppc_defs[i].name, ppc_defs[i].pvr); |
9752 | 3fc6c082 | bellard | } |
9753 | 3fc6c082 | bellard | } |