root / target-ppc / translate_init.c @ 95ff895f
History | View | Annotate | Download (414.3 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 | 8167ee88 | Blue Swirl | * License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
18 | 3fc6c082 | bellard | */
|
19 | 3fc6c082 | bellard | |
20 | 3fc6c082 | bellard | /* A lot of PowerPC definition have been included here.
|
21 | 3fc6c082 | bellard | * Most of them are not usable for now but have been kept
|
22 | 3fc6c082 | bellard | * inside "#if defined(TODO) ... #endif" statements to make tests easier.
|
23 | 3fc6c082 | bellard | */
|
24 | 3fc6c082 | bellard | |
25 | 237c0af0 | j_mayer | #include "dis-asm.h" |
26 | 4e47ea67 | aurel32 | #include "gdbstub.h" |
27 | 237c0af0 | j_mayer | |
28 | 3fc6c082 | bellard | //#define PPC_DUMP_CPU
|
29 | 3fc6c082 | bellard | //#define PPC_DEBUG_SPR
|
30 | 80d11f44 | j_mayer | //#define PPC_DUMP_SPR_ACCESSES
|
31 | 80d11f44 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
32 | 80d11f44 | j_mayer | #define TODO_USER_ONLY 1 |
33 | 80d11f44 | j_mayer | #endif
|
34 | 3fc6c082 | bellard | |
35 | c227f099 | Anthony Liguori | struct ppc_def_t {
|
36 | b55266b5 | blueswir1 | const char *name; |
37 | 3fc6c082 | bellard | uint32_t pvr; |
38 | 80d11f44 | j_mayer | uint32_t svr; |
39 | 0487d6a8 | j_mayer | uint64_t insns_flags; |
40 | 3fc6c082 | bellard | uint64_t msr_mask; |
41 | c227f099 | Anthony Liguori | powerpc_mmu_t mmu_model; |
42 | c227f099 | Anthony Liguori | powerpc_excp_t excp_model; |
43 | c227f099 | Anthony Liguori | powerpc_input_t bus_model; |
44 | d26bfc9a | j_mayer | uint32_t flags; |
45 | 237c0af0 | j_mayer | int bfd_mach;
|
46 | a750fc0b | j_mayer | void (*init_proc)(CPUPPCState *env);
|
47 | 4c1b1bfe | j_mayer | int (*check_pow)(CPUPPCState *env);
|
48 | 3fc6c082 | bellard | }; |
49 | 3fc6c082 | bellard | |
50 | e9df014c | j_mayer | /* For user-mode emulation, we don't emulate any IRQ controller */
|
51 | e9df014c | j_mayer | #if defined(CONFIG_USER_ONLY)
|
52 | a750fc0b | j_mayer | #define PPC_IRQ_INIT_FN(name) \
|
53 | a750fc0b | j_mayer | static inline void glue(glue(ppc, name),_irq_init) (CPUPPCState *env) \ |
54 | a750fc0b | j_mayer | { \ |
55 | e9df014c | j_mayer | } |
56 | e9df014c | j_mayer | #else
|
57 | a750fc0b | j_mayer | #define PPC_IRQ_INIT_FN(name) \
|
58 | e9df014c | j_mayer | void glue(glue(ppc, name),_irq_init) (CPUPPCState *env);
|
59 | e9df014c | j_mayer | #endif
|
60 | a750fc0b | j_mayer | |
61 | 4e290a0b | j_mayer | PPC_IRQ_INIT_FN(40x);
|
62 | e9df014c | j_mayer | PPC_IRQ_INIT_FN(6xx);
|
63 | d0dfae6e | j_mayer | PPC_IRQ_INIT_FN(970);
|
64 | 9fdc60bf | aurel32 | PPC_IRQ_INIT_FN(e500); |
65 | e9df014c | j_mayer | |
66 | 3fc6c082 | bellard | /* Generic callbacks:
|
67 | 3fc6c082 | bellard | * do nothing but store/retrieve spr value
|
68 | 3fc6c082 | bellard | */
|
69 | 45d827d2 | aurel32 | static void spr_read_generic (void *opaque, int gprn, int sprn) |
70 | a496775f | j_mayer | { |
71 | 45d827d2 | aurel32 | gen_load_spr(cpu_gpr[gprn], sprn); |
72 | 45d827d2 | aurel32 | #ifdef PPC_DUMP_SPR_ACCESSES
|
73 | 45d827d2 | aurel32 | { |
74 | 45d827d2 | aurel32 | TCGv t0 = tcg_const_i32(sprn); |
75 | 45d827d2 | aurel32 | gen_helper_load_dump_spr(t0); |
76 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
77 | 45d827d2 | aurel32 | } |
78 | 45d827d2 | aurel32 | #endif
|
79 | a496775f | j_mayer | } |
80 | a496775f | j_mayer | |
81 | 45d827d2 | aurel32 | static void spr_write_generic (void *opaque, int sprn, int gprn) |
82 | a496775f | j_mayer | { |
83 | 45d827d2 | aurel32 | gen_store_spr(sprn, cpu_gpr[gprn]); |
84 | 45d827d2 | aurel32 | #ifdef PPC_DUMP_SPR_ACCESSES
|
85 | 45d827d2 | aurel32 | { |
86 | 45d827d2 | aurel32 | TCGv t0 = tcg_const_i32(sprn); |
87 | 45d827d2 | aurel32 | gen_helper_store_dump_spr(t0); |
88 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
89 | 45d827d2 | aurel32 | } |
90 | 04f20795 | j_mayer | #endif
|
91 | 45d827d2 | aurel32 | } |
92 | a496775f | j_mayer | |
93 | a496775f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
94 | 45d827d2 | aurel32 | static void spr_write_clear (void *opaque, int sprn, int gprn) |
95 | a496775f | j_mayer | { |
96 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
97 | 45d827d2 | aurel32 | TCGv t1 = tcg_temp_new(); |
98 | 45d827d2 | aurel32 | gen_load_spr(t0, sprn); |
99 | 45d827d2 | aurel32 | tcg_gen_neg_tl(t1, cpu_gpr[gprn]); |
100 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, t1); |
101 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
102 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
103 | 45d827d2 | aurel32 | tcg_temp_free(t1); |
104 | a496775f | j_mayer | } |
105 | a496775f | j_mayer | #endif
|
106 | a496775f | j_mayer | |
107 | 76a66253 | j_mayer | /* SPR common to all PowerPC */
|
108 | 3fc6c082 | bellard | /* XER */
|
109 | 45d827d2 | aurel32 | static void spr_read_xer (void *opaque, int gprn, int sprn) |
110 | 3fc6c082 | bellard | { |
111 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_xer); |
112 | 3fc6c082 | bellard | } |
113 | 3fc6c082 | bellard | |
114 | 45d827d2 | aurel32 | static void spr_write_xer (void *opaque, int sprn, int gprn) |
115 | 3fc6c082 | bellard | { |
116 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_xer, cpu_gpr[gprn]); |
117 | 3fc6c082 | bellard | } |
118 | 3fc6c082 | bellard | |
119 | 3fc6c082 | bellard | /* LR */
|
120 | 45d827d2 | aurel32 | static void spr_read_lr (void *opaque, int gprn, int sprn) |
121 | 3fc6c082 | bellard | { |
122 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_lr); |
123 | 3fc6c082 | bellard | } |
124 | 3fc6c082 | bellard | |
125 | 45d827d2 | aurel32 | static void spr_write_lr (void *opaque, int sprn, int gprn) |
126 | 3fc6c082 | bellard | { |
127 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_lr, cpu_gpr[gprn]); |
128 | 3fc6c082 | bellard | } |
129 | 3fc6c082 | bellard | |
130 | 3fc6c082 | bellard | /* CTR */
|
131 | 45d827d2 | aurel32 | static void spr_read_ctr (void *opaque, int gprn, int sprn) |
132 | 3fc6c082 | bellard | { |
133 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_gpr[gprn], cpu_ctr); |
134 | 3fc6c082 | bellard | } |
135 | 3fc6c082 | bellard | |
136 | 45d827d2 | aurel32 | static void spr_write_ctr (void *opaque, int sprn, int gprn) |
137 | 3fc6c082 | bellard | { |
138 | 45d827d2 | aurel32 | tcg_gen_mov_tl(cpu_ctr, cpu_gpr[gprn]); |
139 | 3fc6c082 | bellard | } |
140 | 3fc6c082 | bellard | |
141 | 3fc6c082 | bellard | /* User read access to SPR */
|
142 | 3fc6c082 | bellard | /* USPRx */
|
143 | 3fc6c082 | bellard | /* UMMCRx */
|
144 | 3fc6c082 | bellard | /* UPMCx */
|
145 | 3fc6c082 | bellard | /* USIA */
|
146 | 3fc6c082 | bellard | /* UDECR */
|
147 | 45d827d2 | aurel32 | static void spr_read_ureg (void *opaque, int gprn, int sprn) |
148 | 3fc6c082 | bellard | { |
149 | 45d827d2 | aurel32 | gen_load_spr(cpu_gpr[gprn], sprn + 0x10);
|
150 | 3fc6c082 | bellard | } |
151 | 3fc6c082 | bellard | |
152 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC */
|
153 | 3fc6c082 | bellard | /* DECR */
|
154 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
155 | 45d827d2 | aurel32 | static void spr_read_decr (void *opaque, int gprn, int sprn) |
156 | 3fc6c082 | bellard | { |
157 | 45d827d2 | aurel32 | gen_helper_load_decr(cpu_gpr[gprn]); |
158 | 3fc6c082 | bellard | } |
159 | 3fc6c082 | bellard | |
160 | 45d827d2 | aurel32 | static void spr_write_decr (void *opaque, int sprn, int gprn) |
161 | 3fc6c082 | bellard | { |
162 | 45d827d2 | aurel32 | gen_helper_store_decr(cpu_gpr[gprn]); |
163 | 3fc6c082 | bellard | } |
164 | 76a66253 | j_mayer | #endif
|
165 | 3fc6c082 | bellard | |
166 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC, except 601 */
|
167 | 3fc6c082 | bellard | /* Time base */
|
168 | 45d827d2 | aurel32 | static void spr_read_tbl (void *opaque, int gprn, int sprn) |
169 | 3fc6c082 | bellard | { |
170 | 45d827d2 | aurel32 | gen_helper_load_tbl(cpu_gpr[gprn]); |
171 | 3fc6c082 | bellard | } |
172 | 3fc6c082 | bellard | |
173 | 45d827d2 | aurel32 | static void spr_read_tbu (void *opaque, int gprn, int sprn) |
174 | 3fc6c082 | bellard | { |
175 | 45d827d2 | aurel32 | gen_helper_load_tbu(cpu_gpr[gprn]); |
176 | 3fc6c082 | bellard | } |
177 | 3fc6c082 | bellard | |
178 | a062e36c | j_mayer | __attribute__ (( unused )) |
179 | 45d827d2 | aurel32 | static void spr_read_atbl (void *opaque, int gprn, int sprn) |
180 | a062e36c | j_mayer | { |
181 | 45d827d2 | aurel32 | gen_helper_load_atbl(cpu_gpr[gprn]); |
182 | a062e36c | j_mayer | } |
183 | a062e36c | j_mayer | |
184 | a062e36c | j_mayer | __attribute__ (( unused )) |
185 | 45d827d2 | aurel32 | static void spr_read_atbu (void *opaque, int gprn, int sprn) |
186 | a062e36c | j_mayer | { |
187 | 45d827d2 | aurel32 | gen_helper_load_atbu(cpu_gpr[gprn]); |
188 | a062e36c | j_mayer | } |
189 | a062e36c | j_mayer | |
190 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
191 | 45d827d2 | aurel32 | static void spr_write_tbl (void *opaque, int sprn, int gprn) |
192 | 3fc6c082 | bellard | { |
193 | 45d827d2 | aurel32 | gen_helper_store_tbl(cpu_gpr[gprn]); |
194 | 3fc6c082 | bellard | } |
195 | 3fc6c082 | bellard | |
196 | 45d827d2 | aurel32 | static void spr_write_tbu (void *opaque, int sprn, int gprn) |
197 | 3fc6c082 | bellard | { |
198 | 45d827d2 | aurel32 | gen_helper_store_tbu(cpu_gpr[gprn]); |
199 | 3fc6c082 | bellard | } |
200 | a062e36c | j_mayer | |
201 | a062e36c | j_mayer | __attribute__ (( unused )) |
202 | 45d827d2 | aurel32 | static void spr_write_atbl (void *opaque, int sprn, int gprn) |
203 | a062e36c | j_mayer | { |
204 | 45d827d2 | aurel32 | gen_helper_store_atbl(cpu_gpr[gprn]); |
205 | a062e36c | j_mayer | } |
206 | a062e36c | j_mayer | |
207 | a062e36c | j_mayer | __attribute__ (( unused )) |
208 | 45d827d2 | aurel32 | static void spr_write_atbu (void *opaque, int sprn, int gprn) |
209 | a062e36c | j_mayer | { |
210 | 45d827d2 | aurel32 | gen_helper_store_atbu(cpu_gpr[gprn]); |
211 | a062e36c | j_mayer | } |
212 | 76a66253 | j_mayer | #endif
|
213 | 3fc6c082 | bellard | |
214 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
215 | 3fc6c082 | bellard | /* IBAT0U...IBAT0U */
|
216 | 3fc6c082 | bellard | /* IBAT0L...IBAT7L */
|
217 | 45d827d2 | aurel32 | static void spr_read_ibat (void *opaque, int gprn, int sprn) |
218 | 3fc6c082 | bellard | { |
219 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT0U) / 2])); |
220 | 3fc6c082 | bellard | } |
221 | 3fc6c082 | bellard | |
222 | 45d827d2 | aurel32 | static void spr_read_ibat_h (void *opaque, int gprn, int sprn) |
223 | 3fc6c082 | bellard | { |
224 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT4U) / 2])); |
225 | 3fc6c082 | bellard | } |
226 | 3fc6c082 | bellard | |
227 | 45d827d2 | aurel32 | static void spr_write_ibatu (void *opaque, int sprn, int gprn) |
228 | 3fc6c082 | bellard | { |
229 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
230 | 45d827d2 | aurel32 | gen_helper_store_ibatu(t0, cpu_gpr[gprn]); |
231 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
232 | 3fc6c082 | bellard | } |
233 | 3fc6c082 | bellard | |
234 | 45d827d2 | aurel32 | static void spr_write_ibatu_h (void *opaque, int sprn, int gprn) |
235 | 3fc6c082 | bellard | { |
236 | 8daf1781 | Thomas Monjalon | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_IBAT4U) / 2) + 4); |
237 | 45d827d2 | aurel32 | gen_helper_store_ibatu(t0, cpu_gpr[gprn]); |
238 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
239 | 3fc6c082 | bellard | } |
240 | 3fc6c082 | bellard | |
241 | 45d827d2 | aurel32 | static void spr_write_ibatl (void *opaque, int sprn, int gprn) |
242 | 3fc6c082 | bellard | { |
243 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0L) / 2);
|
244 | 45d827d2 | aurel32 | gen_helper_store_ibatl(t0, cpu_gpr[gprn]); |
245 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
246 | 3fc6c082 | bellard | } |
247 | 3fc6c082 | bellard | |
248 | 45d827d2 | aurel32 | static void spr_write_ibatl_h (void *opaque, int sprn, int gprn) |
249 | 3fc6c082 | bellard | { |
250 | 8daf1781 | Thomas Monjalon | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_IBAT4L) / 2) + 4); |
251 | 45d827d2 | aurel32 | gen_helper_store_ibatl(t0, cpu_gpr[gprn]); |
252 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
253 | 3fc6c082 | bellard | } |
254 | 3fc6c082 | bellard | |
255 | 3fc6c082 | bellard | /* DBAT0U...DBAT7U */
|
256 | 3fc6c082 | bellard | /* DBAT0L...DBAT7L */
|
257 | 45d827d2 | aurel32 | static void spr_read_dbat (void *opaque, int gprn, int sprn) |
258 | 3fc6c082 | bellard | { |
259 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, DBAT[sprn & 1][(sprn - SPR_DBAT0U) / 2])); |
260 | 3fc6c082 | bellard | } |
261 | 3fc6c082 | bellard | |
262 | 45d827d2 | aurel32 | static void spr_read_dbat_h (void *opaque, int gprn, int sprn) |
263 | 3fc6c082 | bellard | { |
264 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, DBAT[sprn & 1][((sprn - SPR_DBAT4U) / 2) + 4])); |
265 | 3fc6c082 | bellard | } |
266 | 3fc6c082 | bellard | |
267 | 45d827d2 | aurel32 | static void spr_write_dbatu (void *opaque, int sprn, int gprn) |
268 | 3fc6c082 | bellard | { |
269 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_DBAT0U) / 2);
|
270 | 45d827d2 | aurel32 | gen_helper_store_dbatu(t0, cpu_gpr[gprn]); |
271 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
272 | 3fc6c082 | bellard | } |
273 | 3fc6c082 | bellard | |
274 | 45d827d2 | aurel32 | static void spr_write_dbatu_h (void *opaque, int sprn, int gprn) |
275 | 3fc6c082 | bellard | { |
276 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_DBAT4U) / 2) + 4); |
277 | 45d827d2 | aurel32 | gen_helper_store_dbatu(t0, cpu_gpr[gprn]); |
278 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
279 | 3fc6c082 | bellard | } |
280 | 3fc6c082 | bellard | |
281 | 45d827d2 | aurel32 | static void spr_write_dbatl (void *opaque, int sprn, int gprn) |
282 | 3fc6c082 | bellard | { |
283 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_DBAT0L) / 2);
|
284 | 45d827d2 | aurel32 | gen_helper_store_dbatl(t0, cpu_gpr[gprn]); |
285 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
286 | 3fc6c082 | bellard | } |
287 | 3fc6c082 | bellard | |
288 | 45d827d2 | aurel32 | static void spr_write_dbatl_h (void *opaque, int sprn, int gprn) |
289 | 3fc6c082 | bellard | { |
290 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_DBAT4L) / 2) + 4); |
291 | 45d827d2 | aurel32 | gen_helper_store_dbatl(t0, cpu_gpr[gprn]); |
292 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
293 | 3fc6c082 | bellard | } |
294 | 3fc6c082 | bellard | |
295 | 3fc6c082 | bellard | /* SDR1 */
|
296 | 45d827d2 | aurel32 | static void spr_read_sdr1 (void *opaque, int gprn, int sprn) |
297 | 3fc6c082 | bellard | { |
298 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, sdr1)); |
299 | 3fc6c082 | bellard | } |
300 | 3fc6c082 | bellard | |
301 | 45d827d2 | aurel32 | static void spr_write_sdr1 (void *opaque, int sprn, int gprn) |
302 | 3fc6c082 | bellard | { |
303 | 45d827d2 | aurel32 | gen_helper_store_sdr1(cpu_gpr[gprn]); |
304 | 3fc6c082 | bellard | } |
305 | 3fc6c082 | bellard | |
306 | 76a66253 | j_mayer | /* 64 bits PowerPC specific SPRs */
|
307 | 76a66253 | j_mayer | /* ASR */
|
308 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
309 | 2adab7d6 | blueswir1 | static void spr_read_hior (void *opaque, int gprn, int sprn) |
310 | 2adab7d6 | blueswir1 | { |
311 | 2adab7d6 | blueswir1 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, excp_prefix)); |
312 | 2adab7d6 | blueswir1 | } |
313 | 2adab7d6 | blueswir1 | |
314 | 2adab7d6 | blueswir1 | static void spr_write_hior (void *opaque, int sprn, int gprn) |
315 | 2adab7d6 | blueswir1 | { |
316 | 2adab7d6 | blueswir1 | TCGv t0 = tcg_temp_new(); |
317 | 2adab7d6 | blueswir1 | tcg_gen_andi_tl(t0, cpu_gpr[gprn], 0x3FFFFF00000ULL);
|
318 | 2adab7d6 | blueswir1 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_prefix)); |
319 | 2adab7d6 | blueswir1 | tcg_temp_free(t0); |
320 | 2adab7d6 | blueswir1 | } |
321 | 2adab7d6 | blueswir1 | |
322 | 45d827d2 | aurel32 | static void spr_read_asr (void *opaque, int gprn, int sprn) |
323 | 76a66253 | j_mayer | { |
324 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, asr)); |
325 | 76a66253 | j_mayer | } |
326 | 76a66253 | j_mayer | |
327 | 45d827d2 | aurel32 | static void spr_write_asr (void *opaque, int sprn, int gprn) |
328 | 76a66253 | j_mayer | { |
329 | 45d827d2 | aurel32 | gen_helper_store_asr(cpu_gpr[gprn]); |
330 | 76a66253 | j_mayer | } |
331 | 76a66253 | j_mayer | #endif
|
332 | a750fc0b | j_mayer | #endif
|
333 | 76a66253 | j_mayer | |
334 | 76a66253 | j_mayer | /* PowerPC 601 specific registers */
|
335 | 76a66253 | j_mayer | /* RTC */
|
336 | 45d827d2 | aurel32 | static void spr_read_601_rtcl (void *opaque, int gprn, int sprn) |
337 | 76a66253 | j_mayer | { |
338 | 45d827d2 | aurel32 | gen_helper_load_601_rtcl(cpu_gpr[gprn]); |
339 | 76a66253 | j_mayer | } |
340 | 76a66253 | j_mayer | |
341 | 45d827d2 | aurel32 | static void spr_read_601_rtcu (void *opaque, int gprn, int sprn) |
342 | 76a66253 | j_mayer | { |
343 | 45d827d2 | aurel32 | gen_helper_load_601_rtcu(cpu_gpr[gprn]); |
344 | 76a66253 | j_mayer | } |
345 | 76a66253 | j_mayer | |
346 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
347 | 45d827d2 | aurel32 | static void spr_write_601_rtcu (void *opaque, int sprn, int gprn) |
348 | 76a66253 | j_mayer | { |
349 | 45d827d2 | aurel32 | gen_helper_store_601_rtcu(cpu_gpr[gprn]); |
350 | 76a66253 | j_mayer | } |
351 | 76a66253 | j_mayer | |
352 | 45d827d2 | aurel32 | static void spr_write_601_rtcl (void *opaque, int sprn, int gprn) |
353 | 76a66253 | j_mayer | { |
354 | 45d827d2 | aurel32 | gen_helper_store_601_rtcl(cpu_gpr[gprn]); |
355 | 76a66253 | j_mayer | } |
356 | 056401ea | j_mayer | |
357 | 45d827d2 | aurel32 | static void spr_write_hid0_601 (void *opaque, int sprn, int gprn) |
358 | 056401ea | j_mayer | { |
359 | 056401ea | j_mayer | DisasContext *ctx = opaque; |
360 | 056401ea | j_mayer | |
361 | 45d827d2 | aurel32 | gen_helper_store_hid0_601(cpu_gpr[gprn]); |
362 | 056401ea | j_mayer | /* Must stop the translation as endianness may have changed */
|
363 | e06fcd75 | aurel32 | gen_stop_exception(ctx); |
364 | 056401ea | j_mayer | } |
365 | 76a66253 | j_mayer | #endif
|
366 | 76a66253 | j_mayer | |
367 | 76a66253 | j_mayer | /* Unified bats */
|
368 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
369 | 45d827d2 | aurel32 | static void spr_read_601_ubat (void *opaque, int gprn, int sprn) |
370 | 76a66253 | j_mayer | { |
371 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT0U) / 2])); |
372 | 76a66253 | j_mayer | } |
373 | 76a66253 | j_mayer | |
374 | 45d827d2 | aurel32 | static void spr_write_601_ubatu (void *opaque, int sprn, int gprn) |
375 | 76a66253 | j_mayer | { |
376 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
377 | 45d827d2 | aurel32 | gen_helper_store_601_batl(t0, cpu_gpr[gprn]); |
378 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
379 | 76a66253 | j_mayer | } |
380 | 76a66253 | j_mayer | |
381 | 45d827d2 | aurel32 | static void spr_write_601_ubatl (void *opaque, int sprn, int gprn) |
382 | 76a66253 | j_mayer | { |
383 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
384 | 45d827d2 | aurel32 | gen_helper_store_601_batu(t0, cpu_gpr[gprn]); |
385 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
386 | 76a66253 | j_mayer | } |
387 | 76a66253 | j_mayer | #endif
|
388 | 76a66253 | j_mayer | |
389 | 76a66253 | j_mayer | /* PowerPC 40x specific registers */
|
390 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
391 | 45d827d2 | aurel32 | static void spr_read_40x_pit (void *opaque, int gprn, int sprn) |
392 | 76a66253 | j_mayer | { |
393 | 45d827d2 | aurel32 | gen_helper_load_40x_pit(cpu_gpr[gprn]); |
394 | 76a66253 | j_mayer | } |
395 | 76a66253 | j_mayer | |
396 | 45d827d2 | aurel32 | static void spr_write_40x_pit (void *opaque, int sprn, int gprn) |
397 | 76a66253 | j_mayer | { |
398 | 45d827d2 | aurel32 | gen_helper_store_40x_pit(cpu_gpr[gprn]); |
399 | 76a66253 | j_mayer | } |
400 | 76a66253 | j_mayer | |
401 | 45d827d2 | aurel32 | static void spr_write_40x_dbcr0 (void *opaque, int sprn, int gprn) |
402 | 8ecc7913 | j_mayer | { |
403 | 8ecc7913 | j_mayer | DisasContext *ctx = opaque; |
404 | 8ecc7913 | j_mayer | |
405 | 45d827d2 | aurel32 | gen_helper_store_40x_dbcr0(cpu_gpr[gprn]); |
406 | 8ecc7913 | j_mayer | /* We must stop translation as we may have rebooted */
|
407 | e06fcd75 | aurel32 | gen_stop_exception(ctx); |
408 | 8ecc7913 | j_mayer | } |
409 | 8ecc7913 | j_mayer | |
410 | 45d827d2 | aurel32 | static void spr_write_40x_sler (void *opaque, int sprn, int gprn) |
411 | c294fc58 | j_mayer | { |
412 | 45d827d2 | aurel32 | gen_helper_store_40x_sler(cpu_gpr[gprn]); |
413 | c294fc58 | j_mayer | } |
414 | c294fc58 | j_mayer | |
415 | 45d827d2 | aurel32 | static void spr_write_booke_tcr (void *opaque, int sprn, int gprn) |
416 | 76a66253 | j_mayer | { |
417 | 45d827d2 | aurel32 | gen_helper_store_booke_tcr(cpu_gpr[gprn]); |
418 | 76a66253 | j_mayer | } |
419 | 76a66253 | j_mayer | |
420 | 45d827d2 | aurel32 | static void spr_write_booke_tsr (void *opaque, int sprn, int gprn) |
421 | 76a66253 | j_mayer | { |
422 | 45d827d2 | aurel32 | gen_helper_store_booke_tsr(cpu_gpr[gprn]); |
423 | 76a66253 | j_mayer | } |
424 | 76a66253 | j_mayer | #endif
|
425 | 76a66253 | j_mayer | |
426 | 76a66253 | j_mayer | /* PowerPC 403 specific registers */
|
427 | 76a66253 | j_mayer | /* PBL1 / PBU1 / PBL2 / PBU2 */
|
428 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
429 | 45d827d2 | aurel32 | static void spr_read_403_pbr (void *opaque, int gprn, int sprn) |
430 | 76a66253 | j_mayer | { |
431 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, pb[sprn - SPR_403_PBL1])); |
432 | 76a66253 | j_mayer | } |
433 | 76a66253 | j_mayer | |
434 | 45d827d2 | aurel32 | static void spr_write_403_pbr (void *opaque, int sprn, int gprn) |
435 | 76a66253 | j_mayer | { |
436 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(sprn - SPR_403_PBL1); |
437 | 45d827d2 | aurel32 | gen_helper_store_403_pbr(t0, cpu_gpr[gprn]); |
438 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
439 | 76a66253 | j_mayer | } |
440 | 76a66253 | j_mayer | |
441 | 45d827d2 | aurel32 | static void spr_write_pir (void *opaque, int sprn, int gprn) |
442 | 3fc6c082 | bellard | { |
443 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
444 | 45d827d2 | aurel32 | tcg_gen_andi_tl(t0, cpu_gpr[gprn], 0xF);
|
445 | 45d827d2 | aurel32 | gen_store_spr(SPR_PIR, t0); |
446 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
447 | 3fc6c082 | bellard | } |
448 | 76a66253 | j_mayer | #endif
|
449 | 3fc6c082 | bellard | |
450 | d34defbc | aurel32 | /* SPE specific registers */
|
451 | d34defbc | aurel32 | static void spr_read_spefscr (void *opaque, int gprn, int sprn) |
452 | d34defbc | aurel32 | { |
453 | d34defbc | aurel32 | TCGv_i32 t0 = tcg_temp_new_i32(); |
454 | 515e2f7e | aurel32 | tcg_gen_ld_i32(t0, cpu_env, offsetof(CPUState, spe_fscr)); |
455 | d34defbc | aurel32 | tcg_gen_extu_i32_tl(cpu_gpr[gprn], t0); |
456 | d34defbc | aurel32 | tcg_temp_free_i32(t0); |
457 | d34defbc | aurel32 | } |
458 | d34defbc | aurel32 | |
459 | d34defbc | aurel32 | static void spr_write_spefscr (void *opaque, int sprn, int gprn) |
460 | d34defbc | aurel32 | { |
461 | d34defbc | aurel32 | TCGv_i32 t0 = tcg_temp_new_i32(); |
462 | d34defbc | aurel32 | tcg_gen_trunc_tl_i32(t0, cpu_gpr[gprn]); |
463 | 515e2f7e | aurel32 | tcg_gen_st_i32(t0, cpu_env, offsetof(CPUState, spe_fscr)); |
464 | d34defbc | aurel32 | tcg_temp_free_i32(t0); |
465 | d34defbc | aurel32 | } |
466 | d34defbc | aurel32 | |
467 | 6f5d427d | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
468 | 6f5d427d | j_mayer | /* Callback used to write the exception vector base */
|
469 | 45d827d2 | aurel32 | static void spr_write_excp_prefix (void *opaque, int sprn, int gprn) |
470 | 6f5d427d | j_mayer | { |
471 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
472 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivpr_mask)); |
473 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
474 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_prefix)); |
475 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
476 | 69bd5820 | aurel32 | tcg_temp_free(t0); |
477 | 6f5d427d | j_mayer | } |
478 | 6f5d427d | j_mayer | |
479 | 45d827d2 | aurel32 | static void spr_write_excp_vector (void *opaque, int sprn, int gprn) |
480 | 6f5d427d | j_mayer | { |
481 | 6f5d427d | j_mayer | DisasContext *ctx = opaque; |
482 | 6f5d427d | j_mayer | |
483 | 6f5d427d | j_mayer | if (sprn >= SPR_BOOKE_IVOR0 && sprn <= SPR_BOOKE_IVOR15) {
|
484 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
485 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivor_mask)); |
486 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
487 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_vectors[sprn - SPR_BOOKE_IVOR0])); |
488 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
489 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
490 | 6f5d427d | j_mayer | } else if (sprn >= SPR_BOOKE_IVOR32 && sprn <= SPR_BOOKE_IVOR37) { |
491 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
492 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivor_mask)); |
493 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
494 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_vectors[sprn - SPR_BOOKE_IVOR32 + 32]));
|
495 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
496 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
497 | 6f5d427d | j_mayer | } else {
|
498 | 6f5d427d | j_mayer | printf("Trying to write an unknown exception vector %d %03x\n",
|
499 | 6f5d427d | j_mayer | sprn, sprn); |
500 | e06fcd75 | aurel32 | gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); |
501 | 6f5d427d | j_mayer | } |
502 | 6f5d427d | j_mayer | } |
503 | 6f5d427d | j_mayer | #endif
|
504 | 6f5d427d | j_mayer | |
505 | cf8358c8 | aurel32 | static inline void vscr_init (CPUPPCState *env, uint32_t val) |
506 | cf8358c8 | aurel32 | { |
507 | cf8358c8 | aurel32 | env->vscr = val; |
508 | cf8358c8 | aurel32 | /* Altivec always uses round-to-nearest */
|
509 | cf8358c8 | aurel32 | set_float_rounding_mode(float_round_nearest_even, &env->vec_status); |
510 | cf8358c8 | aurel32 | set_flush_to_zero(vscr_nj, &env->vec_status); |
511 | cf8358c8 | aurel32 | } |
512 | cf8358c8 | aurel32 | |
513 | 76a66253 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
514 | 76a66253 | j_mayer | #define spr_register(env, num, name, uea_read, uea_write, \
|
515 | 76a66253 | j_mayer | oea_read, oea_write, initial_value) \ |
516 | 76a66253 | j_mayer | do { \
|
517 | 76a66253 | j_mayer | _spr_register(env, num, name, uea_read, uea_write, initial_value); \ |
518 | 76a66253 | j_mayer | } while (0) |
519 | 76a66253 | j_mayer | static inline void _spr_register (CPUPPCState *env, int num, |
520 | b55266b5 | blueswir1 | const char *name, |
521 | 45d827d2 | aurel32 | void (*uea_read)(void *opaque, int gprn, int sprn), |
522 | 45d827d2 | aurel32 | void (*uea_write)(void *opaque, int sprn, int gprn), |
523 | 76a66253 | j_mayer | target_ulong initial_value) |
524 | 76a66253 | j_mayer | #else
|
525 | 3fc6c082 | bellard | static inline void spr_register (CPUPPCState *env, int num, |
526 | b55266b5 | blueswir1 | const char *name, |
527 | 45d827d2 | aurel32 | void (*uea_read)(void *opaque, int gprn, int sprn), |
528 | 45d827d2 | aurel32 | void (*uea_write)(void *opaque, int sprn, int gprn), |
529 | 45d827d2 | aurel32 | void (*oea_read)(void *opaque, int gprn, int sprn), |
530 | 45d827d2 | aurel32 | void (*oea_write)(void *opaque, int sprn, int gprn), |
531 | 3fc6c082 | bellard | target_ulong initial_value) |
532 | 76a66253 | j_mayer | #endif
|
533 | 3fc6c082 | bellard | { |
534 | c227f099 | Anthony Liguori | ppc_spr_t *spr; |
535 | 3fc6c082 | bellard | |
536 | 3fc6c082 | bellard | spr = &env->spr_cb[num]; |
537 | 3fc6c082 | bellard | if (spr->name != NULL ||env-> spr[num] != 0x00000000 || |
538 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
539 | 76a66253 | j_mayer | spr->oea_read != NULL || spr->oea_write != NULL || |
540 | 76a66253 | j_mayer | #endif
|
541 | 76a66253 | j_mayer | spr->uea_read != NULL || spr->uea_write != NULL) { |
542 | 3fc6c082 | bellard | printf("Error: Trying to register SPR %d (%03x) twice !\n", num, num);
|
543 | 3fc6c082 | bellard | exit(1);
|
544 | 3fc6c082 | bellard | } |
545 | 3fc6c082 | bellard | #if defined(PPC_DEBUG_SPR)
|
546 | 90e189ec | Blue Swirl | printf("*** register spr %d (%03x) %s val " TARGET_FMT_lx "\n", num, num, |
547 | 90e189ec | Blue Swirl | name, initial_value); |
548 | 3fc6c082 | bellard | #endif
|
549 | 3fc6c082 | bellard | spr->name = name; |
550 | 3fc6c082 | bellard | spr->uea_read = uea_read; |
551 | 3fc6c082 | bellard | spr->uea_write = uea_write; |
552 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
553 | 3fc6c082 | bellard | spr->oea_read = oea_read; |
554 | 3fc6c082 | bellard | spr->oea_write = oea_write; |
555 | 76a66253 | j_mayer | #endif
|
556 | 3fc6c082 | bellard | env->spr[num] = initial_value; |
557 | 3fc6c082 | bellard | } |
558 | 3fc6c082 | bellard | |
559 | 3fc6c082 | bellard | /* Generic PowerPC SPRs */
|
560 | 3fc6c082 | bellard | static void gen_spr_generic (CPUPPCState *env) |
561 | 3fc6c082 | bellard | { |
562 | 3fc6c082 | bellard | /* Integer processing */
|
563 | 3fc6c082 | bellard | spr_register(env, SPR_XER, "XER",
|
564 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
565 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
566 | 3fc6c082 | bellard | 0x00000000);
|
567 | 3fc6c082 | bellard | /* Branch contol */
|
568 | 3fc6c082 | bellard | spr_register(env, SPR_LR, "LR",
|
569 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
570 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
571 | 3fc6c082 | bellard | 0x00000000);
|
572 | 3fc6c082 | bellard | spr_register(env, SPR_CTR, "CTR",
|
573 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
574 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
575 | 3fc6c082 | bellard | 0x00000000);
|
576 | 3fc6c082 | bellard | /* Interrupt processing */
|
577 | 3fc6c082 | bellard | spr_register(env, SPR_SRR0, "SRR0",
|
578 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
579 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
580 | 3fc6c082 | bellard | 0x00000000);
|
581 | 3fc6c082 | bellard | spr_register(env, SPR_SRR1, "SRR1",
|
582 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
583 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
584 | 3fc6c082 | bellard | 0x00000000);
|
585 | 3fc6c082 | bellard | /* Processor control */
|
586 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG0, "SPRG0",
|
587 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
588 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
589 | 3fc6c082 | bellard | 0x00000000);
|
590 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG1, "SPRG1",
|
591 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
592 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
593 | 3fc6c082 | bellard | 0x00000000);
|
594 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG2, "SPRG2",
|
595 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
596 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
597 | 3fc6c082 | bellard | 0x00000000);
|
598 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG3, "SPRG3",
|
599 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
600 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
601 | 3fc6c082 | bellard | 0x00000000);
|
602 | 3fc6c082 | bellard | } |
603 | 3fc6c082 | bellard | |
604 | 3fc6c082 | bellard | /* SPR common to all non-embedded PowerPC, including 601 */
|
605 | 3fc6c082 | bellard | static void gen_spr_ne_601 (CPUPPCState *env) |
606 | 3fc6c082 | bellard | { |
607 | 3fc6c082 | bellard | /* Exception processing */
|
608 | 3fc6c082 | bellard | spr_register(env, SPR_DSISR, "DSISR",
|
609 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
610 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
611 | 3fc6c082 | bellard | 0x00000000);
|
612 | 3fc6c082 | bellard | spr_register(env, SPR_DAR, "DAR",
|
613 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
614 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
615 | 3fc6c082 | bellard | 0x00000000);
|
616 | 3fc6c082 | bellard | /* Timer */
|
617 | 3fc6c082 | bellard | spr_register(env, SPR_DECR, "DECR",
|
618 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
619 | 3fc6c082 | bellard | &spr_read_decr, &spr_write_decr, |
620 | 3fc6c082 | bellard | 0x00000000);
|
621 | 3fc6c082 | bellard | /* Memory management */
|
622 | 3fc6c082 | bellard | spr_register(env, SPR_SDR1, "SDR1",
|
623 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
624 | 3fc6c082 | bellard | &spr_read_sdr1, &spr_write_sdr1, |
625 | 3fc6c082 | bellard | 0x00000000);
|
626 | 3fc6c082 | bellard | } |
627 | 3fc6c082 | bellard | |
628 | 3fc6c082 | bellard | /* BATs 0-3 */
|
629 | 3fc6c082 | bellard | static void gen_low_BATs (CPUPPCState *env) |
630 | 3fc6c082 | bellard | { |
631 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
632 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
633 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
634 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
635 | 3fc6c082 | bellard | 0x00000000);
|
636 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
637 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
638 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
639 | 3fc6c082 | bellard | 0x00000000);
|
640 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
641 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
642 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
643 | 3fc6c082 | bellard | 0x00000000);
|
644 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
645 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
646 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
647 | 3fc6c082 | bellard | 0x00000000);
|
648 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
649 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
650 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
651 | 3fc6c082 | bellard | 0x00000000);
|
652 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
653 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
654 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
655 | 3fc6c082 | bellard | 0x00000000);
|
656 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
657 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
658 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
659 | 3fc6c082 | bellard | 0x00000000);
|
660 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
661 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
662 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
663 | 3fc6c082 | bellard | 0x00000000);
|
664 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0U, "DBAT0U",
|
665 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
666 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
667 | 3fc6c082 | bellard | 0x00000000);
|
668 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0L, "DBAT0L",
|
669 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
670 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
671 | 3fc6c082 | bellard | 0x00000000);
|
672 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1U, "DBAT1U",
|
673 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
674 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
675 | 3fc6c082 | bellard | 0x00000000);
|
676 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1L, "DBAT1L",
|
677 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
678 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
679 | 3fc6c082 | bellard | 0x00000000);
|
680 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2U, "DBAT2U",
|
681 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
682 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
683 | 3fc6c082 | bellard | 0x00000000);
|
684 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2L, "DBAT2L",
|
685 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
686 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
687 | 3fc6c082 | bellard | 0x00000000);
|
688 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3U, "DBAT3U",
|
689 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
690 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
691 | 3fc6c082 | bellard | 0x00000000);
|
692 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3L, "DBAT3L",
|
693 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
694 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
695 | 3fc6c082 | bellard | 0x00000000);
|
696 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
697 | f2e63a42 | j_mayer | #endif
|
698 | 3fc6c082 | bellard | } |
699 | 3fc6c082 | bellard | |
700 | 3fc6c082 | bellard | /* BATs 4-7 */
|
701 | 3fc6c082 | bellard | static void gen_high_BATs (CPUPPCState *env) |
702 | 3fc6c082 | bellard | { |
703 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
704 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4U, "IBAT4U",
|
705 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
706 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
707 | 3fc6c082 | bellard | 0x00000000);
|
708 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4L, "IBAT4L",
|
709 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
710 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
711 | 3fc6c082 | bellard | 0x00000000);
|
712 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5U, "IBAT5U",
|
713 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
714 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
715 | 3fc6c082 | bellard | 0x00000000);
|
716 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5L, "IBAT5L",
|
717 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
718 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
719 | 3fc6c082 | bellard | 0x00000000);
|
720 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6U, "IBAT6U",
|
721 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
722 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
723 | 3fc6c082 | bellard | 0x00000000);
|
724 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6L, "IBAT6L",
|
725 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
726 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
727 | 3fc6c082 | bellard | 0x00000000);
|
728 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7U, "IBAT7U",
|
729 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
730 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
731 | 3fc6c082 | bellard | 0x00000000);
|
732 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7L, "IBAT7L",
|
733 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
734 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
735 | 3fc6c082 | bellard | 0x00000000);
|
736 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4U, "DBAT4U",
|
737 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
738 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
739 | 3fc6c082 | bellard | 0x00000000);
|
740 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4L, "DBAT4L",
|
741 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
742 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
743 | 3fc6c082 | bellard | 0x00000000);
|
744 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5U, "DBAT5U",
|
745 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
746 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
747 | 3fc6c082 | bellard | 0x00000000);
|
748 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5L, "DBAT5L",
|
749 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
750 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
751 | 3fc6c082 | bellard | 0x00000000);
|
752 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6U, "DBAT6U",
|
753 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
754 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
755 | 3fc6c082 | bellard | 0x00000000);
|
756 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6L, "DBAT6L",
|
757 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
758 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
759 | 3fc6c082 | bellard | 0x00000000);
|
760 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7U, "DBAT7U",
|
761 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
762 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
763 | 3fc6c082 | bellard | 0x00000000);
|
764 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7L, "DBAT7L",
|
765 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
766 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
767 | 3fc6c082 | bellard | 0x00000000);
|
768 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
769 | f2e63a42 | j_mayer | #endif
|
770 | 3fc6c082 | bellard | } |
771 | 3fc6c082 | bellard | |
772 | 3fc6c082 | bellard | /* Generic PowerPC time base */
|
773 | 3fc6c082 | bellard | static void gen_tbl (CPUPPCState *env) |
774 | 3fc6c082 | bellard | { |
775 | 3fc6c082 | bellard | spr_register(env, SPR_VTBL, "TBL",
|
776 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
777 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
778 | 3fc6c082 | bellard | 0x00000000);
|
779 | 3fc6c082 | bellard | spr_register(env, SPR_TBL, "TBL",
|
780 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
781 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbl, |
782 | 3fc6c082 | bellard | 0x00000000);
|
783 | 3fc6c082 | bellard | spr_register(env, SPR_VTBU, "TBU",
|
784 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
785 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
786 | 3fc6c082 | bellard | 0x00000000);
|
787 | 3fc6c082 | bellard | spr_register(env, SPR_TBU, "TBU",
|
788 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
789 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbu, |
790 | 3fc6c082 | bellard | 0x00000000);
|
791 | 3fc6c082 | bellard | } |
792 | 3fc6c082 | bellard | |
793 | 76a66253 | j_mayer | /* Softare table search registers */
|
794 | 76a66253 | j_mayer | static void gen_6xx_7xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
795 | 76a66253 | j_mayer | { |
796 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
797 | 76a66253 | j_mayer | env->nb_tlb = nb_tlbs; |
798 | 76a66253 | j_mayer | env->nb_ways = nb_ways; |
799 | 76a66253 | j_mayer | env->id_tlbs = 1;
|
800 | 76a66253 | j_mayer | spr_register(env, SPR_DMISS, "DMISS",
|
801 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
802 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
803 | 76a66253 | j_mayer | 0x00000000);
|
804 | 76a66253 | j_mayer | spr_register(env, SPR_DCMP, "DCMP",
|
805 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
806 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
807 | 76a66253 | j_mayer | 0x00000000);
|
808 | 76a66253 | j_mayer | spr_register(env, SPR_HASH1, "HASH1",
|
809 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
810 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
811 | 76a66253 | j_mayer | 0x00000000);
|
812 | 76a66253 | j_mayer | spr_register(env, SPR_HASH2, "HASH2",
|
813 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
814 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
815 | 76a66253 | j_mayer | 0x00000000);
|
816 | 76a66253 | j_mayer | spr_register(env, SPR_IMISS, "IMISS",
|
817 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
818 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
819 | 76a66253 | j_mayer | 0x00000000);
|
820 | 76a66253 | j_mayer | spr_register(env, SPR_ICMP, "ICMP",
|
821 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
822 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
823 | 76a66253 | j_mayer | 0x00000000);
|
824 | 76a66253 | j_mayer | spr_register(env, SPR_RPA, "RPA",
|
825 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
826 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
827 | 76a66253 | j_mayer | 0x00000000);
|
828 | f2e63a42 | j_mayer | #endif
|
829 | 76a66253 | j_mayer | } |
830 | 76a66253 | j_mayer | |
831 | 76a66253 | j_mayer | /* SPR common to MPC755 and G2 */
|
832 | 76a66253 | j_mayer | static void gen_spr_G2_755 (CPUPPCState *env) |
833 | 76a66253 | j_mayer | { |
834 | 76a66253 | j_mayer | /* SGPRs */
|
835 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
836 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
837 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
838 | 76a66253 | j_mayer | 0x00000000);
|
839 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
840 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
841 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
842 | 76a66253 | j_mayer | 0x00000000);
|
843 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
844 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
845 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
846 | 76a66253 | j_mayer | 0x00000000);
|
847 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
848 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
849 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
850 | 76a66253 | j_mayer | 0x00000000);
|
851 | 76a66253 | j_mayer | } |
852 | 76a66253 | j_mayer | |
853 | 3fc6c082 | bellard | /* SPR common to all 7xx PowerPC implementations */
|
854 | 3fc6c082 | bellard | static void gen_spr_7xx (CPUPPCState *env) |
855 | 3fc6c082 | bellard | { |
856 | 3fc6c082 | bellard | /* Breakpoints */
|
857 | 3fc6c082 | bellard | /* XXX : not implemented */
|
858 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
859 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
860 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
861 | 3fc6c082 | bellard | 0x00000000);
|
862 | 3fc6c082 | bellard | /* XXX : not implemented */
|
863 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
864 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
865 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
866 | 3fc6c082 | bellard | 0x00000000);
|
867 | 3fc6c082 | bellard | /* Cache management */
|
868 | 3fc6c082 | bellard | /* XXX : not implemented */
|
869 | 3fc6c082 | bellard | spr_register(env, SPR_ICTC, "ICTC",
|
870 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
871 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
872 | 3fc6c082 | bellard | 0x00000000);
|
873 | 3fc6c082 | bellard | /* Performance monitors */
|
874 | 3fc6c082 | bellard | /* XXX : not implemented */
|
875 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
876 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
877 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
878 | 3fc6c082 | bellard | 0x00000000);
|
879 | 3fc6c082 | bellard | /* XXX : not implemented */
|
880 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR1, "MMCR1",
|
881 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
882 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
883 | 3fc6c082 | bellard | 0x00000000);
|
884 | 3fc6c082 | bellard | /* XXX : not implemented */
|
885 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
886 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
887 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
888 | 3fc6c082 | bellard | 0x00000000);
|
889 | 3fc6c082 | bellard | /* XXX : not implemented */
|
890 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
891 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
892 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
893 | 3fc6c082 | bellard | 0x00000000);
|
894 | 3fc6c082 | bellard | /* XXX : not implemented */
|
895 | 3fc6c082 | bellard | spr_register(env, SPR_PMC3, "PMC3",
|
896 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
897 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
898 | 3fc6c082 | bellard | 0x00000000);
|
899 | 3fc6c082 | bellard | /* XXX : not implemented */
|
900 | 3fc6c082 | bellard | spr_register(env, SPR_PMC4, "PMC4",
|
901 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
902 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
903 | 3fc6c082 | bellard | 0x00000000);
|
904 | 3fc6c082 | bellard | /* XXX : not implemented */
|
905 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
906 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
907 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
908 | 3fc6c082 | bellard | 0x00000000);
|
909 | 578bb252 | j_mayer | /* XXX : not implemented */
|
910 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR0, "UMMCR0",
|
911 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
912 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
913 | 3fc6c082 | bellard | 0x00000000);
|
914 | 578bb252 | j_mayer | /* XXX : not implemented */
|
915 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR1, "UMMCR1",
|
916 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
917 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
918 | 3fc6c082 | bellard | 0x00000000);
|
919 | 578bb252 | j_mayer | /* XXX : not implemented */
|
920 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC1, "UPMC1",
|
921 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
922 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
923 | 3fc6c082 | bellard | 0x00000000);
|
924 | 578bb252 | j_mayer | /* XXX : not implemented */
|
925 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC2, "UPMC2",
|
926 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
927 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
928 | 3fc6c082 | bellard | 0x00000000);
|
929 | 578bb252 | j_mayer | /* XXX : not implemented */
|
930 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC3, "UPMC3",
|
931 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
932 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
933 | 3fc6c082 | bellard | 0x00000000);
|
934 | 578bb252 | j_mayer | /* XXX : not implemented */
|
935 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC4, "UPMC4",
|
936 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
937 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
938 | 3fc6c082 | bellard | 0x00000000);
|
939 | 578bb252 | j_mayer | /* XXX : not implemented */
|
940 | a750fc0b | j_mayer | spr_register(env, SPR_USIAR, "USIAR",
|
941 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
942 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
943 | 3fc6c082 | bellard | 0x00000000);
|
944 | a750fc0b | j_mayer | /* External access control */
|
945 | 3fc6c082 | bellard | /* XXX : not implemented */
|
946 | a750fc0b | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
947 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
948 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
949 | 3fc6c082 | bellard | 0x00000000);
|
950 | a750fc0b | j_mayer | } |
951 | a750fc0b | j_mayer | |
952 | a750fc0b | j_mayer | static void gen_spr_thrm (CPUPPCState *env) |
953 | a750fc0b | j_mayer | { |
954 | a750fc0b | j_mayer | /* Thermal management */
|
955 | 3fc6c082 | bellard | /* XXX : not implemented */
|
956 | a750fc0b | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
957 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
958 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
959 | 3fc6c082 | bellard | 0x00000000);
|
960 | 3fc6c082 | bellard | /* XXX : not implemented */
|
961 | a750fc0b | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
962 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
963 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
964 | 3fc6c082 | bellard | 0x00000000);
|
965 | 3fc6c082 | bellard | /* XXX : not implemented */
|
966 | a750fc0b | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
967 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
968 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
969 | 3fc6c082 | bellard | 0x00000000);
|
970 | 3fc6c082 | bellard | } |
971 | 3fc6c082 | bellard | |
972 | 3fc6c082 | bellard | /* SPR specific to PowerPC 604 implementation */
|
973 | 3fc6c082 | bellard | static void gen_spr_604 (CPUPPCState *env) |
974 | 3fc6c082 | bellard | { |
975 | 3fc6c082 | bellard | /* Processor identification */
|
976 | 3fc6c082 | bellard | spr_register(env, SPR_PIR, "PIR",
|
977 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
978 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_pir, |
979 | 3fc6c082 | bellard | 0x00000000);
|
980 | 3fc6c082 | bellard | /* Breakpoints */
|
981 | 3fc6c082 | bellard | /* XXX : not implemented */
|
982 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
983 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
984 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
985 | 3fc6c082 | bellard | 0x00000000);
|
986 | 3fc6c082 | bellard | /* XXX : not implemented */
|
987 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
988 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
989 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
990 | 3fc6c082 | bellard | 0x00000000);
|
991 | 3fc6c082 | bellard | /* Performance counters */
|
992 | 3fc6c082 | bellard | /* XXX : not implemented */
|
993 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
994 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
995 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
996 | 3fc6c082 | bellard | 0x00000000);
|
997 | 3fc6c082 | bellard | /* XXX : not implemented */
|
998 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
999 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1000 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1001 | 3fc6c082 | bellard | 0x00000000);
|
1002 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1003 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
1004 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1005 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1006 | 3fc6c082 | bellard | 0x00000000);
|
1007 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1008 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
1009 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1010 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
1011 | 3fc6c082 | bellard | 0x00000000);
|
1012 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1013 | 3fc6c082 | bellard | spr_register(env, SPR_SDA, "SDA",
|
1014 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1015 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
1016 | 3fc6c082 | bellard | 0x00000000);
|
1017 | 3fc6c082 | bellard | /* External access control */
|
1018 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1019 | 3fc6c082 | bellard | spr_register(env, SPR_EAR, "EAR",
|
1020 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1021 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1022 | 3fc6c082 | bellard | 0x00000000);
|
1023 | 3fc6c082 | bellard | } |
1024 | 3fc6c082 | bellard | |
1025 | 76a66253 | j_mayer | /* SPR specific to PowerPC 603 implementation */
|
1026 | 76a66253 | j_mayer | static void gen_spr_603 (CPUPPCState *env) |
1027 | 3fc6c082 | bellard | { |
1028 | 76a66253 | j_mayer | /* External access control */
|
1029 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1030 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1031 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1032 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1033 | 76a66253 | j_mayer | 0x00000000);
|
1034 | 3fc6c082 | bellard | } |
1035 | 3fc6c082 | bellard | |
1036 | 76a66253 | j_mayer | /* SPR specific to PowerPC G2 implementation */
|
1037 | 76a66253 | j_mayer | static void gen_spr_G2 (CPUPPCState *env) |
1038 | 3fc6c082 | bellard | { |
1039 | 76a66253 | j_mayer | /* Memory base address */
|
1040 | 76a66253 | j_mayer | /* MBAR */
|
1041 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1042 | 76a66253 | j_mayer | spr_register(env, SPR_MBAR, "MBAR",
|
1043 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1044 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1045 | 76a66253 | j_mayer | 0x00000000);
|
1046 | 76a66253 | j_mayer | /* Exception processing */
|
1047 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1048 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1049 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1050 | 76a66253 | j_mayer | 0x00000000);
|
1051 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1052 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1053 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1054 | 76a66253 | j_mayer | 0x00000000);
|
1055 | 76a66253 | j_mayer | /* Breakpoints */
|
1056 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1057 | 76a66253 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
1058 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1059 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1060 | 76a66253 | j_mayer | 0x00000000);
|
1061 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1062 | 76a66253 | j_mayer | spr_register(env, SPR_DABR2, "DABR2",
|
1063 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1064 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1065 | 76a66253 | j_mayer | 0x00000000);
|
1066 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1067 | 76a66253 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1068 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1069 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1070 | 76a66253 | j_mayer | 0x00000000);
|
1071 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1072 | 76a66253 | j_mayer | spr_register(env, SPR_IABR2, "IABR2",
|
1073 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1074 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1075 | 76a66253 | j_mayer | 0x00000000);
|
1076 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1077 | 76a66253 | j_mayer | spr_register(env, SPR_IBCR, "IBCR",
|
1078 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1079 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1080 | 76a66253 | j_mayer | 0x00000000);
|
1081 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1082 | 76a66253 | j_mayer | spr_register(env, SPR_DBCR, "DBCR",
|
1083 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1084 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1085 | 76a66253 | j_mayer | 0x00000000);
|
1086 | 76a66253 | j_mayer | } |
1087 | 76a66253 | j_mayer | |
1088 | 76a66253 | j_mayer | /* SPR specific to PowerPC 602 implementation */
|
1089 | 76a66253 | j_mayer | static void gen_spr_602 (CPUPPCState *env) |
1090 | 76a66253 | j_mayer | { |
1091 | 76a66253 | j_mayer | /* ESA registers */
|
1092 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1093 | 76a66253 | j_mayer | spr_register(env, SPR_SER, "SER",
|
1094 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1095 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1096 | 76a66253 | j_mayer | 0x00000000);
|
1097 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1098 | 76a66253 | j_mayer | spr_register(env, SPR_SEBR, "SEBR",
|
1099 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1100 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1101 | 76a66253 | j_mayer | 0x00000000);
|
1102 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1103 | a750fc0b | j_mayer | spr_register(env, SPR_ESASRR, "ESASRR",
|
1104 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1105 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1106 | 76a66253 | j_mayer | 0x00000000);
|
1107 | 76a66253 | j_mayer | /* Floating point status */
|
1108 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1109 | 76a66253 | j_mayer | spr_register(env, SPR_SP, "SP",
|
1110 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1111 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1112 | 76a66253 | j_mayer | 0x00000000);
|
1113 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1114 | 76a66253 | j_mayer | spr_register(env, SPR_LT, "LT",
|
1115 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1116 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1117 | 76a66253 | j_mayer | 0x00000000);
|
1118 | 76a66253 | j_mayer | /* Watchdog timer */
|
1119 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1120 | 76a66253 | j_mayer | spr_register(env, SPR_TCR, "TCR",
|
1121 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1122 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1123 | 76a66253 | j_mayer | 0x00000000);
|
1124 | 76a66253 | j_mayer | /* Interrupt base */
|
1125 | 76a66253 | j_mayer | spr_register(env, SPR_IBR, "IBR",
|
1126 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1127 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1128 | 76a66253 | j_mayer | 0x00000000);
|
1129 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1130 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1131 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1132 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1133 | a750fc0b | j_mayer | 0x00000000);
|
1134 | 76a66253 | j_mayer | } |
1135 | 76a66253 | j_mayer | |
1136 | 76a66253 | j_mayer | /* SPR specific to PowerPC 601 implementation */
|
1137 | 76a66253 | j_mayer | static void gen_spr_601 (CPUPPCState *env) |
1138 | 76a66253 | j_mayer | { |
1139 | 76a66253 | j_mayer | /* Multiplication/division register */
|
1140 | 76a66253 | j_mayer | /* MQ */
|
1141 | 76a66253 | j_mayer | spr_register(env, SPR_MQ, "MQ",
|
1142 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1143 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1144 | 76a66253 | j_mayer | 0x00000000);
|
1145 | 76a66253 | j_mayer | /* RTC registers */
|
1146 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCU, "RTCU",
|
1147 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1148 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcu, |
1149 | 76a66253 | j_mayer | 0x00000000);
|
1150 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCU, "RTCU",
|
1151 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1152 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1153 | 76a66253 | j_mayer | 0x00000000);
|
1154 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCL, "RTCL",
|
1155 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1156 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcl, |
1157 | 76a66253 | j_mayer | 0x00000000);
|
1158 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCL, "RTCL",
|
1159 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1160 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1161 | 76a66253 | j_mayer | 0x00000000);
|
1162 | 76a66253 | j_mayer | /* Timer */
|
1163 | 76a66253 | j_mayer | #if 0 /* ? */
|
1164 | 76a66253 | j_mayer | spr_register(env, SPR_601_UDECR, "UDECR",
|
1165 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1166 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1167 | 76a66253 | j_mayer | 0x00000000);
|
1168 | 76a66253 | j_mayer | #endif
|
1169 | 76a66253 | j_mayer | /* External access control */
|
1170 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1171 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1172 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1173 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1174 | 76a66253 | j_mayer | 0x00000000);
|
1175 | 76a66253 | j_mayer | /* Memory management */
|
1176 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1177 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
1178 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1179 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1180 | 76a66253 | j_mayer | 0x00000000);
|
1181 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
1182 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1183 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1184 | 76a66253 | j_mayer | 0x00000000);
|
1185 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
1186 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1187 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1188 | 76a66253 | j_mayer | 0x00000000);
|
1189 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
1190 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1191 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1192 | 76a66253 | j_mayer | 0x00000000);
|
1193 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
1194 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1195 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1196 | 76a66253 | j_mayer | 0x00000000);
|
1197 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
1198 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1199 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1200 | 76a66253 | j_mayer | 0x00000000);
|
1201 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
1202 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1203 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1204 | 76a66253 | j_mayer | 0x00000000);
|
1205 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
1206 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1207 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1208 | 76a66253 | j_mayer | 0x00000000);
|
1209 | a750fc0b | j_mayer | env->nb_BATs = 4;
|
1210 | f2e63a42 | j_mayer | #endif
|
1211 | a750fc0b | j_mayer | } |
1212 | a750fc0b | j_mayer | |
1213 | a750fc0b | j_mayer | static void gen_spr_74xx (CPUPPCState *env) |
1214 | a750fc0b | j_mayer | { |
1215 | a750fc0b | j_mayer | /* Processor identification */
|
1216 | a750fc0b | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
1217 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1218 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_pir, |
1219 | a750fc0b | j_mayer | 0x00000000);
|
1220 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1221 | a750fc0b | j_mayer | spr_register(env, SPR_MMCR2, "MMCR2",
|
1222 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1223 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1224 | a750fc0b | j_mayer | 0x00000000);
|
1225 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1226 | a750fc0b | j_mayer | spr_register(env, SPR_UMMCR2, "UMMCR2",
|
1227 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1228 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1229 | a750fc0b | j_mayer | 0x00000000);
|
1230 | a750fc0b | j_mayer | /* XXX: not implemented */
|
1231 | a750fc0b | j_mayer | spr_register(env, SPR_BAMR, "BAMR",
|
1232 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1233 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1234 | a750fc0b | j_mayer | 0x00000000);
|
1235 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1236 | a750fc0b | j_mayer | spr_register(env, SPR_MSSCR0, "MSSCR0",
|
1237 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1238 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1239 | a750fc0b | j_mayer | 0x00000000);
|
1240 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
1241 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1242 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
1243 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1244 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1245 | a750fc0b | j_mayer | 0x00000000);
|
1246 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1247 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
1248 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1249 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1250 | a750fc0b | j_mayer | 0x00000000);
|
1251 | a750fc0b | j_mayer | /* Altivec */
|
1252 | a750fc0b | j_mayer | spr_register(env, SPR_VRSAVE, "VRSAVE",
|
1253 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1254 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1255 | a750fc0b | j_mayer | 0x00000000);
|
1256 | bd928eba | j_mayer | /* XXX : not implemented */
|
1257 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
1258 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1259 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
1260 | bd928eba | j_mayer | 0x00000000);
|
1261 | cf8358c8 | aurel32 | /* Not strictly an SPR */
|
1262 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
1263 | a750fc0b | j_mayer | } |
1264 | a750fc0b | j_mayer | |
1265 | a750fc0b | j_mayer | static void gen_l3_ctrl (CPUPPCState *env) |
1266 | a750fc0b | j_mayer | { |
1267 | a750fc0b | j_mayer | /* L3CR */
|
1268 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1269 | a750fc0b | j_mayer | spr_register(env, SPR_L3CR, "L3CR",
|
1270 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1271 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1272 | a750fc0b | j_mayer | 0x00000000);
|
1273 | a750fc0b | j_mayer | /* L3ITCR0 */
|
1274 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1275 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR0, "L3ITCR0",
|
1276 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1277 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1278 | a750fc0b | j_mayer | 0x00000000);
|
1279 | a750fc0b | j_mayer | /* L3PM */
|
1280 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1281 | a750fc0b | j_mayer | spr_register(env, SPR_L3PM, "L3PM",
|
1282 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1283 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1284 | a750fc0b | j_mayer | 0x00000000);
|
1285 | a750fc0b | j_mayer | } |
1286 | a750fc0b | j_mayer | |
1287 | 578bb252 | j_mayer | static void gen_74xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
1288 | a750fc0b | j_mayer | { |
1289 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1290 | 578bb252 | j_mayer | env->nb_tlb = nb_tlbs; |
1291 | 578bb252 | j_mayer | env->nb_ways = nb_ways; |
1292 | 578bb252 | j_mayer | env->id_tlbs = 1;
|
1293 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1294 | a750fc0b | j_mayer | spr_register(env, SPR_PTEHI, "PTEHI",
|
1295 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1296 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1297 | a750fc0b | j_mayer | 0x00000000);
|
1298 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1299 | a750fc0b | j_mayer | spr_register(env, SPR_PTELO, "PTELO",
|
1300 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1301 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1302 | a750fc0b | j_mayer | 0x00000000);
|
1303 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1304 | a750fc0b | j_mayer | spr_register(env, SPR_TLBMISS, "TLBMISS",
|
1305 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1306 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1307 | a750fc0b | j_mayer | 0x00000000);
|
1308 | f2e63a42 | j_mayer | #endif
|
1309 | 76a66253 | j_mayer | } |
1310 | 76a66253 | j_mayer | |
1311 | 80d11f44 | j_mayer | static void gen_spr_usprgh (CPUPPCState *env) |
1312 | 76a66253 | j_mayer | { |
1313 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
1314 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1315 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1316 | 80d11f44 | j_mayer | 0x00000000);
|
1317 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
1318 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1319 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1320 | 80d11f44 | j_mayer | 0x00000000);
|
1321 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
1322 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1323 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1324 | 80d11f44 | j_mayer | 0x00000000);
|
1325 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
1326 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1327 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1328 | 76a66253 | j_mayer | 0x00000000);
|
1329 | 80d11f44 | j_mayer | } |
1330 | 80d11f44 | j_mayer | |
1331 | 80d11f44 | j_mayer | /* PowerPC BookE SPR */
|
1332 | 80d11f44 | j_mayer | static void gen_spr_BookE (CPUPPCState *env, uint64_t ivor_mask) |
1333 | 80d11f44 | j_mayer | { |
1334 | b55266b5 | blueswir1 | const char *ivor_names[64] = { |
1335 | 80d11f44 | j_mayer | "IVOR0", "IVOR1", "IVOR2", "IVOR3", |
1336 | 80d11f44 | j_mayer | "IVOR4", "IVOR5", "IVOR6", "IVOR7", |
1337 | 80d11f44 | j_mayer | "IVOR8", "IVOR9", "IVOR10", "IVOR11", |
1338 | 80d11f44 | j_mayer | "IVOR12", "IVOR13", "IVOR14", "IVOR15", |
1339 | 80d11f44 | j_mayer | "IVOR16", "IVOR17", "IVOR18", "IVOR19", |
1340 | 80d11f44 | j_mayer | "IVOR20", "IVOR21", "IVOR22", "IVOR23", |
1341 | 80d11f44 | j_mayer | "IVOR24", "IVOR25", "IVOR26", "IVOR27", |
1342 | 80d11f44 | j_mayer | "IVOR28", "IVOR29", "IVOR30", "IVOR31", |
1343 | 80d11f44 | j_mayer | "IVOR32", "IVOR33", "IVOR34", "IVOR35", |
1344 | 80d11f44 | j_mayer | "IVOR36", "IVOR37", "IVOR38", "IVOR39", |
1345 | 80d11f44 | j_mayer | "IVOR40", "IVOR41", "IVOR42", "IVOR43", |
1346 | 80d11f44 | j_mayer | "IVOR44", "IVOR45", "IVOR46", "IVOR47", |
1347 | 80d11f44 | j_mayer | "IVOR48", "IVOR49", "IVOR50", "IVOR51", |
1348 | 80d11f44 | j_mayer | "IVOR52", "IVOR53", "IVOR54", "IVOR55", |
1349 | 80d11f44 | j_mayer | "IVOR56", "IVOR57", "IVOR58", "IVOR59", |
1350 | 80d11f44 | j_mayer | "IVOR60", "IVOR61", "IVOR62", "IVOR63", |
1351 | 80d11f44 | j_mayer | }; |
1352 | 80d11f44 | j_mayer | #define SPR_BOOKE_IVORxx (-1) |
1353 | 80d11f44 | j_mayer | int ivor_sprn[64] = { |
1354 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR0, SPR_BOOKE_IVOR1, SPR_BOOKE_IVOR2, SPR_BOOKE_IVOR3, |
1355 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR4, SPR_BOOKE_IVOR5, SPR_BOOKE_IVOR6, SPR_BOOKE_IVOR7, |
1356 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR8, SPR_BOOKE_IVOR9, SPR_BOOKE_IVOR10, SPR_BOOKE_IVOR11, |
1357 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR12, SPR_BOOKE_IVOR13, SPR_BOOKE_IVOR14, SPR_BOOKE_IVOR15, |
1358 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
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_IVOR32, SPR_BOOKE_IVOR33, SPR_BOOKE_IVOR34, SPR_BOOKE_IVOR35, |
1363 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR36, SPR_BOOKE_IVOR37, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1364 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, 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 | }; |
1371 | 80d11f44 | j_mayer | int i;
|
1372 | 80d11f44 | j_mayer | |
1373 | 76a66253 | j_mayer | /* Interrupt processing */
|
1374 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1375 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1376 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1377 | 76a66253 | j_mayer | 0x00000000);
|
1378 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1379 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1380 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1381 | 363be49c | j_mayer | 0x00000000);
|
1382 | 76a66253 | j_mayer | /* Debug */
|
1383 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1384 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC1, "IAC1",
|
1385 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1386 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1387 | 76a66253 | j_mayer | 0x00000000);
|
1388 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1389 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC2, "IAC2",
|
1390 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1391 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1392 | 76a66253 | j_mayer | 0x00000000);
|
1393 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1394 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC1, "DAC1",
|
1395 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1396 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1397 | 76a66253 | j_mayer | 0x00000000);
|
1398 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1399 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC2, "DAC2",
|
1400 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1401 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1402 | 76a66253 | j_mayer | 0x00000000);
|
1403 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1404 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR0, "DBCR0",
|
1405 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1406 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1407 | 76a66253 | j_mayer | 0x00000000);
|
1408 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1409 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR1, "DBCR1",
|
1410 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1411 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1412 | 76a66253 | j_mayer | 0x00000000);
|
1413 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1414 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR2, "DBCR2",
|
1415 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1416 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1417 | 76a66253 | j_mayer | 0x00000000);
|
1418 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1419 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBSR, "DBSR",
|
1420 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1421 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1422 | 76a66253 | j_mayer | 0x00000000);
|
1423 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DEAR, "DEAR",
|
1424 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1425 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1426 | 76a66253 | j_mayer | 0x00000000);
|
1427 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_ESR, "ESR",
|
1428 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1429 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1430 | 76a66253 | j_mayer | 0x00000000);
|
1431 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVPR, "IVPR",
|
1432 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1433 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1434 | 363be49c | j_mayer | 0x00000000);
|
1435 | 363be49c | j_mayer | /* Exception vectors */
|
1436 | 80d11f44 | j_mayer | for (i = 0; i < 64; i++) { |
1437 | 80d11f44 | j_mayer | if (ivor_mask & (1ULL << i)) { |
1438 | 80d11f44 | j_mayer | if (ivor_sprn[i] == SPR_BOOKE_IVORxx) {
|
1439 | 80d11f44 | j_mayer | fprintf(stderr, "ERROR: IVOR %d SPR is not defined\n", i);
|
1440 | 80d11f44 | j_mayer | exit(1);
|
1441 | 80d11f44 | j_mayer | } |
1442 | 80d11f44 | j_mayer | spr_register(env, ivor_sprn[i], ivor_names[i], |
1443 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1444 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_excp_vector, |
1445 | 80d11f44 | j_mayer | 0x00000000);
|
1446 | 80d11f44 | j_mayer | } |
1447 | 80d11f44 | j_mayer | } |
1448 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_PID, "PID",
|
1449 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1450 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1451 | 76a66253 | j_mayer | 0x00000000);
|
1452 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TCR, "TCR",
|
1453 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1454 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1455 | 76a66253 | j_mayer | 0x00000000);
|
1456 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TSR, "TSR",
|
1457 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1458 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1459 | 76a66253 | j_mayer | 0x00000000);
|
1460 | 76a66253 | j_mayer | /* Timer */
|
1461 | 76a66253 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
1462 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1463 | 76a66253 | j_mayer | &spr_read_decr, &spr_write_decr, |
1464 | 76a66253 | j_mayer | 0x00000000);
|
1465 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DECAR, "DECAR",
|
1466 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1467 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
1468 | 76a66253 | j_mayer | 0x00000000);
|
1469 | 76a66253 | j_mayer | /* SPRGs */
|
1470 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1471 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1472 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1473 | 76a66253 | j_mayer | 0x00000000);
|
1474 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1475 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1476 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1477 | 76a66253 | j_mayer | 0x00000000);
|
1478 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1479 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1480 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1481 | 76a66253 | j_mayer | 0x00000000);
|
1482 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1483 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1484 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1485 | 76a66253 | j_mayer | 0x00000000);
|
1486 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1487 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1488 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1489 | 76a66253 | j_mayer | 0x00000000);
|
1490 | 76a66253 | j_mayer | } |
1491 | 76a66253 | j_mayer | |
1492 | 363be49c | j_mayer | /* FSL storage control registers */
|
1493 | 80d11f44 | j_mayer | static void gen_spr_BookE_FSL (CPUPPCState *env, uint32_t mas_mask) |
1494 | 363be49c | j_mayer | { |
1495 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1496 | b55266b5 | blueswir1 | const char *mas_names[8] = { |
1497 | 80d11f44 | j_mayer | "MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7", |
1498 | 80d11f44 | j_mayer | }; |
1499 | 80d11f44 | j_mayer | int mas_sprn[8] = { |
1500 | 80d11f44 | j_mayer | SPR_BOOKE_MAS0, SPR_BOOKE_MAS1, SPR_BOOKE_MAS2, SPR_BOOKE_MAS3, |
1501 | 80d11f44 | j_mayer | SPR_BOOKE_MAS4, SPR_BOOKE_MAS5, SPR_BOOKE_MAS6, SPR_BOOKE_MAS7, |
1502 | 80d11f44 | j_mayer | }; |
1503 | 80d11f44 | j_mayer | int i;
|
1504 | 80d11f44 | j_mayer | |
1505 | 363be49c | j_mayer | /* TLB assist registers */
|
1506 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1507 | 80d11f44 | j_mayer | for (i = 0; i < 8; i++) { |
1508 | 80d11f44 | j_mayer | if (mas_mask & (1 << i)) { |
1509 | 80d11f44 | j_mayer | spr_register(env, mas_sprn[i], mas_names[i], |
1510 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1511 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
1512 | 80d11f44 | j_mayer | 0x00000000);
|
1513 | 80d11f44 | j_mayer | } |
1514 | 80d11f44 | j_mayer | } |
1515 | 363be49c | j_mayer | if (env->nb_pids > 1) { |
1516 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1517 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID1, "PID1",
|
1518 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1519 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1520 | 363be49c | j_mayer | 0x00000000);
|
1521 | 363be49c | j_mayer | } |
1522 | 363be49c | j_mayer | if (env->nb_pids > 2) { |
1523 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1524 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID2, "PID2",
|
1525 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1526 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1527 | 363be49c | j_mayer | 0x00000000);
|
1528 | 363be49c | j_mayer | } |
1529 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1530 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
1531 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1532 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1533 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1534 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1535 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
1536 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1537 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1538 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1539 | 363be49c | j_mayer | switch (env->nb_ways) {
|
1540 | 363be49c | j_mayer | case 4: |
1541 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1542 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB3CFG, "TLB3CFG",
|
1543 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1544 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1545 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1546 | 363be49c | j_mayer | /* Fallthru */
|
1547 | 363be49c | j_mayer | case 3: |
1548 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1549 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB2CFG, "TLB2CFG",
|
1550 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1551 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1552 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1553 | 363be49c | j_mayer | /* Fallthru */
|
1554 | 363be49c | j_mayer | case 2: |
1555 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1556 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
1557 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1558 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1559 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1560 | 363be49c | j_mayer | /* Fallthru */
|
1561 | 363be49c | j_mayer | case 1: |
1562 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1563 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
1564 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1565 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1566 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1567 | 363be49c | j_mayer | /* Fallthru */
|
1568 | 363be49c | j_mayer | case 0: |
1569 | 363be49c | j_mayer | default:
|
1570 | 363be49c | j_mayer | break;
|
1571 | 363be49c | j_mayer | } |
1572 | f2e63a42 | j_mayer | #endif
|
1573 | 363be49c | j_mayer | } |
1574 | 363be49c | j_mayer | |
1575 | 76a66253 | j_mayer | /* SPR specific to PowerPC 440 implementation */
|
1576 | 76a66253 | j_mayer | static void gen_spr_440 (CPUPPCState *env) |
1577 | 76a66253 | j_mayer | { |
1578 | 76a66253 | j_mayer | /* Cache control */
|
1579 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1580 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV0, "DNV0",
|
1581 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1582 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1583 | 76a66253 | j_mayer | 0x00000000);
|
1584 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1585 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV1, "DNV1",
|
1586 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1587 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1588 | 76a66253 | j_mayer | 0x00000000);
|
1589 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1590 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV2, "DNV2",
|
1591 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1592 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1593 | 76a66253 | j_mayer | 0x00000000);
|
1594 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1595 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV3, "DNV3",
|
1596 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1597 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1598 | 76a66253 | j_mayer | 0x00000000);
|
1599 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1600 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV0, "DTV0",
|
1601 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1602 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1603 | 76a66253 | j_mayer | 0x00000000);
|
1604 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1605 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV1, "DTV1",
|
1606 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1607 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1608 | 76a66253 | j_mayer | 0x00000000);
|
1609 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1610 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV2, "DTV2",
|
1611 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1612 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1613 | 76a66253 | j_mayer | 0x00000000);
|
1614 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1615 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV3, "DTV3",
|
1616 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1617 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1618 | 76a66253 | j_mayer | 0x00000000);
|
1619 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1620 | 76a66253 | j_mayer | spr_register(env, SPR_440_DVLIM, "DVLIM",
|
1621 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1622 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1623 | 76a66253 | j_mayer | 0x00000000);
|
1624 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1625 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV0, "INV0",
|
1626 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1627 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1628 | 76a66253 | j_mayer | 0x00000000);
|
1629 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1630 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV1, "INV1",
|
1631 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1632 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1633 | 76a66253 | j_mayer | 0x00000000);
|
1634 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1635 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV2, "INV2",
|
1636 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1637 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1638 | 76a66253 | j_mayer | 0x00000000);
|
1639 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1640 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV3, "INV3",
|
1641 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1642 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1643 | 76a66253 | j_mayer | 0x00000000);
|
1644 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1645 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV0, "ITV0",
|
1646 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1647 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1648 | 76a66253 | j_mayer | 0x00000000);
|
1649 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1650 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV1, "ITV1",
|
1651 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1652 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1653 | 76a66253 | j_mayer | 0x00000000);
|
1654 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1655 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV2, "ITV2",
|
1656 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1657 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1658 | 76a66253 | j_mayer | 0x00000000);
|
1659 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1660 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV3, "ITV3",
|
1661 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1662 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1663 | 76a66253 | j_mayer | 0x00000000);
|
1664 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1665 | 76a66253 | j_mayer | spr_register(env, SPR_440_IVLIM, "IVLIM",
|
1666 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1667 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1668 | 76a66253 | j_mayer | 0x00000000);
|
1669 | 76a66253 | j_mayer | /* Cache debug */
|
1670 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1671 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRH, "DCDBTRH",
|
1672 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1673 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1674 | 76a66253 | j_mayer | 0x00000000);
|
1675 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1676 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRL, "DCDBTRL",
|
1677 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1678 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1679 | 76a66253 | j_mayer | 0x00000000);
|
1680 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1681 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1682 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1683 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1684 | 76a66253 | j_mayer | 0x00000000);
|
1685 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1686 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRH, "ICDBTRH",
|
1687 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1688 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1689 | 76a66253 | j_mayer | 0x00000000);
|
1690 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1691 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRL, "ICDBTRL",
|
1692 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1693 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1694 | 76a66253 | j_mayer | 0x00000000);
|
1695 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1696 | 76a66253 | j_mayer | spr_register(env, SPR_440_DBDR, "DBDR",
|
1697 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1698 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1699 | 76a66253 | j_mayer | 0x00000000);
|
1700 | 76a66253 | j_mayer | /* Processor control */
|
1701 | 76a66253 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1702 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1703 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1704 | 76a66253 | j_mayer | 0x00000000);
|
1705 | 76a66253 | j_mayer | spr_register(env, SPR_440_RSTCFG, "RSTCFG",
|
1706 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1707 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1708 | 76a66253 | j_mayer | 0x00000000);
|
1709 | 76a66253 | j_mayer | /* Storage control */
|
1710 | 76a66253 | j_mayer | spr_register(env, SPR_440_MMUCR, "MMUCR",
|
1711 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1712 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1713 | 76a66253 | j_mayer | 0x00000000);
|
1714 | 76a66253 | j_mayer | } |
1715 | 76a66253 | j_mayer | |
1716 | 76a66253 | j_mayer | /* SPR shared between PowerPC 40x implementations */
|
1717 | 76a66253 | j_mayer | static void gen_spr_40x (CPUPPCState *env) |
1718 | 76a66253 | j_mayer | { |
1719 | 76a66253 | j_mayer | /* Cache */
|
1720 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1721 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DCCR, "DCCR",
|
1722 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1723 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1724 | 76a66253 | j_mayer | 0x00000000);
|
1725 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1726 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ICCR, "ICCR",
|
1727 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1728 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1729 | 76a66253 | j_mayer | 0x00000000);
|
1730 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1731 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1732 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1733 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1734 | 76a66253 | j_mayer | 0x00000000);
|
1735 | 76a66253 | j_mayer | /* Exception */
|
1736 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DEAR, "DEAR",
|
1737 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1738 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1739 | 76a66253 | j_mayer | 0x00000000);
|
1740 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ESR, "ESR",
|
1741 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1742 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1743 | 76a66253 | j_mayer | 0x00000000);
|
1744 | 76a66253 | j_mayer | spr_register(env, SPR_40x_EVPR, "EVPR",
|
1745 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1746 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1747 | 76a66253 | j_mayer | 0x00000000);
|
1748 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR2, "SRR2",
|
1749 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1750 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1751 | 76a66253 | j_mayer | 0x00000000);
|
1752 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR3, "SRR3",
|
1753 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1754 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1755 | 76a66253 | j_mayer | 0x00000000);
|
1756 | 76a66253 | j_mayer | /* Timers */
|
1757 | 76a66253 | j_mayer | spr_register(env, SPR_40x_PIT, "PIT",
|
1758 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1759 | 76a66253 | j_mayer | &spr_read_40x_pit, &spr_write_40x_pit, |
1760 | 76a66253 | j_mayer | 0x00000000);
|
1761 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TCR, "TCR",
|
1762 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1763 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1764 | 76a66253 | j_mayer | 0x00000000);
|
1765 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TSR, "TSR",
|
1766 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1767 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1768 | 76a66253 | j_mayer | 0x00000000);
|
1769 | 2662a059 | j_mayer | } |
1770 | 2662a059 | j_mayer | |
1771 | 2662a059 | j_mayer | /* SPR specific to PowerPC 405 implementation */
|
1772 | 2662a059 | j_mayer | static void gen_spr_405 (CPUPPCState *env) |
1773 | 2662a059 | j_mayer | { |
1774 | 2662a059 | j_mayer | /* MMU */
|
1775 | 2662a059 | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1776 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1777 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1778 | 76a66253 | j_mayer | 0x00000000);
|
1779 | 2662a059 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1780 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1781 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1782 | 2662a059 | j_mayer | 0x00700000);
|
1783 | 2662a059 | j_mayer | /* Debug interface */
|
1784 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1785 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1786 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1787 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1788 | 76a66253 | j_mayer | 0x00000000);
|
1789 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1790 | 2662a059 | j_mayer | spr_register(env, SPR_405_DBCR1, "DBCR1",
|
1791 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1792 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1793 | 2662a059 | j_mayer | 0x00000000);
|
1794 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1795 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1796 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1797 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1798 | 8ecc7913 | j_mayer | /* Last reset was system reset */
|
1799 | 76a66253 | j_mayer | 0x00000300);
|
1800 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1801 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1802 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1803 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1804 | 76a66253 | j_mayer | 0x00000000);
|
1805 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1806 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1807 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1808 | 76a66253 | j_mayer | 0x00000000);
|
1809 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1810 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC1, "DVC1",
|
1811 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1812 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1813 | 2662a059 | j_mayer | 0x00000000);
|
1814 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1815 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC2, "DVC2",
|
1816 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1817 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1818 | 76a66253 | j_mayer | 0x00000000);
|
1819 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1820 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1821 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1822 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1823 | 76a66253 | j_mayer | 0x00000000);
|
1824 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1825 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1826 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1827 | 76a66253 | j_mayer | 0x00000000);
|
1828 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1829 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC3, "IAC3",
|
1830 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1831 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1832 | 76a66253 | j_mayer | 0x00000000);
|
1833 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1834 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC4, "IAC4",
|
1835 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1836 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1837 | 76a66253 | j_mayer | 0x00000000);
|
1838 | 76a66253 | j_mayer | /* Storage control */
|
1839 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1840 | 76a66253 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1841 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1842 | c294fc58 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1843 | 76a66253 | j_mayer | 0x00000000);
|
1844 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1845 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1846 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1847 | 2662a059 | j_mayer | 0x00000000);
|
1848 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1849 | 76a66253 | j_mayer | spr_register(env, SPR_405_SU0R, "SU0R",
|
1850 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1851 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1852 | 76a66253 | j_mayer | 0x00000000);
|
1853 | 76a66253 | j_mayer | /* SPRG */
|
1854 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1855 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1856 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1857 | 76a66253 | j_mayer | 0x00000000);
|
1858 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1859 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1860 | 04f20795 | j_mayer | &spr_read_generic, &spr_write_generic, |
1861 | 76a66253 | j_mayer | 0x00000000);
|
1862 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1863 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1864 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1865 | 76a66253 | j_mayer | 0x00000000);
|
1866 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1867 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1868 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1869 | 76a66253 | j_mayer | 0x00000000);
|
1870 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1871 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1872 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1873 | 76a66253 | j_mayer | 0x00000000);
|
1874 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
1875 | 76a66253 | j_mayer | } |
1876 | 76a66253 | j_mayer | |
1877 | 76a66253 | j_mayer | /* SPR shared between PowerPC 401 & 403 implementations */
|
1878 | 76a66253 | j_mayer | static void gen_spr_401_403 (CPUPPCState *env) |
1879 | 76a66253 | j_mayer | { |
1880 | 76a66253 | j_mayer | /* Time base */
|
1881 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBL, "TBL",
|
1882 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1883 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1884 | 76a66253 | j_mayer | 0x00000000);
|
1885 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBL, "TBL",
|
1886 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1887 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbl, |
1888 | 76a66253 | j_mayer | 0x00000000);
|
1889 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBU, "TBU",
|
1890 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1891 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1892 | 76a66253 | j_mayer | 0x00000000);
|
1893 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBU, "TBU",
|
1894 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1895 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbu, |
1896 | 76a66253 | j_mayer | 0x00000000);
|
1897 | 76a66253 | j_mayer | /* Debug */
|
1898 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1899 | 76a66253 | j_mayer | spr_register(env, SPR_403_CDBCR, "CDBCR",
|
1900 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1901 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1902 | 76a66253 | j_mayer | 0x00000000);
|
1903 | 76a66253 | j_mayer | } |
1904 | 76a66253 | j_mayer | |
1905 | 2662a059 | j_mayer | /* SPR specific to PowerPC 401 implementation */
|
1906 | 2662a059 | j_mayer | static void gen_spr_401 (CPUPPCState *env) |
1907 | 2662a059 | j_mayer | { |
1908 | 2662a059 | j_mayer | /* Debug interface */
|
1909 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1910 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR",
|
1911 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1912 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1913 | 2662a059 | j_mayer | 0x00000000);
|
1914 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1915 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1916 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1917 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1918 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1919 | 2662a059 | j_mayer | 0x00000300);
|
1920 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1921 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC",
|
1922 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1923 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1924 | 2662a059 | j_mayer | 0x00000000);
|
1925 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1926 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC",
|
1927 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1928 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1929 | 2662a059 | j_mayer | 0x00000000);
|
1930 | 2662a059 | j_mayer | /* Storage control */
|
1931 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1932 | 2662a059 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1933 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1934 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1935 | 2662a059 | j_mayer | 0x00000000);
|
1936 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
1937 | 035feb88 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
1938 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1939 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1940 | 035feb88 | j_mayer | 0xFFFFFFFF);
|
1941 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1942 | 035feb88 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
1943 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1944 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1945 | 035feb88 | j_mayer | 0x00000000);
|
1946 | 2662a059 | j_mayer | } |
1947 | 2662a059 | j_mayer | |
1948 | a750fc0b | j_mayer | static void gen_spr_401x2 (CPUPPCState *env) |
1949 | a750fc0b | j_mayer | { |
1950 | a750fc0b | j_mayer | gen_spr_401(env); |
1951 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1952 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1953 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1954 | a750fc0b | j_mayer | 0x00000000);
|
1955 | a750fc0b | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1956 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1957 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1958 | a750fc0b | j_mayer | 0x00000000);
|
1959 | a750fc0b | j_mayer | } |
1960 | a750fc0b | j_mayer | |
1961 | 76a66253 | j_mayer | /* SPR specific to PowerPC 403 implementation */
|
1962 | 76a66253 | j_mayer | static void gen_spr_403 (CPUPPCState *env) |
1963 | 76a66253 | j_mayer | { |
1964 | 2662a059 | j_mayer | /* Debug interface */
|
1965 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1966 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1967 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1968 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1969 | 2662a059 | j_mayer | 0x00000000);
|
1970 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1971 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1972 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1973 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1974 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1975 | 2662a059 | j_mayer | 0x00000300);
|
1976 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1977 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1978 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1979 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1980 | 2662a059 | j_mayer | 0x00000000);
|
1981 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1982 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1983 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1984 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1985 | 2662a059 | j_mayer | 0x00000000);
|
1986 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1987 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1988 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1989 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1990 | 2662a059 | j_mayer | 0x00000000);
|
1991 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1992 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1993 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1994 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1995 | 2662a059 | j_mayer | 0x00000000);
|
1996 | a750fc0b | j_mayer | } |
1997 | a750fc0b | j_mayer | |
1998 | a750fc0b | j_mayer | static void gen_spr_403_real (CPUPPCState *env) |
1999 | a750fc0b | j_mayer | { |
2000 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL1, "PBL1",
|
2001 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2002 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2003 | 76a66253 | j_mayer | 0x00000000);
|
2004 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU1, "PBU1",
|
2005 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2006 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2007 | 76a66253 | j_mayer | 0x00000000);
|
2008 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL2, "PBL2",
|
2009 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2010 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2011 | 76a66253 | j_mayer | 0x00000000);
|
2012 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU2, "PBU2",
|
2013 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2014 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2015 | 76a66253 | j_mayer | 0x00000000);
|
2016 | a750fc0b | j_mayer | } |
2017 | a750fc0b | j_mayer | |
2018 | a750fc0b | j_mayer | static void gen_spr_403_mmu (CPUPPCState *env) |
2019 | a750fc0b | j_mayer | { |
2020 | a750fc0b | j_mayer | /* MMU */
|
2021 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
2022 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2023 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2024 | a750fc0b | j_mayer | 0x00000000);
|
2025 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
2026 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2027 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
2028 | 76a66253 | j_mayer | 0x00000000);
|
2029 | 76a66253 | j_mayer | } |
2030 | 76a66253 | j_mayer | |
2031 | 76a66253 | j_mayer | /* SPR specific to PowerPC compression coprocessor extension */
|
2032 | 76a66253 | j_mayer | static void gen_spr_compress (CPUPPCState *env) |
2033 | 76a66253 | j_mayer | { |
2034 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2035 | 76a66253 | j_mayer | spr_register(env, SPR_401_SKR, "SKR",
|
2036 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2037 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
2038 | 76a66253 | j_mayer | 0x00000000);
|
2039 | 76a66253 | j_mayer | } |
2040 | a750fc0b | j_mayer | |
2041 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
2042 | a750fc0b | j_mayer | /* SPR specific to PowerPC 620 */
|
2043 | a750fc0b | j_mayer | static void gen_spr_620 (CPUPPCState *env) |
2044 | a750fc0b | j_mayer | { |
2045 | 082c6681 | j_mayer | /* Processor identification */
|
2046 | 082c6681 | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
2047 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2048 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_pir, |
2049 | 082c6681 | j_mayer | 0x00000000);
|
2050 | 082c6681 | j_mayer | spr_register(env, SPR_ASR, "ASR",
|
2051 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2052 | 082c6681 | j_mayer | &spr_read_asr, &spr_write_asr, |
2053 | 082c6681 | j_mayer | 0x00000000);
|
2054 | 082c6681 | j_mayer | /* Breakpoints */
|
2055 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2056 | 082c6681 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
2057 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2058 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2059 | 082c6681 | j_mayer | 0x00000000);
|
2060 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2061 | 082c6681 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
2062 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2063 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2064 | 082c6681 | j_mayer | 0x00000000);
|
2065 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2066 | 082c6681 | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
2067 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2068 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2069 | 082c6681 | j_mayer | 0x00000000);
|
2070 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2071 | 082c6681 | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
2072 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2073 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2074 | 082c6681 | j_mayer | 0x00000000);
|
2075 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2076 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1R, "PMC1",
|
2077 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2078 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2079 | 082c6681 | j_mayer | 0x00000000);
|
2080 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1W, "PMC1",
|
2081 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2082 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2083 | 082c6681 | j_mayer | 0x00000000);
|
2084 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2085 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2R, "PMC2",
|
2086 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2087 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2088 | 082c6681 | j_mayer | 0x00000000);
|
2089 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2W, "PMC2",
|
2090 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2091 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2092 | 082c6681 | j_mayer | 0x00000000);
|
2093 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2094 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0R, "MMCR0",
|
2095 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2096 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2097 | 082c6681 | j_mayer | 0x00000000);
|
2098 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0W, "MMCR0",
|
2099 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2100 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2101 | 082c6681 | j_mayer | 0x00000000);
|
2102 | 082c6681 | j_mayer | /* External access control */
|
2103 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2104 | 082c6681 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
2105 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2106 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2107 | 082c6681 | j_mayer | 0x00000000);
|
2108 | 082c6681 | j_mayer | #if 0 // XXX: check this
|
2109 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2110 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR0, "PMR0",
|
2111 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2112 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2113 | a750fc0b | j_mayer | 0x00000000);
|
2114 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2115 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR1, "PMR1",
|
2116 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2117 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2118 | a750fc0b | j_mayer | 0x00000000);
|
2119 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2120 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR2, "PMR2",
|
2121 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2122 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2123 | a750fc0b | j_mayer | 0x00000000);
|
2124 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2125 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR3, "PMR3",
|
2126 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2127 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2128 | a750fc0b | j_mayer | 0x00000000);
|
2129 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2130 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR4, "PMR4",
|
2131 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2132 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2133 | a750fc0b | j_mayer | 0x00000000);
|
2134 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2135 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR5, "PMR5",
|
2136 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2137 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2138 | a750fc0b | j_mayer | 0x00000000);
|
2139 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2140 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR6, "PMR6",
|
2141 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2142 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2143 | a750fc0b | j_mayer | 0x00000000);
|
2144 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2145 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR7, "PMR7",
|
2146 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2147 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2148 | a750fc0b | j_mayer | 0x00000000);
|
2149 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2150 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR8, "PMR8",
|
2151 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2152 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2153 | a750fc0b | j_mayer | 0x00000000);
|
2154 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2155 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR9, "PMR9",
|
2156 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2157 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2158 | a750fc0b | j_mayer | 0x00000000);
|
2159 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2160 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRA, "PMR10",
|
2161 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2162 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2163 | a750fc0b | j_mayer | 0x00000000);
|
2164 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2165 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRB, "PMR11",
|
2166 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2167 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2168 | a750fc0b | j_mayer | 0x00000000);
|
2169 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2170 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRC, "PMR12",
|
2171 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2172 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2173 | a750fc0b | j_mayer | 0x00000000);
|
2174 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2175 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRD, "PMR13",
|
2176 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2177 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2178 | a750fc0b | j_mayer | 0x00000000);
|
2179 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2180 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRE, "PMR14",
|
2181 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2182 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2183 | a750fc0b | j_mayer | 0x00000000);
|
2184 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2185 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRF, "PMR15",
|
2186 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2187 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2188 | a750fc0b | j_mayer | 0x00000000);
|
2189 | 082c6681 | j_mayer | #endif
|
2190 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2191 | 082c6681 | j_mayer | spr_register(env, SPR_620_BUSCSR, "BUSCSR",
|
2192 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2193 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2194 | a750fc0b | j_mayer | 0x00000000);
|
2195 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2196 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2CR, "L2CR",
|
2197 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2198 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2199 | 082c6681 | j_mayer | 0x00000000);
|
2200 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2201 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2SR, "L2SR",
|
2202 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2203 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2204 | a750fc0b | j_mayer | 0x00000000);
|
2205 | a750fc0b | j_mayer | } |
2206 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
2207 | 76a66253 | j_mayer | |
2208 | 80d11f44 | j_mayer | static void gen_spr_5xx_8xx (CPUPPCState *env) |
2209 | e1833e1f | j_mayer | { |
2210 | 80d11f44 | j_mayer | /* Exception processing */
|
2211 | 80d11f44 | j_mayer | spr_register(env, SPR_DSISR, "DSISR",
|
2212 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2213 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2214 | 80d11f44 | j_mayer | 0x00000000);
|
2215 | 80d11f44 | j_mayer | spr_register(env, SPR_DAR, "DAR",
|
2216 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2217 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2218 | 80d11f44 | j_mayer | 0x00000000);
|
2219 | 80d11f44 | j_mayer | /* Timer */
|
2220 | 80d11f44 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
2221 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2222 | 80d11f44 | j_mayer | &spr_read_decr, &spr_write_decr, |
2223 | 80d11f44 | j_mayer | 0x00000000);
|
2224 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2225 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EIE, "EIE",
|
2226 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2227 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2228 | 80d11f44 | j_mayer | 0x00000000);
|
2229 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2230 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EID, "EID",
|
2231 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2232 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2233 | 80d11f44 | j_mayer | 0x00000000);
|
2234 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2235 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_NRI, "NRI",
|
2236 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2237 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2238 | 80d11f44 | j_mayer | 0x00000000);
|
2239 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2240 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPA, "CMPA",
|
2241 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2242 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2243 | 80d11f44 | j_mayer | 0x00000000);
|
2244 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2245 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPB, "CMPB",
|
2246 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2247 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2248 | 80d11f44 | j_mayer | 0x00000000);
|
2249 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2250 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPC, "CMPC",
|
2251 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2252 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2253 | 80d11f44 | j_mayer | 0x00000000);
|
2254 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2255 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPD, "CMPD",
|
2256 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2257 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2258 | 80d11f44 | j_mayer | 0x00000000);
|
2259 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2260 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_ECR, "ECR",
|
2261 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2262 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2263 | 80d11f44 | j_mayer | 0x00000000);
|
2264 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2265 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DER, "DER",
|
2266 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2267 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2268 | 80d11f44 | j_mayer | 0x00000000);
|
2269 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2270 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTA, "COUNTA",
|
2271 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2272 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2273 | 80d11f44 | j_mayer | 0x00000000);
|
2274 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2275 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTB, "COUNTB",
|
2276 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2277 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2278 | 80d11f44 | j_mayer | 0x00000000);
|
2279 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2280 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPE, "CMPE",
|
2281 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2282 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2283 | 80d11f44 | j_mayer | 0x00000000);
|
2284 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2285 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPF, "CMPF",
|
2286 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2287 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2288 | 80d11f44 | j_mayer | 0x00000000);
|
2289 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2290 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPG, "CMPG",
|
2291 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2292 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2293 | 80d11f44 | j_mayer | 0x00000000);
|
2294 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2295 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPH, "CMPH",
|
2296 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2297 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2298 | 80d11f44 | j_mayer | 0x00000000);
|
2299 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2300 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL1, "LCTRL1",
|
2301 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2302 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2303 | 80d11f44 | j_mayer | 0x00000000);
|
2304 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2305 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL2, "LCTRL2",
|
2306 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2307 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2308 | 80d11f44 | j_mayer | 0x00000000);
|
2309 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2310 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_BAR, "BAR",
|
2311 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2312 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2313 | 80d11f44 | j_mayer | 0x00000000);
|
2314 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2315 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DPDR, "DPDR",
|
2316 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2317 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2318 | 80d11f44 | j_mayer | 0x00000000);
|
2319 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2320 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IMMR, "IMMR",
|
2321 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2322 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2323 | 80d11f44 | j_mayer | 0x00000000);
|
2324 | 80d11f44 | j_mayer | } |
2325 | 80d11f44 | j_mayer | |
2326 | 80d11f44 | j_mayer | static void gen_spr_5xx (CPUPPCState *env) |
2327 | 80d11f44 | j_mayer | { |
2328 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2329 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_GRA, "MI_GRA",
|
2330 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2331 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2332 | 80d11f44 | j_mayer | 0x00000000);
|
2333 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2334 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_GRA, "L2U_GRA",
|
2335 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2336 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2337 | 80d11f44 | j_mayer | 0x00000000);
|
2338 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2339 | 80d11f44 | j_mayer | spr_register(env, SPR_RPCU_BBCMCR, "L2U_BBCMCR",
|
2340 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2341 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2342 | 80d11f44 | j_mayer | 0x00000000);
|
2343 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2344 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_MCR, "L2U_MCR",
|
2345 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2346 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2347 | 80d11f44 | j_mayer | 0x00000000);
|
2348 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2349 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA0, "MI_RBA0",
|
2350 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2351 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2352 | 80d11f44 | j_mayer | 0x00000000);
|
2353 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2354 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA1, "MI_RBA1",
|
2355 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2356 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2357 | 80d11f44 | j_mayer | 0x00000000);
|
2358 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2359 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA2, "MI_RBA2",
|
2360 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2361 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2362 | 80d11f44 | j_mayer | 0x00000000);
|
2363 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2364 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA3, "MI_RBA3",
|
2365 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2366 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2367 | 80d11f44 | j_mayer | 0x00000000);
|
2368 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2369 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA0, "L2U_RBA0",
|
2370 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2371 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2372 | 80d11f44 | j_mayer | 0x00000000);
|
2373 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2374 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA1, "L2U_RBA1",
|
2375 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2376 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2377 | 80d11f44 | j_mayer | 0x00000000);
|
2378 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2379 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA2, "L2U_RBA2",
|
2380 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2381 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2382 | 80d11f44 | j_mayer | 0x00000000);
|
2383 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2384 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA3, "L2U_RBA3",
|
2385 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2386 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2387 | 80d11f44 | j_mayer | 0x00000000);
|
2388 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2389 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA0, "MI_RA0",
|
2390 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2391 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2392 | 80d11f44 | j_mayer | 0x00000000);
|
2393 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2394 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA1, "MI_RA1",
|
2395 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2396 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2397 | 80d11f44 | j_mayer | 0x00000000);
|
2398 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2399 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA2, "MI_RA2",
|
2400 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2401 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2402 | 80d11f44 | j_mayer | 0x00000000);
|
2403 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2404 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA3, "MI_RA3",
|
2405 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2406 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2407 | 80d11f44 | j_mayer | 0x00000000);
|
2408 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2409 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA0, "L2U_RA0",
|
2410 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2411 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2412 | 80d11f44 | j_mayer | 0x00000000);
|
2413 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2414 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA1, "L2U_RA1",
|
2415 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2416 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2417 | 80d11f44 | j_mayer | 0x00000000);
|
2418 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2419 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA2, "L2U_RA2",
|
2420 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2421 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2422 | 80d11f44 | j_mayer | 0x00000000);
|
2423 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2424 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA3, "L2U_RA3",
|
2425 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2426 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2427 | 80d11f44 | j_mayer | 0x00000000);
|
2428 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2429 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_FPECR, "FPECR",
|
2430 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2431 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2432 | 80d11f44 | j_mayer | 0x00000000);
|
2433 | 80d11f44 | j_mayer | } |
2434 | 80d11f44 | j_mayer | |
2435 | 80d11f44 | j_mayer | static void gen_spr_8xx (CPUPPCState *env) |
2436 | 80d11f44 | j_mayer | { |
2437 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2438 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_CST, "IC_CST",
|
2439 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2440 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2441 | 80d11f44 | j_mayer | 0x00000000);
|
2442 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2443 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_ADR, "IC_ADR",
|
2444 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2445 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2446 | 80d11f44 | j_mayer | 0x00000000);
|
2447 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2448 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_DAT, "IC_DAT",
|
2449 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2450 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2451 | 80d11f44 | j_mayer | 0x00000000);
|
2452 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2453 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_CST, "DC_CST",
|
2454 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2455 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2456 | 80d11f44 | j_mayer | 0x00000000);
|
2457 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2458 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_ADR, "DC_ADR",
|
2459 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2460 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2461 | 80d11f44 | j_mayer | 0x00000000);
|
2462 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2463 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_DAT, "DC_DAT",
|
2464 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2465 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2466 | 80d11f44 | j_mayer | 0x00000000);
|
2467 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2468 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_CTR, "MI_CTR",
|
2469 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2470 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2471 | 80d11f44 | j_mayer | 0x00000000);
|
2472 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2473 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_AP, "MI_AP",
|
2474 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2475 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2476 | 80d11f44 | j_mayer | 0x00000000);
|
2477 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2478 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_EPN, "MI_EPN",
|
2479 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2480 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2481 | 80d11f44 | j_mayer | 0x00000000);
|
2482 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2483 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_TWC, "MI_TWC",
|
2484 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2485 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2486 | 80d11f44 | j_mayer | 0x00000000);
|
2487 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2488 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_RPN, "MI_RPN",
|
2489 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2490 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2491 | 80d11f44 | j_mayer | 0x00000000);
|
2492 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2493 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBCAM, "MI_DBCAM",
|
2494 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2495 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2496 | 80d11f44 | j_mayer | 0x00000000);
|
2497 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2498 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBRAM0, "MI_DBRAM0",
|
2499 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2500 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2501 | 80d11f44 | j_mayer | 0x00000000);
|
2502 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2503 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBRAM1, "MI_DBRAM1",
|
2504 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2505 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2506 | 80d11f44 | j_mayer | 0x00000000);
|
2507 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2508 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CTR, "MD_CTR",
|
2509 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2510 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2511 | 80d11f44 | j_mayer | 0x00000000);
|
2512 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2513 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CASID, "MD_CASID",
|
2514 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2515 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2516 | 80d11f44 | j_mayer | 0x00000000);
|
2517 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2518 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_AP, "MD_AP",
|
2519 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2520 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2521 | 80d11f44 | j_mayer | 0x00000000);
|
2522 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2523 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_EPN, "MD_EPN",
|
2524 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2525 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2526 | 80d11f44 | j_mayer | 0x00000000);
|
2527 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2528 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWB, "MD_TWB",
|
2529 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2530 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2531 | 80d11f44 | j_mayer | 0x00000000);
|
2532 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2533 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWC, "MD_TWC",
|
2534 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2535 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2536 | 80d11f44 | j_mayer | 0x00000000);
|
2537 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2538 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_RPN, "MD_RPN",
|
2539 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2540 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2541 | 80d11f44 | j_mayer | 0x00000000);
|
2542 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2543 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TW, "MD_TW",
|
2544 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2545 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2546 | 80d11f44 | j_mayer | 0x00000000);
|
2547 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2548 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBCAM, "MD_DBCAM",
|
2549 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2550 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2551 | 80d11f44 | j_mayer | 0x00000000);
|
2552 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2553 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM0, "MD_DBRAM0",
|
2554 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2555 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2556 | 80d11f44 | j_mayer | 0x00000000);
|
2557 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2558 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM1, "MD_DBRAM1",
|
2559 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2560 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2561 | 80d11f44 | j_mayer | 0x00000000);
|
2562 | 80d11f44 | j_mayer | } |
2563 | 80d11f44 | j_mayer | |
2564 | 80d11f44 | j_mayer | // XXX: TODO
|
2565 | 80d11f44 | j_mayer | /*
|
2566 | 80d11f44 | j_mayer | * AMR => SPR 29 (Power 2.04)
|
2567 | 80d11f44 | j_mayer | * CTRL => SPR 136 (Power 2.04)
|
2568 | 80d11f44 | j_mayer | * CTRL => SPR 152 (Power 2.04)
|
2569 | 80d11f44 | j_mayer | * SCOMC => SPR 276 (64 bits ?)
|
2570 | 80d11f44 | j_mayer | * SCOMD => SPR 277 (64 bits ?)
|
2571 | 80d11f44 | j_mayer | * TBU40 => SPR 286 (Power 2.04 hypv)
|
2572 | 80d11f44 | j_mayer | * HSPRG0 => SPR 304 (Power 2.04 hypv)
|
2573 | 80d11f44 | j_mayer | * HSPRG1 => SPR 305 (Power 2.04 hypv)
|
2574 | 80d11f44 | j_mayer | * HDSISR => SPR 306 (Power 2.04 hypv)
|
2575 | 80d11f44 | j_mayer | * HDAR => SPR 307 (Power 2.04 hypv)
|
2576 | 80d11f44 | j_mayer | * PURR => SPR 309 (Power 2.04 hypv)
|
2577 | 80d11f44 | j_mayer | * HDEC => SPR 310 (Power 2.04 hypv)
|
2578 | 80d11f44 | j_mayer | * HIOR => SPR 311 (hypv)
|
2579 | 80d11f44 | j_mayer | * RMOR => SPR 312 (970)
|
2580 | 80d11f44 | j_mayer | * HRMOR => SPR 313 (Power 2.04 hypv)
|
2581 | 80d11f44 | j_mayer | * HSRR0 => SPR 314 (Power 2.04 hypv)
|
2582 | 80d11f44 | j_mayer | * HSRR1 => SPR 315 (Power 2.04 hypv)
|
2583 | 80d11f44 | j_mayer | * LPCR => SPR 316 (970)
|
2584 | 80d11f44 | j_mayer | * LPIDR => SPR 317 (970)
|
2585 | 80d11f44 | j_mayer | * EPR => SPR 702 (Power 2.04 emb)
|
2586 | 80d11f44 | j_mayer | * perf => 768-783 (Power 2.04)
|
2587 | 80d11f44 | j_mayer | * perf => 784-799 (Power 2.04)
|
2588 | 80d11f44 | j_mayer | * PPR => SPR 896 (Power 2.04)
|
2589 | 80d11f44 | j_mayer | * EPLC => SPR 947 (Power 2.04 emb)
|
2590 | 80d11f44 | j_mayer | * EPSC => SPR 948 (Power 2.04 emb)
|
2591 | 80d11f44 | j_mayer | * DABRX => 1015 (Power 2.04 hypv)
|
2592 | 80d11f44 | j_mayer | * FPECR => SPR 1022 (?)
|
2593 | 80d11f44 | j_mayer | * ... and more (thermal management, performance counters, ...)
|
2594 | 80d11f44 | j_mayer | */
|
2595 | 80d11f44 | j_mayer | |
2596 | 80d11f44 | j_mayer | /*****************************************************************************/
|
2597 | 80d11f44 | j_mayer | /* Exception vectors models */
|
2598 | 80d11f44 | j_mayer | static void init_excp_4xx_real (CPUPPCState *env) |
2599 | 80d11f44 | j_mayer | { |
2600 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2601 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2602 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2603 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2604 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2605 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2606 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2607 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2608 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2609 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2610 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2611 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2612 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2613 | faadf50e | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2614 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2615 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2616 | e1833e1f | j_mayer | #endif
|
2617 | e1833e1f | j_mayer | } |
2618 | e1833e1f | j_mayer | |
2619 | 80d11f44 | j_mayer | static void init_excp_4xx_softmmu (CPUPPCState *env) |
2620 | 80d11f44 | j_mayer | { |
2621 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2622 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2623 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2624 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2625 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2626 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2627 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2628 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2629 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2630 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2631 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2632 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2633 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001100;
|
2634 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001200;
|
2635 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2636 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2637 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2638 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2639 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2640 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2641 | 80d11f44 | j_mayer | #endif
|
2642 | 80d11f44 | j_mayer | } |
2643 | 80d11f44 | j_mayer | |
2644 | 80d11f44 | j_mayer | static void init_excp_MPC5xx (CPUPPCState *env) |
2645 | 80d11f44 | j_mayer | { |
2646 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2647 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2648 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2649 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2650 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2651 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2652 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2653 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2654 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2655 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2656 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2657 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2658 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2659 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2660 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2661 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2662 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2663 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2664 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2665 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2666 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2667 | 80d11f44 | j_mayer | #endif
|
2668 | 80d11f44 | j_mayer | } |
2669 | 80d11f44 | j_mayer | |
2670 | 80d11f44 | j_mayer | static void init_excp_MPC8xx (CPUPPCState *env) |
2671 | e1833e1f | j_mayer | { |
2672 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2673 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2674 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2675 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2676 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2677 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2678 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2679 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2680 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2681 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2682 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2683 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2684 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2685 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2686 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001100;
|
2687 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001200;
|
2688 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLBE] = 0x00001300;
|
2689 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLBE] = 0x00001400;
|
2690 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2691 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2692 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2693 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2694 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2695 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2696 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2697 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2698 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2699 | e1833e1f | j_mayer | #endif
|
2700 | e1833e1f | j_mayer | } |
2701 | e1833e1f | j_mayer | |
2702 | 80d11f44 | j_mayer | static void init_excp_G2 (CPUPPCState *env) |
2703 | e1833e1f | j_mayer | { |
2704 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2705 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2706 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2707 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2708 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2709 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2710 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2711 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2712 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2713 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2714 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000A00;
|
2715 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2716 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2717 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2718 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2719 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2720 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2721 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2722 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2723 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2724 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2725 | 80d11f44 | j_mayer | #endif
|
2726 | 80d11f44 | j_mayer | } |
2727 | 80d11f44 | j_mayer | |
2728 | 80d11f44 | j_mayer | static void init_excp_e200 (CPUPPCState *env) |
2729 | 80d11f44 | j_mayer | { |
2730 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2731 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000FFC;
|
2732 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2733 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2734 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2735 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2736 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2737 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2738 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2739 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2740 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2741 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2742 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2743 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2744 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2745 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2746 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2747 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2748 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SPEU] = 0x00000000;
|
2749 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPDI] = 0x00000000;
|
2750 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPRI] = 0x00000000;
|
2751 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2752 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF7UL;
|
2753 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2754 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2755 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2756 | 80d11f44 | j_mayer | #endif
|
2757 | 80d11f44 | j_mayer | } |
2758 | 80d11f44 | j_mayer | |
2759 | 80d11f44 | j_mayer | static void init_excp_BookE (CPUPPCState *env) |
2760 | 80d11f44 | j_mayer | { |
2761 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2762 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2763 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2764 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2765 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2766 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2767 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2768 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2769 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2770 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2771 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2772 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2773 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2774 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2775 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2776 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2777 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2778 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2779 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFE0UL;
|
2780 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2781 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2782 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2783 | 80d11f44 | j_mayer | #endif
|
2784 | 80d11f44 | j_mayer | } |
2785 | 80d11f44 | j_mayer | |
2786 | 80d11f44 | j_mayer | static void init_excp_601 (CPUPPCState *env) |
2787 | 80d11f44 | j_mayer | { |
2788 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2789 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2790 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2791 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2792 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2793 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2794 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2795 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2796 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2797 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2798 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IO] = 0x00000A00;
|
2799 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2800 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RUNM] = 0x00002000;
|
2801 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2802 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2803 | 80d11f44 | j_mayer | env->hreset_vector = 0x00000100UL;
|
2804 | e1833e1f | j_mayer | #endif
|
2805 | e1833e1f | j_mayer | } |
2806 | e1833e1f | j_mayer | |
2807 | 80d11f44 | j_mayer | static void init_excp_602 (CPUPPCState *env) |
2808 | e1833e1f | j_mayer | { |
2809 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2810 | 082c6681 | j_mayer | /* XXX: exception prefix has a special behavior on 602 */
|
2811 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2812 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2813 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2814 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2815 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2816 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2817 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2818 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2819 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2820 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2821 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2822 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2823 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2824 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2825 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2826 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2827 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001500;
|
2828 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001600;
|
2829 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2830 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2831 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2832 | e1833e1f | j_mayer | #endif
|
2833 | e1833e1f | j_mayer | } |
2834 | e1833e1f | j_mayer | |
2835 | 80d11f44 | j_mayer | static void init_excp_603 (CPUPPCState *env) |
2836 | e1833e1f | j_mayer | { |
2837 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2838 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2839 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2840 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2841 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2842 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2843 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2844 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2845 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2846 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2847 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2848 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2849 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2850 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2851 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2852 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2853 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2854 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2855 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2856 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2857 | e1833e1f | j_mayer | #endif
|
2858 | e1833e1f | j_mayer | } |
2859 | e1833e1f | j_mayer | |
2860 | e1833e1f | j_mayer | static void init_excp_604 (CPUPPCState *env) |
2861 | e1833e1f | j_mayer | { |
2862 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2863 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2864 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2865 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2866 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2867 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2868 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2869 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2870 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2871 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2872 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2873 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2874 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2875 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2876 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2877 | 2d3eb7bf | Tristan Gingold | env->hreset_excp_prefix = 0xFFF00000UL;
|
2878 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2879 | 2d3eb7bf | Tristan Gingold | env->hreset_vector = 0x00000100UL;
|
2880 | e1833e1f | j_mayer | #endif
|
2881 | e1833e1f | j_mayer | } |
2882 | e1833e1f | j_mayer | |
2883 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
2884 | e1833e1f | j_mayer | static void init_excp_620 (CPUPPCState *env) |
2885 | e1833e1f | j_mayer | { |
2886 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2887 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2888 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2889 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2890 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2891 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2892 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2893 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2894 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2895 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2896 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2897 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2898 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2899 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2900 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2901 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2902 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2903 | faadf50e | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
2904 | e1833e1f | j_mayer | #endif
|
2905 | e1833e1f | j_mayer | } |
2906 | 578bb252 | j_mayer | #endif /* defined(TARGET_PPC64) */ |
2907 | e1833e1f | j_mayer | |
2908 | e1833e1f | j_mayer | static void init_excp_7x0 (CPUPPCState *env) |
2909 | e1833e1f | j_mayer | { |
2910 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2911 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2912 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2913 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2914 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2915 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2916 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2917 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2918 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2919 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2920 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2921 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2922 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2923 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2924 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2925 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2926 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2927 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2928 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2929 | e1833e1f | j_mayer | #endif
|
2930 | e1833e1f | j_mayer | } |
2931 | e1833e1f | j_mayer | |
2932 | bd928eba | j_mayer | static void init_excp_750cl (CPUPPCState *env) |
2933 | e1833e1f | j_mayer | { |
2934 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2935 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2936 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2937 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2938 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2939 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2940 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2941 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2942 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2943 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2944 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2945 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2946 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2947 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2948 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2949 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2950 | bd928eba | j_mayer | /* Hardware reset vector */
|
2951 | bd928eba | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2952 | bd928eba | j_mayer | #endif
|
2953 | bd928eba | j_mayer | } |
2954 | bd928eba | j_mayer | |
2955 | bd928eba | j_mayer | static void init_excp_750cx (CPUPPCState *env) |
2956 | bd928eba | j_mayer | { |
2957 | bd928eba | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2958 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2959 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2960 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2961 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2962 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2963 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2964 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2965 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2966 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2967 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2968 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2969 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2970 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2971 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2972 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2973 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2974 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2975 | e1833e1f | j_mayer | #endif
|
2976 | e1833e1f | j_mayer | } |
2977 | e1833e1f | j_mayer | |
2978 | 7a3a6927 | j_mayer | /* XXX: Check if this is correct */
|
2979 | 7a3a6927 | j_mayer | static void init_excp_7x5 (CPUPPCState *env) |
2980 | 7a3a6927 | j_mayer | { |
2981 | 7a3a6927 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2982 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2983 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2984 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2985 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2986 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2987 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2988 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2989 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2990 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2991 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2992 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2993 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2994 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2995 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2996 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2997 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2998 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2999 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
3000 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3001 | 7a3a6927 | j_mayer | /* Hardware reset vector */
|
3002 | 7a3a6927 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3003 | 7a3a6927 | j_mayer | #endif
|
3004 | 7a3a6927 | j_mayer | } |
3005 | 7a3a6927 | j_mayer | |
3006 | e1833e1f | j_mayer | static void init_excp_7400 (CPUPPCState *env) |
3007 | e1833e1f | j_mayer | { |
3008 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3009 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3010 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3011 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3012 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3013 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3014 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3015 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3016 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3017 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3018 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3019 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3020 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3021 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3022 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3023 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3024 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
3025 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
3026 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3027 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3028 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3029 | e1833e1f | j_mayer | #endif
|
3030 | e1833e1f | j_mayer | } |
3031 | e1833e1f | j_mayer | |
3032 | e1833e1f | j_mayer | static void init_excp_7450 (CPUPPCState *env) |
3033 | e1833e1f | j_mayer | { |
3034 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3035 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3036 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3037 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3038 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3039 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3040 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3041 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3042 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3043 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3044 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3045 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3046 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3047 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3048 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
3049 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
3050 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
3051 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3052 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3053 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
3054 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3055 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3056 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3057 | e1833e1f | j_mayer | #endif
|
3058 | e1833e1f | j_mayer | } |
3059 | e1833e1f | j_mayer | |
3060 | e1833e1f | j_mayer | #if defined (TARGET_PPC64)
|
3061 | e1833e1f | j_mayer | static void init_excp_970 (CPUPPCState *env) |
3062 | e1833e1f | j_mayer | { |
3063 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3064 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3065 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3066 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3067 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSEG] = 0x00000380;
|
3068 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3069 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISEG] = 0x00000480;
|
3070 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3071 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3072 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3073 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3074 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3075 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_HDECR] = 0x00000980;
|
3076 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3077 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3078 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3079 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3080 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3081 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MAINT] = 0x00001600;
|
3082 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001700;
|
3083 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001800;
|
3084 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000FFF00000ULL;
|
3085 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3086 | 1c27f8fb | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
3087 | e1833e1f | j_mayer | #endif
|
3088 | e1833e1f | j_mayer | } |
3089 | e1833e1f | j_mayer | #endif
|
3090 | e1833e1f | j_mayer | |
3091 | e1833e1f | j_mayer | /*****************************************************************************/
|
3092 | 2f462816 | j_mayer | /* Power management enable checks */
|
3093 | 2f462816 | j_mayer | static int check_pow_none (CPUPPCState *env) |
3094 | 2f462816 | j_mayer | { |
3095 | 2f462816 | j_mayer | return 0; |
3096 | 2f462816 | j_mayer | } |
3097 | 2f462816 | j_mayer | |
3098 | 2f462816 | j_mayer | static int check_pow_nocheck (CPUPPCState *env) |
3099 | 2f462816 | j_mayer | { |
3100 | 2f462816 | j_mayer | return 1; |
3101 | 2f462816 | j_mayer | } |
3102 | 2f462816 | j_mayer | |
3103 | 2f462816 | j_mayer | static int check_pow_hid0 (CPUPPCState *env) |
3104 | 2f462816 | j_mayer | { |
3105 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00E00000) |
3106 | 2f462816 | j_mayer | return 1; |
3107 | 2f462816 | j_mayer | |
3108 | 2f462816 | j_mayer | return 0; |
3109 | 2f462816 | j_mayer | } |
3110 | 2f462816 | j_mayer | |
3111 | 4e777442 | j_mayer | static int check_pow_hid0_74xx (CPUPPCState *env) |
3112 | 4e777442 | j_mayer | { |
3113 | 4e777442 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
3114 | 4e777442 | j_mayer | return 1; |
3115 | 4e777442 | j_mayer | |
3116 | 4e777442 | j_mayer | return 0; |
3117 | 4e777442 | j_mayer | } |
3118 | 4e777442 | j_mayer | |
3119 | 2f462816 | j_mayer | /*****************************************************************************/
|
3120 | a750fc0b | j_mayer | /* PowerPC implementations definitions */
|
3121 | 76a66253 | j_mayer | |
3122 | a750fc0b | j_mayer | /* PowerPC 401 */
|
3123 | 082c6681 | j_mayer | #define POWERPC_INSNS_401 (PPC_INSNS_BASE | PPC_STRING | \
|
3124 | 082c6681 | j_mayer | PPC_WRTEE | PPC_DCR | \ |
3125 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3126 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3127 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3128 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3129 | a750fc0b | j_mayer | #define POWERPC_MSRM_401 (0x00000000000FD201ULL) |
3130 | b4095fed | j_mayer | #define POWERPC_MMU_401 (POWERPC_MMU_REAL)
|
3131 | a750fc0b | j_mayer | #define POWERPC_EXCP_401 (POWERPC_EXCP_40x)
|
3132 | a750fc0b | j_mayer | #define POWERPC_INPUT_401 (PPC_FLAGS_INPUT_401)
|
3133 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401 (bfd_mach_ppc_403)
|
3134 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3135 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3136 | 2f462816 | j_mayer | #define check_pow_401 check_pow_nocheck
|
3137 | 76a66253 | j_mayer | |
3138 | a750fc0b | j_mayer | static void init_proc_401 (CPUPPCState *env) |
3139 | a750fc0b | j_mayer | { |
3140 | a750fc0b | j_mayer | gen_spr_40x(env); |
3141 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3142 | a750fc0b | j_mayer | gen_spr_401(env); |
3143 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3144 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3145 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3146 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3147 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3148 | a750fc0b | j_mayer | } |
3149 | 76a66253 | j_mayer | |
3150 | a750fc0b | j_mayer | /* PowerPC 401x2 */
|
3151 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3152 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3153 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3154 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3155 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3156 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3157 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3158 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x2 (0x00000000001FD231ULL) |
3159 | a750fc0b | j_mayer | #define POWERPC_MMU_401x2 (POWERPC_MMU_SOFT_4xx_Z)
|
3160 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x2 (POWERPC_EXCP_40x)
|
3161 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x2 (PPC_FLAGS_INPUT_401)
|
3162 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x2 (bfd_mach_ppc_403)
|
3163 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x2 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3164 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3165 | 2f462816 | j_mayer | #define check_pow_401x2 check_pow_nocheck
|
3166 | a750fc0b | j_mayer | |
3167 | a750fc0b | j_mayer | static void init_proc_401x2 (CPUPPCState *env) |
3168 | a750fc0b | j_mayer | { |
3169 | a750fc0b | j_mayer | gen_spr_40x(env); |
3170 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3171 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3172 | a750fc0b | j_mayer | gen_spr_compress(env); |
3173 | a750fc0b | j_mayer | /* Memory management */
|
3174 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3175 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3176 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3177 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3178 | f2e63a42 | j_mayer | #endif
|
3179 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3180 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3181 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3182 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3183 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3184 | 76a66253 | j_mayer | } |
3185 | 76a66253 | j_mayer | |
3186 | a750fc0b | j_mayer | /* PowerPC 401x3 */
|
3187 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x3 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3188 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3189 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3190 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3191 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3192 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3193 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3194 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x3 (0x00000000001FD631ULL) |
3195 | a750fc0b | j_mayer | #define POWERPC_MMU_401x3 (POWERPC_MMU_SOFT_4xx_Z)
|
3196 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x3 (POWERPC_EXCP_40x)
|
3197 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x3 (PPC_FLAGS_INPUT_401)
|
3198 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x3 (bfd_mach_ppc_403)
|
3199 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x3 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3200 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3201 | 2f462816 | j_mayer | #define check_pow_401x3 check_pow_nocheck
|
3202 | a750fc0b | j_mayer | |
3203 | 578bb252 | j_mayer | __attribute__ (( unused )) |
3204 | e1833e1f | j_mayer | static void init_proc_401x3 (CPUPPCState *env) |
3205 | 76a66253 | j_mayer | { |
3206 | 4e290a0b | j_mayer | gen_spr_40x(env); |
3207 | 4e290a0b | j_mayer | gen_spr_401_403(env); |
3208 | 4e290a0b | j_mayer | gen_spr_401(env); |
3209 | 4e290a0b | j_mayer | gen_spr_401x2(env); |
3210 | 4e290a0b | j_mayer | gen_spr_compress(env); |
3211 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3212 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3213 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3214 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3215 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3216 | 3fc6c082 | bellard | } |
3217 | a750fc0b | j_mayer | |
3218 | a750fc0b | j_mayer | /* IOP480 */
|
3219 | 082c6681 | j_mayer | #define POWERPC_INSNS_IOP480 (PPC_INSNS_BASE | PPC_STRING | \
|
3220 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3221 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3222 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3223 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3224 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3225 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3226 | a750fc0b | j_mayer | #define POWERPC_MSRM_IOP480 (0x00000000001FD231ULL) |
3227 | a750fc0b | j_mayer | #define POWERPC_MMU_IOP480 (POWERPC_MMU_SOFT_4xx_Z)
|
3228 | a750fc0b | j_mayer | #define POWERPC_EXCP_IOP480 (POWERPC_EXCP_40x)
|
3229 | a750fc0b | j_mayer | #define POWERPC_INPUT_IOP480 (PPC_FLAGS_INPUT_401)
|
3230 | 237c0af0 | j_mayer | #define POWERPC_BFDM_IOP480 (bfd_mach_ppc_403)
|
3231 | 4018bae9 | j_mayer | #define POWERPC_FLAG_IOP480 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3232 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3233 | 2f462816 | j_mayer | #define check_pow_IOP480 check_pow_nocheck
|
3234 | a750fc0b | j_mayer | |
3235 | a750fc0b | j_mayer | static void init_proc_IOP480 (CPUPPCState *env) |
3236 | 3fc6c082 | bellard | { |
3237 | a750fc0b | j_mayer | gen_spr_40x(env); |
3238 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3239 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3240 | a750fc0b | j_mayer | gen_spr_compress(env); |
3241 | a750fc0b | j_mayer | /* Memory management */
|
3242 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3243 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3244 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3245 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3246 | f2e63a42 | j_mayer | #endif
|
3247 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3248 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3249 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3250 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3251 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3252 | 3fc6c082 | bellard | } |
3253 | 3fc6c082 | bellard | |
3254 | a750fc0b | j_mayer | /* PowerPC 403 */
|
3255 | 082c6681 | j_mayer | #define POWERPC_INSNS_403 (PPC_INSNS_BASE | PPC_STRING | \
|
3256 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3257 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3258 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3259 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3260 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3261 | a750fc0b | j_mayer | #define POWERPC_MSRM_403 (0x000000000007D00DULL) |
3262 | b4095fed | j_mayer | #define POWERPC_MMU_403 (POWERPC_MMU_REAL)
|
3263 | a750fc0b | j_mayer | #define POWERPC_EXCP_403 (POWERPC_EXCP_40x)
|
3264 | a750fc0b | j_mayer | #define POWERPC_INPUT_403 (PPC_FLAGS_INPUT_401)
|
3265 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403 (bfd_mach_ppc_403)
|
3266 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403 (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3267 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3268 | 2f462816 | j_mayer | #define check_pow_403 check_pow_nocheck
|
3269 | a750fc0b | j_mayer | |
3270 | a750fc0b | j_mayer | static void init_proc_403 (CPUPPCState *env) |
3271 | 3fc6c082 | bellard | { |
3272 | a750fc0b | j_mayer | gen_spr_40x(env); |
3273 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3274 | a750fc0b | j_mayer | gen_spr_403(env); |
3275 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3276 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3277 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3278 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3279 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3280 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3281 | 3fc6c082 | bellard | } |
3282 | 3fc6c082 | bellard | |
3283 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
3284 | 082c6681 | j_mayer | #define POWERPC_INSNS_403GCX (PPC_INSNS_BASE | PPC_STRING | \
|
3285 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3286 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3287 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3288 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3289 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3290 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3291 | a750fc0b | j_mayer | #define POWERPC_MSRM_403GCX (0x000000000007D00DULL) |
3292 | a750fc0b | j_mayer | #define POWERPC_MMU_403GCX (POWERPC_MMU_SOFT_4xx_Z)
|
3293 | a750fc0b | j_mayer | #define POWERPC_EXCP_403GCX (POWERPC_EXCP_40x)
|
3294 | a750fc0b | j_mayer | #define POWERPC_INPUT_403GCX (PPC_FLAGS_INPUT_401)
|
3295 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403GCX (bfd_mach_ppc_403)
|
3296 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403GCX (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3297 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3298 | 2f462816 | j_mayer | #define check_pow_403GCX check_pow_nocheck
|
3299 | a750fc0b | j_mayer | |
3300 | a750fc0b | j_mayer | static void init_proc_403GCX (CPUPPCState *env) |
3301 | 3fc6c082 | bellard | { |
3302 | a750fc0b | j_mayer | gen_spr_40x(env); |
3303 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3304 | a750fc0b | j_mayer | gen_spr_403(env); |
3305 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3306 | a750fc0b | j_mayer | gen_spr_403_mmu(env); |
3307 | a750fc0b | j_mayer | /* Bus access control */
|
3308 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3309 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3310 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3311 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3312 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
3313 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3314 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3315 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3316 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3317 | a750fc0b | j_mayer | 0x00000000);
|
3318 | a750fc0b | j_mayer | /* Memory management */
|
3319 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3320 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3321 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3322 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3323 | f2e63a42 | j_mayer | #endif
|
3324 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3325 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3326 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3327 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3328 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3329 | 80d11f44 | j_mayer | } |
3330 | 80d11f44 | j_mayer | |
3331 | 80d11f44 | j_mayer | /* PowerPC 405 */
|
3332 | 082c6681 | j_mayer | #define POWERPC_INSNS_405 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3333 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3334 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3335 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3336 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3337 | 80d11f44 | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3338 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_405_MAC | PPC_40x_EXCP) |
3339 | 80d11f44 | j_mayer | #define POWERPC_MSRM_405 (0x000000000006E630ULL) |
3340 | 80d11f44 | j_mayer | #define POWERPC_MMU_405 (POWERPC_MMU_SOFT_4xx)
|
3341 | 80d11f44 | j_mayer | #define POWERPC_EXCP_405 (POWERPC_EXCP_40x)
|
3342 | 80d11f44 | j_mayer | #define POWERPC_INPUT_405 (PPC_FLAGS_INPUT_405)
|
3343 | 80d11f44 | j_mayer | #define POWERPC_BFDM_405 (bfd_mach_ppc_403)
|
3344 | 80d11f44 | j_mayer | #define POWERPC_FLAG_405 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3345 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3346 | 80d11f44 | j_mayer | #define check_pow_405 check_pow_nocheck
|
3347 | 80d11f44 | j_mayer | |
3348 | 80d11f44 | j_mayer | static void init_proc_405 (CPUPPCState *env) |
3349 | 80d11f44 | j_mayer | { |
3350 | 80d11f44 | j_mayer | /* Time base */
|
3351 | 80d11f44 | j_mayer | gen_tbl(env); |
3352 | 80d11f44 | j_mayer | gen_spr_40x(env); |
3353 | 80d11f44 | j_mayer | gen_spr_405(env); |
3354 | 80d11f44 | j_mayer | /* Bus access control */
|
3355 | 80d11f44 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3356 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3357 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3358 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3359 | 80d11f44 | j_mayer | 0xFFFFFFFF);
|
3360 | 80d11f44 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3361 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3362 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3363 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3364 | 80d11f44 | j_mayer | 0x00000000);
|
3365 | 80d11f44 | j_mayer | /* Memory management */
|
3366 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3367 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3368 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3369 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3370 | 80d11f44 | j_mayer | #endif
|
3371 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3372 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3373 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3374 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3375 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3376 | 80d11f44 | j_mayer | } |
3377 | 80d11f44 | j_mayer | |
3378 | 80d11f44 | j_mayer | /* PowerPC 440 EP */
|
3379 | 082c6681 | j_mayer | #define POWERPC_INSNS_440EP (PPC_INSNS_BASE | PPC_STRING | \
|
3380 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3381 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3382 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3383 | f4078236 | Baojun Wang | PPC_MEM_TLBSYNC | PPC_MFTB | \ |
3384 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3385 | 082c6681 | j_mayer | PPC_440_SPEC) |
3386 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440EP (0x000000000006D630ULL) |
3387 | 80d11f44 | j_mayer | #define POWERPC_MMU_440EP (POWERPC_MMU_BOOKE)
|
3388 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440EP (POWERPC_EXCP_BOOKE)
|
3389 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440EP (PPC_FLAGS_INPUT_BookE)
|
3390 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440EP (bfd_mach_ppc_403)
|
3391 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440EP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3392 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3393 | 80d11f44 | j_mayer | #define check_pow_440EP check_pow_nocheck
|
3394 | 80d11f44 | j_mayer | |
3395 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3396 | 80d11f44 | j_mayer | static void init_proc_440EP (CPUPPCState *env) |
3397 | 80d11f44 | j_mayer | { |
3398 | 80d11f44 | j_mayer | /* Time base */
|
3399 | 80d11f44 | j_mayer | gen_tbl(env); |
3400 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3401 | 80d11f44 | j_mayer | gen_spr_440(env); |
3402 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3403 | 80d11f44 | j_mayer | /* Processor identification */
|
3404 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3405 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3406 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3407 | 80d11f44 | j_mayer | 0x00000000);
|
3408 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3409 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3410 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3411 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3412 | 80d11f44 | j_mayer | 0x00000000);
|
3413 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3414 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3415 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3416 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3417 | 80d11f44 | j_mayer | 0x00000000);
|
3418 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3419 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3420 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3421 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3422 | 80d11f44 | j_mayer | 0x00000000);
|
3423 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3424 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3425 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3426 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3427 | 80d11f44 | j_mayer | 0x00000000);
|
3428 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3429 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3430 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3431 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3432 | 80d11f44 | j_mayer | 0x00000000);
|
3433 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3434 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3435 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3436 | 80d11f44 | j_mayer | 0x00000000);
|
3437 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3438 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3439 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3440 | 80d11f44 | j_mayer | 0x00000000);
|
3441 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3442 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3443 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3444 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3445 | 80d11f44 | j_mayer | 0x00000000);
|
3446 | 80d11f44 | j_mayer | /* Memory management */
|
3447 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3448 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3449 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3450 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3451 | 80d11f44 | j_mayer | #endif
|
3452 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3453 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3454 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3455 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3456 | 80d11f44 | j_mayer | } |
3457 | 80d11f44 | j_mayer | |
3458 | 80d11f44 | j_mayer | /* PowerPC 440 GP */
|
3459 | 082c6681 | j_mayer | #define POWERPC_INSNS_440GP (PPC_INSNS_BASE | PPC_STRING | \
|
3460 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_WRTEE | PPC_MFAPIDI | \ |
3461 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3462 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3463 | f4078236 | Baojun Wang | PPC_MEM_TLBSYNC | PPC_TLBIVA | PPC_MFTB | \ |
3464 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3465 | 082c6681 | j_mayer | PPC_440_SPEC) |
3466 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440GP (0x000000000006FF30ULL) |
3467 | 80d11f44 | j_mayer | #define POWERPC_MMU_440GP (POWERPC_MMU_BOOKE)
|
3468 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440GP (POWERPC_EXCP_BOOKE)
|
3469 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440GP (PPC_FLAGS_INPUT_BookE)
|
3470 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440GP (bfd_mach_ppc_403)
|
3471 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440GP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3472 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3473 | 80d11f44 | j_mayer | #define check_pow_440GP check_pow_nocheck
|
3474 | 80d11f44 | j_mayer | |
3475 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3476 | 80d11f44 | j_mayer | static void init_proc_440GP (CPUPPCState *env) |
3477 | 80d11f44 | j_mayer | { |
3478 | 80d11f44 | j_mayer | /* Time base */
|
3479 | 80d11f44 | j_mayer | gen_tbl(env); |
3480 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3481 | 80d11f44 | j_mayer | gen_spr_440(env); |
3482 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3483 | 80d11f44 | j_mayer | /* Processor identification */
|
3484 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3485 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3486 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3487 | 80d11f44 | j_mayer | 0x00000000);
|
3488 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3489 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3490 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3491 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3492 | 80d11f44 | j_mayer | 0x00000000);
|
3493 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3494 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3495 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3496 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3497 | 80d11f44 | j_mayer | 0x00000000);
|
3498 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3499 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3500 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3501 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3502 | 80d11f44 | j_mayer | 0x00000000);
|
3503 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3504 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3505 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3506 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3507 | 80d11f44 | j_mayer | 0x00000000);
|
3508 | 80d11f44 | j_mayer | /* Memory management */
|
3509 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3510 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3511 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3512 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3513 | 80d11f44 | j_mayer | #endif
|
3514 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3515 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3516 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3517 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3518 | 80d11f44 | j_mayer | } |
3519 | 80d11f44 | j_mayer | |
3520 | 80d11f44 | j_mayer | /* PowerPC 440x4 */
|
3521 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x4 (PPC_INSNS_BASE | PPC_STRING | \
|
3522 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3523 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3524 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3525 | f4078236 | Baojun Wang | PPC_MEM_TLBSYNC | PPC_MFTB | \ |
3526 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3527 | 80d11f44 | j_mayer | PPC_440_SPEC) |
3528 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x4 (0x000000000006FF30ULL) |
3529 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x4 (POWERPC_MMU_BOOKE)
|
3530 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x4 (POWERPC_EXCP_BOOKE)
|
3531 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x4 (PPC_FLAGS_INPUT_BookE)
|
3532 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x4 (bfd_mach_ppc_403)
|
3533 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x4 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3534 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3535 | 80d11f44 | j_mayer | #define check_pow_440x4 check_pow_nocheck
|
3536 | 80d11f44 | j_mayer | |
3537 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3538 | 80d11f44 | j_mayer | static void init_proc_440x4 (CPUPPCState *env) |
3539 | 80d11f44 | j_mayer | { |
3540 | 80d11f44 | j_mayer | /* Time base */
|
3541 | 80d11f44 | j_mayer | gen_tbl(env); |
3542 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3543 | 80d11f44 | j_mayer | gen_spr_440(env); |
3544 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3545 | 80d11f44 | j_mayer | /* Processor identification */
|
3546 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3547 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3548 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3549 | 80d11f44 | j_mayer | 0x00000000);
|
3550 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3551 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3552 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3553 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3554 | 80d11f44 | j_mayer | 0x00000000);
|
3555 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3556 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3557 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3558 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3559 | 80d11f44 | j_mayer | 0x00000000);
|
3560 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3561 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3562 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3563 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3564 | 80d11f44 | j_mayer | 0x00000000);
|
3565 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3566 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3567 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3568 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3569 | 80d11f44 | j_mayer | 0x00000000);
|
3570 | 80d11f44 | j_mayer | /* Memory management */
|
3571 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3572 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3573 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3574 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3575 | 80d11f44 | j_mayer | #endif
|
3576 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3577 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3578 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3579 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3580 | 3fc6c082 | bellard | } |
3581 | 3fc6c082 | bellard | |
3582 | 80d11f44 | j_mayer | /* PowerPC 440x5 */
|
3583 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x5 (PPC_INSNS_BASE | PPC_STRING | \
|
3584 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3585 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3586 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3587 | f4078236 | Baojun Wang | PPC_MEM_TLBSYNC | PPC_MFTB | \ |
3588 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3589 | 082c6681 | j_mayer | PPC_440_SPEC) |
3590 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x5 (0x000000000006FF30ULL) |
3591 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x5 (POWERPC_MMU_BOOKE)
|
3592 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x5 (POWERPC_EXCP_BOOKE)
|
3593 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x5 (PPC_FLAGS_INPUT_BookE)
|
3594 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x5 (bfd_mach_ppc_403)
|
3595 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x5 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3596 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3597 | 80d11f44 | j_mayer | #define check_pow_440x5 check_pow_nocheck
|
3598 | a750fc0b | j_mayer | |
3599 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3600 | 80d11f44 | j_mayer | static void init_proc_440x5 (CPUPPCState *env) |
3601 | 3fc6c082 | bellard | { |
3602 | a750fc0b | j_mayer | /* Time base */
|
3603 | a750fc0b | j_mayer | gen_tbl(env); |
3604 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3605 | 80d11f44 | j_mayer | gen_spr_440(env); |
3606 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3607 | 80d11f44 | j_mayer | /* Processor identification */
|
3608 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3609 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3610 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3611 | 80d11f44 | j_mayer | 0x00000000);
|
3612 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3613 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3614 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3615 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3616 | 80d11f44 | j_mayer | 0x00000000);
|
3617 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3618 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3619 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3620 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3621 | 80d11f44 | j_mayer | 0x00000000);
|
3622 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3623 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3624 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3625 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3626 | 80d11f44 | j_mayer | 0x00000000);
|
3627 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3628 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3629 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3630 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3631 | 80d11f44 | j_mayer | 0x00000000);
|
3632 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3633 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3634 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3635 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3636 | 80d11f44 | j_mayer | 0x00000000);
|
3637 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3638 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3639 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3640 | 80d11f44 | j_mayer | 0x00000000);
|
3641 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3642 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3643 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3644 | 80d11f44 | j_mayer | 0x00000000);
|
3645 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3646 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3647 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3648 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3649 | a750fc0b | j_mayer | 0x00000000);
|
3650 | a750fc0b | j_mayer | /* Memory management */
|
3651 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3652 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3653 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3654 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3655 | f2e63a42 | j_mayer | #endif
|
3656 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3657 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3658 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3659 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3660 | 3fc6c082 | bellard | } |
3661 | 3fc6c082 | bellard | |
3662 | 80d11f44 | j_mayer | /* PowerPC 460 (guessed) */
|
3663 | 082c6681 | j_mayer | #define POWERPC_INSNS_460 (PPC_INSNS_BASE | PPC_STRING | \
|
3664 | 80d11f44 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3665 | f4078236 | Baojun Wang | PPC_WRTEE | PPC_MFAPIDI | PPC_MFTB | \ |
3666 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3667 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3668 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3669 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3670 | 082c6681 | j_mayer | PPC_440_SPEC) |
3671 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3672 | 80d11f44 | j_mayer | #define POWERPC_MMU_460 (POWERPC_MMU_BOOKE)
|
3673 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460 (POWERPC_EXCP_BOOKE)
|
3674 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460 (PPC_FLAGS_INPUT_BookE)
|
3675 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460 (bfd_mach_ppc_403)
|
3676 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3677 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3678 | 80d11f44 | j_mayer | #define check_pow_460 check_pow_nocheck
|
3679 | a750fc0b | j_mayer | |
3680 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3681 | 80d11f44 | j_mayer | static void init_proc_460 (CPUPPCState *env) |
3682 | 3fc6c082 | bellard | { |
3683 | a750fc0b | j_mayer | /* Time base */
|
3684 | a750fc0b | j_mayer | gen_tbl(env); |
3685 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3686 | a750fc0b | j_mayer | gen_spr_440(env); |
3687 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3688 | 80d11f44 | j_mayer | /* Processor identification */
|
3689 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3690 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3691 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3692 | 80d11f44 | j_mayer | 0x00000000);
|
3693 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3694 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3695 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3696 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3697 | 80d11f44 | j_mayer | 0x00000000);
|
3698 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3699 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3700 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3701 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3702 | 80d11f44 | j_mayer | 0x00000000);
|
3703 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3704 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3705 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3706 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3707 | 80d11f44 | j_mayer | 0x00000000);
|
3708 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3709 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3710 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3711 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3712 | 80d11f44 | j_mayer | 0x00000000);
|
3713 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3714 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3715 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3716 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3717 | a750fc0b | j_mayer | 0x00000000);
|
3718 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3719 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3720 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3721 | a750fc0b | j_mayer | 0x00000000);
|
3722 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3723 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3724 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3725 | a750fc0b | j_mayer | 0x00000000);
|
3726 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3727 | a750fc0b | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3728 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3729 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3730 | a750fc0b | j_mayer | 0x00000000);
|
3731 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3732 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3733 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3734 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3735 | 80d11f44 | j_mayer | 0x00000000);
|
3736 | a750fc0b | j_mayer | /* Memory management */
|
3737 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3738 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3739 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3740 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3741 | f2e63a42 | j_mayer | #endif
|
3742 | e1833e1f | j_mayer | init_excp_BookE(env); |
3743 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3744 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3745 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3746 | 3fc6c082 | bellard | } |
3747 | 3fc6c082 | bellard | |
3748 | 80d11f44 | j_mayer | /* PowerPC 460F (guessed) */
|
3749 | 082c6681 | j_mayer | #define POWERPC_INSNS_460F (PPC_INSNS_BASE | PPC_STRING | \
|
3750 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FRES | PPC_FLOAT_FSEL | \ |
3751 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
3752 | f4078236 | Baojun Wang | PPC_FLOAT_STFIWX | PPC_MFTB | \ |
3753 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3754 | 082c6681 | j_mayer | PPC_WRTEE | PPC_MFAPIDI | \ |
3755 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3756 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3757 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3758 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3759 | 082c6681 | j_mayer | PPC_440_SPEC) |
3760 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3761 | 80d11f44 | j_mayer | #define POWERPC_MMU_460F (POWERPC_MMU_BOOKE)
|
3762 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460F (POWERPC_EXCP_BOOKE)
|
3763 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460F (PPC_FLAGS_INPUT_BookE)
|
3764 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460F (bfd_mach_ppc_403)
|
3765 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460F (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3766 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3767 | 80d11f44 | j_mayer | #define check_pow_460F check_pow_nocheck
|
3768 | a750fc0b | j_mayer | |
3769 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3770 | 80d11f44 | j_mayer | static void init_proc_460F (CPUPPCState *env) |
3771 | 3fc6c082 | bellard | { |
3772 | a750fc0b | j_mayer | /* Time base */
|
3773 | a750fc0b | j_mayer | gen_tbl(env); |
3774 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3775 | a750fc0b | j_mayer | gen_spr_440(env); |
3776 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3777 | 80d11f44 | j_mayer | /* Processor identification */
|
3778 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3779 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3780 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3781 | 80d11f44 | j_mayer | 0x00000000);
|
3782 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3783 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3784 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3785 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3786 | 80d11f44 | j_mayer | 0x00000000);
|
3787 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3788 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3789 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3790 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3791 | 80d11f44 | j_mayer | 0x00000000);
|
3792 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3793 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3794 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3795 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3796 | 80d11f44 | j_mayer | 0x00000000);
|
3797 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3798 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3799 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3800 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3801 | 80d11f44 | j_mayer | 0x00000000);
|
3802 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3803 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3804 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3805 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3806 | 80d11f44 | j_mayer | 0x00000000);
|
3807 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3808 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3809 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3810 | 80d11f44 | j_mayer | 0x00000000);
|
3811 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3812 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3813 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3814 | 80d11f44 | j_mayer | 0x00000000);
|
3815 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3816 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3817 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3818 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3819 | 80d11f44 | j_mayer | 0x00000000);
|
3820 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3821 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3822 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3823 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3824 | 80d11f44 | j_mayer | 0x00000000);
|
3825 | a750fc0b | j_mayer | /* Memory management */
|
3826 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3827 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3828 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3829 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3830 | f2e63a42 | j_mayer | #endif
|
3831 | e1833e1f | j_mayer | init_excp_BookE(env); |
3832 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3833 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3834 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3835 | 3fc6c082 | bellard | } |
3836 | 3fc6c082 | bellard | |
3837 | 80d11f44 | j_mayer | /* Freescale 5xx cores (aka RCPU) */
|
3838 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC5xx (PPC_INSNS_BASE | PPC_STRING | \
|
3839 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3840 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_FLOAT | PPC_FLOAT_STFIWX | \ |
3841 | 80d11f44 | j_mayer | PPC_MFTB) |
3842 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC5xx (0x000000000001FF43ULL) |
3843 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC5xx (POWERPC_MMU_REAL)
|
3844 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC5xx (POWERPC_EXCP_603)
|
3845 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC5xx (PPC_FLAGS_INPUT_RCPU)
|
3846 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC5xx (bfd_mach_ppc_505)
|
3847 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC5xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3848 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3849 | 80d11f44 | j_mayer | #define check_pow_MPC5xx check_pow_none
|
3850 | 80d11f44 | j_mayer | |
3851 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3852 | 80d11f44 | j_mayer | static void init_proc_MPC5xx (CPUPPCState *env) |
3853 | 80d11f44 | j_mayer | { |
3854 | 80d11f44 | j_mayer | /* Time base */
|
3855 | 80d11f44 | j_mayer | gen_tbl(env); |
3856 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3857 | 80d11f44 | j_mayer | gen_spr_5xx(env); |
3858 | 80d11f44 | j_mayer | init_excp_MPC5xx(env); |
3859 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3860 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3861 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3862 | 80d11f44 | j_mayer | } |
3863 | 80d11f44 | j_mayer | |
3864 | 80d11f44 | j_mayer | /* Freescale 8xx cores (aka PowerQUICC) */
|
3865 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC8xx (PPC_INSNS_BASE | PPC_STRING | \
|
3866 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3867 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_MFTB) |
3868 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC8xx (0x000000000001F673ULL) |
3869 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC8xx (POWERPC_MMU_MPC8xx)
|
3870 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC8xx (POWERPC_EXCP_603)
|
3871 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC8xx (PPC_FLAGS_INPUT_RCPU)
|
3872 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC8xx (bfd_mach_ppc_860)
|
3873 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC8xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3874 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3875 | 80d11f44 | j_mayer | #define check_pow_MPC8xx check_pow_none
|
3876 | 80d11f44 | j_mayer | |
3877 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3878 | 80d11f44 | j_mayer | static void init_proc_MPC8xx (CPUPPCState *env) |
3879 | 80d11f44 | j_mayer | { |
3880 | 80d11f44 | j_mayer | /* Time base */
|
3881 | 80d11f44 | j_mayer | gen_tbl(env); |
3882 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3883 | 80d11f44 | j_mayer | gen_spr_8xx(env); |
3884 | 80d11f44 | j_mayer | init_excp_MPC8xx(env); |
3885 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3886 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3887 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3888 | 80d11f44 | j_mayer | } |
3889 | 80d11f44 | j_mayer | |
3890 | 80d11f44 | j_mayer | /* Freescale 82xx cores (aka PowerQUICC-II) */
|
3891 | 80d11f44 | j_mayer | /* PowerPC G2 */
|
3892 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3893 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3894 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3895 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3896 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3897 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3898 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3899 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2 (0x000000000006FFF2ULL) |
3900 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2 (POWERPC_MMU_SOFT_6xx)
|
3901 | 80d11f44 | j_mayer | //#define POWERPC_EXCP_G2 (POWERPC_EXCP_G2)
|
3902 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2 (PPC_FLAGS_INPUT_6xx)
|
3903 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2 (bfd_mach_ppc_ec603e)
|
3904 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3905 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3906 | 80d11f44 | j_mayer | #define check_pow_G2 check_pow_hid0
|
3907 | a750fc0b | j_mayer | |
3908 | 80d11f44 | j_mayer | static void init_proc_G2 (CPUPPCState *env) |
3909 | 3fc6c082 | bellard | { |
3910 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3911 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3912 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3913 | a750fc0b | j_mayer | /* Time base */
|
3914 | a750fc0b | j_mayer | gen_tbl(env); |
3915 | bd928eba | j_mayer | /* External access control */
|
3916 | bd928eba | j_mayer | /* XXX : not implemented */
|
3917 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3918 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3919 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3920 | bd928eba | j_mayer | 0x00000000);
|
3921 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3922 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3923 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3924 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3925 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3926 | 80d11f44 | j_mayer | 0x00000000);
|
3927 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3928 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3929 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3930 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3931 | 80d11f44 | j_mayer | 0x00000000);
|
3932 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3933 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3934 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3935 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3936 | 80d11f44 | j_mayer | 0x00000000);
|
3937 | a750fc0b | j_mayer | /* Memory management */
|
3938 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3939 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3940 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3941 | 80d11f44 | j_mayer | init_excp_G2(env); |
3942 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3943 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3944 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3945 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
3946 | 3fc6c082 | bellard | } |
3947 | a750fc0b | j_mayer | |
3948 | 80d11f44 | j_mayer | /* PowerPC G2LE */
|
3949 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2LE (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3950 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3951 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3952 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3953 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3954 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3955 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3956 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2LE (0x000000000007FFF3ULL) |
3957 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2LE (POWERPC_MMU_SOFT_6xx)
|
3958 | 80d11f44 | j_mayer | #define POWERPC_EXCP_G2LE (POWERPC_EXCP_G2)
|
3959 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2LE (PPC_FLAGS_INPUT_6xx)
|
3960 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2LE (bfd_mach_ppc_ec603e)
|
3961 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2LE (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3962 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3963 | 80d11f44 | j_mayer | #define check_pow_G2LE check_pow_hid0
|
3964 | a750fc0b | j_mayer | |
3965 | 80d11f44 | j_mayer | static void init_proc_G2LE (CPUPPCState *env) |
3966 | 3fc6c082 | bellard | { |
3967 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3968 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3969 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3970 | a750fc0b | j_mayer | /* Time base */
|
3971 | a750fc0b | j_mayer | gen_tbl(env); |
3972 | bd928eba | j_mayer | /* External access control */
|
3973 | bd928eba | j_mayer | /* XXX : not implemented */
|
3974 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3975 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3976 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3977 | bd928eba | j_mayer | 0x00000000);
|
3978 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3979 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3980 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3981 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3982 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3983 | a750fc0b | j_mayer | 0x00000000);
|
3984 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3985 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3986 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3987 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3988 | a750fc0b | j_mayer | 0x00000000);
|
3989 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3990 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3991 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3992 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3993 | a750fc0b | j_mayer | 0x00000000);
|
3994 | a750fc0b | j_mayer | /* Memory management */
|
3995 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3996 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3997 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3998 | 80d11f44 | j_mayer | init_excp_G2(env); |
3999 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4000 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4001 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
4002 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
4003 | 3fc6c082 | bellard | } |
4004 | 3fc6c082 | bellard | |
4005 | 80d11f44 | j_mayer | /* e200 core */
|
4006 | 80d11f44 | j_mayer | /* XXX: unimplemented instructions:
|
4007 | 80d11f44 | j_mayer | * dcblc
|
4008 | 80d11f44 | j_mayer | * dcbtlst
|
4009 | 80d11f44 | j_mayer | * dcbtstls
|
4010 | 80d11f44 | j_mayer | * icblc
|
4011 | 80d11f44 | j_mayer | * icbtls
|
4012 | 80d11f44 | j_mayer | * tlbivax
|
4013 | 80d11f44 | j_mayer | * all SPE multiply-accumulate instructions
|
4014 | 80d11f44 | j_mayer | */
|
4015 | 082c6681 | j_mayer | #define POWERPC_INSNS_e200 (PPC_INSNS_BASE | PPC_ISEL | \
|
4016 | 40569b7e | aurel32 | PPC_SPE | PPC_SPE_SINGLE | \ |
4017 | 082c6681 | j_mayer | PPC_WRTEE | PPC_RFDI | \ |
4018 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4019 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4020 | 80d11f44 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4021 | 082c6681 | j_mayer | PPC_BOOKE) |
4022 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e200 (0x000000000606FF30ULL) |
4023 | 80d11f44 | j_mayer | #define POWERPC_MMU_e200 (POWERPC_MMU_BOOKE_FSL)
|
4024 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e200 (POWERPC_EXCP_BOOKE)
|
4025 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e200 (PPC_FLAGS_INPUT_BookE)
|
4026 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e200 (bfd_mach_ppc_860)
|
4027 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e200 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4028 | 4018bae9 | j_mayer | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4029 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
4030 | 80d11f44 | j_mayer | #define check_pow_e200 check_pow_hid0
|
4031 | 80d11f44 | j_mayer | |
4032 | 578bb252 | j_mayer | __attribute__ (( unused )) |
4033 | 80d11f44 | j_mayer | static void init_proc_e200 (CPUPPCState *env) |
4034 | 3fc6c082 | bellard | { |
4035 | e1833e1f | j_mayer | /* Time base */
|
4036 | e1833e1f | j_mayer | gen_tbl(env); |
4037 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000070000FFFFULL);
|
4038 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4039 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4040 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4041 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4042 | e1833e1f | j_mayer | 0x00000000);
|
4043 | 80d11f44 | j_mayer | /* Memory management */
|
4044 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005D);
|
4045 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4046 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4047 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4048 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4049 | e1833e1f | j_mayer | 0x00000000);
|
4050 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4051 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4052 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4053 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4054 | e1833e1f | j_mayer | 0x00000000);
|
4055 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4056 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_ALTCTXCR, "ALTCTXCR",
|
4057 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4058 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4059 | e1833e1f | j_mayer | 0x00000000);
|
4060 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4061 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
4062 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4063 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4064 | 80d11f44 | j_mayer | 0x00000000);
|
4065 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4066 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_CTXCR, "CTXCR",
|
4067 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4068 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4069 | 80d11f44 | j_mayer | 0x00000000);
|
4070 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4071 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCNT, "DBCNT",
|
4072 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4073 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4074 | 80d11f44 | j_mayer | 0x00000000);
|
4075 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4076 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCR3, "DBCR3",
|
4077 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4078 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4079 | 80d11f44 | j_mayer | 0x00000000);
|
4080 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4081 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
4082 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4083 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4084 | 80d11f44 | j_mayer | 0x00000000);
|
4085 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4086 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4087 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4088 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4089 | 80d11f44 | j_mayer | 0x00000000);
|
4090 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4091 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1FINV0, "L1FINV0",
|
4092 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4093 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4094 | 80d11f44 | j_mayer | 0x00000000);
|
4095 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4096 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4097 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4098 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4099 | 80d11f44 | j_mayer | 0x00000000);
|
4100 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4101 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4102 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4103 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4104 | 80d11f44 | j_mayer | 0x00000000);
|
4105 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4106 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
4107 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4108 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4109 | 80d11f44 | j_mayer | 0x00000000);
|
4110 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4111 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
4112 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4113 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4114 | 80d11f44 | j_mayer | 0x00000000);
|
4115 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR0, "DSRR0",
|
4116 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4117 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4118 | 80d11f44 | j_mayer | 0x00000000);
|
4119 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR1, "DSRR1",
|
4120 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4121 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4122 | e1833e1f | j_mayer | 0x00000000);
|
4123 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4124 | e1833e1f | j_mayer | env->nb_tlb = 64;
|
4125 | e1833e1f | j_mayer | env->nb_ways = 1;
|
4126 | e1833e1f | j_mayer | env->id_tlbs = 0;
|
4127 | f2e63a42 | j_mayer | #endif
|
4128 | 80d11f44 | j_mayer | init_excp_e200(env); |
4129 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4130 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4131 | e1833e1f | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
4132 | 3fc6c082 | bellard | } |
4133 | a750fc0b | j_mayer | |
4134 | 80d11f44 | j_mayer | /* e300 core */
|
4135 | 082c6681 | j_mayer | #define POWERPC_INSNS_e300 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4136 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4137 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
4138 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4139 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4140 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4141 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4142 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e300 (0x000000000007FFF3ULL) |
4143 | 80d11f44 | j_mayer | #define POWERPC_MMU_e300 (POWERPC_MMU_SOFT_6xx)
|
4144 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e300 (POWERPC_EXCP_603)
|
4145 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e300 (PPC_FLAGS_INPUT_6xx)
|
4146 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e300 (bfd_mach_ppc_603)
|
4147 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e300 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4148 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4149 | 80d11f44 | j_mayer | #define check_pow_e300 check_pow_hid0
|
4150 | a750fc0b | j_mayer | |
4151 | 578bb252 | j_mayer | __attribute__ (( unused )) |
4152 | 80d11f44 | j_mayer | static void init_proc_e300 (CPUPPCState *env) |
4153 | 3fc6c082 | bellard | { |
4154 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
4155 | 80d11f44 | j_mayer | gen_spr_603(env); |
4156 | a750fc0b | j_mayer | /* Time base */
|
4157 | a750fc0b | j_mayer | gen_tbl(env); |
4158 | 80d11f44 | j_mayer | /* hardware implementation registers */
|
4159 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4160 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4161 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4162 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4163 | 80d11f44 | j_mayer | 0x00000000);
|
4164 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4165 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4166 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4167 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4168 | 80d11f44 | j_mayer | 0x00000000);
|
4169 | 8daf1781 | Thomas Monjalon | /* XXX : not implemented */
|
4170 | 8daf1781 | Thomas Monjalon | spr_register(env, SPR_HID2, "HID2",
|
4171 | 8daf1781 | Thomas Monjalon | SPR_NOACCESS, SPR_NOACCESS, |
4172 | 8daf1781 | Thomas Monjalon | &spr_read_generic, &spr_write_generic, |
4173 | 8daf1781 | Thomas Monjalon | 0x00000000);
|
4174 | 80d11f44 | j_mayer | /* Memory management */
|
4175 | 80d11f44 | j_mayer | gen_low_BATs(env); |
4176 | 8daf1781 | Thomas Monjalon | gen_high_BATs(env); |
4177 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4178 | 80d11f44 | j_mayer | init_excp_603(env); |
4179 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
4180 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
4181 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
4182 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
4183 | 80d11f44 | j_mayer | } |
4184 | 80d11f44 | j_mayer | |
4185 | bd5ea513 | aurel32 | /* e500v1 core */
|
4186 | bd5ea513 | aurel32 | #define POWERPC_INSNS_e500v1 (PPC_INSNS_BASE | PPC_ISEL | \
|
4187 | bd5ea513 | aurel32 | PPC_SPE | PPC_SPE_SINGLE | \ |
4188 | bd5ea513 | aurel32 | PPC_WRTEE | PPC_RFDI | \ |
4189 | bd5ea513 | aurel32 | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4190 | bd5ea513 | aurel32 | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4191 | bd5ea513 | aurel32 | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4192 | bd5ea513 | aurel32 | PPC_BOOKE) |
4193 | bd5ea513 | aurel32 | #define POWERPC_MSRM_e500v1 (0x000000000606FF30ULL) |
4194 | bd5ea513 | aurel32 | #define POWERPC_MMU_e500v1 (POWERPC_MMU_BOOKE_FSL)
|
4195 | bd5ea513 | aurel32 | #define POWERPC_EXCP_e500v1 (POWERPC_EXCP_BOOKE)
|
4196 | bd5ea513 | aurel32 | #define POWERPC_INPUT_e500v1 (PPC_FLAGS_INPUT_BookE)
|
4197 | bd5ea513 | aurel32 | #define POWERPC_BFDM_e500v1 (bfd_mach_ppc_860)
|
4198 | bd5ea513 | aurel32 | #define POWERPC_FLAG_e500v1 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4199 | bd5ea513 | aurel32 | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4200 | bd5ea513 | aurel32 | POWERPC_FLAG_BUS_CLK) |
4201 | bd5ea513 | aurel32 | #define check_pow_e500v1 check_pow_hid0
|
4202 | bd5ea513 | aurel32 | #define init_proc_e500v1 init_proc_e500
|
4203 | bd5ea513 | aurel32 | |
4204 | bd5ea513 | aurel32 | /* e500v2 core */
|
4205 | bd5ea513 | aurel32 | #define POWERPC_INSNS_e500v2 (PPC_INSNS_BASE | PPC_ISEL | \
|
4206 | bd5ea513 | aurel32 | PPC_SPE | PPC_SPE_SINGLE | PPC_SPE_DOUBLE | \ |
4207 | bd5ea513 | aurel32 | PPC_WRTEE | PPC_RFDI | \ |
4208 | bd5ea513 | aurel32 | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4209 | bd5ea513 | aurel32 | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4210 | bd5ea513 | aurel32 | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4211 | bd5ea513 | aurel32 | PPC_BOOKE) |
4212 | bd5ea513 | aurel32 | #define POWERPC_MSRM_e500v2 (0x000000000606FF30ULL) |
4213 | bd5ea513 | aurel32 | #define POWERPC_MMU_e500v2 (POWERPC_MMU_BOOKE_FSL)
|
4214 | bd5ea513 | aurel32 | #define POWERPC_EXCP_e500v2 (POWERPC_EXCP_BOOKE)
|
4215 | bd5ea513 | aurel32 | #define POWERPC_INPUT_e500v2 (PPC_FLAGS_INPUT_BookE)
|
4216 | bd5ea513 | aurel32 | #define POWERPC_BFDM_e500v2 (bfd_mach_ppc_860)
|
4217 | bd5ea513 | aurel32 | #define POWERPC_FLAG_e500v2 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4218 | bd5ea513 | aurel32 | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4219 | bd5ea513 | aurel32 | POWERPC_FLAG_BUS_CLK) |
4220 | bd5ea513 | aurel32 | #define check_pow_e500v2 check_pow_hid0
|
4221 | bd5ea513 | aurel32 | #define init_proc_e500v2 init_proc_e500
|
4222 | 80d11f44 | j_mayer | |
4223 | 80d11f44 | j_mayer | static void init_proc_e500 (CPUPPCState *env) |
4224 | 80d11f44 | j_mayer | { |
4225 | 80d11f44 | j_mayer | /* Time base */
|
4226 | 80d11f44 | j_mayer | gen_tbl(env); |
4227 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x0000000F0000FD7FULL);
|
4228 | 80d11f44 | j_mayer | /* Processor identification */
|
4229 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
4230 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4231 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
4232 | 80d11f44 | j_mayer | 0x00000000);
|
4233 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4234 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4235 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4236 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4237 | 80d11f44 | j_mayer | 0x00000000);
|
4238 | 80d11f44 | j_mayer | /* Memory management */
|
4239 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4240 | 80d11f44 | j_mayer | env->nb_pids = 3;
|
4241 | 80d11f44 | j_mayer | #endif
|
4242 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005F);
|
4243 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4244 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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_HID1, "HID1",
|
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_BBEAR, "BBEAR",
|
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_BBTAR, "BBTAR",
|
4260 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4261 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4262 | 80d11f44 | j_mayer | 0x00000000);
|
4263 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4264 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_MCAR, "MCAR",
|
4265 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4266 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4267 | 80d11f44 | j_mayer | 0x00000000);
|
4268 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4269 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
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_NPIDR, "NPIDR",
|
4275 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4276 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4277 | a750fc0b | j_mayer | 0x00000000);
|
4278 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4279 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
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_L1CFG0, "L1CFG0",
|
4285 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4286 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4287 | a750fc0b | j_mayer | 0x00000000);
|
4288 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4289 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4290 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4291 | a750fc0b | 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_Exxx_L1CSR1, "L1CSR1",
|
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_TLB0CFG, "TLB0CFG",
|
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 | /* XXX : not implemented */
|
4304 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4305 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4306 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4307 | 80d11f44 | j_mayer | 0x00000000);
|
4308 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
4309 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4310 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4311 | 80d11f44 | j_mayer | 0x00000000);
|
4312 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
4313 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4314 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4315 | a750fc0b | j_mayer | 0x00000000);
|
4316 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4317 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
4318 | a750fc0b | j_mayer | env->nb_ways = 1;
|
4319 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
4320 | f2e63a42 | j_mayer | #endif
|
4321 | 80d11f44 | j_mayer | init_excp_e200(env); |
4322 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4323 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4324 | 9fdc60bf | aurel32 | /* Allocate hardware IRQ controller */
|
4325 | 9fdc60bf | aurel32 | ppce500_irq_init(env); |
4326 | 3fc6c082 | bellard | } |
4327 | a750fc0b | j_mayer | |
4328 | a750fc0b | j_mayer | /* Non-embedded PowerPC */
|
4329 | a750fc0b | j_mayer | |
4330 | a750fc0b | j_mayer | /* POWER : same as 601, without mfmsr, mfsr */
|
4331 | a750fc0b | j_mayer | #if defined(TODO)
|
4332 | a750fc0b | j_mayer | #define POWERPC_INSNS_POWER (XXX_TODO)
|
4333 | a750fc0b | j_mayer | /* POWER RSC (from RAD6000) */
|
4334 | a750fc0b | j_mayer | #define POWERPC_MSRM_POWER (0x00000000FEF0ULL) |
4335 | a750fc0b | j_mayer | #endif /* TODO */ |
4336 | a750fc0b | j_mayer | |
4337 | a750fc0b | j_mayer | /* PowerPC 601 */
|
4338 | 082c6681 | j_mayer | #define POWERPC_INSNS_601 (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4339 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4340 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4341 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4342 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4343 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_601 (0x000000000000FD70ULL) |
4344 | 082c6681 | j_mayer | #define POWERPC_MSRR_601 (0x0000000000001040ULL) |
4345 | faadf50e | j_mayer | //#define POWERPC_MMU_601 (POWERPC_MMU_601)
|
4346 | a750fc0b | j_mayer | //#define POWERPC_EXCP_601 (POWERPC_EXCP_601)
|
4347 | a750fc0b | j_mayer | #define POWERPC_INPUT_601 (PPC_FLAGS_INPUT_6xx)
|
4348 | 237c0af0 | j_mayer | #define POWERPC_BFDM_601 (bfd_mach_ppc_601)
|
4349 | 4018bae9 | j_mayer | #define POWERPC_FLAG_601 (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4350 | 2f462816 | j_mayer | #define check_pow_601 check_pow_none
|
4351 | a750fc0b | j_mayer | |
4352 | a750fc0b | j_mayer | static void init_proc_601 (CPUPPCState *env) |
4353 | 3fc6c082 | bellard | { |
4354 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4355 | a750fc0b | j_mayer | gen_spr_601(env); |
4356 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4357 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4358 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4359 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4360 | 056401ea | j_mayer | &spr_read_generic, &spr_write_hid0_601, |
4361 | faadf50e | j_mayer | 0x80010080);
|
4362 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4363 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
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_HID2, "HID2",
|
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 | /* XXX : not implemented */
|
4373 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID5, "HID5",
|
4374 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4375 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4376 | a750fc0b | j_mayer | 0x00000000);
|
4377 | a750fc0b | j_mayer | /* Memory management */
|
4378 | e1833e1f | j_mayer | init_excp_601(env); |
4379 | 082c6681 | j_mayer | /* XXX: beware that dcache line size is 64
|
4380 | 082c6681 | j_mayer | * but dcbz uses 32 bytes "sectors"
|
4381 | 082c6681 | j_mayer | * XXX: this breaks clcs instruction !
|
4382 | 082c6681 | j_mayer | */
|
4383 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4384 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
4385 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
4386 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
4387 | 3fc6c082 | bellard | } |
4388 | 3fc6c082 | bellard | |
4389 | 082c6681 | j_mayer | /* PowerPC 601v */
|
4390 | 082c6681 | j_mayer | #define POWERPC_INSNS_601v (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4391 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4392 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4393 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4394 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4395 | 082c6681 | j_mayer | #define POWERPC_MSRM_601v (0x000000000000FD70ULL) |
4396 | 082c6681 | j_mayer | #define POWERPC_MSRR_601v (0x0000000000001040ULL) |
4397 | 082c6681 | j_mayer | #define POWERPC_MMU_601v (POWERPC_MMU_601)
|
4398 | 082c6681 | j_mayer | #define POWERPC_EXCP_601v (POWERPC_EXCP_601)
|
4399 | 082c6681 | j_mayer | #define POWERPC_INPUT_601v (PPC_FLAGS_INPUT_6xx)
|
4400 | 082c6681 | j_mayer | #define POWERPC_BFDM_601v (bfd_mach_ppc_601)
|
4401 | 082c6681 | j_mayer | #define POWERPC_FLAG_601v (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4402 | 082c6681 | j_mayer | #define check_pow_601v check_pow_none
|
4403 | 082c6681 | j_mayer | |
4404 | 082c6681 | j_mayer | static void init_proc_601v (CPUPPCState *env) |
4405 | 082c6681 | j_mayer | { |
4406 | 082c6681 | j_mayer | init_proc_601(env); |
4407 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4408 | 082c6681 | j_mayer | spr_register(env, SPR_601_HID15, "HID15",
|
4409 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4410 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4411 | 082c6681 | j_mayer | 0x00000000);
|
4412 | 082c6681 | j_mayer | } |
4413 | 082c6681 | j_mayer | |
4414 | a750fc0b | j_mayer | /* PowerPC 602 */
|
4415 | 082c6681 | j_mayer | #define POWERPC_INSNS_602 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4416 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4417 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4418 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4419 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4420 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_6xx_TLB | PPC_MEM_TLBSYNC | \ |
4421 | 12de9a39 | j_mayer | PPC_SEGMENT | PPC_602_SPEC) |
4422 | 082c6681 | j_mayer | #define POWERPC_MSRM_602 (0x0000000000C7FF73ULL) |
4423 | 082c6681 | j_mayer | /* XXX: 602 MMU is quite specific. Should add a special case */
|
4424 | a750fc0b | j_mayer | #define POWERPC_MMU_602 (POWERPC_MMU_SOFT_6xx)
|
4425 | a750fc0b | j_mayer | //#define POWERPC_EXCP_602 (POWERPC_EXCP_602)
|
4426 | a750fc0b | j_mayer | #define POWERPC_INPUT_602 (PPC_FLAGS_INPUT_6xx)
|
4427 | 237c0af0 | j_mayer | #define POWERPC_BFDM_602 (bfd_mach_ppc_602)
|
4428 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_602 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4429 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4430 | 2f462816 | j_mayer | #define check_pow_602 check_pow_hid0
|
4431 | a750fc0b | j_mayer | |
4432 | a750fc0b | j_mayer | static void init_proc_602 (CPUPPCState *env) |
4433 | 3fc6c082 | bellard | { |
4434 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4435 | a750fc0b | j_mayer | gen_spr_602(env); |
4436 | a750fc0b | j_mayer | /* Time base */
|
4437 | a750fc0b | j_mayer | gen_tbl(env); |
4438 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4439 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4440 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 | /* XXX : not implemented */
|
4445 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4446 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4447 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4448 | a750fc0b | j_mayer | 0x00000000);
|
4449 | a750fc0b | j_mayer | /* Memory management */
|
4450 | a750fc0b | j_mayer | gen_low_BATs(env); |
4451 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4452 | e1833e1f | j_mayer | init_excp_602(env); |
4453 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4454 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4455 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4456 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4457 | a750fc0b | j_mayer | } |
4458 | 3fc6c082 | bellard | |
4459 | a750fc0b | j_mayer | /* PowerPC 603 */
|
4460 | 082c6681 | j_mayer | #define POWERPC_INSNS_603 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4461 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4462 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4463 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4464 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4465 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4466 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4467 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_603 (0x000000000007FF73ULL) |
4468 | a750fc0b | j_mayer | #define POWERPC_MMU_603 (POWERPC_MMU_SOFT_6xx)
|
4469 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603 (POWERPC_EXCP_603)
|
4470 | a750fc0b | j_mayer | #define POWERPC_INPUT_603 (PPC_FLAGS_INPUT_6xx)
|
4471 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603 (bfd_mach_ppc_603)
|
4472 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4473 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4474 | 2f462816 | j_mayer | #define check_pow_603 check_pow_hid0
|
4475 | a750fc0b | j_mayer | |
4476 | a750fc0b | j_mayer | static void init_proc_603 (CPUPPCState *env) |
4477 | a750fc0b | j_mayer | { |
4478 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4479 | a750fc0b | j_mayer | gen_spr_603(env); |
4480 | a750fc0b | j_mayer | /* Time base */
|
4481 | a750fc0b | j_mayer | gen_tbl(env); |
4482 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4483 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4484 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 | /* XXX : not implemented */
|
4489 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4490 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4491 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4492 | a750fc0b | j_mayer | 0x00000000);
|
4493 | a750fc0b | j_mayer | /* Memory management */
|
4494 | a750fc0b | j_mayer | gen_low_BATs(env); |
4495 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4496 | e1833e1f | j_mayer | init_excp_603(env); |
4497 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4498 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4499 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4500 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4501 | 3fc6c082 | bellard | } |
4502 | 3fc6c082 | bellard | |
4503 | a750fc0b | j_mayer | /* PowerPC 603e */
|
4504 | 082c6681 | j_mayer | #define POWERPC_INSNS_603E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4505 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4506 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4507 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4508 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4509 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4510 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4511 | a750fc0b | j_mayer | #define POWERPC_MSRM_603E (0x000000000007FF73ULL) |
4512 | a750fc0b | j_mayer | #define POWERPC_MMU_603E (POWERPC_MMU_SOFT_6xx)
|
4513 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603E (POWERPC_EXCP_603E)
|
4514 | a750fc0b | j_mayer | #define POWERPC_INPUT_603E (PPC_FLAGS_INPUT_6xx)
|
4515 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603E (bfd_mach_ppc_ec603e)
|
4516 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603E (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4517 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4518 | 2f462816 | j_mayer | #define check_pow_603E check_pow_hid0
|
4519 | a750fc0b | j_mayer | |
4520 | a750fc0b | j_mayer | static void init_proc_603E (CPUPPCState *env) |
4521 | a750fc0b | j_mayer | { |
4522 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4523 | a750fc0b | j_mayer | gen_spr_603(env); |
4524 | a750fc0b | j_mayer | /* Time base */
|
4525 | a750fc0b | j_mayer | gen_tbl(env); |
4526 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4527 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4528 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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_HID1, "HID1",
|
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 | /* XXX : not implemented */
|
4538 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
4539 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4540 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4541 | a750fc0b | j_mayer | 0x00000000);
|
4542 | a750fc0b | j_mayer | /* Memory management */
|
4543 | a750fc0b | j_mayer | gen_low_BATs(env); |
4544 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4545 | e1833e1f | j_mayer | init_excp_603(env); |
4546 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4547 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4548 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4549 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4550 | a750fc0b | j_mayer | } |
4551 | a750fc0b | j_mayer | |
4552 | a750fc0b | j_mayer | /* PowerPC 604 */
|
4553 | 082c6681 | j_mayer | #define POWERPC_INSNS_604 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4554 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4555 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4556 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4557 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4558 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4559 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4560 | a750fc0b | j_mayer | #define POWERPC_MSRM_604 (0x000000000005FF77ULL) |
4561 | a750fc0b | j_mayer | #define POWERPC_MMU_604 (POWERPC_MMU_32B)
|
4562 | a750fc0b | j_mayer | //#define POWERPC_EXCP_604 (POWERPC_EXCP_604)
|
4563 | a750fc0b | j_mayer | #define POWERPC_INPUT_604 (PPC_FLAGS_INPUT_6xx)
|
4564 | 237c0af0 | j_mayer | #define POWERPC_BFDM_604 (bfd_mach_ppc_604)
|
4565 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_604 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4566 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4567 | 2f462816 | j_mayer | #define check_pow_604 check_pow_nocheck
|
4568 | a750fc0b | j_mayer | |
4569 | a750fc0b | j_mayer | static void init_proc_604 (CPUPPCState *env) |
4570 | a750fc0b | j_mayer | { |
4571 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4572 | a750fc0b | j_mayer | gen_spr_604(env); |
4573 | a750fc0b | j_mayer | /* Time base */
|
4574 | a750fc0b | j_mayer | gen_tbl(env); |
4575 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4576 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4577 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4578 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4579 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4580 | a750fc0b | j_mayer | 0x00000000);
|
4581 | 082c6681 | j_mayer | /* Memory management */
|
4582 | 082c6681 | j_mayer | gen_low_BATs(env); |
4583 | 082c6681 | j_mayer | init_excp_604(env); |
4584 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4585 | 082c6681 | j_mayer | env->icache_line_size = 32;
|
4586 | 082c6681 | j_mayer | /* Allocate hardware IRQ controller */
|
4587 | 082c6681 | j_mayer | ppc6xx_irq_init(env); |
4588 | 082c6681 | j_mayer | } |
4589 | 082c6681 | j_mayer | |
4590 | 082c6681 | j_mayer | /* PowerPC 604E */
|
4591 | 082c6681 | j_mayer | #define POWERPC_INSNS_604E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4592 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4593 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4594 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4595 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4596 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4597 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4598 | 082c6681 | j_mayer | #define POWERPC_MSRM_604E (0x000000000005FF77ULL) |
4599 | 082c6681 | j_mayer | #define POWERPC_MMU_604E (POWERPC_MMU_32B)
|
4600 | 082c6681 | j_mayer | #define POWERPC_EXCP_604E (POWERPC_EXCP_604)
|
4601 | 082c6681 | j_mayer | #define POWERPC_INPUT_604E (PPC_FLAGS_INPUT_6xx)
|
4602 | 082c6681 | j_mayer | #define POWERPC_BFDM_604E (bfd_mach_ppc_604)
|
4603 | 082c6681 | j_mayer | #define POWERPC_FLAG_604E (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4604 | 082c6681 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4605 | 082c6681 | j_mayer | #define check_pow_604E check_pow_nocheck
|
4606 | 082c6681 | j_mayer | |
4607 | 082c6681 | j_mayer | static void init_proc_604E (CPUPPCState *env) |
4608 | 082c6681 | j_mayer | { |
4609 | 082c6681 | j_mayer | gen_spr_ne_601(env); |
4610 | 082c6681 | j_mayer | gen_spr_604(env); |
4611 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4612 | 082c6681 | j_mayer | spr_register(env, SPR_MMCR1, "MMCR1",
|
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_PMC3, "PMC3",
|
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 | /* XXX : not implemented */
|
4622 | 082c6681 | j_mayer | spr_register(env, SPR_PMC4, "PMC4",
|
4623 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4624 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4625 | 082c6681 | j_mayer | 0x00000000);
|
4626 | 082c6681 | j_mayer | /* Time base */
|
4627 | 082c6681 | j_mayer | gen_tbl(env); |
4628 | 082c6681 | j_mayer | /* Hardware implementation registers */
|
4629 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4630 | 082c6681 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4631 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4632 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4633 | 082c6681 | j_mayer | 0x00000000);
|
4634 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4635 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4636 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4637 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4638 | a750fc0b | j_mayer | 0x00000000);
|
4639 | a750fc0b | j_mayer | /* Memory management */
|
4640 | a750fc0b | j_mayer | gen_low_BATs(env); |
4641 | e1833e1f | j_mayer | init_excp_604(env); |
4642 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4643 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4644 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4645 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4646 | a750fc0b | j_mayer | } |
4647 | a750fc0b | j_mayer | |
4648 | bd928eba | j_mayer | /* PowerPC 740 */
|
4649 | bd928eba | j_mayer | #define POWERPC_INSNS_740 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4650 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4651 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4652 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4653 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4654 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4655 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4656 | bd928eba | j_mayer | #define POWERPC_MSRM_740 (0x000000000005FF77ULL) |
4657 | bd928eba | j_mayer | #define POWERPC_MMU_740 (POWERPC_MMU_32B)
|
4658 | bd928eba | j_mayer | #define POWERPC_EXCP_740 (POWERPC_EXCP_7x0)
|
4659 | bd928eba | j_mayer | #define POWERPC_INPUT_740 (PPC_FLAGS_INPUT_6xx)
|
4660 | bd928eba | j_mayer | #define POWERPC_BFDM_740 (bfd_mach_ppc_750)
|
4661 | bd928eba | j_mayer | #define POWERPC_FLAG_740 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4662 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4663 | bd928eba | j_mayer | #define check_pow_740 check_pow_hid0
|
4664 | a750fc0b | j_mayer | |
4665 | bd928eba | j_mayer | static void init_proc_740 (CPUPPCState *env) |
4666 | a750fc0b | j_mayer | { |
4667 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4668 | a750fc0b | j_mayer | gen_spr_7xx(env); |
4669 | a750fc0b | j_mayer | /* Time base */
|
4670 | a750fc0b | j_mayer | gen_tbl(env); |
4671 | a750fc0b | j_mayer | /* Thermal management */
|
4672 | a750fc0b | j_mayer | gen_spr_thrm(env); |
4673 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4674 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4675 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 | /* XXX : not implemented */
|
4680 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4681 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4682 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4683 | a750fc0b | j_mayer | 0x00000000);
|
4684 | a750fc0b | j_mayer | /* Memory management */
|
4685 | a750fc0b | j_mayer | gen_low_BATs(env); |
4686 | e1833e1f | j_mayer | init_excp_7x0(env); |
4687 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4688 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4689 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4690 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4691 | a750fc0b | j_mayer | } |
4692 | a750fc0b | j_mayer | |
4693 | bd928eba | j_mayer | /* PowerPC 750 */
|
4694 | bd928eba | j_mayer | #define POWERPC_INSNS_750 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4695 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4696 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4697 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4698 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4699 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4700 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4701 | bd928eba | j_mayer | #define POWERPC_MSRM_750 (0x000000000005FF77ULL) |
4702 | bd928eba | j_mayer | #define POWERPC_MMU_750 (POWERPC_MMU_32B)
|
4703 | bd928eba | j_mayer | #define POWERPC_EXCP_750 (POWERPC_EXCP_7x0)
|
4704 | bd928eba | j_mayer | #define POWERPC_INPUT_750 (PPC_FLAGS_INPUT_6xx)
|
4705 | bd928eba | j_mayer | #define POWERPC_BFDM_750 (bfd_mach_ppc_750)
|
4706 | bd928eba | j_mayer | #define POWERPC_FLAG_750 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4707 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4708 | bd928eba | j_mayer | #define check_pow_750 check_pow_hid0
|
4709 | bd928eba | j_mayer | |
4710 | bd928eba | j_mayer | static void init_proc_750 (CPUPPCState *env) |
4711 | bd928eba | j_mayer | { |
4712 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4713 | bd928eba | j_mayer | gen_spr_7xx(env); |
4714 | bd928eba | j_mayer | /* XXX : not implemented */
|
4715 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4716 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4717 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4718 | bd928eba | j_mayer | 0x00000000);
|
4719 | bd928eba | j_mayer | /* Time base */
|
4720 | bd928eba | j_mayer | gen_tbl(env); |
4721 | bd928eba | j_mayer | /* Thermal management */
|
4722 | bd928eba | j_mayer | gen_spr_thrm(env); |
4723 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4724 | bd928eba | j_mayer | /* XXX : not implemented */
|
4725 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 | /* XXX : not implemented */
|
4730 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4731 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4732 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4733 | bd928eba | j_mayer | 0x00000000);
|
4734 | bd928eba | j_mayer | /* Memory management */
|
4735 | bd928eba | j_mayer | gen_low_BATs(env); |
4736 | bd928eba | j_mayer | /* XXX: high BATs are also present but are known to be bugged on
|
4737 | bd928eba | j_mayer | * die version 1.x
|
4738 | bd928eba | j_mayer | */
|
4739 | bd928eba | j_mayer | init_excp_7x0(env); |
4740 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4741 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4742 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4743 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4744 | bd928eba | j_mayer | } |
4745 | bd928eba | j_mayer | |
4746 | bd928eba | j_mayer | /* PowerPC 750 CL */
|
4747 | bd928eba | j_mayer | /* XXX: not implemented:
|
4748 | bd928eba | j_mayer | * cache lock instructions:
|
4749 | bd928eba | j_mayer | * dcbz_l
|
4750 | bd928eba | j_mayer | * floating point paired instructions
|
4751 | bd928eba | j_mayer | * psq_lux
|
4752 | bd928eba | j_mayer | * psq_lx
|
4753 | bd928eba | j_mayer | * psq_stux
|
4754 | bd928eba | j_mayer | * psq_stx
|
4755 | bd928eba | j_mayer | * ps_abs
|
4756 | bd928eba | j_mayer | * ps_add
|
4757 | bd928eba | j_mayer | * ps_cmpo0
|
4758 | bd928eba | j_mayer | * ps_cmpo1
|
4759 | bd928eba | j_mayer | * ps_cmpu0
|
4760 | bd928eba | j_mayer | * ps_cmpu1
|
4761 | bd928eba | j_mayer | * ps_div
|
4762 | bd928eba | j_mayer | * ps_madd
|
4763 | bd928eba | j_mayer | * ps_madds0
|
4764 | bd928eba | j_mayer | * ps_madds1
|
4765 | bd928eba | j_mayer | * ps_merge00
|
4766 | bd928eba | j_mayer | * ps_merge01
|
4767 | bd928eba | j_mayer | * ps_merge10
|
4768 | bd928eba | j_mayer | * ps_merge11
|
4769 | bd928eba | j_mayer | * ps_mr
|
4770 | bd928eba | j_mayer | * ps_msub
|
4771 | bd928eba | j_mayer | * ps_mul
|
4772 | bd928eba | j_mayer | * ps_muls0
|
4773 | bd928eba | j_mayer | * ps_muls1
|
4774 | bd928eba | j_mayer | * ps_nabs
|
4775 | bd928eba | j_mayer | * ps_neg
|
4776 | bd928eba | j_mayer | * ps_nmadd
|
4777 | bd928eba | j_mayer | * ps_nmsub
|
4778 | bd928eba | j_mayer | * ps_res
|
4779 | bd928eba | j_mayer | * ps_rsqrte
|
4780 | bd928eba | j_mayer | * ps_sel
|
4781 | bd928eba | j_mayer | * ps_sub
|
4782 | bd928eba | j_mayer | * ps_sum0
|
4783 | bd928eba | j_mayer | * ps_sum1
|
4784 | bd928eba | j_mayer | */
|
4785 | bd928eba | j_mayer | #define POWERPC_INSNS_750cl (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4786 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4787 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4788 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4789 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4790 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4791 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4792 | bd928eba | j_mayer | #define POWERPC_MSRM_750cl (0x000000000005FF77ULL) |
4793 | bd928eba | j_mayer | #define POWERPC_MMU_750cl (POWERPC_MMU_32B)
|
4794 | bd928eba | j_mayer | #define POWERPC_EXCP_750cl (POWERPC_EXCP_7x0)
|
4795 | bd928eba | j_mayer | #define POWERPC_INPUT_750cl (PPC_FLAGS_INPUT_6xx)
|
4796 | bd928eba | j_mayer | #define POWERPC_BFDM_750cl (bfd_mach_ppc_750)
|
4797 | bd928eba | j_mayer | #define POWERPC_FLAG_750cl (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4798 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4799 | bd928eba | j_mayer | #define check_pow_750cl check_pow_hid0
|
4800 | bd928eba | j_mayer | |
4801 | bd928eba | j_mayer | static void init_proc_750cl (CPUPPCState *env) |
4802 | bd928eba | j_mayer | { |
4803 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4804 | bd928eba | j_mayer | gen_spr_7xx(env); |
4805 | bd928eba | j_mayer | /* XXX : not implemented */
|
4806 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4807 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4808 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4809 | bd928eba | j_mayer | 0x00000000);
|
4810 | bd928eba | j_mayer | /* Time base */
|
4811 | bd928eba | j_mayer | gen_tbl(env); |
4812 | bd928eba | j_mayer | /* Thermal management */
|
4813 | bd928eba | j_mayer | /* Those registers are fake on 750CL */
|
4814 | bd928eba | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
4815 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4816 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4817 | bd928eba | j_mayer | 0x00000000);
|
4818 | bd928eba | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
4819 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4820 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4821 | bd928eba | j_mayer | 0x00000000);
|
4822 | bd928eba | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
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 | /* XXX: not implemented */
|
4827 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCL, "TDCL",
|
4828 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4829 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4830 | bd928eba | j_mayer | 0x00000000);
|
4831 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCH, "TDCH",
|
4832 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4833 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4834 | bd928eba | j_mayer | 0x00000000);
|
4835 | bd928eba | j_mayer | /* DMA */
|
4836 | bd928eba | j_mayer | /* XXX : not implemented */
|
4837 | bd928eba | j_mayer | spr_register(env, SPR_750_WPAR, "WPAR",
|
4838 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4839 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4840 | bd928eba | j_mayer | 0x00000000);
|
4841 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAL, "DMAL",
|
4842 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4843 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4844 | bd928eba | j_mayer | 0x00000000);
|
4845 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAU, "DMAU",
|
4846 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4847 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4848 | bd928eba | j_mayer | 0x00000000);
|
4849 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4850 | bd928eba | j_mayer | /* XXX : not implemented */
|
4851 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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_HID1, "HID1",
|
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_HID2, "HID2",
|
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 | /* XXX : not implemented */
|
4866 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID4, "HID4",
|
4867 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4868 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4869 | bd928eba | j_mayer | 0x00000000);
|
4870 | bd928eba | j_mayer | /* Quantization registers */
|
4871 | bd928eba | j_mayer | /* XXX : not implemented */
|
4872 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR0, "GQR0",
|
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_GQR1, "GQR1",
|
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_GQR2, "GQR2",
|
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_GQR3, "GQR3",
|
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_GQR4, "GQR4",
|
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_GQR5, "GQR5",
|
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_GQR6, "GQR6",
|
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 | /* XXX : not implemented */
|
4907 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR7, "GQR7",
|
4908 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4909 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4910 | bd928eba | j_mayer | 0x00000000);
|
4911 | bd928eba | j_mayer | /* Memory management */
|
4912 | bd928eba | j_mayer | gen_low_BATs(env); |
4913 | bd928eba | j_mayer | /* PowerPC 750cl has 8 DBATs and 8 IBATs */
|
4914 | bd928eba | j_mayer | gen_high_BATs(env); |
4915 | bd928eba | j_mayer | init_excp_750cl(env); |
4916 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4917 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4918 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4919 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4920 | bd928eba | j_mayer | } |
4921 | bd928eba | j_mayer | |
4922 | 4e777442 | j_mayer | /* PowerPC 750CX */
|
4923 | bd928eba | j_mayer | #define POWERPC_INSNS_750cx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4924 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4925 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4926 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4927 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4928 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4929 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4930 | bd928eba | j_mayer | #define POWERPC_MSRM_750cx (0x000000000005FF77ULL) |
4931 | bd928eba | j_mayer | #define POWERPC_MMU_750cx (POWERPC_MMU_32B)
|
4932 | bd928eba | j_mayer | #define POWERPC_EXCP_750cx (POWERPC_EXCP_7x0)
|
4933 | bd928eba | j_mayer | #define POWERPC_INPUT_750cx (PPC_FLAGS_INPUT_6xx)
|
4934 | bd928eba | j_mayer | #define POWERPC_BFDM_750cx (bfd_mach_ppc_750)
|
4935 | bd928eba | j_mayer | #define POWERPC_FLAG_750cx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4936 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4937 | bd928eba | j_mayer | #define check_pow_750cx check_pow_hid0
|
4938 | bd928eba | j_mayer | |
4939 | bd928eba | j_mayer | static void init_proc_750cx (CPUPPCState *env) |
4940 | bd928eba | j_mayer | { |
4941 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4942 | bd928eba | j_mayer | gen_spr_7xx(env); |
4943 | bd928eba | j_mayer | /* XXX : not implemented */
|
4944 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4945 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4946 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4947 | bd928eba | j_mayer | 0x00000000);
|
4948 | bd928eba | j_mayer | /* Time base */
|
4949 | bd928eba | j_mayer | gen_tbl(env); |
4950 | bd928eba | j_mayer | /* Thermal management */
|
4951 | bd928eba | j_mayer | gen_spr_thrm(env); |
4952 | bd928eba | j_mayer | /* This register is not implemented but is present for compatibility */
|
4953 | bd928eba | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
4954 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4955 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4956 | bd928eba | j_mayer | 0x00000000);
|
4957 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4958 | bd928eba | j_mayer | /* XXX : not implemented */
|
4959 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 | /* XXX : not implemented */
|
4964 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4965 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4966 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4967 | bd928eba | j_mayer | 0x00000000);
|
4968 | bd928eba | j_mayer | /* Memory management */
|
4969 | bd928eba | j_mayer | gen_low_BATs(env); |
4970 | 4e777442 | j_mayer | /* PowerPC 750cx has 8 DBATs and 8 IBATs */
|
4971 | 4e777442 | j_mayer | gen_high_BATs(env); |
4972 | bd928eba | j_mayer | init_excp_750cx(env); |
4973 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4974 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4975 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4976 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4977 | bd928eba | j_mayer | } |
4978 | bd928eba | j_mayer | |
4979 | bd928eba | j_mayer | /* PowerPC 750FX */
|
4980 | 082c6681 | j_mayer | #define POWERPC_INSNS_750fx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4981 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4982 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4983 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4984 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4985 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4986 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4987 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_750fx (0x000000000005FF77ULL) |
4988 | a750fc0b | j_mayer | #define POWERPC_MMU_750fx (POWERPC_MMU_32B)
|
4989 | a750fc0b | j_mayer | #define POWERPC_EXCP_750fx (POWERPC_EXCP_7x0)
|
4990 | a750fc0b | j_mayer | #define POWERPC_INPUT_750fx (PPC_FLAGS_INPUT_6xx)
|
4991 | 237c0af0 | j_mayer | #define POWERPC_BFDM_750fx (bfd_mach_ppc_750)
|
4992 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_750fx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4993 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4994 | 2f462816 | j_mayer | #define check_pow_750fx check_pow_hid0
|
4995 | a750fc0b | j_mayer | |
4996 | a750fc0b | j_mayer | static void init_proc_750fx (CPUPPCState *env) |
4997 | a750fc0b | j_mayer | { |
4998 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4999 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5000 | bd928eba | j_mayer | /* XXX : not implemented */
|
5001 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5002 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5003 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5004 | bd928eba | j_mayer | 0x00000000);
|
5005 | a750fc0b | j_mayer | /* Time base */
|
5006 | a750fc0b | j_mayer | gen_tbl(env); |
5007 | a750fc0b | j_mayer | /* Thermal management */
|
5008 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5009 | bd928eba | j_mayer | /* XXX : not implemented */
|
5010 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
5011 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5012 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5013 | bd928eba | j_mayer | 0x00000000);
|
5014 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5015 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5016 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
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 | /* XXX : not implemented */
|
5026 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5027 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5028 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5029 | a750fc0b | j_mayer | 0x00000000);
|
5030 | a750fc0b | j_mayer | /* Memory management */
|
5031 | a750fc0b | j_mayer | gen_low_BATs(env); |
5032 | a750fc0b | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
5033 | a750fc0b | j_mayer | gen_high_BATs(env); |
5034 | bd928eba | j_mayer | init_excp_7x0(env); |
5035 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5036 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5037 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5038 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5039 | a750fc0b | j_mayer | } |
5040 | a750fc0b | j_mayer | |
5041 | bd928eba | j_mayer | /* PowerPC 750GX */
|
5042 | bd928eba | j_mayer | #define POWERPC_INSNS_750gx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5043 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5044 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5045 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5046 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5047 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5048 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5049 | bd928eba | j_mayer | #define POWERPC_MSRM_750gx (0x000000000005FF77ULL) |
5050 | bd928eba | j_mayer | #define POWERPC_MMU_750gx (POWERPC_MMU_32B)
|
5051 | bd928eba | j_mayer | #define POWERPC_EXCP_750gx (POWERPC_EXCP_7x0)
|
5052 | bd928eba | j_mayer | #define POWERPC_INPUT_750gx (PPC_FLAGS_INPUT_6xx)
|
5053 | bd928eba | j_mayer | #define POWERPC_BFDM_750gx (bfd_mach_ppc_750)
|
5054 | bd928eba | j_mayer | #define POWERPC_FLAG_750gx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5055 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5056 | bd928eba | j_mayer | #define check_pow_750gx check_pow_hid0
|
5057 | bd928eba | j_mayer | |
5058 | bd928eba | j_mayer | static void init_proc_750gx (CPUPPCState *env) |
5059 | bd928eba | j_mayer | { |
5060 | bd928eba | j_mayer | gen_spr_ne_601(env); |
5061 | bd928eba | j_mayer | gen_spr_7xx(env); |
5062 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5063 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5064 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5065 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5066 | bd928eba | j_mayer | 0x00000000);
|
5067 | bd928eba | j_mayer | /* Time base */
|
5068 | bd928eba | j_mayer | gen_tbl(env); |
5069 | bd928eba | j_mayer | /* Thermal management */
|
5070 | bd928eba | j_mayer | gen_spr_thrm(env); |
5071 | bd928eba | j_mayer | /* XXX : not implemented */
|
5072 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
5073 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5074 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5075 | bd928eba | j_mayer | 0x00000000);
|
5076 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5077 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5078 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 */
|
5083 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
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 | /* XXX : not implemented (XXX: different from 750fx) */
|
5088 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5089 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5090 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5091 | bd928eba | j_mayer | 0x00000000);
|
5092 | bd928eba | j_mayer | /* Memory management */
|
5093 | bd928eba | j_mayer | gen_low_BATs(env); |
5094 | bd928eba | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
5095 | bd928eba | j_mayer | gen_high_BATs(env); |
5096 | bd928eba | j_mayer | init_excp_7x0(env); |
5097 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5098 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5099 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5100 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5101 | bd928eba | j_mayer | } |
5102 | bd928eba | j_mayer | |
5103 | bd928eba | j_mayer | /* PowerPC 745 */
|
5104 | bd928eba | j_mayer | #define POWERPC_INSNS_745 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5105 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5106 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5107 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5108 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5109 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5110 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5111 | bd928eba | j_mayer | #define POWERPC_MSRM_745 (0x000000000005FF77ULL) |
5112 | bd928eba | j_mayer | #define POWERPC_MMU_745 (POWERPC_MMU_SOFT_6xx)
|
5113 | bd928eba | j_mayer | #define POWERPC_EXCP_745 (POWERPC_EXCP_7x5)
|
5114 | bd928eba | j_mayer | #define POWERPC_INPUT_745 (PPC_FLAGS_INPUT_6xx)
|
5115 | bd928eba | j_mayer | #define POWERPC_BFDM_745 (bfd_mach_ppc_750)
|
5116 | bd928eba | j_mayer | #define POWERPC_FLAG_745 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5117 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5118 | bd928eba | j_mayer | #define check_pow_745 check_pow_hid0
|
5119 | bd928eba | j_mayer | |
5120 | bd928eba | j_mayer | static void init_proc_745 (CPUPPCState *env) |
5121 | bd928eba | j_mayer | { |
5122 | bd928eba | j_mayer | gen_spr_ne_601(env); |
5123 | bd928eba | j_mayer | gen_spr_7xx(env); |
5124 | bd928eba | j_mayer | gen_spr_G2_755(env); |
5125 | bd928eba | j_mayer | /* Time base */
|
5126 | bd928eba | j_mayer | gen_tbl(env); |
5127 | bd928eba | j_mayer | /* Thermal management */
|
5128 | bd928eba | j_mayer | gen_spr_thrm(env); |
5129 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5130 | bd928eba | j_mayer | /* XXX : not implemented */
|
5131 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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_HID1, "HID1",
|
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 | /* XXX : not implemented */
|
5141 | bd928eba | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5142 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5143 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5144 | bd928eba | j_mayer | 0x00000000);
|
5145 | bd928eba | j_mayer | /* Memory management */
|
5146 | bd928eba | j_mayer | gen_low_BATs(env); |
5147 | bd928eba | j_mayer | gen_high_BATs(env); |
5148 | bd928eba | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5149 | bd928eba | j_mayer | init_excp_7x5(env); |
5150 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5151 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5152 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5153 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5154 | bd928eba | j_mayer | } |
5155 | bd928eba | j_mayer | |
5156 | bd928eba | j_mayer | /* PowerPC 755 */
|
5157 | bd928eba | j_mayer | #define POWERPC_INSNS_755 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5158 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5159 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5160 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5161 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5162 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5163 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5164 | bd928eba | j_mayer | #define POWERPC_MSRM_755 (0x000000000005FF77ULL) |
5165 | bd928eba | j_mayer | #define POWERPC_MMU_755 (POWERPC_MMU_SOFT_6xx)
|
5166 | bd928eba | j_mayer | #define POWERPC_EXCP_755 (POWERPC_EXCP_7x5)
|
5167 | bd928eba | j_mayer | #define POWERPC_INPUT_755 (PPC_FLAGS_INPUT_6xx)
|
5168 | bd928eba | j_mayer | #define POWERPC_BFDM_755 (bfd_mach_ppc_750)
|
5169 | bd928eba | j_mayer | #define POWERPC_FLAG_755 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5170 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5171 | bd928eba | j_mayer | #define check_pow_755 check_pow_hid0
|
5172 | a750fc0b | j_mayer | |
5173 | bd928eba | j_mayer | static void init_proc_755 (CPUPPCState *env) |
5174 | a750fc0b | j_mayer | { |
5175 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5176 | bd928eba | j_mayer | gen_spr_7xx(env); |
5177 | a750fc0b | j_mayer | gen_spr_G2_755(env); |
5178 | a750fc0b | j_mayer | /* Time base */
|
5179 | a750fc0b | j_mayer | gen_tbl(env); |
5180 | a750fc0b | j_mayer | /* L2 cache control */
|
5181 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5182 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5183 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5184 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5185 | a750fc0b | j_mayer | 0x00000000);
|
5186 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5187 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5188 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5189 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5190 | a750fc0b | j_mayer | 0x00000000);
|
5191 | bd928eba | j_mayer | /* Thermal management */
|
5192 | bd928eba | j_mayer | gen_spr_thrm(env); |
5193 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5194 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5195 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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_HID1, "HID1",
|
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 | /* XXX : not implemented */
|
5205 | a750fc0b | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5206 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5207 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5208 | a750fc0b | j_mayer | 0x00000000);
|
5209 | a750fc0b | j_mayer | /* Memory management */
|
5210 | a750fc0b | j_mayer | gen_low_BATs(env); |
5211 | a750fc0b | j_mayer | gen_high_BATs(env); |
5212 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5213 | 7a3a6927 | j_mayer | init_excp_7x5(env); |
5214 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5215 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5216 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5217 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5218 | a750fc0b | j_mayer | } |
5219 | a750fc0b | j_mayer | |
5220 | a750fc0b | j_mayer | /* PowerPC 7400 (aka G4) */
|
5221 | 082c6681 | j_mayer | #define POWERPC_INSNS_7400 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5222 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5223 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5224 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5225 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5226 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5227 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5228 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5229 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5230 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5231 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5232 | a750fc0b | j_mayer | #define POWERPC_MSRM_7400 (0x000000000205FF77ULL) |
5233 | a750fc0b | j_mayer | #define POWERPC_MMU_7400 (POWERPC_MMU_32B)
|
5234 | a750fc0b | j_mayer | #define POWERPC_EXCP_7400 (POWERPC_EXCP_74xx)
|
5235 | a750fc0b | j_mayer | #define POWERPC_INPUT_7400 (PPC_FLAGS_INPUT_6xx)
|
5236 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7400 (bfd_mach_ppc_7400)
|
5237 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7400 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5238 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5239 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5240 | 4e777442 | j_mayer | #define check_pow_7400 check_pow_hid0_74xx
|
5241 | a750fc0b | j_mayer | |
5242 | a750fc0b | j_mayer | static void init_proc_7400 (CPUPPCState *env) |
5243 | a750fc0b | j_mayer | { |
5244 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5245 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5246 | a750fc0b | j_mayer | /* Time base */
|
5247 | a750fc0b | j_mayer | gen_tbl(env); |
5248 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5249 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5250 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5251 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5252 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5253 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5254 | 4e777442 | j_mayer | 0x00000000);
|
5255 | 4e777442 | j_mayer | /* XXX: this seems not implemented on all revisions. */
|
5256 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5257 | 4e777442 | j_mayer | spr_register(env, SPR_MSSCR1, "MSSCR1",
|
5258 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5259 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5260 | 4e777442 | j_mayer | 0x00000000);
|
5261 | a750fc0b | j_mayer | /* Thermal management */
|
5262 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5263 | a750fc0b | j_mayer | /* Memory management */
|
5264 | a750fc0b | j_mayer | gen_low_BATs(env); |
5265 | e1833e1f | j_mayer | init_excp_7400(env); |
5266 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5267 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5268 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5269 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5270 | a750fc0b | j_mayer | } |
5271 | a750fc0b | j_mayer | |
5272 | a750fc0b | j_mayer | /* PowerPC 7410 (aka G4) */
|
5273 | 082c6681 | j_mayer | #define POWERPC_INSNS_7410 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5274 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5275 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5276 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5277 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5278 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5279 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5280 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5281 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5282 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5283 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5284 | a750fc0b | j_mayer | #define POWERPC_MSRM_7410 (0x000000000205FF77ULL) |
5285 | a750fc0b | j_mayer | #define POWERPC_MMU_7410 (POWERPC_MMU_32B)
|
5286 | a750fc0b | j_mayer | #define POWERPC_EXCP_7410 (POWERPC_EXCP_74xx)
|
5287 | a750fc0b | j_mayer | #define POWERPC_INPUT_7410 (PPC_FLAGS_INPUT_6xx)
|
5288 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7410 (bfd_mach_ppc_7400)
|
5289 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7410 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5290 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5291 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5292 | 4e777442 | j_mayer | #define check_pow_7410 check_pow_hid0_74xx
|
5293 | a750fc0b | j_mayer | |
5294 | a750fc0b | j_mayer | static void init_proc_7410 (CPUPPCState *env) |
5295 | a750fc0b | j_mayer | { |
5296 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5297 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5298 | a750fc0b | j_mayer | /* Time base */
|
5299 | a750fc0b | j_mayer | gen_tbl(env); |
5300 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5301 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5302 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5303 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5304 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5305 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5306 | 4e777442 | j_mayer | 0x00000000);
|
5307 | a750fc0b | j_mayer | /* Thermal management */
|
5308 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5309 | a750fc0b | j_mayer | /* L2PMCR */
|
5310 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5311 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5312 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5313 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5314 | a750fc0b | j_mayer | 0x00000000);
|
5315 | a750fc0b | j_mayer | /* LDSTDB */
|
5316 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5317 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTDB, "LDSTDB",
|
5318 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5319 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5320 | a750fc0b | j_mayer | 0x00000000);
|
5321 | a750fc0b | j_mayer | /* Memory management */
|
5322 | a750fc0b | j_mayer | gen_low_BATs(env); |
5323 | e1833e1f | j_mayer | init_excp_7400(env); |
5324 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5325 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5326 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5327 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5328 | a750fc0b | j_mayer | } |
5329 | a750fc0b | j_mayer | |
5330 | a750fc0b | j_mayer | /* PowerPC 7440 (aka G4) */
|
5331 | 082c6681 | j_mayer | #define POWERPC_INSNS_7440 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5332 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5333 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5334 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5335 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5336 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5337 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5338 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5339 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5340 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5341 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5342 | a750fc0b | j_mayer | #define POWERPC_MSRM_7440 (0x000000000205FF77ULL) |
5343 | a750fc0b | j_mayer | #define POWERPC_MMU_7440 (POWERPC_MMU_SOFT_74xx)
|
5344 | a750fc0b | j_mayer | #define POWERPC_EXCP_7440 (POWERPC_EXCP_74xx)
|
5345 | a750fc0b | j_mayer | #define POWERPC_INPUT_7440 (PPC_FLAGS_INPUT_6xx)
|
5346 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7440 (bfd_mach_ppc_7400)
|
5347 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7440 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5348 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5349 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5350 | 4e777442 | j_mayer | #define check_pow_7440 check_pow_hid0_74xx
|
5351 | a750fc0b | j_mayer | |
5352 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5353 | a750fc0b | j_mayer | static void init_proc_7440 (CPUPPCState *env) |
5354 | a750fc0b | j_mayer | { |
5355 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5356 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5357 | a750fc0b | j_mayer | /* Time base */
|
5358 | a750fc0b | j_mayer | gen_tbl(env); |
5359 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5360 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5361 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5362 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5363 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5364 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5365 | 4e777442 | j_mayer | 0x00000000);
|
5366 | a750fc0b | j_mayer | /* LDSTCR */
|
5367 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5368 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5369 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5370 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5371 | a750fc0b | j_mayer | 0x00000000);
|
5372 | a750fc0b | j_mayer | /* ICTRL */
|
5373 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5374 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5375 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5376 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5377 | a750fc0b | j_mayer | 0x00000000);
|
5378 | a750fc0b | j_mayer | /* MSSSR0 */
|
5379 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5380 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5381 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5382 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5383 | a750fc0b | j_mayer | 0x00000000);
|
5384 | a750fc0b | j_mayer | /* PMC */
|
5385 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5386 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5387 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5388 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5389 | a750fc0b | j_mayer | 0x00000000);
|
5390 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5391 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5392 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5393 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5394 | a750fc0b | j_mayer | 0x00000000);
|
5395 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5396 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5397 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5398 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5399 | a750fc0b | j_mayer | 0x00000000);
|
5400 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5401 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5402 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5403 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5404 | a750fc0b | j_mayer | 0x00000000);
|
5405 | a750fc0b | j_mayer | /* Memory management */
|
5406 | a750fc0b | j_mayer | gen_low_BATs(env); |
5407 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5408 | 1c27f8fb | j_mayer | init_excp_7450(env); |
5409 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5410 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5411 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5412 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5413 | a750fc0b | j_mayer | } |
5414 | a750fc0b | j_mayer | |
5415 | a750fc0b | j_mayer | /* PowerPC 7450 (aka G4) */
|
5416 | 082c6681 | j_mayer | #define POWERPC_INSNS_7450 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5417 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5418 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5419 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5420 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5421 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5422 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5423 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5424 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5425 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5426 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5427 | a750fc0b | j_mayer | #define POWERPC_MSRM_7450 (0x000000000205FF77ULL) |
5428 | a750fc0b | j_mayer | #define POWERPC_MMU_7450 (POWERPC_MMU_SOFT_74xx)
|
5429 | a750fc0b | j_mayer | #define POWERPC_EXCP_7450 (POWERPC_EXCP_74xx)
|
5430 | a750fc0b | j_mayer | #define POWERPC_INPUT_7450 (PPC_FLAGS_INPUT_6xx)
|
5431 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7450 (bfd_mach_ppc_7400)
|
5432 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7450 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5433 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5434 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5435 | 4e777442 | j_mayer | #define check_pow_7450 check_pow_hid0_74xx
|
5436 | a750fc0b | j_mayer | |
5437 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5438 | a750fc0b | j_mayer | static void init_proc_7450 (CPUPPCState *env) |
5439 | a750fc0b | j_mayer | { |
5440 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5441 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5442 | a750fc0b | j_mayer | /* Time base */
|
5443 | a750fc0b | j_mayer | gen_tbl(env); |
5444 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5445 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5446 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5447 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5448 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5449 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5450 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5451 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5452 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5453 | 4e777442 | j_mayer | 0x00000000);
|
5454 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5455 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5456 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5457 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5458 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5459 | 4e777442 | j_mayer | 0x00000000);
|
5460 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5461 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5462 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5463 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5464 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5465 | 4e777442 | j_mayer | 0x00000000);
|
5466 | 4e777442 | j_mayer | /* L3OHCR */
|
5467 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5468 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5469 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5470 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5471 | 4e777442 | j_mayer | 0x00000000);
|
5472 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5473 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5474 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5475 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5476 | 4e777442 | j_mayer | 0x00000000);
|
5477 | a750fc0b | j_mayer | /* LDSTCR */
|
5478 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5479 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5480 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5481 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5482 | a750fc0b | j_mayer | 0x00000000);
|
5483 | a750fc0b | j_mayer | /* ICTRL */
|
5484 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5485 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5486 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5487 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5488 | a750fc0b | j_mayer | 0x00000000);
|
5489 | a750fc0b | j_mayer | /* MSSSR0 */
|
5490 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5491 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5492 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5493 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5494 | a750fc0b | j_mayer | 0x00000000);
|
5495 | a750fc0b | j_mayer | /* PMC */
|
5496 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5497 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5498 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5499 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5500 | a750fc0b | j_mayer | 0x00000000);
|
5501 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5502 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5503 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5504 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5505 | a750fc0b | j_mayer | 0x00000000);
|
5506 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5507 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5508 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5509 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5510 | a750fc0b | j_mayer | 0x00000000);
|
5511 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5512 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5513 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5514 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5515 | a750fc0b | j_mayer | 0x00000000);
|
5516 | a750fc0b | j_mayer | /* Memory management */
|
5517 | a750fc0b | j_mayer | gen_low_BATs(env); |
5518 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5519 | e1833e1f | j_mayer | init_excp_7450(env); |
5520 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5521 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5522 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5523 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5524 | a750fc0b | j_mayer | } |
5525 | a750fc0b | j_mayer | |
5526 | a750fc0b | j_mayer | /* PowerPC 7445 (aka G4) */
|
5527 | 082c6681 | j_mayer | #define POWERPC_INSNS_7445 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5528 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5529 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5530 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5531 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5532 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5533 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5534 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5535 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5536 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5537 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5538 | a750fc0b | j_mayer | #define POWERPC_MSRM_7445 (0x000000000205FF77ULL) |
5539 | a750fc0b | j_mayer | #define POWERPC_MMU_7445 (POWERPC_MMU_SOFT_74xx)
|
5540 | a750fc0b | j_mayer | #define POWERPC_EXCP_7445 (POWERPC_EXCP_74xx)
|
5541 | a750fc0b | j_mayer | #define POWERPC_INPUT_7445 (PPC_FLAGS_INPUT_6xx)
|
5542 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7445 (bfd_mach_ppc_7400)
|
5543 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7445 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5544 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5545 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5546 | 4e777442 | j_mayer | #define check_pow_7445 check_pow_hid0_74xx
|
5547 | a750fc0b | j_mayer | |
5548 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5549 | a750fc0b | j_mayer | static void init_proc_7445 (CPUPPCState *env) |
5550 | a750fc0b | j_mayer | { |
5551 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5552 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5553 | a750fc0b | j_mayer | /* Time base */
|
5554 | a750fc0b | j_mayer | gen_tbl(env); |
5555 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5556 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5557 | a750fc0b | j_mayer | /* LDSTCR */
|
5558 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5559 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5560 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5561 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5562 | a750fc0b | j_mayer | 0x00000000);
|
5563 | a750fc0b | j_mayer | /* ICTRL */
|
5564 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5565 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5566 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5567 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5568 | a750fc0b | j_mayer | 0x00000000);
|
5569 | a750fc0b | j_mayer | /* MSSSR0 */
|
5570 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5571 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5572 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5573 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5574 | a750fc0b | j_mayer | 0x00000000);
|
5575 | a750fc0b | j_mayer | /* PMC */
|
5576 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5577 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5578 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5579 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5580 | a750fc0b | j_mayer | 0x00000000);
|
5581 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5582 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5583 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5584 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5585 | a750fc0b | j_mayer | 0x00000000);
|
5586 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5587 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5588 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5589 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5590 | a750fc0b | j_mayer | 0x00000000);
|
5591 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5592 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5593 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5594 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5595 | a750fc0b | j_mayer | 0x00000000);
|
5596 | a750fc0b | j_mayer | /* SPRGs */
|
5597 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5598 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5599 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5600 | a750fc0b | j_mayer | 0x00000000);
|
5601 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5602 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5603 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5604 | a750fc0b | j_mayer | 0x00000000);
|
5605 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5606 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5607 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5608 | a750fc0b | j_mayer | 0x00000000);
|
5609 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5610 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5611 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5612 | a750fc0b | j_mayer | 0x00000000);
|
5613 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5614 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5615 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5616 | a750fc0b | j_mayer | 0x00000000);
|
5617 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5618 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5619 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5620 | a750fc0b | j_mayer | 0x00000000);
|
5621 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5622 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5623 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5624 | a750fc0b | j_mayer | 0x00000000);
|
5625 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5626 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5627 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5628 | a750fc0b | j_mayer | 0x00000000);
|
5629 | a750fc0b | j_mayer | /* Memory management */
|
5630 | a750fc0b | j_mayer | gen_low_BATs(env); |
5631 | a750fc0b | j_mayer | gen_high_BATs(env); |
5632 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5633 | e1833e1f | j_mayer | init_excp_7450(env); |
5634 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5635 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5636 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5637 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5638 | a750fc0b | j_mayer | } |
5639 | a750fc0b | j_mayer | |
5640 | a750fc0b | j_mayer | /* PowerPC 7455 (aka G4) */
|
5641 | 082c6681 | j_mayer | #define POWERPC_INSNS_7455 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5642 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5643 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5644 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5645 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5646 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5647 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5648 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5649 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5650 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5651 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5652 | a750fc0b | j_mayer | #define POWERPC_MSRM_7455 (0x000000000205FF77ULL) |
5653 | a750fc0b | j_mayer | #define POWERPC_MMU_7455 (POWERPC_MMU_SOFT_74xx)
|
5654 | a750fc0b | j_mayer | #define POWERPC_EXCP_7455 (POWERPC_EXCP_74xx)
|
5655 | a750fc0b | j_mayer | #define POWERPC_INPUT_7455 (PPC_FLAGS_INPUT_6xx)
|
5656 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7455 (bfd_mach_ppc_7400)
|
5657 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7455 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5658 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5659 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5660 | 4e777442 | j_mayer | #define check_pow_7455 check_pow_hid0_74xx
|
5661 | a750fc0b | j_mayer | |
5662 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5663 | a750fc0b | j_mayer | static void init_proc_7455 (CPUPPCState *env) |
5664 | a750fc0b | j_mayer | { |
5665 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5666 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5667 | a750fc0b | j_mayer | /* Time base */
|
5668 | a750fc0b | j_mayer | gen_tbl(env); |
5669 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5670 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5671 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5672 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5673 | a750fc0b | j_mayer | /* LDSTCR */
|
5674 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5675 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5676 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5677 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5678 | a750fc0b | j_mayer | 0x00000000);
|
5679 | a750fc0b | j_mayer | /* ICTRL */
|
5680 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5681 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5682 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5683 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5684 | a750fc0b | j_mayer | 0x00000000);
|
5685 | a750fc0b | j_mayer | /* MSSSR0 */
|
5686 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5687 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5688 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5689 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5690 | a750fc0b | j_mayer | 0x00000000);
|
5691 | a750fc0b | j_mayer | /* PMC */
|
5692 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5693 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5694 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5695 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5696 | a750fc0b | j_mayer | 0x00000000);
|
5697 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5698 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5699 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5700 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5701 | a750fc0b | j_mayer | 0x00000000);
|
5702 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5703 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5704 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5705 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5706 | a750fc0b | j_mayer | 0x00000000);
|
5707 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5708 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5709 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5710 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5711 | a750fc0b | j_mayer | 0x00000000);
|
5712 | a750fc0b | j_mayer | /* SPRGs */
|
5713 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5714 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5715 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5716 | a750fc0b | j_mayer | 0x00000000);
|
5717 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5718 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5719 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5720 | a750fc0b | j_mayer | 0x00000000);
|
5721 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5722 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5723 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5724 | a750fc0b | j_mayer | 0x00000000);
|
5725 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5726 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5727 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5728 | a750fc0b | j_mayer | 0x00000000);
|
5729 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5730 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5731 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5732 | a750fc0b | j_mayer | 0x00000000);
|
5733 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5734 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5735 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5736 | a750fc0b | j_mayer | 0x00000000);
|
5737 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5738 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5739 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5740 | a750fc0b | j_mayer | 0x00000000);
|
5741 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5742 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5743 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5744 | a750fc0b | j_mayer | 0x00000000);
|
5745 | a750fc0b | j_mayer | /* Memory management */
|
5746 | a750fc0b | j_mayer | gen_low_BATs(env); |
5747 | a750fc0b | j_mayer | gen_high_BATs(env); |
5748 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5749 | e1833e1f | j_mayer | init_excp_7450(env); |
5750 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5751 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5752 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5753 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5754 | a750fc0b | j_mayer | } |
5755 | a750fc0b | j_mayer | |
5756 | 4e777442 | j_mayer | /* PowerPC 7457 (aka G4) */
|
5757 | 4e777442 | j_mayer | #define POWERPC_INSNS_7457 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5758 | 4e777442 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5759 | 4e777442 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5760 | 4e777442 | j_mayer | PPC_FLOAT_STFIWX | \ |
5761 | 4e777442 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5762 | 4e777442 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5763 | 4e777442 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5764 | 4e777442 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5765 | 4e777442 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5766 | 4e777442 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5767 | 4e777442 | j_mayer | PPC_ALTIVEC) |
5768 | 4e777442 | j_mayer | #define POWERPC_MSRM_7457 (0x000000000205FF77ULL) |
5769 | 4e777442 | j_mayer | #define POWERPC_MMU_7457 (POWERPC_MMU_SOFT_74xx)
|
5770 | 4e777442 | j_mayer | #define POWERPC_EXCP_7457 (POWERPC_EXCP_74xx)
|
5771 | 4e777442 | j_mayer | #define POWERPC_INPUT_7457 (PPC_FLAGS_INPUT_6xx)
|
5772 | 4e777442 | j_mayer | #define POWERPC_BFDM_7457 (bfd_mach_ppc_7400)
|
5773 | 4e777442 | j_mayer | #define POWERPC_FLAG_7457 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5774 | 4e777442 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5775 | 4e777442 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5776 | 4e777442 | j_mayer | #define check_pow_7457 check_pow_hid0_74xx
|
5777 | 4e777442 | j_mayer | |
5778 | 4e777442 | j_mayer | __attribute__ (( unused )) |
5779 | 4e777442 | j_mayer | static void init_proc_7457 (CPUPPCState *env) |
5780 | 4e777442 | j_mayer | { |
5781 | 4e777442 | j_mayer | gen_spr_ne_601(env); |
5782 | 4e777442 | j_mayer | gen_spr_7xx(env); |
5783 | 4e777442 | j_mayer | /* Time base */
|
5784 | 4e777442 | j_mayer | gen_tbl(env); |
5785 | 4e777442 | j_mayer | /* 74xx specific SPR */
|
5786 | 4e777442 | j_mayer | gen_spr_74xx(env); |
5787 | 4e777442 | j_mayer | /* Level 3 cache control */
|
5788 | 4e777442 | j_mayer | gen_l3_ctrl(env); |
5789 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5790 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5791 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5792 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5793 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5794 | 4e777442 | j_mayer | 0x00000000);
|
5795 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5796 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5797 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5798 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5799 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5800 | 4e777442 | j_mayer | 0x00000000);
|
5801 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5802 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5803 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5804 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5805 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5806 | 4e777442 | j_mayer | 0x00000000);
|
5807 | 4e777442 | j_mayer | /* L3OHCR */
|
5808 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5809 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5810 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5811 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5812 | 4e777442 | j_mayer | 0x00000000);
|
5813 | 4e777442 | j_mayer | /* LDSTCR */
|
5814 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5815 | 4e777442 | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5816 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5817 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5818 | 4e777442 | j_mayer | 0x00000000);
|
5819 | 4e777442 | j_mayer | /* ICTRL */
|
5820 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5821 | 4e777442 | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5822 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5823 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5824 | 4e777442 | j_mayer | 0x00000000);
|
5825 | 4e777442 | j_mayer | /* MSSSR0 */
|
5826 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5827 | 4e777442 | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5828 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5829 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5830 | 4e777442 | j_mayer | 0x00000000);
|
5831 | 4e777442 | j_mayer | /* PMC */
|
5832 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5833 | 4e777442 | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5834 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5835 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5836 | 4e777442 | j_mayer | 0x00000000);
|
5837 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5838 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5839 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5840 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5841 | 4e777442 | j_mayer | 0x00000000);
|
5842 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5843 | 4e777442 | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5844 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5845 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5846 | 4e777442 | j_mayer | 0x00000000);
|
5847 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5848 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5849 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5850 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5851 | 4e777442 | j_mayer | 0x00000000);
|
5852 | 4e777442 | j_mayer | /* SPRGs */
|
5853 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5854 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5855 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5856 | 4e777442 | j_mayer | 0x00000000);
|
5857 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5858 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5859 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5860 | 4e777442 | j_mayer | 0x00000000);
|
5861 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5862 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5863 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5864 | 4e777442 | j_mayer | 0x00000000);
|
5865 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5866 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5867 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5868 | 4e777442 | j_mayer | 0x00000000);
|
5869 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5870 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5871 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5872 | 4e777442 | j_mayer | 0x00000000);
|
5873 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5874 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5875 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5876 | 4e777442 | j_mayer | 0x00000000);
|
5877 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5878 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5879 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5880 | 4e777442 | j_mayer | 0x00000000);
|
5881 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5882 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5883 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5884 | 4e777442 | j_mayer | 0x00000000);
|
5885 | 4e777442 | j_mayer | /* Memory management */
|
5886 | 4e777442 | j_mayer | gen_low_BATs(env); |
5887 | 4e777442 | j_mayer | gen_high_BATs(env); |
5888 | 4e777442 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5889 | 4e777442 | j_mayer | init_excp_7450(env); |
5890 | 4e777442 | j_mayer | env->dcache_line_size = 32;
|
5891 | 4e777442 | j_mayer | env->icache_line_size = 32;
|
5892 | 4e777442 | j_mayer | /* Allocate hardware IRQ controller */
|
5893 | 4e777442 | j_mayer | ppc6xx_irq_init(env); |
5894 | 4e777442 | j_mayer | } |
5895 | 4e777442 | j_mayer | |
5896 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
5897 | a750fc0b | j_mayer | /* PowerPC 970 */
|
5898 | 082c6681 | j_mayer | #define POWERPC_INSNS_970 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5899 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5900 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5901 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5902 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5903 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5904 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5905 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5906 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5907 | a750fc0b | j_mayer | #define POWERPC_MSRM_970 (0x900000000204FF36ULL) |
5908 | 12de9a39 | j_mayer | #define POWERPC_MMU_970 (POWERPC_MMU_64B)
|
5909 | a750fc0b | j_mayer | //#define POWERPC_EXCP_970 (POWERPC_EXCP_970)
|
5910 | a750fc0b | j_mayer | #define POWERPC_INPUT_970 (PPC_FLAGS_INPUT_970)
|
5911 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970 (bfd_mach_ppc64)
|
5912 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5913 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5914 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5915 | a750fc0b | j_mayer | |
5916 | 417bf010 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
5917 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000080 |
5918 | 417bf010 | j_mayer | #else
|
5919 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000000 |
5920 | 417bf010 | j_mayer | #endif
|
5921 | 417bf010 | j_mayer | |
5922 | 2f462816 | j_mayer | static int check_pow_970 (CPUPPCState *env) |
5923 | 2f462816 | j_mayer | { |
5924 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
5925 | 2f462816 | j_mayer | return 1; |
5926 | 2f462816 | j_mayer | |
5927 | 2f462816 | j_mayer | return 0; |
5928 | 2f462816 | j_mayer | } |
5929 | 2f462816 | j_mayer | |
5930 | a750fc0b | j_mayer | static void init_proc_970 (CPUPPCState *env) |
5931 | a750fc0b | j_mayer | { |
5932 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5933 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5934 | a750fc0b | j_mayer | /* Time base */
|
5935 | a750fc0b | j_mayer | gen_tbl(env); |
5936 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5937 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5938 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5939 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5940 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
5941 | d63001d1 | j_mayer | 0x60000000);
|
5942 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5943 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5944 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5945 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5946 | a750fc0b | j_mayer | 0x00000000);
|
5947 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5948 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5949 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5950 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5951 | a750fc0b | j_mayer | 0x00000000);
|
5952 | e57448f1 | j_mayer | /* XXX : not implemented */
|
5953 | e57448f1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
5954 | e57448f1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5955 | e57448f1 | j_mayer | &spr_read_generic, &spr_write_generic, |
5956 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
5957 | bd928eba | j_mayer | /* XXX : not implemented */
|
5958 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5959 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5960 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5961 | bd928eba | j_mayer | 0x00000000);
|
5962 | a750fc0b | j_mayer | /* Memory management */
|
5963 | a750fc0b | j_mayer | /* XXX: not correct */
|
5964 | a750fc0b | j_mayer | gen_low_BATs(env); |
5965 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5966 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
5967 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5968 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
5969 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5970 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5971 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
5972 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5973 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5974 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5975 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
5976 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5977 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
5978 | 2adab7d6 | blueswir1 | 0x00000000);
|
5979 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5980 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
5981 | f2e63a42 | j_mayer | #endif
|
5982 | e1833e1f | j_mayer | init_excp_970(env); |
5983 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
5984 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
5985 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5986 | a750fc0b | j_mayer | ppc970_irq_init(env); |
5987 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
5988 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
5989 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
5990 | a750fc0b | j_mayer | } |
5991 | a750fc0b | j_mayer | |
5992 | a750fc0b | j_mayer | /* PowerPC 970FX (aka G5) */
|
5993 | 082c6681 | j_mayer | #define POWERPC_INSNS_970FX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5994 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5995 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5996 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5997 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5998 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5999 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6000 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6001 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6002 | a750fc0b | j_mayer | #define POWERPC_MSRM_970FX (0x800000000204FF36ULL) |
6003 | 12de9a39 | j_mayer | #define POWERPC_MMU_970FX (POWERPC_MMU_64B)
|
6004 | a750fc0b | j_mayer | #define POWERPC_EXCP_970FX (POWERPC_EXCP_970)
|
6005 | a750fc0b | j_mayer | #define POWERPC_INPUT_970FX (PPC_FLAGS_INPUT_970)
|
6006 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970FX (bfd_mach_ppc64)
|
6007 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970FX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6008 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6009 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6010 | a750fc0b | j_mayer | |
6011 | 2f462816 | j_mayer | static int check_pow_970FX (CPUPPCState *env) |
6012 | 2f462816 | j_mayer | { |
6013 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
6014 | 2f462816 | j_mayer | return 1; |
6015 | 2f462816 | j_mayer | |
6016 | 2f462816 | j_mayer | return 0; |
6017 | 2f462816 | j_mayer | } |
6018 | 2f462816 | j_mayer | |
6019 | a750fc0b | j_mayer | static void init_proc_970FX (CPUPPCState *env) |
6020 | a750fc0b | j_mayer | { |
6021 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6022 | a750fc0b | j_mayer | gen_spr_7xx(env); |
6023 | a750fc0b | j_mayer | /* Time base */
|
6024 | a750fc0b | j_mayer | gen_tbl(env); |
6025 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6026 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6027 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6028 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6029 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
6030 | d63001d1 | j_mayer | 0x60000000);
|
6031 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6032 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6033 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6034 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6035 | a750fc0b | j_mayer | 0x00000000);
|
6036 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6037 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6038 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6039 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6040 | a750fc0b | j_mayer | 0x00000000);
|
6041 | d63001d1 | j_mayer | /* XXX : not implemented */
|
6042 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6043 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6044 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6045 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6046 | bd928eba | j_mayer | /* XXX : not implemented */
|
6047 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6048 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6049 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6050 | bd928eba | j_mayer | 0x00000000);
|
6051 | a750fc0b | j_mayer | /* Memory management */
|
6052 | a750fc0b | j_mayer | /* XXX: not correct */
|
6053 | a750fc0b | j_mayer | gen_low_BATs(env); |
6054 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6055 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6056 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6057 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6058 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6059 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6060 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6061 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6062 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6063 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6064 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6065 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6066 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6067 | 2adab7d6 | blueswir1 | 0x00000000);
|
6068 | 4e98d8cf | blueswir1 | spr_register(env, SPR_CTRL, "SPR_CTRL",
|
6069 | 4e98d8cf | blueswir1 | SPR_NOACCESS, SPR_NOACCESS, |
6070 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6071 | 4e98d8cf | blueswir1 | 0x00000000);
|
6072 | 4e98d8cf | blueswir1 | spr_register(env, SPR_UCTRL, "SPR_UCTRL",
|
6073 | 4e98d8cf | blueswir1 | SPR_NOACCESS, SPR_NOACCESS, |
6074 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6075 | 4e98d8cf | blueswir1 | 0x00000000);
|
6076 | 4e98d8cf | blueswir1 | spr_register(env, SPR_VRSAVE, "SPR_VRSAVE",
|
6077 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6078 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6079 | 4e98d8cf | blueswir1 | 0x00000000);
|
6080 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6081 | 8eee0af9 | blueswir1 | env->slb_nr = 64;
|
6082 | f2e63a42 | j_mayer | #endif
|
6083 | e1833e1f | j_mayer | init_excp_970(env); |
6084 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6085 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6086 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6087 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6088 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6089 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6090 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6091 | a750fc0b | j_mayer | } |
6092 | a750fc0b | j_mayer | |
6093 | a750fc0b | j_mayer | /* PowerPC 970 GX */
|
6094 | 082c6681 | j_mayer | #define POWERPC_INSNS_970GX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6095 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6096 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6097 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6098 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6099 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6100 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6101 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6102 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6103 | a750fc0b | j_mayer | #define POWERPC_MSRM_970GX (0x800000000204FF36ULL) |
6104 | 12de9a39 | j_mayer | #define POWERPC_MMU_970GX (POWERPC_MMU_64B)
|
6105 | a750fc0b | j_mayer | #define POWERPC_EXCP_970GX (POWERPC_EXCP_970)
|
6106 | a750fc0b | j_mayer | #define POWERPC_INPUT_970GX (PPC_FLAGS_INPUT_970)
|
6107 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970GX (bfd_mach_ppc64)
|
6108 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970GX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6109 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6110 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6111 | a750fc0b | j_mayer | |
6112 | 2f462816 | j_mayer | static int check_pow_970GX (CPUPPCState *env) |
6113 | 2f462816 | j_mayer | { |
6114 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
6115 | 2f462816 | j_mayer | return 1; |
6116 | 2f462816 | j_mayer | |
6117 | 2f462816 | j_mayer | return 0; |
6118 | 2f462816 | j_mayer | } |
6119 | 2f462816 | j_mayer | |
6120 | a750fc0b | j_mayer | static void init_proc_970GX (CPUPPCState *env) |
6121 | a750fc0b | j_mayer | { |
6122 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6123 | a750fc0b | j_mayer | gen_spr_7xx(env); |
6124 | a750fc0b | j_mayer | /* Time base */
|
6125 | a750fc0b | j_mayer | gen_tbl(env); |
6126 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6127 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6128 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6129 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6130 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
6131 | d63001d1 | j_mayer | 0x60000000);
|
6132 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6133 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6134 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6135 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6136 | a750fc0b | j_mayer | 0x00000000);
|
6137 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6138 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6139 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6140 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6141 | a750fc0b | j_mayer | 0x00000000);
|
6142 | d63001d1 | j_mayer | /* XXX : not implemented */
|
6143 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6144 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6145 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6146 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6147 | bd928eba | j_mayer | /* XXX : not implemented */
|
6148 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6149 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6150 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6151 | bd928eba | j_mayer | 0x00000000);
|
6152 | a750fc0b | j_mayer | /* Memory management */
|
6153 | a750fc0b | j_mayer | /* XXX: not correct */
|
6154 | a750fc0b | j_mayer | gen_low_BATs(env); |
6155 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6156 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6157 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6158 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6159 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6160 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6161 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6162 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6163 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6164 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6165 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6166 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6167 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6168 | 2adab7d6 | blueswir1 | 0x00000000);
|
6169 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6170 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
6171 | f2e63a42 | j_mayer | #endif
|
6172 | e1833e1f | j_mayer | init_excp_970(env); |
6173 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6174 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6175 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6176 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6177 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6178 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6179 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6180 | a750fc0b | j_mayer | } |
6181 | a750fc0b | j_mayer | |
6182 | 2f462816 | j_mayer | /* PowerPC 970 MP */
|
6183 | 082c6681 | j_mayer | #define POWERPC_INSNS_970MP (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6184 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6185 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6186 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6187 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6188 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6189 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6190 | 2f462816 | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6191 | 2f462816 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6192 | 2f462816 | j_mayer | #define POWERPC_MSRM_970MP (0x900000000204FF36ULL) |
6193 | 2f462816 | j_mayer | #define POWERPC_MMU_970MP (POWERPC_MMU_64B)
|
6194 | 2f462816 | j_mayer | #define POWERPC_EXCP_970MP (POWERPC_EXCP_970)
|
6195 | 2f462816 | j_mayer | #define POWERPC_INPUT_970MP (PPC_FLAGS_INPUT_970)
|
6196 | 2f462816 | j_mayer | #define POWERPC_BFDM_970MP (bfd_mach_ppc64)
|
6197 | 2f462816 | j_mayer | #define POWERPC_FLAG_970MP (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6198 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6199 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6200 | 2f462816 | j_mayer | |
6201 | 2f462816 | j_mayer | static int check_pow_970MP (CPUPPCState *env) |
6202 | 2f462816 | j_mayer | { |
6203 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x01C00000) |
6204 | 2f462816 | j_mayer | return 1; |
6205 | 2f462816 | j_mayer | |
6206 | 2f462816 | j_mayer | return 0; |
6207 | 2f462816 | j_mayer | } |
6208 | 2f462816 | j_mayer | |
6209 | 2f462816 | j_mayer | static void init_proc_970MP (CPUPPCState *env) |
6210 | 2f462816 | j_mayer | { |
6211 | 2f462816 | j_mayer | gen_spr_ne_601(env); |
6212 | 2f462816 | j_mayer | gen_spr_7xx(env); |
6213 | 2f462816 | j_mayer | /* Time base */
|
6214 | 2f462816 | j_mayer | gen_tbl(env); |
6215 | 2f462816 | j_mayer | /* Hardware implementation registers */
|
6216 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6217 | 2f462816 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6218 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6219 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_clear, |
6220 | 2f462816 | j_mayer | 0x60000000);
|
6221 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6222 | 2f462816 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
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 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6228 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6229 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6230 | 2f462816 | j_mayer | 0x00000000);
|
6231 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6232 | 2f462816 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6233 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6234 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6235 | 2f462816 | j_mayer | POWERPC970_HID5_INIT); |
6236 | bd928eba | j_mayer | /* XXX : not implemented */
|
6237 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6238 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6239 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6240 | bd928eba | j_mayer | 0x00000000);
|
6241 | 2f462816 | j_mayer | /* Memory management */
|
6242 | 2f462816 | j_mayer | /* XXX: not correct */
|
6243 | 2f462816 | j_mayer | gen_low_BATs(env); |
6244 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6245 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6246 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6247 | 2f462816 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6248 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6249 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6250 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6251 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6252 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6253 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6254 | 2f462816 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6255 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6256 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6257 | 2adab7d6 | blueswir1 | 0x00000000);
|
6258 | 2f462816 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6259 | 2f462816 | j_mayer | env->slb_nr = 32;
|
6260 | 2f462816 | j_mayer | #endif
|
6261 | 2f462816 | j_mayer | init_excp_970(env); |
6262 | 2f462816 | j_mayer | env->dcache_line_size = 128;
|
6263 | 2f462816 | j_mayer | env->icache_line_size = 128;
|
6264 | 2f462816 | j_mayer | /* Allocate hardware IRQ controller */
|
6265 | 2f462816 | j_mayer | ppc970_irq_init(env); |
6266 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6267 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6268 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6269 | 2f462816 | j_mayer | } |
6270 | 2f462816 | j_mayer | |
6271 | a750fc0b | j_mayer | /* PowerPC 620 */
|
6272 | 082c6681 | j_mayer | #define POWERPC_INSNS_620 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6273 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6274 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6275 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6276 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
6277 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6278 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6279 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
6280 | a750fc0b | j_mayer | PPC_64B | PPC_SLBI) |
6281 | add78955 | j_mayer | #define POWERPC_MSRM_620 (0x800000000005FF77ULL) |
6282 | add78955 | j_mayer | //#define POWERPC_MMU_620 (POWERPC_MMU_620)
|
6283 | a750fc0b | j_mayer | #define POWERPC_EXCP_620 (POWERPC_EXCP_970)
|
6284 | faadf50e | j_mayer | #define POWERPC_INPUT_620 (PPC_FLAGS_INPUT_6xx)
|
6285 | 237c0af0 | j_mayer | #define POWERPC_BFDM_620 (bfd_mach_ppc64)
|
6286 | 4018bae9 | j_mayer | #define POWERPC_FLAG_620 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
6287 | add78955 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
6288 | 2f462816 | j_mayer | #define check_pow_620 check_pow_nocheck /* Check this */ |
6289 | a750fc0b | j_mayer | |
6290 | 578bb252 | j_mayer | __attribute__ (( unused )) |
6291 | a750fc0b | j_mayer | static void init_proc_620 (CPUPPCState *env) |
6292 | a750fc0b | j_mayer | { |
6293 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6294 | a750fc0b | j_mayer | gen_spr_620(env); |
6295 | a750fc0b | j_mayer | /* Time base */
|
6296 | a750fc0b | j_mayer | gen_tbl(env); |
6297 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6298 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6299 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6300 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6301 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6302 | a750fc0b | j_mayer | 0x00000000);
|
6303 | a750fc0b | j_mayer | /* Memory management */
|
6304 | a750fc0b | j_mayer | gen_low_BATs(env); |
6305 | e1833e1f | j_mayer | init_excp_620(env); |
6306 | d63001d1 | j_mayer | env->dcache_line_size = 64;
|
6307 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
6308 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
6309 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
6310 | a750fc0b | j_mayer | } |
6311 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
6312 | a750fc0b | j_mayer | |
6313 | a750fc0b | j_mayer | /* Default 32 bits PowerPC target will be 604 */
|
6314 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC32 CPU_POWERPC_604
|
6315 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC32 POWERPC_INSNS_604
|
6316 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC32 POWERPC_MSRM_604
|
6317 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC32 POWERPC_MMU_604
|
6318 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC32 POWERPC_EXCP_604
|
6319 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC32 POWERPC_INPUT_604
|
6320 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC32 POWERPC_BFDM_604
|
6321 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC32 POWERPC_FLAG_604
|
6322 | 2f462816 | j_mayer | #define check_pow_PPC32 check_pow_604
|
6323 | 2f462816 | j_mayer | #define init_proc_PPC32 init_proc_604
|
6324 | a750fc0b | j_mayer | |
6325 | a750fc0b | j_mayer | /* Default 64 bits PowerPC target will be 970 FX */
|
6326 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC64 CPU_POWERPC_970FX
|
6327 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC64 POWERPC_INSNS_970FX
|
6328 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC64 POWERPC_MSRM_970FX
|
6329 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC64 POWERPC_MMU_970FX
|
6330 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC64 POWERPC_EXCP_970FX
|
6331 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC64 POWERPC_INPUT_970FX
|
6332 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC64 POWERPC_BFDM_970FX
|
6333 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC64 POWERPC_FLAG_970FX
|
6334 | 2f462816 | j_mayer | #define check_pow_PPC64 check_pow_970FX
|
6335 | 2f462816 | j_mayer | #define init_proc_PPC64 init_proc_970FX
|
6336 | a750fc0b | j_mayer | |
6337 | a750fc0b | j_mayer | /* Default PowerPC target will be PowerPC 32 */
|
6338 | a750fc0b | j_mayer | #if defined (TARGET_PPC64) && 0 // XXX: TODO |
6339 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64
|
6340 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64
|
6341 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64
|
6342 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64
|
6343 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64
|
6344 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC64
|
6345 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC64
|
6346 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC64
|
6347 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC64
|
6348 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC64
|
6349 | a750fc0b | j_mayer | #else
|
6350 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32
|
6351 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32
|
6352 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32
|
6353 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32
|
6354 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
|
6355 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC32
|
6356 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC32
|
6357 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC32
|
6358 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC32
|
6359 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC32
|
6360 | a750fc0b | j_mayer | #endif
|
6361 | a750fc0b | j_mayer | |
6362 | a750fc0b | j_mayer | /*****************************************************************************/
|
6363 | a750fc0b | j_mayer | /* PVR definitions for most known PowerPC */
|
6364 | a750fc0b | j_mayer | enum {
|
6365 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
6366 | a750fc0b | j_mayer | /* Generic PowerPC 401 */
|
6367 | 80d11f44 | j_mayer | #define CPU_POWERPC_401 CPU_POWERPC_401G2
|
6368 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
6369 | 80d11f44 | j_mayer | CPU_POWERPC_401A1 = 0x00210000,
|
6370 | 80d11f44 | j_mayer | CPU_POWERPC_401B2 = 0x00220000,
|
6371 | a750fc0b | j_mayer | #if 0
|
6372 | 80d11f44 | j_mayer | CPU_POWERPC_401B3 = xxx,
|
6373 | a750fc0b | j_mayer | #endif
|
6374 | 80d11f44 | j_mayer | CPU_POWERPC_401C2 = 0x00230000,
|
6375 | 80d11f44 | j_mayer | CPU_POWERPC_401D2 = 0x00240000,
|
6376 | 80d11f44 | j_mayer | CPU_POWERPC_401E2 = 0x00250000,
|
6377 | 80d11f44 | j_mayer | CPU_POWERPC_401F2 = 0x00260000,
|
6378 | 80d11f44 | j_mayer | CPU_POWERPC_401G2 = 0x00270000,
|
6379 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
6380 | a750fc0b | j_mayer | #if 0
|
6381 | 80d11f44 | j_mayer | CPU_POWERPC_401GF = xxx,
|
6382 | a750fc0b | j_mayer | #endif
|
6383 | 80d11f44 | j_mayer | #define CPU_POWERPC_IOP480 CPU_POWERPC_401B2
|
6384 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
6385 | 80d11f44 | j_mayer | CPU_POWERPC_COBRA = 0x10100000, /* XXX: 405 ? */ |
6386 | a750fc0b | j_mayer | #if 0
|
6387 | 80d11f44 | j_mayer | CPU_POWERPC_XIPCHIP = xxx,
|
6388 | a750fc0b | j_mayer | #endif
|
6389 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
6390 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
6391 | 80d11f44 | j_mayer | #define CPU_POWERPC_403 CPU_POWERPC_403GC
|
6392 | a750fc0b | j_mayer | /* PowerPC 403 microcontrollers */
|
6393 | 80d11f44 | j_mayer | CPU_POWERPC_403GA = 0x00200011,
|
6394 | 80d11f44 | j_mayer | CPU_POWERPC_403GB = 0x00200100,
|
6395 | 80d11f44 | j_mayer | CPU_POWERPC_403GC = 0x00200200,
|
6396 | 80d11f44 | j_mayer | CPU_POWERPC_403GCX = 0x00201400,
|
6397 | a750fc0b | j_mayer | #if 0
|
6398 | 80d11f44 | j_mayer | CPU_POWERPC_403GP = xxx,
|
6399 | a750fc0b | j_mayer | #endif
|
6400 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
6401 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
6402 | 80d11f44 | j_mayer | #define CPU_POWERPC_405 CPU_POWERPC_405D4
|
6403 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
6404 | a750fc0b | j_mayer | #if 0
|
6405 | 80d11f44 | j_mayer | CPU_POWERPC_405A3 = xxx,
|
6406 | a750fc0b | j_mayer | #endif
|
6407 | a750fc0b | j_mayer | #if 0
|
6408 | 80d11f44 | j_mayer | CPU_POWERPC_405A4 = xxx,
|
6409 | a750fc0b | j_mayer | #endif
|
6410 | a750fc0b | j_mayer | #if 0
|
6411 | 80d11f44 | j_mayer | CPU_POWERPC_405B3 = xxx,
|
6412 | a750fc0b | j_mayer | #endif
|
6413 | a750fc0b | j_mayer | #if 0
|
6414 | 80d11f44 | j_mayer | CPU_POWERPC_405B4 = xxx,
|
6415 | a750fc0b | j_mayer | #endif
|
6416 | a750fc0b | j_mayer | #if 0
|
6417 | 80d11f44 | j_mayer | CPU_POWERPC_405C3 = xxx,
|
6418 | a750fc0b | j_mayer | #endif
|
6419 | a750fc0b | j_mayer | #if 0
|
6420 | 80d11f44 | j_mayer | CPU_POWERPC_405C4 = xxx,
|
6421 | a750fc0b | j_mayer | #endif
|
6422 | 80d11f44 | j_mayer | CPU_POWERPC_405D2 = 0x20010000,
|
6423 | a750fc0b | j_mayer | #if 0
|
6424 | 80d11f44 | j_mayer | CPU_POWERPC_405D3 = xxx,
|
6425 | a750fc0b | j_mayer | #endif
|
6426 | 80d11f44 | j_mayer | CPU_POWERPC_405D4 = 0x41810000,
|
6427 | a750fc0b | j_mayer | #if 0
|
6428 | 80d11f44 | j_mayer | CPU_POWERPC_405D5 = xxx,
|
6429 | a750fc0b | j_mayer | #endif
|
6430 | a750fc0b | j_mayer | #if 0
|
6431 | 80d11f44 | j_mayer | CPU_POWERPC_405E4 = xxx,
|
6432 | a750fc0b | j_mayer | #endif
|
6433 | a750fc0b | j_mayer | #if 0
|
6434 | 80d11f44 | j_mayer | CPU_POWERPC_405F4 = xxx,
|
6435 | a750fc0b | j_mayer | #endif
|
6436 | a750fc0b | j_mayer | #if 0
|
6437 | 80d11f44 | j_mayer | CPU_POWERPC_405F5 = xxx,
|
6438 | a750fc0b | j_mayer | #endif
|
6439 | a750fc0b | j_mayer | #if 0
|
6440 | 80d11f44 | j_mayer | CPU_POWERPC_405F6 = xxx,
|
6441 | a750fc0b | j_mayer | #endif
|
6442 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
6443 | a750fc0b | j_mayer | /* XXX: missing 0x200108a0 */
|
6444 | 80d11f44 | j_mayer | #define CPU_POWERPC_405CR CPU_POWERPC_405CRc
|
6445 | 80d11f44 | j_mayer | CPU_POWERPC_405CRa = 0x40110041,
|
6446 | 80d11f44 | j_mayer | CPU_POWERPC_405CRb = 0x401100C5,
|
6447 | 80d11f44 | j_mayer | CPU_POWERPC_405CRc = 0x40110145,
|
6448 | 80d11f44 | j_mayer | CPU_POWERPC_405EP = 0x51210950,
|
6449 | a750fc0b | j_mayer | #if 0
|
6450 | 80d11f44 | j_mayer | CPU_POWERPC_405EXr = xxx,
|
6451 | a750fc0b | j_mayer | #endif
|
6452 | 80d11f44 | j_mayer | CPU_POWERPC_405EZ = 0x41511460, /* 0x51210950 ? */ |
6453 | a750fc0b | j_mayer | #if 0
|
6454 | 80d11f44 | j_mayer | CPU_POWERPC_405FX = xxx,
|
6455 | 80d11f44 | j_mayer | #endif
|
6456 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GP CPU_POWERPC_405GPd
|
6457 | 80d11f44 | j_mayer | CPU_POWERPC_405GPa = 0x40110000,
|
6458 | 80d11f44 | j_mayer | CPU_POWERPC_405GPb = 0x40110040,
|
6459 | 80d11f44 | j_mayer | CPU_POWERPC_405GPc = 0x40110082,
|
6460 | 80d11f44 | j_mayer | CPU_POWERPC_405GPd = 0x401100C4,
|
6461 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GPe CPU_POWERPC_405CRc
|
6462 | 80d11f44 | j_mayer | CPU_POWERPC_405GPR = 0x50910951,
|
6463 | a750fc0b | j_mayer | #if 0
|
6464 | 80d11f44 | j_mayer | CPU_POWERPC_405H = xxx,
|
6465 | a750fc0b | j_mayer | #endif
|
6466 | a750fc0b | j_mayer | #if 0
|
6467 | 80d11f44 | j_mayer | CPU_POWERPC_405L = xxx,
|
6468 | a750fc0b | j_mayer | #endif
|
6469 | 80d11f44 | j_mayer | CPU_POWERPC_405LP = 0x41F10000,
|
6470 | a750fc0b | j_mayer | #if 0
|
6471 | 80d11f44 | j_mayer | CPU_POWERPC_405PM = xxx,
|
6472 | a750fc0b | j_mayer | #endif
|
6473 | a750fc0b | j_mayer | #if 0
|
6474 | 80d11f44 | j_mayer | CPU_POWERPC_405PS = xxx,
|
6475 | a750fc0b | j_mayer | #endif
|
6476 | a750fc0b | j_mayer | #if 0
|
6477 | 80d11f44 | j_mayer | CPU_POWERPC_405S = xxx,
|
6478 | a750fc0b | j_mayer | #endif
|
6479 | a750fc0b | j_mayer | /* IBM network processors */
|
6480 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H = 0x414100C0,
|
6481 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H2 = 0x41410140,
|
6482 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405L = 0x416100C0,
|
6483 | 80d11f44 | j_mayer | CPU_POWERPC_NPE4GS3 = 0x40B10000,
|
6484 | a750fc0b | j_mayer | #if 0
|
6485 | 80d11f44 | j_mayer | CPU_POWERPC_NPCxx1 = xxx,
|
6486 | a750fc0b | j_mayer | #endif
|
6487 | a750fc0b | j_mayer | #if 0
|
6488 | 80d11f44 | j_mayer | CPU_POWERPC_NPR161 = xxx,
|
6489 | a750fc0b | j_mayer | #endif
|
6490 | a750fc0b | j_mayer | #if 0
|
6491 | 80d11f44 | j_mayer | CPU_POWERPC_LC77700 = xxx,
|
6492 | a750fc0b | j_mayer | #endif
|
6493 | a750fc0b | j_mayer | /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
|
6494 | a750fc0b | j_mayer | #if 0
|
6495 | 80d11f44 | j_mayer | CPU_POWERPC_STB01000 = xxx,
|
6496 | a750fc0b | j_mayer | #endif
|
6497 | a750fc0b | j_mayer | #if 0
|
6498 | 80d11f44 | j_mayer | CPU_POWERPC_STB01010 = xxx,
|
6499 | a750fc0b | j_mayer | #endif
|
6500 | a750fc0b | j_mayer | #if 0
|
6501 | 80d11f44 | j_mayer | CPU_POWERPC_STB0210 = xxx, /* 401B3 */
|
6502 | a750fc0b | j_mayer | #endif
|
6503 | 80d11f44 | j_mayer | CPU_POWERPC_STB03 = 0x40310000, /* 0x40130000 ? */ |
6504 | a750fc0b | j_mayer | #if 0
|
6505 | 80d11f44 | j_mayer | CPU_POWERPC_STB043 = xxx,
|
6506 | a750fc0b | j_mayer | #endif
|
6507 | a750fc0b | j_mayer | #if 0
|
6508 | 80d11f44 | j_mayer | CPU_POWERPC_STB045 = xxx,
|
6509 | a750fc0b | j_mayer | #endif
|
6510 | 80d11f44 | j_mayer | CPU_POWERPC_STB04 = 0x41810000,
|
6511 | 80d11f44 | j_mayer | CPU_POWERPC_STB25 = 0x51510950,
|
6512 | a750fc0b | j_mayer | #if 0
|
6513 | 80d11f44 | j_mayer | CPU_POWERPC_STB130 = xxx,
|
6514 | a750fc0b | j_mayer | #endif
|
6515 | a750fc0b | j_mayer | /* Xilinx cores */
|
6516 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP4 = 0x20010820,
|
6517 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP7 CPU_POWERPC_X2VP4
|
6518 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP20 = 0x20010860,
|
6519 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP50 CPU_POWERPC_X2VP20
|
6520 | a750fc0b | j_mayer | #if 0
|
6521 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10310 = xxx,
|
6522 | a750fc0b | j_mayer | #endif
|
6523 | a750fc0b | j_mayer | #if 0
|
6524 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10311 = xxx,
|
6525 | a750fc0b | j_mayer | #endif
|
6526 | a750fc0b | j_mayer | #if 0
|
6527 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10320 = xxx,
|
6528 | a750fc0b | j_mayer | #endif
|
6529 | a750fc0b | j_mayer | #if 0
|
6530 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10321 = xxx,
|
6531 | a750fc0b | j_mayer | #endif
|
6532 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
6533 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
6534 | 80d11f44 | j_mayer | #define CPU_POWERPC_440 CPU_POWERPC_440GXf
|
6535 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
6536 | a750fc0b | j_mayer | #if 0
|
6537 | 80d11f44 | j_mayer | CPU_POWERPC_440A4 = xxx,
|
6538 | a750fc0b | j_mayer | #endif
|
6539 | a750fc0b | j_mayer | #if 0
|
6540 | 80d11f44 | j_mayer | CPU_POWERPC_440A5 = xxx,
|
6541 | a750fc0b | j_mayer | #endif
|
6542 | a750fc0b | j_mayer | #if 0
|
6543 | 80d11f44 | j_mayer | CPU_POWERPC_440B4 = xxx,
|
6544 | a750fc0b | j_mayer | #endif
|
6545 | a750fc0b | j_mayer | #if 0
|
6546 | 80d11f44 | j_mayer | CPU_POWERPC_440F5 = xxx,
|
6547 | a750fc0b | j_mayer | #endif
|
6548 | a750fc0b | j_mayer | #if 0
|
6549 | 80d11f44 | j_mayer | CPU_POWERPC_440G5 = xxx,
|
6550 | a750fc0b | j_mayer | #endif
|
6551 | a750fc0b | j_mayer | #if 0
|
6552 | 80d11f44 | j_mayer | CPU_POWERPC_440H4 = xxx,
|
6553 | a750fc0b | j_mayer | #endif
|
6554 | a750fc0b | j_mayer | #if 0
|
6555 | 80d11f44 | j_mayer | CPU_POWERPC_440H6 = xxx,
|
6556 | a750fc0b | j_mayer | #endif
|
6557 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
6558 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EP CPU_POWERPC_440EPb
|
6559 | 80d11f44 | j_mayer | CPU_POWERPC_440EPa = 0x42221850,
|
6560 | 80d11f44 | j_mayer | CPU_POWERPC_440EPb = 0x422218D3,
|
6561 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GP CPU_POWERPC_440GPc
|
6562 | 80d11f44 | j_mayer | CPU_POWERPC_440GPb = 0x40120440,
|
6563 | 80d11f44 | j_mayer | CPU_POWERPC_440GPc = 0x40120481,
|
6564 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GR CPU_POWERPC_440GRa
|
6565 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GRa CPU_POWERPC_440EPb
|
6566 | 80d11f44 | j_mayer | CPU_POWERPC_440GRX = 0x200008D0,
|
6567 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EPX CPU_POWERPC_440GRX
|
6568 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GX CPU_POWERPC_440GXf
|
6569 | 80d11f44 | j_mayer | CPU_POWERPC_440GXa = 0x51B21850,
|
6570 | 80d11f44 | j_mayer | CPU_POWERPC_440GXb = 0x51B21851,
|
6571 | 80d11f44 | j_mayer | CPU_POWERPC_440GXc = 0x51B21892,
|
6572 | 80d11f44 | j_mayer | CPU_POWERPC_440GXf = 0x51B21894,
|
6573 | a750fc0b | j_mayer | #if 0
|
6574 | 80d11f44 | j_mayer | CPU_POWERPC_440S = xxx,
|
6575 | a750fc0b | j_mayer | #endif
|
6576 | 80d11f44 | j_mayer | CPU_POWERPC_440SP = 0x53221850,
|
6577 | 80d11f44 | j_mayer | CPU_POWERPC_440SP2 = 0x53221891,
|
6578 | 80d11f44 | j_mayer | CPU_POWERPC_440SPE = 0x53421890,
|
6579 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
6580 | a750fc0b | j_mayer | #if 0
|
6581 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
6582 | 80d11f44 | j_mayer | #define CPU_POWERPC_464 CPU_POWERPC_464H90
|
6583 | a750fc0b | j_mayer | #endif
|
6584 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
6585 | a750fc0b | j_mayer | #if 0
|
6586 | 80d11f44 | j_mayer | CPU_POWERPC_464H90 = xxx,
|
6587 | a750fc0b | j_mayer | #endif
|
6588 | a750fc0b | j_mayer | #if 0
|
6589 | 80d11f44 | j_mayer | CPU_POWERPC_464H90FP = xxx,
|
6590 | a750fc0b | j_mayer | #endif
|
6591 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
6592 | c3e36823 | j_mayer | /* PowerPC MPC 5xx cores (aka RCPU) */
|
6593 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5xx = 0x00020020,
|
6594 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT560 CPU_POWERPC_MPC5xx
|
6595 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC509 CPU_POWERPC_MPC5xx
|
6596 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC533 CPU_POWERPC_MPC5xx
|
6597 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC534 CPU_POWERPC_MPC5xx
|
6598 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC555 CPU_POWERPC_MPC5xx
|
6599 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC556 CPU_POWERPC_MPC5xx
|
6600 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC560 CPU_POWERPC_MPC5xx
|
6601 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC561 CPU_POWERPC_MPC5xx
|
6602 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC562 CPU_POWERPC_MPC5xx
|
6603 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC563 CPU_POWERPC_MPC5xx
|
6604 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC564 CPU_POWERPC_MPC5xx
|
6605 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC565 CPU_POWERPC_MPC5xx
|
6606 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC566 CPU_POWERPC_MPC5xx
|
6607 | c3e36823 | j_mayer | /* PowerPC MPC 8xx cores (aka PowerQUICC) */
|
6608 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8xx = 0x00500000,
|
6609 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT823 CPU_POWERPC_MPC8xx
|
6610 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC821 CPU_POWERPC_MPC8xx
|
6611 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC823 CPU_POWERPC_MPC8xx
|
6612 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC850 CPU_POWERPC_MPC8xx
|
6613 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC852T CPU_POWERPC_MPC8xx
|
6614 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC855T CPU_POWERPC_MPC8xx
|
6615 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC857 CPU_POWERPC_MPC8xx
|
6616 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC859 CPU_POWERPC_MPC8xx
|
6617 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC860 CPU_POWERPC_MPC8xx
|
6618 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC862 CPU_POWERPC_MPC8xx
|
6619 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC866 CPU_POWERPC_MPC8xx
|
6620 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC870 CPU_POWERPC_MPC8xx
|
6621 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC875 CPU_POWERPC_MPC8xx
|
6622 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC880 CPU_POWERPC_MPC8xx
|
6623 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC885 CPU_POWERPC_MPC8xx
|
6624 | c3e36823 | j_mayer | /* G2 cores (aka PowerQUICC-II) */
|
6625 | 80d11f44 | j_mayer | CPU_POWERPC_G2 = 0x00810011,
|
6626 | 80d11f44 | j_mayer | CPU_POWERPC_G2H4 = 0x80811010,
|
6627 | 80d11f44 | j_mayer | CPU_POWERPC_G2gp = 0x80821010,
|
6628 | 80d11f44 | j_mayer | CPU_POWERPC_G2ls = 0x90810010,
|
6629 | 80d11f44 | j_mayer | CPU_POWERPC_MPC603 = 0x00810100,
|
6630 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP3 = 0x00810101,
|
6631 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP4 = 0x80811014,
|
6632 | c3e36823 | j_mayer | /* G2_LE core (aka PowerQUICC-II) */
|
6633 | 80d11f44 | j_mayer | CPU_POWERPC_G2LE = 0x80820010,
|
6634 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp = 0x80822010,
|
6635 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEls = 0xA0822010,
|
6636 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp1 = 0x80822011,
|
6637 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp3 = 0x80822013,
|
6638 | 80d11f44 | j_mayer | /* MPC52xx microcontrollers */
|
6639 | c3e36823 | j_mayer | /* XXX: MPC 5121 ? */
|
6640 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC52xx CPU_POWERPC_MPC5200
|
6641 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200 CPU_POWERPC_MPC5200_v12
|
6642 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v10 CPU_POWERPC_G2LEgp1
|
6643 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v11 CPU_POWERPC_G2LEgp1
|
6644 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v12 CPU_POWERPC_G2LEgp1
|
6645 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B CPU_POWERPC_MPC5200B_v21
|
6646 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v20 CPU_POWERPC_G2LEgp1
|
6647 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v21 CPU_POWERPC_G2LEgp1
|
6648 | 80d11f44 | j_mayer | /* MPC82xx microcontrollers */
|
6649 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC82xx CPU_POWERPC_MPC8280
|
6650 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8240 CPU_POWERPC_MPC603
|
6651 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8241 CPU_POWERPC_G2_HIP4
|
6652 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8245 CPU_POWERPC_G2_HIP4
|
6653 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8247 CPU_POWERPC_G2LEgp3
|
6654 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8248 CPU_POWERPC_G2LEgp3
|
6655 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250 CPU_POWERPC_MPC8250_HiP4
|
6656 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP3 CPU_POWERPC_G2_HIP3
|
6657 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP4 CPU_POWERPC_G2_HIP4
|
6658 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255 CPU_POWERPC_MPC8255_HiP4
|
6659 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP3 CPU_POWERPC_G2_HIP3
|
6660 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP4 CPU_POWERPC_G2_HIP4
|
6661 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260 CPU_POWERPC_MPC8260_HiP4
|
6662 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP3 CPU_POWERPC_G2_HIP3
|
6663 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP4 CPU_POWERPC_G2_HIP4
|
6664 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264 CPU_POWERPC_MPC8264_HiP4
|
6665 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP3 CPU_POWERPC_G2_HIP3
|
6666 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP4 CPU_POWERPC_G2_HIP4
|
6667 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265 CPU_POWERPC_MPC8265_HiP4
|
6668 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP3 CPU_POWERPC_G2_HIP3
|
6669 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP4 CPU_POWERPC_G2_HIP4
|
6670 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266 CPU_POWERPC_MPC8266_HiP4
|
6671 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP3 CPU_POWERPC_G2_HIP3
|
6672 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP4 CPU_POWERPC_G2_HIP4
|
6673 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8270 CPU_POWERPC_G2LEgp3
|
6674 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8271 CPU_POWERPC_G2LEgp3
|
6675 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8272 CPU_POWERPC_G2LEgp3
|
6676 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8275 CPU_POWERPC_G2LEgp3
|
6677 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8280 CPU_POWERPC_G2LEgp3
|
6678 | a750fc0b | j_mayer | /* e200 family */
|
6679 | 80d11f44 | j_mayer | /* e200 cores */
|
6680 | 80d11f44 | j_mayer | #define CPU_POWERPC_e200 CPU_POWERPC_e200z6
|
6681 | a750fc0b | j_mayer | #if 0
|
6682 | 80d11f44 | j_mayer | CPU_POWERPC_e200z0 = xxx,
|
6683 | a750fc0b | j_mayer | #endif
|
6684 | a750fc0b | j_mayer | #if 0
|
6685 | 80d11f44 | j_mayer | CPU_POWERPC_e200z1 = xxx,
|
6686 | c3e36823 | j_mayer | #endif
|
6687 | c3e36823 | j_mayer | #if 0 /* ? */
|
6688 | 80d11f44 | j_mayer | CPU_POWERPC_e200z3 = 0x81120000,
|
6689 | 80d11f44 | j_mayer | #endif
|
6690 | 80d11f44 | j_mayer | CPU_POWERPC_e200z5 = 0x81000000,
|
6691 | 80d11f44 | j_mayer | CPU_POWERPC_e200z6 = 0x81120000,
|
6692 | 80d11f44 | j_mayer | /* MPC55xx microcontrollers */
|
6693 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC55xx CPU_POWERPC_MPC5567
|
6694 | 80d11f44 | j_mayer | #if 0
|
6695 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E CPU_POWERPC_MPC5514E_v1
|
6696 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v0 CPU_POWERPC_e200z0
|
6697 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v1 CPU_POWERPC_e200z1
|
6698 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G CPU_POWERPC_MPC5514G_v1
|
6699 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v0 CPU_POWERPC_e200z0
|
6700 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v1 CPU_POWERPC_e200z1
|
6701 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5515S CPU_POWERPC_e200z1
|
6702 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E CPU_POWERPC_MPC5516E_v1
|
6703 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v0 CPU_POWERPC_e200z0
|
6704 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v1 CPU_POWERPC_e200z1
|
6705 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G CPU_POWERPC_MPC5516G_v1
|
6706 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v0 CPU_POWERPC_e200z0
|
6707 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v1 CPU_POWERPC_e200z1
|
6708 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516S CPU_POWERPC_e200z1
|
6709 | 80d11f44 | j_mayer | #endif
|
6710 | 80d11f44 | j_mayer | #if 0
|
6711 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5533 CPU_POWERPC_e200z3
|
6712 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5534 CPU_POWERPC_e200z3
|
6713 | 80d11f44 | j_mayer | #endif
|
6714 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5553 CPU_POWERPC_e200z6
|
6715 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5554 CPU_POWERPC_e200z6
|
6716 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5561 CPU_POWERPC_e200z6
|
6717 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5565 CPU_POWERPC_e200z6
|
6718 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5566 CPU_POWERPC_e200z6
|
6719 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5567 CPU_POWERPC_e200z6
|
6720 | a750fc0b | j_mayer | /* e300 family */
|
6721 | 80d11f44 | j_mayer | /* e300 cores */
|
6722 | 80d11f44 | j_mayer | #define CPU_POWERPC_e300 CPU_POWERPC_e300c3
|
6723 | 80d11f44 | j_mayer | CPU_POWERPC_e300c1 = 0x00830010,
|
6724 | 80d11f44 | j_mayer | CPU_POWERPC_e300c2 = 0x00840010,
|
6725 | 80d11f44 | j_mayer | CPU_POWERPC_e300c3 = 0x00850010,
|
6726 | 80d11f44 | j_mayer | CPU_POWERPC_e300c4 = 0x00860010,
|
6727 | 80d11f44 | j_mayer | /* MPC83xx microcontrollers */
|
6728 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC831x CPU_POWERPC_e300c3
|
6729 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC832x CPU_POWERPC_e300c2
|
6730 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC834x CPU_POWERPC_e300c1
|
6731 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC835x CPU_POWERPC_e300c1
|
6732 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC836x CPU_POWERPC_e300c1
|
6733 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC837x CPU_POWERPC_e300c4
|
6734 | a750fc0b | j_mayer | /* e500 family */
|
6735 | 80d11f44 | j_mayer | /* e500 cores */
|
6736 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500 CPU_POWERPC_e500v2_v22
|
6737 | bd5ea513 | aurel32 | #define CPU_POWERPC_e500v1 CPU_POWERPC_e500v1_v20
|
6738 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500v2 CPU_POWERPC_e500v2_v22
|
6739 | bd5ea513 | aurel32 | CPU_POWERPC_e500v1_v10 = 0x80200010,
|
6740 | bd5ea513 | aurel32 | CPU_POWERPC_e500v1_v20 = 0x80200020,
|
6741 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v10 = 0x80210010,
|
6742 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v11 = 0x80210011,
|
6743 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v20 = 0x80210020,
|
6744 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v21 = 0x80210021,
|
6745 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v22 = 0x80210022,
|
6746 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v30 = 0x80210030,
|
6747 | 80d11f44 | j_mayer | /* MPC85xx microcontrollers */
|
6748 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533 CPU_POWERPC_MPC8533_v11
|
6749 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v10 CPU_POWERPC_e500v2_v21
|
6750 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v11 CPU_POWERPC_e500v2_v22
|
6751 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E CPU_POWERPC_MPC8533E_v11
|
6752 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v10 CPU_POWERPC_e500v2_v21
|
6753 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v11 CPU_POWERPC_e500v2_v22
|
6754 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540 CPU_POWERPC_MPC8540_v21
|
6755 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v10 CPU_POWERPC_e500v1_v10
|
6756 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v20 CPU_POWERPC_e500v1_v20
|
6757 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v21 CPU_POWERPC_e500v1_v20
|
6758 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541 CPU_POWERPC_MPC8541_v11
|
6759 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541_v10 CPU_POWERPC_e500v1_v20
|
6760 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541_v11 CPU_POWERPC_e500v1_v20
|
6761 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E CPU_POWERPC_MPC8541E_v11
|
6762 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541E_v10 CPU_POWERPC_e500v1_v20
|
6763 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541E_v11 CPU_POWERPC_e500v1_v20
|
6764 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543 CPU_POWERPC_MPC8543_v21
|
6765 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v10 CPU_POWERPC_e500v2_v10
|
6766 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v11 CPU_POWERPC_e500v2_v11
|
6767 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v20 CPU_POWERPC_e500v2_v20
|
6768 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v21 CPU_POWERPC_e500v2_v21
|
6769 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E CPU_POWERPC_MPC8543E_v21
|
6770 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v10 CPU_POWERPC_e500v2_v10
|
6771 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v11 CPU_POWERPC_e500v2_v11
|
6772 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v20 CPU_POWERPC_e500v2_v20
|
6773 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v21 CPU_POWERPC_e500v2_v21
|
6774 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544 CPU_POWERPC_MPC8544_v11
|
6775 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v10 CPU_POWERPC_e500v2_v21
|
6776 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v11 CPU_POWERPC_e500v2_v22
|
6777 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v11 CPU_POWERPC_e500v2_v22
|
6778 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E CPU_POWERPC_MPC8544E_v11
|
6779 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v10 CPU_POWERPC_e500v2_v21
|
6780 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545 CPU_POWERPC_MPC8545_v21
|
6781 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v10 CPU_POWERPC_e500v2_v10
|
6782 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v20 CPU_POWERPC_e500v2_v20
|
6783 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v21 CPU_POWERPC_e500v2_v21
|
6784 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E CPU_POWERPC_MPC8545E_v21
|
6785 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v10 CPU_POWERPC_e500v2_v10
|
6786 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v20 CPU_POWERPC_e500v2_v20
|
6787 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v21 CPU_POWERPC_e500v2_v21
|
6788 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E CPU_POWERPC_MPC8545E_v21
|
6789 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v10 CPU_POWERPC_e500v2_v10
|
6790 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v20 CPU_POWERPC_e500v2_v20
|
6791 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v21 CPU_POWERPC_e500v2_v21
|
6792 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548 CPU_POWERPC_MPC8548_v21
|
6793 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v10 CPU_POWERPC_e500v2_v10
|
6794 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v11 CPU_POWERPC_e500v2_v11
|
6795 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v20 CPU_POWERPC_e500v2_v20
|
6796 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v21 CPU_POWERPC_e500v2_v21
|
6797 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E CPU_POWERPC_MPC8548E_v21
|
6798 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v10 CPU_POWERPC_e500v2_v10
|
6799 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v11 CPU_POWERPC_e500v2_v11
|
6800 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v20 CPU_POWERPC_e500v2_v20
|
6801 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v21 CPU_POWERPC_e500v2_v21
|
6802 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555 CPU_POWERPC_MPC8555_v11
|
6803 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v10 CPU_POWERPC_e500v2_v10
|
6804 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v11 CPU_POWERPC_e500v2_v11
|
6805 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E CPU_POWERPC_MPC8555E_v11
|
6806 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v10 CPU_POWERPC_e500v2_v10
|
6807 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v11 CPU_POWERPC_e500v2_v11
|
6808 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560 CPU_POWERPC_MPC8560_v21
|
6809 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v10 CPU_POWERPC_e500v2_v10
|
6810 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v20 CPU_POWERPC_e500v2_v20
|
6811 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v21 CPU_POWERPC_e500v2_v21
|
6812 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567 CPU_POWERPC_e500v2_v22
|
6813 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567E CPU_POWERPC_e500v2_v22
|
6814 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568 CPU_POWERPC_e500v2_v22
|
6815 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568E CPU_POWERPC_e500v2_v22
|
6816 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572 CPU_POWERPC_e500v2_v30
|
6817 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572E CPU_POWERPC_e500v2_v30
|
6818 | a750fc0b | j_mayer | /* e600 family */
|
6819 | 80d11f44 | j_mayer | /* e600 cores */
|
6820 | 80d11f44 | j_mayer | CPU_POWERPC_e600 = 0x80040010,
|
6821 | 80d11f44 | j_mayer | /* MPC86xx microcontrollers */
|
6822 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8610 CPU_POWERPC_e600
|
6823 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641 CPU_POWERPC_e600
|
6824 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641D CPU_POWERPC_e600
|
6825 | a750fc0b | j_mayer | /* PowerPC 6xx cores */
|
6826 | 80d11f44 | j_mayer | #define CPU_POWERPC_601 CPU_POWERPC_601_v2
|
6827 | 80d11f44 | j_mayer | CPU_POWERPC_601_v0 = 0x00010001,
|
6828 | 80d11f44 | j_mayer | CPU_POWERPC_601_v1 = 0x00010001,
|
6829 | bd928eba | j_mayer | #define CPU_POWERPC_601v CPU_POWERPC_601_v2
|
6830 | 80d11f44 | j_mayer | CPU_POWERPC_601_v2 = 0x00010002,
|
6831 | 80d11f44 | j_mayer | CPU_POWERPC_602 = 0x00050100,
|
6832 | 80d11f44 | j_mayer | CPU_POWERPC_603 = 0x00030100,
|
6833 | 80d11f44 | j_mayer | #define CPU_POWERPC_603E CPU_POWERPC_603E_v41
|
6834 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v11 = 0x00060101,
|
6835 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v12 = 0x00060102,
|
6836 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v13 = 0x00060103,
|
6837 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v14 = 0x00060104,
|
6838 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v22 = 0x00060202,
|
6839 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v3 = 0x00060300,
|
6840 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v4 = 0x00060400,
|
6841 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v41 = 0x00060401,
|
6842 | 80d11f44 | j_mayer | CPU_POWERPC_603E7t = 0x00071201,
|
6843 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v = 0x00070100,
|
6844 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v1 = 0x00070101,
|
6845 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v2 = 0x00070201,
|
6846 | 80d11f44 | j_mayer | CPU_POWERPC_603E7 = 0x00070200,
|
6847 | 80d11f44 | j_mayer | CPU_POWERPC_603P = 0x00070000,
|
6848 | 80d11f44 | j_mayer | #define CPU_POWERPC_603R CPU_POWERPC_603E7t
|
6849 | c3e36823 | j_mayer | /* XXX: missing 0x00040303 (604) */
|
6850 | 80d11f44 | j_mayer | CPU_POWERPC_604 = 0x00040103,
|
6851 | 80d11f44 | j_mayer | #define CPU_POWERPC_604E CPU_POWERPC_604E_v24
|
6852 | c3e36823 | j_mayer | /* XXX: missing 0x00091203 */
|
6853 | c3e36823 | j_mayer | /* XXX: missing 0x00092110 */
|
6854 | c3e36823 | j_mayer | /* XXX: missing 0x00092120 */
|
6855 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v10 = 0x00090100,
|
6856 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v22 = 0x00090202,
|
6857 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v24 = 0x00090204,
|
6858 | c3e36823 | j_mayer | /* XXX: missing 0x000a0100 */
|
6859 | c3e36823 | j_mayer | /* XXX: missing 0x00093102 */
|
6860 | 80d11f44 | j_mayer | CPU_POWERPC_604R = 0x000a0101,
|
6861 | a750fc0b | j_mayer | #if 0
|
6862 | 80d11f44 | j_mayer | CPU_POWERPC_604EV = xxx, /* XXX: same as 604R ? */
|
6863 | a750fc0b | j_mayer | #endif
|
6864 | a750fc0b | j_mayer | /* PowerPC 740/750 cores (aka G3) */
|
6865 | a750fc0b | j_mayer | /* XXX: missing 0x00084202 */
|
6866 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x0 CPU_POWERPC_7x0_v31
|
6867 | bd928eba | j_mayer | CPU_POWERPC_7x0_v10 = 0x00080100,
|
6868 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v20 = 0x00080200,
|
6869 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v21 = 0x00080201,
|
6870 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v22 = 0x00080202,
|
6871 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v30 = 0x00080300,
|
6872 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v31 = 0x00080301,
|
6873 | 80d11f44 | j_mayer | CPU_POWERPC_740E = 0x00080100,
|
6874 | bd928eba | j_mayer | CPU_POWERPC_750E = 0x00080200,
|
6875 | 80d11f44 | j_mayer | CPU_POWERPC_7x0P = 0x10080000,
|
6876 | a750fc0b | j_mayer | /* XXX: missing 0x00087010 (CL ?) */
|
6877 | bd928eba | j_mayer | #define CPU_POWERPC_750CL CPU_POWERPC_750CL_v20
|
6878 | bd928eba | j_mayer | CPU_POWERPC_750CL_v10 = 0x00087200,
|
6879 | bd928eba | j_mayer | CPU_POWERPC_750CL_v20 = 0x00087210, /* aka rev E */ |
6880 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CX CPU_POWERPC_750CX_v22
|
6881 | bd928eba | j_mayer | CPU_POWERPC_750CX_v10 = 0x00082100,
|
6882 | bd928eba | j_mayer | CPU_POWERPC_750CX_v20 = 0x00082200,
|
6883 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v21 = 0x00082201,
|
6884 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v22 = 0x00082202,
|
6885 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CXE CPU_POWERPC_750CXE_v31b
|
6886 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v21 = 0x00082211,
|
6887 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v22 = 0x00082212,
|
6888 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v23 = 0x00082213,
|
6889 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24 = 0x00082214,
|
6890 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24b = 0x00083214,
|
6891 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v30 = 0x00082310,
|
6892 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v31 = 0x00082311,
|
6893 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v31b = 0x00083311,
|
6894 | 80d11f44 | j_mayer | CPU_POWERPC_750CXR = 0x00083410,
|
6895 | bd928eba | j_mayer | CPU_POWERPC_750FL = 0x70000203,
|
6896 | 80d11f44 | j_mayer | #define CPU_POWERPC_750FX CPU_POWERPC_750FX_v23
|
6897 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v10 = 0x70000100,
|
6898 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v20 = 0x70000200,
|
6899 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v21 = 0x70000201,
|
6900 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v22 = 0x70000202,
|
6901 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v23 = 0x70000203,
|
6902 | 80d11f44 | j_mayer | CPU_POWERPC_750GL = 0x70020102,
|
6903 | 80d11f44 | j_mayer | #define CPU_POWERPC_750GX CPU_POWERPC_750GX_v12
|
6904 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v10 = 0x70020100,
|
6905 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v11 = 0x70020101,
|
6906 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v12 = 0x70020102,
|
6907 | 80d11f44 | j_mayer | #define CPU_POWERPC_750L CPU_POWERPC_750L_v32 /* Aka LoneStar */ |
6908 | bd928eba | j_mayer | CPU_POWERPC_750L_v20 = 0x00088200,
|
6909 | bd928eba | j_mayer | CPU_POWERPC_750L_v21 = 0x00088201,
|
6910 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v22 = 0x00088202,
|
6911 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v30 = 0x00088300,
|
6912 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v32 = 0x00088302,
|
6913 | a750fc0b | j_mayer | /* PowerPC 745/755 cores */
|
6914 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x5 CPU_POWERPC_7x5_v28
|
6915 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v10 = 0x00083100,
|
6916 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v11 = 0x00083101,
|
6917 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v20 = 0x00083200,
|
6918 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v21 = 0x00083201,
|
6919 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v22 = 0x00083202, /* aka D */ |
6920 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v23 = 0x00083203, /* aka E */ |
6921 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v24 = 0x00083204,
|
6922 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v25 = 0x00083205,
|
6923 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v26 = 0x00083206,
|
6924 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v27 = 0x00083207,
|
6925 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v28 = 0x00083208,
|
6926 | a750fc0b | j_mayer | #if 0
|
6927 | 80d11f44 | j_mayer | CPU_POWERPC_7x5P = xxx,
|
6928 | a750fc0b | j_mayer | #endif
|
6929 | a750fc0b | j_mayer | /* PowerPC 74xx cores (aka G4) */
|
6930 | a750fc0b | j_mayer | /* XXX: missing 0x000C1101 */
|
6931 | 80d11f44 | j_mayer | #define CPU_POWERPC_7400 CPU_POWERPC_7400_v29
|
6932 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v10 = 0x000C0100,
|
6933 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v11 = 0x000C0101,
|
6934 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v20 = 0x000C0200,
|
6935 | 4e777442 | j_mayer | CPU_POWERPC_7400_v21 = 0x000C0201,
|
6936 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v22 = 0x000C0202,
|
6937 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v26 = 0x000C0206,
|
6938 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v27 = 0x000C0207,
|
6939 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v28 = 0x000C0208,
|
6940 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v29 = 0x000C0209,
|
6941 | 80d11f44 | j_mayer | #define CPU_POWERPC_7410 CPU_POWERPC_7410_v14
|
6942 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v10 = 0x800C1100,
|
6943 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v11 = 0x800C1101,
|
6944 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v12 = 0x800C1102, /* aka C */ |
6945 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v13 = 0x800C1103, /* aka D */ |
6946 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v14 = 0x800C1104, /* aka E */ |
6947 | 80d11f44 | j_mayer | #define CPU_POWERPC_7448 CPU_POWERPC_7448_v21
|
6948 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v10 = 0x80040100,
|
6949 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v11 = 0x80040101,
|
6950 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v20 = 0x80040200,
|
6951 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v21 = 0x80040201,
|
6952 | 80d11f44 | j_mayer | #define CPU_POWERPC_7450 CPU_POWERPC_7450_v21
|
6953 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v10 = 0x80000100,
|
6954 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v11 = 0x80000101,
|
6955 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v12 = 0x80000102,
|
6956 | 4e777442 | j_mayer | CPU_POWERPC_7450_v20 = 0x80000200, /* aka A, B, C, D: 2.04 */ |
6957 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v21 = 0x80000201, /* aka E */ |
6958 | 4e777442 | j_mayer | #define CPU_POWERPC_74x1 CPU_POWERPC_74x1_v23
|
6959 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v23 = 0x80000203, /* aka G: 2.3 */ |
6960 | 4e777442 | j_mayer | /* XXX: this entry might be a bug in some documentation */
|
6961 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v210 = 0x80000210, /* aka G: 2.3 ? */ |
6962 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x5 CPU_POWERPC_74x5_v32
|
6963 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v10 = 0x80010100,
|
6964 | c3e36823 | j_mayer | /* XXX: missing 0x80010200 */
|
6965 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v21 = 0x80010201, /* aka C: 2.1 */ |
6966 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v32 = 0x80010302,
|
6967 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v33 = 0x80010303, /* aka F: 3.3 */ |
6968 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v34 = 0x80010304, /* aka G: 3.4 */ |
6969 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x7 CPU_POWERPC_74x7_v12
|
6970 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v10 = 0x80020100, /* aka A: 1.0 */ |
6971 | 082c6681 | j_mayer | CPU_POWERPC_74x7_v11 = 0x80020101, /* aka B: 1.1 */ |
6972 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v12 = 0x80020102, /* aka C: 1.2 */ |
6973 | 082c6681 | j_mayer | #define CPU_POWERPC_74x7A CPU_POWERPC_74x7A_v12
|
6974 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v10 = 0x80030100, /* aka A: 1.0 */ |
6975 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v11 = 0x80030101, /* aka B: 1.1 */ |
6976 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v12 = 0x80030102, /* aka C: 1.2 */ |
6977 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
6978 | 00af685f | j_mayer | #if defined(TARGET_PPC64)
|
6979 | 80d11f44 | j_mayer | CPU_POWERPC_620 = 0x00140000,
|
6980 | 80d11f44 | j_mayer | CPU_POWERPC_630 = 0x00400000,
|
6981 | 80d11f44 | j_mayer | CPU_POWERPC_631 = 0x00410104,
|
6982 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4 = 0x00350000,
|
6983 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4P = 0x00380000,
|
6984 | c3e36823 | j_mayer | /* XXX: missing 0x003A0201 */
|
6985 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5 = 0x003A0203,
|
6986 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GR CPU_POWERPC_POWER5
|
6987 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5P = 0x003B0000,
|
6988 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GS CPU_POWERPC_POWER5P
|
6989 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6 = 0x003E0000,
|
6990 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6_5 = 0x0F000001, /* POWER6 in POWER5 mode */ |
6991 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6A = 0x0F000002,
|
6992 | 80d11f44 | j_mayer | CPU_POWERPC_970 = 0x00390202,
|
6993 | 80d11f44 | j_mayer | #define CPU_POWERPC_970FX CPU_POWERPC_970FX_v31
|
6994 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v10 = 0x00391100,
|
6995 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v20 = 0x003C0200,
|
6996 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v21 = 0x003C0201,
|
6997 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v30 = 0x003C0300,
|
6998 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v31 = 0x003C0301,
|
6999 | 80d11f44 | j_mayer | CPU_POWERPC_970GX = 0x00450000,
|
7000 | 80d11f44 | j_mayer | #define CPU_POWERPC_970MP CPU_POWERPC_970MP_v11
|
7001 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v10 = 0x00440100,
|
7002 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v11 = 0x00440101,
|
7003 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL CPU_POWERPC_CELL_v32
|
7004 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v10 = 0x00700100,
|
7005 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v20 = 0x00700400,
|
7006 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v30 = 0x00700500,
|
7007 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v31 = 0x00700501,
|
7008 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL_v32 CPU_POWERPC_CELL_v31
|
7009 | 80d11f44 | j_mayer | CPU_POWERPC_RS64 = 0x00330000,
|
7010 | 80d11f44 | j_mayer | CPU_POWERPC_RS64II = 0x00340000,
|
7011 | 80d11f44 | j_mayer | CPU_POWERPC_RS64III = 0x00360000,
|
7012 | 80d11f44 | j_mayer | CPU_POWERPC_RS64IV = 0x00370000,
|
7013 | 00af685f | j_mayer | #endif /* defined(TARGET_PPC64) */ |
7014 | a750fc0b | j_mayer | /* Original POWER */
|
7015 | a750fc0b | j_mayer | /* XXX: should be POWER (RIOS), RSC3308, RSC4608,
|
7016 | a750fc0b | j_mayer | * POWER2 (RIOS2) & RSC2 (P2SC) here
|
7017 | a750fc0b | j_mayer | */
|
7018 | a750fc0b | j_mayer | #if 0
|
7019 | 80d11f44 | j_mayer | CPU_POWER = xxx, /* 0x20000 ? 0x30000 for RSC ? */
|
7020 | a750fc0b | j_mayer | #endif
|
7021 | a750fc0b | j_mayer | #if 0
|
7022 | 80d11f44 | j_mayer | CPU_POWER2 = xxx, /* 0x40000 ? */
|
7023 | a750fc0b | j_mayer | #endif
|
7024 | a750fc0b | j_mayer | /* PA Semi core */
|
7025 | 80d11f44 | j_mayer | CPU_POWERPC_PA6T = 0x00900000,
|
7026 | a750fc0b | j_mayer | }; |
7027 | a750fc0b | j_mayer | |
7028 | a750fc0b | j_mayer | /* System version register (used on MPC 8xxx) */
|
7029 | a750fc0b | j_mayer | enum {
|
7030 | 80d11f44 | j_mayer | POWERPC_SVR_NONE = 0x00000000,
|
7031 | 80d11f44 | j_mayer | #define POWERPC_SVR_52xx POWERPC_SVR_5200
|
7032 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200 POWERPC_SVR_5200_v12
|
7033 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v10 = 0x80110010,
|
7034 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v11 = 0x80110011,
|
7035 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v12 = 0x80110012,
|
7036 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200B POWERPC_SVR_5200B_v21
|
7037 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v20 = 0x80110020,
|
7038 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v21 = 0x80110021,
|
7039 | 80d11f44 | j_mayer | #define POWERPC_SVR_55xx POWERPC_SVR_5567
|
7040 | c3e36823 | j_mayer | #if 0
|
7041 | 80d11f44 | j_mayer | POWERPC_SVR_5533 = xxx,
|
7042 | c3e36823 | j_mayer | #endif
|
7043 | c3e36823 | j_mayer | #if 0
|
7044 | 80d11f44 | j_mayer | POWERPC_SVR_5534 = xxx,
|
7045 | c3e36823 | j_mayer | #endif
|
7046 | c3e36823 | j_mayer | #if 0
|
7047 | 80d11f44 | j_mayer | POWERPC_SVR_5553 = xxx,
|
7048 | c3e36823 | j_mayer | #endif
|
7049 | c3e36823 | j_mayer | #if 0
|
7050 | 80d11f44 | j_mayer | POWERPC_SVR_5554 = xxx,
|
7051 | c3e36823 | j_mayer | #endif
|
7052 | c3e36823 | j_mayer | #if 0
|
7053 | 80d11f44 | j_mayer | POWERPC_SVR_5561 = xxx,
|
7054 | c3e36823 | j_mayer | #endif
|
7055 | c3e36823 | j_mayer | #if 0
|
7056 | 80d11f44 | j_mayer | POWERPC_SVR_5565 = xxx,
|
7057 | c3e36823 | j_mayer | #endif
|
7058 | c3e36823 | j_mayer | #if 0
|
7059 | 80d11f44 | j_mayer | POWERPC_SVR_5566 = xxx,
|
7060 | c3e36823 | j_mayer | #endif
|
7061 | c3e36823 | j_mayer | #if 0
|
7062 | 80d11f44 | j_mayer | POWERPC_SVR_5567 = xxx,
|
7063 | c3e36823 | j_mayer | #endif
|
7064 | c3e36823 | j_mayer | #if 0
|
7065 | 80d11f44 | j_mayer | POWERPC_SVR_8313 = xxx,
|
7066 | c3e36823 | j_mayer | #endif
|
7067 | c3e36823 | j_mayer | #if 0
|
7068 | 80d11f44 | j_mayer | POWERPC_SVR_8313E = xxx,
|
7069 | c3e36823 | j_mayer | #endif
|
7070 | c3e36823 | j_mayer | #if 0
|
7071 | 80d11f44 | j_mayer | POWERPC_SVR_8314 = xxx,
|
7072 | c3e36823 | j_mayer | #endif
|
7073 | c3e36823 | j_mayer | #if 0
|
7074 | 80d11f44 | j_mayer | POWERPC_SVR_8314E = xxx,
|
7075 | c3e36823 | j_mayer | #endif
|
7076 | c3e36823 | j_mayer | #if 0
|
7077 | 80d11f44 | j_mayer | POWERPC_SVR_8315 = xxx,
|
7078 | c3e36823 | j_mayer | #endif
|
7079 | c3e36823 | j_mayer | #if 0
|
7080 | 80d11f44 | j_mayer | POWERPC_SVR_8315E = xxx,
|
7081 | c3e36823 | j_mayer | #endif
|
7082 | c3e36823 | j_mayer | #if 0
|
7083 | 80d11f44 | j_mayer | POWERPC_SVR_8321 = xxx,
|
7084 | c3e36823 | j_mayer | #endif
|
7085 | c3e36823 | j_mayer | #if 0
|
7086 | 80d11f44 | j_mayer | POWERPC_SVR_8321E = xxx,
|
7087 | c3e36823 | j_mayer | #endif
|
7088 | c3e36823 | j_mayer | #if 0
|
7089 | 80d11f44 | j_mayer | POWERPC_SVR_8323 = xxx,
|
7090 | c3e36823 | j_mayer | #endif
|
7091 | c3e36823 | j_mayer | #if 0
|
7092 | 80d11f44 | j_mayer | POWERPC_SVR_8323E = xxx,
|
7093 | 80d11f44 | j_mayer | #endif
|
7094 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8343 = 0x80570010,
|
7095 | 80d11f44 | j_mayer | POWERPC_SVR_8343A = 0x80570030,
|
7096 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8343E = 0x80560010,
|
7097 | 80d11f44 | j_mayer | POWERPC_SVR_8343EA = 0x80560030,
|
7098 | 492d7bf5 | Thomas Monjalon | #define POWERPC_SVR_8347 POWERPC_SVR_8347T
|
7099 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8347P = 0x80550010, /* PBGA package */ |
7100 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8347T = 0x80530010, /* TBGA package */ |
7101 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347A POWERPC_SVR_8347AT
|
7102 | 80d11f44 | j_mayer | POWERPC_SVR_8347AP = 0x80550030, /* PBGA package */ |
7103 | 80d11f44 | j_mayer | POWERPC_SVR_8347AT = 0x80530030, /* TBGA package */ |
7104 | 492d7bf5 | Thomas Monjalon | #define POWERPC_SVR_8347E POWERPC_SVR_8347ET
|
7105 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8347EP = 0x80540010, /* PBGA package */ |
7106 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8347ET = 0x80520010, /* TBGA package */ |
7107 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347EA POWERPC_SVR_8347EAT
|
7108 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAP = 0x80540030, /* PBGA package */ |
7109 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAT = 0x80520030, /* TBGA package */ |
7110 | 80d11f44 | j_mayer | POWERPC_SVR_8349 = 0x80510010,
|
7111 | 80d11f44 | j_mayer | POWERPC_SVR_8349A = 0x80510030,
|
7112 | 80d11f44 | j_mayer | POWERPC_SVR_8349E = 0x80500010,
|
7113 | 80d11f44 | j_mayer | POWERPC_SVR_8349EA = 0x80500030,
|
7114 | c3e36823 | j_mayer | #if 0
|
7115 | 80d11f44 | j_mayer | POWERPC_SVR_8358E = xxx,
|
7116 | c3e36823 | j_mayer | #endif
|
7117 | c3e36823 | j_mayer | #if 0
|
7118 | 80d11f44 | j_mayer | POWERPC_SVR_8360E = xxx,
|
7119 | 80d11f44 | j_mayer | #endif
|
7120 | 80d11f44 | j_mayer | #define POWERPC_SVR_E500 0x40000000 |
7121 | 80d11f44 | j_mayer | POWERPC_SVR_8377 = 0x80C70010 | POWERPC_SVR_E500,
|
7122 | 80d11f44 | j_mayer | POWERPC_SVR_8377E = 0x80C60010 | POWERPC_SVR_E500,
|
7123 | 80d11f44 | j_mayer | POWERPC_SVR_8378 = 0x80C50010 | POWERPC_SVR_E500,
|
7124 | 80d11f44 | j_mayer | POWERPC_SVR_8378E = 0x80C40010 | POWERPC_SVR_E500,
|
7125 | 80d11f44 | j_mayer | POWERPC_SVR_8379 = 0x80C30010 | POWERPC_SVR_E500,
|
7126 | 80d11f44 | j_mayer | POWERPC_SVR_8379E = 0x80C00010 | POWERPC_SVR_E500,
|
7127 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533 POWERPC_SVR_8533_v11
|
7128 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v10 = 0x80340010 | POWERPC_SVR_E500,
|
7129 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v11 = 0x80340011 | POWERPC_SVR_E500,
|
7130 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533E POWERPC_SVR_8533E_v11
|
7131 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v10 = 0x803C0010 | POWERPC_SVR_E500,
|
7132 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v11 = 0x803C0011 | POWERPC_SVR_E500,
|
7133 | 80d11f44 | j_mayer | #define POWERPC_SVR_8540 POWERPC_SVR_8540_v21
|
7134 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v10 = 0x80300010 | POWERPC_SVR_E500,
|
7135 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v20 = 0x80300020 | POWERPC_SVR_E500,
|
7136 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v21 = 0x80300021 | POWERPC_SVR_E500,
|
7137 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541 POWERPC_SVR_8541_v11
|
7138 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v10 = 0x80720010 | POWERPC_SVR_E500,
|
7139 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v11 = 0x80720011 | POWERPC_SVR_E500,
|
7140 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541E POWERPC_SVR_8541E_v11
|
7141 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v10 = 0x807A0010 | POWERPC_SVR_E500,
|
7142 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v11 = 0x807A0011 | POWERPC_SVR_E500,
|
7143 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543 POWERPC_SVR_8543_v21
|
7144 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v10 = 0x80320010 | POWERPC_SVR_E500,
|
7145 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v11 = 0x80320011 | POWERPC_SVR_E500,
|
7146 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v20 = 0x80320020 | POWERPC_SVR_E500,
|
7147 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v21 = 0x80320021 | POWERPC_SVR_E500,
|
7148 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543E POWERPC_SVR_8543E_v21
|
7149 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v10 = 0x803A0010 | POWERPC_SVR_E500,
|
7150 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v11 = 0x803A0011 | POWERPC_SVR_E500,
|
7151 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v20 = 0x803A0020 | POWERPC_SVR_E500,
|
7152 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v21 = 0x803A0021 | POWERPC_SVR_E500,
|
7153 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544 POWERPC_SVR_8544_v11
|
7154 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v10 = 0x80340110 | POWERPC_SVR_E500,
|
7155 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v11 = 0x80340111 | POWERPC_SVR_E500,
|
7156 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544E POWERPC_SVR_8544E_v11
|
7157 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v10 = 0x803C0110 | POWERPC_SVR_E500,
|
7158 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v11 = 0x803C0111 | POWERPC_SVR_E500,
|
7159 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545 POWERPC_SVR_8545_v21
|
7160 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v20 = 0x80310220 | POWERPC_SVR_E500,
|
7161 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v21 = 0x80310221 | POWERPC_SVR_E500,
|
7162 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545E POWERPC_SVR_8545E_v21
|
7163 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v20 = 0x80390220 | POWERPC_SVR_E500,
|
7164 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v21 = 0x80390221 | POWERPC_SVR_E500,
|
7165 | 80d11f44 | j_mayer | #define POWERPC_SVR_8547E POWERPC_SVR_8547E_v21
|
7166 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v20 = 0x80390120 | POWERPC_SVR_E500,
|
7167 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v21 = 0x80390121 | POWERPC_SVR_E500,
|
7168 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548 POWERPC_SVR_8548_v21
|
7169 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v10 = 0x80310010 | POWERPC_SVR_E500,
|
7170 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v11 = 0x80310011 | POWERPC_SVR_E500,
|
7171 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v20 = 0x80310020 | POWERPC_SVR_E500,
|
7172 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v21 = 0x80310021 | POWERPC_SVR_E500,
|
7173 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548E POWERPC_SVR_8548E_v21
|
7174 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v10 = 0x80390010 | POWERPC_SVR_E500,
|
7175 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v11 = 0x80390011 | POWERPC_SVR_E500,
|
7176 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v20 = 0x80390020 | POWERPC_SVR_E500,
|
7177 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v21 = 0x80390021 | POWERPC_SVR_E500,
|
7178 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555 POWERPC_SVR_8555_v11
|
7179 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v10 = 0x80710010 | POWERPC_SVR_E500,
|
7180 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v11 = 0x80710011 | POWERPC_SVR_E500,
|
7181 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555E POWERPC_SVR_8555_v11
|
7182 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v10 = 0x80790010 | POWERPC_SVR_E500,
|
7183 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v11 = 0x80790011 | POWERPC_SVR_E500,
|
7184 | 80d11f44 | j_mayer | #define POWERPC_SVR_8560 POWERPC_SVR_8560_v21
|
7185 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v10 = 0x80700010 | POWERPC_SVR_E500,
|
7186 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v20 = 0x80700020 | POWERPC_SVR_E500,
|
7187 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v21 = 0x80700021 | POWERPC_SVR_E500,
|
7188 | 80d11f44 | j_mayer | POWERPC_SVR_8567 = 0x80750111 | POWERPC_SVR_E500,
|
7189 | 80d11f44 | j_mayer | POWERPC_SVR_8567E = 0x807D0111 | POWERPC_SVR_E500,
|
7190 | 80d11f44 | j_mayer | POWERPC_SVR_8568 = 0x80750011 | POWERPC_SVR_E500,
|
7191 | 80d11f44 | j_mayer | POWERPC_SVR_8568E = 0x807D0011 | POWERPC_SVR_E500,
|
7192 | 80d11f44 | j_mayer | POWERPC_SVR_8572 = 0x80E00010 | POWERPC_SVR_E500,
|
7193 | 80d11f44 | j_mayer | POWERPC_SVR_8572E = 0x80E80010 | POWERPC_SVR_E500,
|
7194 | c3e36823 | j_mayer | #if 0
|
7195 | 80d11f44 | j_mayer | POWERPC_SVR_8610 = xxx,
|
7196 | c3e36823 | j_mayer | #endif
|
7197 | 80d11f44 | j_mayer | POWERPC_SVR_8641 = 0x80900021,
|
7198 | 80d11f44 | j_mayer | POWERPC_SVR_8641D = 0x80900121,
|
7199 | a750fc0b | j_mayer | }; |
7200 | a750fc0b | j_mayer | |
7201 | 3fc6c082 | bellard | /*****************************************************************************/
|
7202 | a750fc0b | j_mayer | /* PowerPC CPU definitions */
|
7203 | 80d11f44 | j_mayer | #define POWERPC_DEF_SVR(_name, _pvr, _svr, _type) \
|
7204 | a750fc0b | j_mayer | { \ |
7205 | a750fc0b | j_mayer | .name = _name, \ |
7206 | a750fc0b | j_mayer | .pvr = _pvr, \ |
7207 | 80d11f44 | j_mayer | .svr = _svr, \ |
7208 | a750fc0b | j_mayer | .insns_flags = glue(POWERPC_INSNS_,_type), \ |
7209 | a750fc0b | j_mayer | .msr_mask = glue(POWERPC_MSRM_,_type), \ |
7210 | a750fc0b | j_mayer | .mmu_model = glue(POWERPC_MMU_,_type), \ |
7211 | a750fc0b | j_mayer | .excp_model = glue(POWERPC_EXCP_,_type), \ |
7212 | a750fc0b | j_mayer | .bus_model = glue(POWERPC_INPUT_,_type), \ |
7213 | 237c0af0 | j_mayer | .bfd_mach = glue(POWERPC_BFDM_,_type), \ |
7214 | d26bfc9a | j_mayer | .flags = glue(POWERPC_FLAG_,_type), \ |
7215 | a750fc0b | j_mayer | .init_proc = &glue(init_proc_,_type), \ |
7216 | 2f462816 | j_mayer | .check_pow = &glue(check_pow_,_type), \ |
7217 | a750fc0b | j_mayer | } |
7218 | 80d11f44 | j_mayer | #define POWERPC_DEF(_name, _pvr, _type) \
|
7219 | 80d11f44 | j_mayer | POWERPC_DEF_SVR(_name, _pvr, POWERPC_SVR_NONE, _type) |
7220 | a750fc0b | j_mayer | |
7221 | c227f099 | Anthony Liguori | static const ppc_def_t ppc_defs[] = { |
7222 | a750fc0b | j_mayer | /* Embedded PowerPC */
|
7223 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
7224 | 2662a059 | j_mayer | /* Generic PowerPC 401 */
|
7225 | 80d11f44 | j_mayer | POWERPC_DEF("401", CPU_POWERPC_401, 401), |
7226 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
7227 | 2662a059 | j_mayer | /* PowerPC 401A1 */
|
7228 | 80d11f44 | j_mayer | POWERPC_DEF("401A1", CPU_POWERPC_401A1, 401), |
7229 | a750fc0b | j_mayer | /* PowerPC 401B2 */
|
7230 | 80d11f44 | j_mayer | POWERPC_DEF("401B2", CPU_POWERPC_401B2, 401x2), |
7231 | 2662a059 | j_mayer | #if defined (TODO)
|
7232 | a750fc0b | j_mayer | /* PowerPC 401B3 */
|
7233 | 80d11f44 | j_mayer | POWERPC_DEF("401B3", CPU_POWERPC_401B3, 401x3), |
7234 | a750fc0b | j_mayer | #endif
|
7235 | a750fc0b | j_mayer | /* PowerPC 401C2 */
|
7236 | 80d11f44 | j_mayer | POWERPC_DEF("401C2", CPU_POWERPC_401C2, 401x2), |
7237 | a750fc0b | j_mayer | /* PowerPC 401D2 */
|
7238 | 80d11f44 | j_mayer | POWERPC_DEF("401D2", CPU_POWERPC_401D2, 401x2), |
7239 | a750fc0b | j_mayer | /* PowerPC 401E2 */
|
7240 | 80d11f44 | j_mayer | POWERPC_DEF("401E2", CPU_POWERPC_401E2, 401x2), |
7241 | a750fc0b | j_mayer | /* PowerPC 401F2 */
|
7242 | 80d11f44 | j_mayer | POWERPC_DEF("401F2", CPU_POWERPC_401F2, 401x2), |
7243 | a750fc0b | j_mayer | /* PowerPC 401G2 */
|
7244 | a750fc0b | j_mayer | /* XXX: to be checked */
|
7245 | 80d11f44 | j_mayer | POWERPC_DEF("401G2", CPU_POWERPC_401G2, 401x2), |
7246 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
7247 | 2662a059 | j_mayer | #if defined (TODO)
|
7248 | a750fc0b | j_mayer | /* PowerPC 401GF */
|
7249 | 80d11f44 | j_mayer | POWERPC_DEF("401GF", CPU_POWERPC_401GF, 401), |
7250 | 3fc6c082 | bellard | #endif
|
7251 | a750fc0b | j_mayer | /* IOP480 (401 microcontroler) */
|
7252 | 80d11f44 | j_mayer | POWERPC_DEF("IOP480", CPU_POWERPC_IOP480, IOP480),
|
7253 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
7254 | 80d11f44 | j_mayer | POWERPC_DEF("Cobra", CPU_POWERPC_COBRA, 401), |
7255 | 3fc6c082 | bellard | #if defined (TODO)
|
7256 | 80d11f44 | j_mayer | POWERPC_DEF("Xipchip", CPU_POWERPC_XIPCHIP, 401), |
7257 | 3fc6c082 | bellard | #endif
|
7258 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
7259 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
7260 | 80d11f44 | j_mayer | POWERPC_DEF("403", CPU_POWERPC_403, 403), |
7261 | a750fc0b | j_mayer | /* PowerPC 403 microcontrolers */
|
7262 | a750fc0b | j_mayer | /* PowerPC 403 GA */
|
7263 | 80d11f44 | j_mayer | POWERPC_DEF("403GA", CPU_POWERPC_403GA, 403), |
7264 | a750fc0b | j_mayer | /* PowerPC 403 GB */
|
7265 | 80d11f44 | j_mayer | POWERPC_DEF("403GB", CPU_POWERPC_403GB, 403), |
7266 | a750fc0b | j_mayer | /* PowerPC 403 GC */
|
7267 | 80d11f44 | j_mayer | POWERPC_DEF("403GC", CPU_POWERPC_403GC, 403), |
7268 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
7269 | 80d11f44 | j_mayer | POWERPC_DEF("403GCX", CPU_POWERPC_403GCX, 403GCX), |
7270 | 3fc6c082 | bellard | #if defined (TODO)
|
7271 | a750fc0b | j_mayer | /* PowerPC 403 GP */
|
7272 | 80d11f44 | j_mayer | POWERPC_DEF("403GP", CPU_POWERPC_403GP, 403), |
7273 | 3fc6c082 | bellard | #endif
|
7274 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
7275 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
7276 | 80d11f44 | j_mayer | POWERPC_DEF("405", CPU_POWERPC_405, 405), |
7277 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
7278 | 2662a059 | j_mayer | #if defined (TODO)
|
7279 | a750fc0b | j_mayer | /* PowerPC 405 A3 */
|
7280 | 80d11f44 | j_mayer | POWERPC_DEF("405A3", CPU_POWERPC_405A3, 405), |
7281 | 3a607854 | j_mayer | #endif
|
7282 | 3a607854 | j_mayer | #if defined (TODO)
|
7283 | a750fc0b | j_mayer | /* PowerPC 405 A4 */
|
7284 | 80d11f44 | j_mayer | POWERPC_DEF("405A4", CPU_POWERPC_405A4, 405), |
7285 | 3a607854 | j_mayer | #endif
|
7286 | 3a607854 | j_mayer | #if defined (TODO)
|
7287 | a750fc0b | j_mayer | /* PowerPC 405 B3 */
|
7288 | 80d11f44 | j_mayer | POWERPC_DEF("405B3", CPU_POWERPC_405B3, 405), |
7289 | 3fc6c082 | bellard | #endif
|
7290 | 3fc6c082 | bellard | #if defined (TODO)
|
7291 | a750fc0b | j_mayer | /* PowerPC 405 B4 */
|
7292 | 80d11f44 | j_mayer | POWERPC_DEF("405B4", CPU_POWERPC_405B4, 405), |
7293 | a750fc0b | j_mayer | #endif
|
7294 | a750fc0b | j_mayer | #if defined (TODO)
|
7295 | a750fc0b | j_mayer | /* PowerPC 405 C3 */
|
7296 | 80d11f44 | j_mayer | POWERPC_DEF("405C3", CPU_POWERPC_405C3, 405), |
7297 | a750fc0b | j_mayer | #endif
|
7298 | a750fc0b | j_mayer | #if defined (TODO)
|
7299 | a750fc0b | j_mayer | /* PowerPC 405 C4 */
|
7300 | 80d11f44 | j_mayer | POWERPC_DEF("405C4", CPU_POWERPC_405C4, 405), |
7301 | a750fc0b | j_mayer | #endif
|
7302 | a750fc0b | j_mayer | /* PowerPC 405 D2 */
|
7303 | 80d11f44 | j_mayer | POWERPC_DEF("405D2", CPU_POWERPC_405D2, 405), |
7304 | a750fc0b | j_mayer | #if defined (TODO)
|
7305 | a750fc0b | j_mayer | /* PowerPC 405 D3 */
|
7306 | 80d11f44 | j_mayer | POWERPC_DEF("405D3", CPU_POWERPC_405D3, 405), |
7307 | a750fc0b | j_mayer | #endif
|
7308 | a750fc0b | j_mayer | /* PowerPC 405 D4 */
|
7309 | 80d11f44 | j_mayer | POWERPC_DEF("405D4", CPU_POWERPC_405D4, 405), |
7310 | a750fc0b | j_mayer | #if defined (TODO)
|
7311 | a750fc0b | j_mayer | /* PowerPC 405 D5 */
|
7312 | 80d11f44 | j_mayer | POWERPC_DEF("405D5", CPU_POWERPC_405D5, 405), |
7313 | a750fc0b | j_mayer | #endif
|
7314 | a750fc0b | j_mayer | #if defined (TODO)
|
7315 | a750fc0b | j_mayer | /* PowerPC 405 E4 */
|
7316 | 80d11f44 | j_mayer | POWERPC_DEF("405E4", CPU_POWERPC_405E4, 405), |
7317 | a750fc0b | j_mayer | #endif
|
7318 | a750fc0b | j_mayer | #if defined (TODO)
|
7319 | a750fc0b | j_mayer | /* PowerPC 405 F4 */
|
7320 | 80d11f44 | j_mayer | POWERPC_DEF("405F4", CPU_POWERPC_405F4, 405), |
7321 | a750fc0b | j_mayer | #endif
|
7322 | a750fc0b | j_mayer | #if defined (TODO)
|
7323 | a750fc0b | j_mayer | /* PowerPC 405 F5 */
|
7324 | 80d11f44 | j_mayer | POWERPC_DEF("405F5", CPU_POWERPC_405F5, 405), |
7325 | a750fc0b | j_mayer | #endif
|
7326 | a750fc0b | j_mayer | #if defined (TODO)
|
7327 | a750fc0b | j_mayer | /* PowerPC 405 F6 */
|
7328 | 80d11f44 | j_mayer | POWERPC_DEF("405F6", CPU_POWERPC_405F6, 405), |
7329 | a750fc0b | j_mayer | #endif
|
7330 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
7331 | a750fc0b | j_mayer | /* PowerPC 405 CR */
|
7332 | 80d11f44 | j_mayer | POWERPC_DEF("405CR", CPU_POWERPC_405CR, 405), |
7333 | a750fc0b | j_mayer | /* PowerPC 405 CRa */
|
7334 | 80d11f44 | j_mayer | POWERPC_DEF("405CRa", CPU_POWERPC_405CRa, 405), |
7335 | a750fc0b | j_mayer | /* PowerPC 405 CRb */
|
7336 | 80d11f44 | j_mayer | POWERPC_DEF("405CRb", CPU_POWERPC_405CRb, 405), |
7337 | a750fc0b | j_mayer | /* PowerPC 405 CRc */
|
7338 | 80d11f44 | j_mayer | POWERPC_DEF("405CRc", CPU_POWERPC_405CRc, 405), |
7339 | a750fc0b | j_mayer | /* PowerPC 405 EP */
|
7340 | 80d11f44 | j_mayer | POWERPC_DEF("405EP", CPU_POWERPC_405EP, 405), |
7341 | a750fc0b | j_mayer | #if defined(TODO)
|
7342 | a750fc0b | j_mayer | /* PowerPC 405 EXr */
|
7343 | 80d11f44 | j_mayer | POWERPC_DEF("405EXr", CPU_POWERPC_405EXr, 405), |
7344 | a750fc0b | j_mayer | #endif
|
7345 | a750fc0b | j_mayer | /* PowerPC 405 EZ */
|
7346 | 80d11f44 | j_mayer | POWERPC_DEF("405EZ", CPU_POWERPC_405EZ, 405), |
7347 | a750fc0b | j_mayer | #if defined(TODO)
|
7348 | a750fc0b | j_mayer | /* PowerPC 405 FX */
|
7349 | 80d11f44 | j_mayer | POWERPC_DEF("405FX", CPU_POWERPC_405FX, 405), |
7350 | a750fc0b | j_mayer | #endif
|
7351 | a750fc0b | j_mayer | /* PowerPC 405 GP */
|
7352 | 80d11f44 | j_mayer | POWERPC_DEF("405GP", CPU_POWERPC_405GP, 405), |
7353 | a750fc0b | j_mayer | /* PowerPC 405 GPa */
|
7354 | 80d11f44 | j_mayer | POWERPC_DEF("405GPa", CPU_POWERPC_405GPa, 405), |
7355 | a750fc0b | j_mayer | /* PowerPC 405 GPb */
|
7356 | 80d11f44 | j_mayer | POWERPC_DEF("405GPb", CPU_POWERPC_405GPb, 405), |
7357 | a750fc0b | j_mayer | /* PowerPC 405 GPc */
|
7358 | 80d11f44 | j_mayer | POWERPC_DEF("405GPc", CPU_POWERPC_405GPc, 405), |
7359 | a750fc0b | j_mayer | /* PowerPC 405 GPd */
|
7360 | 80d11f44 | j_mayer | POWERPC_DEF("405GPd", CPU_POWERPC_405GPd, 405), |
7361 | a750fc0b | j_mayer | /* PowerPC 405 GPe */
|
7362 | 80d11f44 | j_mayer | POWERPC_DEF("405GPe", CPU_POWERPC_405GPe, 405), |
7363 | a750fc0b | j_mayer | /* PowerPC 405 GPR */
|
7364 | 80d11f44 | j_mayer | POWERPC_DEF("405GPR", CPU_POWERPC_405GPR, 405), |
7365 | a750fc0b | j_mayer | #if defined(TODO)
|
7366 | a750fc0b | j_mayer | /* PowerPC 405 H */
|
7367 | 80d11f44 | j_mayer | POWERPC_DEF("405H", CPU_POWERPC_405H, 405), |
7368 | a750fc0b | j_mayer | #endif
|
7369 | a750fc0b | j_mayer | #if defined(TODO)
|
7370 | a750fc0b | j_mayer | /* PowerPC 405 L */
|
7371 | 80d11f44 | j_mayer | POWERPC_DEF("405L", CPU_POWERPC_405L, 405), |
7372 | a750fc0b | j_mayer | #endif
|
7373 | a750fc0b | j_mayer | /* PowerPC 405 LP */
|
7374 | 80d11f44 | j_mayer | POWERPC_DEF("405LP", CPU_POWERPC_405LP, 405), |
7375 | a750fc0b | j_mayer | #if defined(TODO)
|
7376 | a750fc0b | j_mayer | /* PowerPC 405 PM */
|
7377 | 80d11f44 | j_mayer | POWERPC_DEF("405PM", CPU_POWERPC_405PM, 405), |
7378 | a750fc0b | j_mayer | #endif
|
7379 | a750fc0b | j_mayer | #if defined(TODO)
|
7380 | a750fc0b | j_mayer | /* PowerPC 405 PS */
|
7381 | 80d11f44 | j_mayer | POWERPC_DEF("405PS", CPU_POWERPC_405PS, 405), |
7382 | a750fc0b | j_mayer | #endif
|
7383 | a750fc0b | j_mayer | #if defined(TODO)
|
7384 | a750fc0b | j_mayer | /* PowerPC 405 S */
|
7385 | 80d11f44 | j_mayer | POWERPC_DEF("405S", CPU_POWERPC_405S, 405), |
7386 | a750fc0b | j_mayer | #endif
|
7387 | a750fc0b | j_mayer | /* Npe405 H */
|
7388 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H", CPU_POWERPC_NPE405H, 405), |
7389 | a750fc0b | j_mayer | /* Npe405 H2 */
|
7390 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H2", CPU_POWERPC_NPE405H2, 405), |
7391 | a750fc0b | j_mayer | /* Npe405 L */
|
7392 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405L", CPU_POWERPC_NPE405L, 405), |
7393 | a750fc0b | j_mayer | /* Npe4GS3 */
|
7394 | 80d11f44 | j_mayer | POWERPC_DEF("Npe4GS3", CPU_POWERPC_NPE4GS3, 405), |
7395 | a750fc0b | j_mayer | #if defined (TODO)
|
7396 | 80d11f44 | j_mayer | POWERPC_DEF("Npcxx1", CPU_POWERPC_NPCxx1, 405), |
7397 | a750fc0b | j_mayer | #endif
|
7398 | a750fc0b | j_mayer | #if defined (TODO)
|
7399 | 80d11f44 | j_mayer | POWERPC_DEF("Npr161", CPU_POWERPC_NPR161, 405), |
7400 | a750fc0b | j_mayer | #endif
|
7401 | a750fc0b | j_mayer | #if defined (TODO)
|
7402 | a750fc0b | j_mayer | /* PowerPC LC77700 (Sanyo) */
|
7403 | 80d11f44 | j_mayer | POWERPC_DEF("LC77700", CPU_POWERPC_LC77700, 405), |
7404 | a750fc0b | j_mayer | #endif
|
7405 | a750fc0b | j_mayer | /* PowerPC 401/403/405 based set-top-box microcontrolers */
|
7406 | a750fc0b | j_mayer | #if defined (TODO)
|
7407 | a750fc0b | j_mayer | /* STB010000 */
|
7408 | 80d11f44 | j_mayer | POWERPC_DEF("STB01000", CPU_POWERPC_STB01000, 401x2), |
7409 | a750fc0b | j_mayer | #endif
|
7410 | a750fc0b | j_mayer | #if defined (TODO)
|
7411 | a750fc0b | j_mayer | /* STB01010 */
|
7412 | 80d11f44 | j_mayer | POWERPC_DEF("STB01010", CPU_POWERPC_STB01010, 401x2), |
7413 | a750fc0b | j_mayer | #endif
|
7414 | a750fc0b | j_mayer | #if defined (TODO)
|
7415 | a750fc0b | j_mayer | /* STB0210 */
|
7416 | 80d11f44 | j_mayer | POWERPC_DEF("STB0210", CPU_POWERPC_STB0210, 401x3), |
7417 | a750fc0b | j_mayer | #endif
|
7418 | a750fc0b | j_mayer | /* STB03xx */
|
7419 | 80d11f44 | j_mayer | POWERPC_DEF("STB03", CPU_POWERPC_STB03, 405), |
7420 | a750fc0b | j_mayer | #if defined (TODO)
|
7421 | a750fc0b | j_mayer | /* STB043x */
|
7422 | 80d11f44 | j_mayer | POWERPC_DEF("STB043", CPU_POWERPC_STB043, 405), |
7423 | a750fc0b | j_mayer | #endif
|
7424 | a750fc0b | j_mayer | #if defined (TODO)
|
7425 | a750fc0b | j_mayer | /* STB045x */
|
7426 | 80d11f44 | j_mayer | POWERPC_DEF("STB045", CPU_POWERPC_STB045, 405), |
7427 | a750fc0b | j_mayer | #endif
|
7428 | a750fc0b | j_mayer | /* STB04xx */
|
7429 | 80d11f44 | j_mayer | POWERPC_DEF("STB04", CPU_POWERPC_STB04, 405), |
7430 | a750fc0b | j_mayer | /* STB25xx */
|
7431 | 80d11f44 | j_mayer | POWERPC_DEF("STB25", CPU_POWERPC_STB25, 405), |
7432 | a750fc0b | j_mayer | #if defined (TODO)
|
7433 | a750fc0b | j_mayer | /* STB130 */
|
7434 | 80d11f44 | j_mayer | POWERPC_DEF("STB130", CPU_POWERPC_STB130, 405), |
7435 | a750fc0b | j_mayer | #endif
|
7436 | a750fc0b | j_mayer | /* Xilinx PowerPC 405 cores */
|
7437 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp4", CPU_POWERPC_X2VP4, 405), |
7438 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp7", CPU_POWERPC_X2VP7, 405), |
7439 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp20", CPU_POWERPC_X2VP20, 405), |
7440 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp50", CPU_POWERPC_X2VP50, 405), |
7441 | a750fc0b | j_mayer | #if defined (TODO)
|
7442 | a750fc0b | j_mayer | /* Zarlink ZL10310 */
|
7443 | 80d11f44 | j_mayer | POWERPC_DEF("zl10310", CPU_POWERPC_ZL10310, 405), |
7444 | a750fc0b | j_mayer | #endif
|
7445 | a750fc0b | j_mayer | #if defined (TODO)
|
7446 | a750fc0b | j_mayer | /* Zarlink ZL10311 */
|
7447 | 80d11f44 | j_mayer | POWERPC_DEF("zl10311", CPU_POWERPC_ZL10311, 405), |
7448 | a750fc0b | j_mayer | #endif
|
7449 | a750fc0b | j_mayer | #if defined (TODO)
|
7450 | a750fc0b | j_mayer | /* Zarlink ZL10320 */
|
7451 | 80d11f44 | j_mayer | POWERPC_DEF("zl10320", CPU_POWERPC_ZL10320, 405), |
7452 | a750fc0b | j_mayer | #endif
|
7453 | a750fc0b | j_mayer | #if defined (TODO)
|
7454 | a750fc0b | j_mayer | /* Zarlink ZL10321 */
|
7455 | 80d11f44 | j_mayer | POWERPC_DEF("zl10321", CPU_POWERPC_ZL10321, 405), |
7456 | a750fc0b | j_mayer | #endif
|
7457 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
7458 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7459 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
7460 | 80d11f44 | j_mayer | POWERPC_DEF("440", CPU_POWERPC_440, 440GP), |
7461 | 80d11f44 | j_mayer | #endif
|
7462 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
7463 | a750fc0b | j_mayer | #if defined (TODO)
|
7464 | a750fc0b | j_mayer | /* PowerPC 440 A4 */
|
7465 | 80d11f44 | j_mayer | POWERPC_DEF("440A4", CPU_POWERPC_440A4, 440x4), |
7466 | a750fc0b | j_mayer | #endif
|
7467 | a750fc0b | j_mayer | #if defined (TODO)
|
7468 | a750fc0b | j_mayer | /* PowerPC 440 A5 */
|
7469 | 80d11f44 | j_mayer | POWERPC_DEF("440A5", CPU_POWERPC_440A5, 440x5), |
7470 | a750fc0b | j_mayer | #endif
|
7471 | a750fc0b | j_mayer | #if defined (TODO)
|
7472 | a750fc0b | j_mayer | /* PowerPC 440 B4 */
|
7473 | 80d11f44 | j_mayer | POWERPC_DEF("440B4", CPU_POWERPC_440B4, 440x4), |
7474 | a750fc0b | j_mayer | #endif
|
7475 | a750fc0b | j_mayer | #if defined (TODO)
|
7476 | a750fc0b | j_mayer | /* PowerPC 440 G4 */
|
7477 | 80d11f44 | j_mayer | POWERPC_DEF("440G4", CPU_POWERPC_440G4, 440x4), |
7478 | a750fc0b | j_mayer | #endif
|
7479 | a750fc0b | j_mayer | #if defined (TODO)
|
7480 | a750fc0b | j_mayer | /* PowerPC 440 F5 */
|
7481 | 80d11f44 | j_mayer | POWERPC_DEF("440F5", CPU_POWERPC_440F5, 440x5), |
7482 | a750fc0b | j_mayer | #endif
|
7483 | a750fc0b | j_mayer | #if defined (TODO)
|
7484 | a750fc0b | j_mayer | /* PowerPC 440 G5 */
|
7485 | 80d11f44 | j_mayer | POWERPC_DEF("440G5", CPU_POWERPC_440G5, 440x5), |
7486 | a750fc0b | j_mayer | #endif
|
7487 | a750fc0b | j_mayer | #if defined (TODO)
|
7488 | a750fc0b | j_mayer | /* PowerPC 440H4 */
|
7489 | 80d11f44 | j_mayer | POWERPC_DEF("440H4", CPU_POWERPC_440H4, 440x4), |
7490 | a750fc0b | j_mayer | #endif
|
7491 | a750fc0b | j_mayer | #if defined (TODO)
|
7492 | a750fc0b | j_mayer | /* PowerPC 440H6 */
|
7493 | 80d11f44 | j_mayer | POWERPC_DEF("440H6", CPU_POWERPC_440H6, 440Gx5), |
7494 | a750fc0b | j_mayer | #endif
|
7495 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
7496 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7497 | a750fc0b | j_mayer | /* PowerPC 440 EP */
|
7498 | 80d11f44 | j_mayer | POWERPC_DEF("440EP", CPU_POWERPC_440EP, 440EP), |
7499 | 80d11f44 | j_mayer | #endif
|
7500 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7501 | a750fc0b | j_mayer | /* PowerPC 440 EPa */
|
7502 | 80d11f44 | j_mayer | POWERPC_DEF("440EPa", CPU_POWERPC_440EPa, 440EP), |
7503 | 80d11f44 | j_mayer | #endif
|
7504 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7505 | a750fc0b | j_mayer | /* PowerPC 440 EPb */
|
7506 | 80d11f44 | j_mayer | POWERPC_DEF("440EPb", CPU_POWERPC_440EPb, 440EP), |
7507 | 80d11f44 | j_mayer | #endif
|
7508 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7509 | a750fc0b | j_mayer | /* PowerPC 440 EPX */
|
7510 | 80d11f44 | j_mayer | POWERPC_DEF("440EPX", CPU_POWERPC_440EPX, 440EP), |
7511 | 80d11f44 | j_mayer | #endif
|
7512 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7513 | a750fc0b | j_mayer | /* PowerPC 440 GP */
|
7514 | 80d11f44 | j_mayer | POWERPC_DEF("440GP", CPU_POWERPC_440GP, 440GP), |
7515 | 80d11f44 | j_mayer | #endif
|
7516 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7517 | a750fc0b | j_mayer | /* PowerPC 440 GPb */
|
7518 | 80d11f44 | j_mayer | POWERPC_DEF("440GPb", CPU_POWERPC_440GPb, 440GP), |
7519 | 80d11f44 | j_mayer | #endif
|
7520 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7521 | a750fc0b | j_mayer | /* PowerPC 440 GPc */
|
7522 | 80d11f44 | j_mayer | POWERPC_DEF("440GPc", CPU_POWERPC_440GPc, 440GP), |
7523 | 80d11f44 | j_mayer | #endif
|
7524 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7525 | a750fc0b | j_mayer | /* PowerPC 440 GR */
|
7526 | 80d11f44 | j_mayer | POWERPC_DEF("440GR", CPU_POWERPC_440GR, 440x5), |
7527 | 80d11f44 | j_mayer | #endif
|
7528 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7529 | a750fc0b | j_mayer | /* PowerPC 440 GRa */
|
7530 | 80d11f44 | j_mayer | POWERPC_DEF("440GRa", CPU_POWERPC_440GRa, 440x5), |
7531 | 80d11f44 | j_mayer | #endif
|
7532 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7533 | a750fc0b | j_mayer | /* PowerPC 440 GRX */
|
7534 | 80d11f44 | j_mayer | POWERPC_DEF("440GRX", CPU_POWERPC_440GRX, 440x5), |
7535 | 80d11f44 | j_mayer | #endif
|
7536 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7537 | a750fc0b | j_mayer | /* PowerPC 440 GX */
|
7538 | 80d11f44 | j_mayer | POWERPC_DEF("440GX", CPU_POWERPC_440GX, 440EP), |
7539 | 80d11f44 | j_mayer | #endif
|
7540 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7541 | a750fc0b | j_mayer | /* PowerPC 440 GXa */
|
7542 | 80d11f44 | j_mayer | POWERPC_DEF("440GXa", CPU_POWERPC_440GXa, 440EP), |
7543 | 80d11f44 | j_mayer | #endif
|
7544 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7545 | a750fc0b | j_mayer | /* PowerPC 440 GXb */
|
7546 | 80d11f44 | j_mayer | POWERPC_DEF("440GXb", CPU_POWERPC_440GXb, 440EP), |
7547 | 80d11f44 | j_mayer | #endif
|
7548 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7549 | a750fc0b | j_mayer | /* PowerPC 440 GXc */
|
7550 | 80d11f44 | j_mayer | POWERPC_DEF("440GXc", CPU_POWERPC_440GXc, 440EP), |
7551 | 80d11f44 | j_mayer | #endif
|
7552 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7553 | a750fc0b | j_mayer | /* PowerPC 440 GXf */
|
7554 | 80d11f44 | j_mayer | POWERPC_DEF("440GXf", CPU_POWERPC_440GXf, 440EP), |
7555 | 80d11f44 | j_mayer | #endif
|
7556 | a750fc0b | j_mayer | #if defined(TODO)
|
7557 | a750fc0b | j_mayer | /* PowerPC 440 S */
|
7558 | 80d11f44 | j_mayer | POWERPC_DEF("440S", CPU_POWERPC_440S, 440), |
7559 | a750fc0b | j_mayer | #endif
|
7560 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7561 | a750fc0b | j_mayer | /* PowerPC 440 SP */
|
7562 | 80d11f44 | j_mayer | POWERPC_DEF("440SP", CPU_POWERPC_440SP, 440EP), |
7563 | 80d11f44 | j_mayer | #endif
|
7564 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7565 | a750fc0b | j_mayer | /* PowerPC 440 SP2 */
|
7566 | 80d11f44 | j_mayer | POWERPC_DEF("440SP2", CPU_POWERPC_440SP2, 440EP), |
7567 | 80d11f44 | j_mayer | #endif
|
7568 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7569 | a750fc0b | j_mayer | /* PowerPC 440 SPE */
|
7570 | 80d11f44 | j_mayer | POWERPC_DEF("440SPE", CPU_POWERPC_440SPE, 440EP), |
7571 | 80d11f44 | j_mayer | #endif
|
7572 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
7573 | a750fc0b | j_mayer | #if defined (TODO)
|
7574 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
7575 | 80d11f44 | j_mayer | POWERPC_DEF("464", CPU_POWERPC_464, 460), |
7576 | a750fc0b | j_mayer | #endif
|
7577 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
7578 | a750fc0b | j_mayer | #if defined (TODO)
|
7579 | a750fc0b | j_mayer | /* PowerPC 464H90 */
|
7580 | 80d11f44 | j_mayer | POWERPC_DEF("464H90", CPU_POWERPC_464H90, 460), |
7581 | a750fc0b | j_mayer | #endif
|
7582 | a750fc0b | j_mayer | #if defined (TODO)
|
7583 | a750fc0b | j_mayer | /* PowerPC 464H90F */
|
7584 | 80d11f44 | j_mayer | POWERPC_DEF("464H90F", CPU_POWERPC_464H90F, 460F), |
7585 | a750fc0b | j_mayer | #endif
|
7586 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
7587 | 80d11f44 | j_mayer | /* MPC5xx family (aka RCPU) */
|
7588 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7589 | 80d11f44 | j_mayer | /* Generic MPC5xx core */
|
7590 | 80d11f44 | j_mayer | POWERPC_DEF("MPC5xx", CPU_POWERPC_MPC5xx, MPC5xx),
|
7591 | 80d11f44 | j_mayer | #endif
|
7592 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7593 | 80d11f44 | j_mayer | /* Codename for MPC5xx core */
|
7594 | 80d11f44 | j_mayer | POWERPC_DEF("RCPU", CPU_POWERPC_MPC5xx, MPC5xx),
|
7595 | 80d11f44 | j_mayer | #endif
|
7596 | 80d11f44 | j_mayer | /* MPC5xx microcontrollers */
|
7597 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7598 | 80d11f44 | j_mayer | /* MGT560 */
|
7599 | 80d11f44 | j_mayer | POWERPC_DEF("MGT560", CPU_POWERPC_MGT560, MPC5xx),
|
7600 | 80d11f44 | j_mayer | #endif
|
7601 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7602 | 80d11f44 | j_mayer | /* MPC509 */
|
7603 | 80d11f44 | j_mayer | POWERPC_DEF("MPC509", CPU_POWERPC_MPC509, MPC5xx),
|
7604 | 80d11f44 | j_mayer | #endif
|
7605 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7606 | 80d11f44 | j_mayer | /* MPC533 */
|
7607 | 80d11f44 | j_mayer | POWERPC_DEF("MPC533", CPU_POWERPC_MPC533, MPC5xx),
|
7608 | 80d11f44 | j_mayer | #endif
|
7609 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7610 | 80d11f44 | j_mayer | /* MPC534 */
|
7611 | 80d11f44 | j_mayer | POWERPC_DEF("MPC534", CPU_POWERPC_MPC534, MPC5xx),
|
7612 | 80d11f44 | j_mayer | #endif
|
7613 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7614 | 80d11f44 | j_mayer | /* MPC555 */
|
7615 | 80d11f44 | j_mayer | POWERPC_DEF("MPC555", CPU_POWERPC_MPC555, MPC5xx),
|
7616 | 80d11f44 | j_mayer | #endif
|
7617 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7618 | 80d11f44 | j_mayer | /* MPC556 */
|
7619 | 80d11f44 | j_mayer | POWERPC_DEF("MPC556", CPU_POWERPC_MPC556, MPC5xx),
|
7620 | 80d11f44 | j_mayer | #endif
|
7621 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7622 | 80d11f44 | j_mayer | /* MPC560 */
|
7623 | 80d11f44 | j_mayer | POWERPC_DEF("MPC560", CPU_POWERPC_MPC560, MPC5xx),
|
7624 | 80d11f44 | j_mayer | #endif
|
7625 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7626 | 80d11f44 | j_mayer | /* MPC561 */
|
7627 | 80d11f44 | j_mayer | POWERPC_DEF("MPC561", CPU_POWERPC_MPC561, MPC5xx),
|
7628 | 80d11f44 | j_mayer | #endif
|
7629 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7630 | 80d11f44 | j_mayer | /* MPC562 */
|
7631 | 80d11f44 | j_mayer | POWERPC_DEF("MPC562", CPU_POWERPC_MPC562, MPC5xx),
|
7632 | 80d11f44 | j_mayer | #endif
|
7633 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7634 | 80d11f44 | j_mayer | /* MPC563 */
|
7635 | 80d11f44 | j_mayer | POWERPC_DEF("MPC563", CPU_POWERPC_MPC563, MPC5xx),
|
7636 | 80d11f44 | j_mayer | #endif
|
7637 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7638 | 80d11f44 | j_mayer | /* MPC564 */
|
7639 | 80d11f44 | j_mayer | POWERPC_DEF("MPC564", CPU_POWERPC_MPC564, MPC5xx),
|
7640 | 80d11f44 | j_mayer | #endif
|
7641 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7642 | 80d11f44 | j_mayer | /* MPC565 */
|
7643 | 80d11f44 | j_mayer | POWERPC_DEF("MPC565", CPU_POWERPC_MPC565, MPC5xx),
|
7644 | 80d11f44 | j_mayer | #endif
|
7645 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7646 | 80d11f44 | j_mayer | /* MPC566 */
|
7647 | 80d11f44 | j_mayer | POWERPC_DEF("MPC566", CPU_POWERPC_MPC566, MPC5xx),
|
7648 | 80d11f44 | j_mayer | #endif
|
7649 | 80d11f44 | j_mayer | /* MPC8xx family (aka PowerQUICC) */
|
7650 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7651 | 80d11f44 | j_mayer | /* Generic MPC8xx core */
|
7652 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8xx", CPU_POWERPC_MPC8xx, MPC8xx),
|
7653 | 80d11f44 | j_mayer | #endif
|
7654 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7655 | 80d11f44 | j_mayer | /* Codename for MPC8xx core */
|
7656 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC", CPU_POWERPC_MPC8xx, MPC8xx),
|
7657 | 80d11f44 | j_mayer | #endif
|
7658 | 80d11f44 | j_mayer | /* MPC8xx microcontrollers */
|
7659 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7660 | 80d11f44 | j_mayer | /* MGT823 */
|
7661 | 80d11f44 | j_mayer | POWERPC_DEF("MGT823", CPU_POWERPC_MGT823, MPC8xx),
|
7662 | 80d11f44 | j_mayer | #endif
|
7663 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7664 | 80d11f44 | j_mayer | /* MPC821 */
|
7665 | 80d11f44 | j_mayer | POWERPC_DEF("MPC821", CPU_POWERPC_MPC821, MPC8xx),
|
7666 | 80d11f44 | j_mayer | #endif
|
7667 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7668 | 80d11f44 | j_mayer | /* MPC823 */
|
7669 | 80d11f44 | j_mayer | POWERPC_DEF("MPC823", CPU_POWERPC_MPC823, MPC8xx),
|
7670 | 80d11f44 | j_mayer | #endif
|
7671 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7672 | 80d11f44 | j_mayer | /* MPC850 */
|
7673 | 80d11f44 | j_mayer | POWERPC_DEF("MPC850", CPU_POWERPC_MPC850, MPC8xx),
|
7674 | 80d11f44 | j_mayer | #endif
|
7675 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7676 | 80d11f44 | j_mayer | /* MPC852T */
|
7677 | 80d11f44 | j_mayer | POWERPC_DEF("MPC852T", CPU_POWERPC_MPC852T, MPC8xx),
|
7678 | 80d11f44 | j_mayer | #endif
|
7679 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7680 | 80d11f44 | j_mayer | /* MPC855T */
|
7681 | 80d11f44 | j_mayer | POWERPC_DEF("MPC855T", CPU_POWERPC_MPC855T, MPC8xx),
|
7682 | 80d11f44 | j_mayer | #endif
|
7683 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7684 | 80d11f44 | j_mayer | /* MPC857 */
|
7685 | 80d11f44 | j_mayer | POWERPC_DEF("MPC857", CPU_POWERPC_MPC857, MPC8xx),
|
7686 | 80d11f44 | j_mayer | #endif
|
7687 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7688 | 80d11f44 | j_mayer | /* MPC859 */
|
7689 | 80d11f44 | j_mayer | POWERPC_DEF("MPC859", CPU_POWERPC_MPC859, MPC8xx),
|
7690 | 80d11f44 | j_mayer | #endif
|
7691 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7692 | 80d11f44 | j_mayer | /* MPC860 */
|
7693 | 80d11f44 | j_mayer | POWERPC_DEF("MPC860", CPU_POWERPC_MPC860, MPC8xx),
|
7694 | 80d11f44 | j_mayer | #endif
|
7695 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7696 | 80d11f44 | j_mayer | /* MPC862 */
|
7697 | 80d11f44 | j_mayer | POWERPC_DEF("MPC862", CPU_POWERPC_MPC862, MPC8xx),
|
7698 | 80d11f44 | j_mayer | #endif
|
7699 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7700 | 80d11f44 | j_mayer | /* MPC866 */
|
7701 | 80d11f44 | j_mayer | POWERPC_DEF("MPC866", CPU_POWERPC_MPC866, MPC8xx),
|
7702 | 80d11f44 | j_mayer | #endif
|
7703 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7704 | 80d11f44 | j_mayer | /* MPC870 */
|
7705 | 80d11f44 | j_mayer | POWERPC_DEF("MPC870", CPU_POWERPC_MPC870, MPC8xx),
|
7706 | 80d11f44 | j_mayer | #endif
|
7707 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7708 | 80d11f44 | j_mayer | /* MPC875 */
|
7709 | 80d11f44 | j_mayer | POWERPC_DEF("MPC875", CPU_POWERPC_MPC875, MPC8xx),
|
7710 | 80d11f44 | j_mayer | #endif
|
7711 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7712 | 80d11f44 | j_mayer | /* MPC880 */
|
7713 | 80d11f44 | j_mayer | POWERPC_DEF("MPC880", CPU_POWERPC_MPC880, MPC8xx),
|
7714 | 80d11f44 | j_mayer | #endif
|
7715 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7716 | 80d11f44 | j_mayer | /* MPC885 */
|
7717 | 80d11f44 | j_mayer | POWERPC_DEF("MPC885", CPU_POWERPC_MPC885, MPC8xx),
|
7718 | 80d11f44 | j_mayer | #endif
|
7719 | 80d11f44 | j_mayer | /* MPC82xx family (aka PowerQUICC-II) */
|
7720 | 80d11f44 | j_mayer | /* Generic MPC52xx core */
|
7721 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC52xx",
|
7722 | 80d11f44 | j_mayer | CPU_POWERPC_MPC52xx, POWERPC_SVR_52xx, G2LE), |
7723 | 80d11f44 | j_mayer | /* Generic MPC82xx core */
|
7724 | 80d11f44 | j_mayer | POWERPC_DEF("MPC82xx", CPU_POWERPC_MPC82xx, G2),
|
7725 | 80d11f44 | j_mayer | /* Codename for MPC82xx */
|
7726 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC-II", CPU_POWERPC_MPC82xx, G2),
|
7727 | 80d11f44 | j_mayer | /* PowerPC G2 core */
|
7728 | 80d11f44 | j_mayer | POWERPC_DEF("G2", CPU_POWERPC_G2, G2),
|
7729 | 80d11f44 | j_mayer | /* PowerPC G2 H4 core */
|
7730 | 80d11f44 | j_mayer | POWERPC_DEF("G2H4", CPU_POWERPC_G2H4, G2),
|
7731 | 80d11f44 | j_mayer | /* PowerPC G2 GP core */
|
7732 | 80d11f44 | j_mayer | POWERPC_DEF("G2GP", CPU_POWERPC_G2gp, G2),
|
7733 | 80d11f44 | j_mayer | /* PowerPC G2 LS core */
|
7734 | 80d11f44 | j_mayer | POWERPC_DEF("G2LS", CPU_POWERPC_G2ls, G2),
|
7735 | 80d11f44 | j_mayer | /* PowerPC G2 HiP3 core */
|
7736 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP3", CPU_POWERPC_G2_HIP3, G2),
|
7737 | 80d11f44 | j_mayer | /* PowerPC G2 HiP4 core */
|
7738 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP4", CPU_POWERPC_G2_HIP4, G2),
|
7739 | 80d11f44 | j_mayer | /* PowerPC MPC603 core */
|
7740 | 80d11f44 | j_mayer | POWERPC_DEF("MPC603", CPU_POWERPC_MPC603, 603E), |
7741 | 80d11f44 | j_mayer | /* PowerPC G2le core (same as G2 plus little-endian mode support) */
|
7742 | 80d11f44 | j_mayer | POWERPC_DEF("G2le", CPU_POWERPC_G2LE, G2LE),
|
7743 | 80d11f44 | j_mayer | /* PowerPC G2LE GP core */
|
7744 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP", CPU_POWERPC_G2LEgp, G2LE),
|
7745 | 80d11f44 | j_mayer | /* PowerPC G2LE LS core */
|
7746 | 80d11f44 | j_mayer | POWERPC_DEF("G2leLS", CPU_POWERPC_G2LEls, G2LE),
|
7747 | 80d11f44 | j_mayer | /* PowerPC G2LE GP1 core */
|
7748 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP1", CPU_POWERPC_G2LEgp1, G2LE),
|
7749 | 80d11f44 | j_mayer | /* PowerPC G2LE GP3 core */
|
7750 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP3", CPU_POWERPC_G2LEgp1, G2LE),
|
7751 | 80d11f44 | j_mayer | /* PowerPC MPC603 microcontrollers */
|
7752 | 80d11f44 | j_mayer | /* MPC8240 */
|
7753 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8240", CPU_POWERPC_MPC8240, 603E), |
7754 | 80d11f44 | j_mayer | /* PowerPC G2 microcontrollers */
|
7755 | 082c6681 | j_mayer | #if defined(TODO)
|
7756 | 80d11f44 | j_mayer | /* MPC5121 */
|
7757 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5121",
|
7758 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5121, POWERPC_SVR_5121, G2LE), |
7759 | 80d11f44 | j_mayer | #endif
|
7760 | 80d11f44 | j_mayer | /* MPC5200 */
|
7761 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200",
|
7762 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200, POWERPC_SVR_5200, G2LE), |
7763 | 80d11f44 | j_mayer | /* MPC5200 v1.0 */
|
7764 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v10",
|
7765 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v10, POWERPC_SVR_5200_v10, G2LE), |
7766 | 80d11f44 | j_mayer | /* MPC5200 v1.1 */
|
7767 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v11",
|
7768 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v11, POWERPC_SVR_5200_v11, G2LE), |
7769 | 80d11f44 | j_mayer | /* MPC5200 v1.2 */
|
7770 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v12",
|
7771 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v12, POWERPC_SVR_5200_v12, G2LE), |
7772 | 80d11f44 | j_mayer | /* MPC5200B */
|
7773 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B",
|
7774 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B, POWERPC_SVR_5200B, G2LE), |
7775 | 80d11f44 | j_mayer | /* MPC5200B v2.0 */
|
7776 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v20",
|
7777 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v20, POWERPC_SVR_5200B_v20, G2LE), |
7778 | 80d11f44 | j_mayer | /* MPC5200B v2.1 */
|
7779 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v21",
|
7780 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v21, POWERPC_SVR_5200B_v21, G2LE), |
7781 | 80d11f44 | j_mayer | /* MPC8241 */
|
7782 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8241", CPU_POWERPC_MPC8241, G2),
|
7783 | 80d11f44 | j_mayer | /* MPC8245 */
|
7784 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8245", CPU_POWERPC_MPC8245, G2),
|
7785 | 80d11f44 | j_mayer | /* MPC8247 */
|
7786 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8247", CPU_POWERPC_MPC8247, G2LE),
|
7787 | 80d11f44 | j_mayer | /* MPC8248 */
|
7788 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8248", CPU_POWERPC_MPC8248, G2LE),
|
7789 | 80d11f44 | j_mayer | /* MPC8250 */
|
7790 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250", CPU_POWERPC_MPC8250, G2),
|
7791 | 80d11f44 | j_mayer | /* MPC8250 HiP3 */
|
7792 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP3", CPU_POWERPC_MPC8250_HiP3, G2),
|
7793 | 80d11f44 | j_mayer | /* MPC8250 HiP4 */
|
7794 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP4", CPU_POWERPC_MPC8250_HiP4, G2),
|
7795 | 80d11f44 | j_mayer | /* MPC8255 */
|
7796 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255", CPU_POWERPC_MPC8255, G2),
|
7797 | 80d11f44 | j_mayer | /* MPC8255 HiP3 */
|
7798 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP3", CPU_POWERPC_MPC8255_HiP3, G2),
|
7799 | 80d11f44 | j_mayer | /* MPC8255 HiP4 */
|
7800 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP4", CPU_POWERPC_MPC8255_HiP4, G2),
|
7801 | 80d11f44 | j_mayer | /* MPC8260 */
|
7802 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260", CPU_POWERPC_MPC8260, G2),
|
7803 | 80d11f44 | j_mayer | /* MPC8260 HiP3 */
|
7804 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP3", CPU_POWERPC_MPC8260_HiP3, G2),
|
7805 | 80d11f44 | j_mayer | /* MPC8260 HiP4 */
|
7806 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP4", CPU_POWERPC_MPC8260_HiP4, G2),
|
7807 | 80d11f44 | j_mayer | /* MPC8264 */
|
7808 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264", CPU_POWERPC_MPC8264, G2),
|
7809 | 80d11f44 | j_mayer | /* MPC8264 HiP3 */
|
7810 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP3", CPU_POWERPC_MPC8264_HiP3, G2),
|
7811 | 80d11f44 | j_mayer | /* MPC8264 HiP4 */
|
7812 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP4", CPU_POWERPC_MPC8264_HiP4, G2),
|
7813 | 80d11f44 | j_mayer | /* MPC8265 */
|
7814 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265", CPU_POWERPC_MPC8265, G2),
|
7815 | 80d11f44 | j_mayer | /* MPC8265 HiP3 */
|
7816 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP3", CPU_POWERPC_MPC8265_HiP3, G2),
|
7817 | 80d11f44 | j_mayer | /* MPC8265 HiP4 */
|
7818 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP4", CPU_POWERPC_MPC8265_HiP4, G2),
|
7819 | 80d11f44 | j_mayer | /* MPC8266 */
|
7820 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266", CPU_POWERPC_MPC8266, G2),
|
7821 | 80d11f44 | j_mayer | /* MPC8266 HiP3 */
|
7822 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP3", CPU_POWERPC_MPC8266_HiP3, G2),
|
7823 | 80d11f44 | j_mayer | /* MPC8266 HiP4 */
|
7824 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP4", CPU_POWERPC_MPC8266_HiP4, G2),
|
7825 | 80d11f44 | j_mayer | /* MPC8270 */
|
7826 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8270", CPU_POWERPC_MPC8270, G2LE),
|
7827 | 80d11f44 | j_mayer | /* MPC8271 */
|
7828 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8271", CPU_POWERPC_MPC8271, G2LE),
|
7829 | 80d11f44 | j_mayer | /* MPC8272 */
|
7830 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8272", CPU_POWERPC_MPC8272, G2LE),
|
7831 | 80d11f44 | j_mayer | /* MPC8275 */
|
7832 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8275", CPU_POWERPC_MPC8275, G2LE),
|
7833 | 80d11f44 | j_mayer | /* MPC8280 */
|
7834 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8280", CPU_POWERPC_MPC8280, G2LE),
|
7835 | a750fc0b | j_mayer | /* e200 family */
|
7836 | a750fc0b | j_mayer | /* Generic PowerPC e200 core */
|
7837 | 80d11f44 | j_mayer | POWERPC_DEF("e200", CPU_POWERPC_e200, e200),
|
7838 | 80d11f44 | j_mayer | /* Generic MPC55xx core */
|
7839 | 80d11f44 | j_mayer | #if defined (TODO)
|
7840 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC55xx",
|
7841 | 80d11f44 | j_mayer | CPU_POWERPC_MPC55xx, POWERPC_SVR_55xx, e200), |
7842 | a750fc0b | j_mayer | #endif
|
7843 | a750fc0b | j_mayer | #if defined (TODO)
|
7844 | 80d11f44 | j_mayer | /* PowerPC e200z0 core */
|
7845 | 80d11f44 | j_mayer | POWERPC_DEF("e200z0", CPU_POWERPC_e200z0, e200),
|
7846 | a750fc0b | j_mayer | #endif
|
7847 | a750fc0b | j_mayer | #if defined (TODO)
|
7848 | 80d11f44 | j_mayer | /* PowerPC e200z1 core */
|
7849 | 80d11f44 | j_mayer | POWERPC_DEF("e200z1", CPU_POWERPC_e200z1, e200),
|
7850 | 80d11f44 | j_mayer | #endif
|
7851 | 80d11f44 | j_mayer | #if defined (TODO)
|
7852 | 80d11f44 | j_mayer | /* PowerPC e200z3 core */
|
7853 | 80d11f44 | j_mayer | POWERPC_DEF("e200z3", CPU_POWERPC_e200z3, e200),
|
7854 | 80d11f44 | j_mayer | #endif
|
7855 | 80d11f44 | j_mayer | /* PowerPC e200z5 core */
|
7856 | 80d11f44 | j_mayer | POWERPC_DEF("e200z5", CPU_POWERPC_e200z5, e200),
|
7857 | a750fc0b | j_mayer | /* PowerPC e200z6 core */
|
7858 | 80d11f44 | j_mayer | POWERPC_DEF("e200z6", CPU_POWERPC_e200z6, e200),
|
7859 | 80d11f44 | j_mayer | /* PowerPC e200 microcontrollers */
|
7860 | 80d11f44 | j_mayer | #if defined (TODO)
|
7861 | 80d11f44 | j_mayer | /* MPC5514E */
|
7862 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E",
|
7863 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E, POWERPC_SVR_5514E, e200), |
7864 | a750fc0b | j_mayer | #endif
|
7865 | a750fc0b | j_mayer | #if defined (TODO)
|
7866 | 80d11f44 | j_mayer | /* MPC5514E v0 */
|
7867 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v0",
|
7868 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v0, POWERPC_SVR_5514E_v0, e200), |
7869 | a750fc0b | j_mayer | #endif
|
7870 | a750fc0b | j_mayer | #if defined (TODO)
|
7871 | 80d11f44 | j_mayer | /* MPC5514E v1 */
|
7872 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v1",
|
7873 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v1, POWERPC_SVR_5514E_v1, e200), |
7874 | a750fc0b | j_mayer | #endif
|
7875 | a750fc0b | j_mayer | #if defined (TODO)
|
7876 | 80d11f44 | j_mayer | /* MPC5514G */
|
7877 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G",
|
7878 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G, POWERPC_SVR_5514G, e200), |
7879 | a750fc0b | j_mayer | #endif
|
7880 | a750fc0b | j_mayer | #if defined (TODO)
|
7881 | 80d11f44 | j_mayer | /* MPC5514G v0 */
|
7882 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v0",
|
7883 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v0, POWERPC_SVR_5514G_v0, e200), |
7884 | a750fc0b | j_mayer | #endif
|
7885 | a750fc0b | j_mayer | #if defined (TODO)
|
7886 | 80d11f44 | j_mayer | /* MPC5514G v1 */
|
7887 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v1",
|
7888 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v1, POWERPC_SVR_5514G_v1, e200), |
7889 | a750fc0b | j_mayer | #endif
|
7890 | a750fc0b | j_mayer | #if defined (TODO)
|
7891 | 80d11f44 | j_mayer | /* MPC5515S */
|
7892 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5515S",
|
7893 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5515S, POWERPC_SVR_5515S, e200), |
7894 | a750fc0b | j_mayer | #endif
|
7895 | a750fc0b | j_mayer | #if defined (TODO)
|
7896 | 80d11f44 | j_mayer | /* MPC5516E */
|
7897 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E",
|
7898 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E, POWERPC_SVR_5516E, e200), |
7899 | a750fc0b | j_mayer | #endif
|
7900 | a750fc0b | j_mayer | #if defined (TODO)
|
7901 | 80d11f44 | j_mayer | /* MPC5516E v0 */
|
7902 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v0",
|
7903 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v0, POWERPC_SVR_5516E_v0, e200), |
7904 | a750fc0b | j_mayer | #endif
|
7905 | a750fc0b | j_mayer | #if defined (TODO)
|
7906 | 80d11f44 | j_mayer | /* MPC5516E v1 */
|
7907 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v1",
|
7908 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v1, POWERPC_SVR_5516E_v1, e200), |
7909 | a750fc0b | j_mayer | #endif
|
7910 | a750fc0b | j_mayer | #if defined (TODO)
|
7911 | 80d11f44 | j_mayer | /* MPC5516G */
|
7912 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G",
|
7913 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G, POWERPC_SVR_5516G, e200), |
7914 | a750fc0b | j_mayer | #endif
|
7915 | a750fc0b | j_mayer | #if defined (TODO)
|
7916 | 80d11f44 | j_mayer | /* MPC5516G v0 */
|
7917 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v0",
|
7918 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v0, POWERPC_SVR_5516G_v0, e200), |
7919 | a750fc0b | j_mayer | #endif
|
7920 | a750fc0b | j_mayer | #if defined (TODO)
|
7921 | 80d11f44 | j_mayer | /* MPC5516G v1 */
|
7922 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v1",
|
7923 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v1, POWERPC_SVR_5516G_v1, e200), |
7924 | a750fc0b | j_mayer | #endif
|
7925 | a750fc0b | j_mayer | #if defined (TODO)
|
7926 | 80d11f44 | j_mayer | /* MPC5516S */
|
7927 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516S",
|
7928 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516S, POWERPC_SVR_5516S, e200), |
7929 | a750fc0b | j_mayer | #endif
|
7930 | a750fc0b | j_mayer | #if defined (TODO)
|
7931 | 80d11f44 | j_mayer | /* MPC5533 */
|
7932 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5533",
|
7933 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5533, POWERPC_SVR_5533, e200), |
7934 | a750fc0b | j_mayer | #endif
|
7935 | a750fc0b | j_mayer | #if defined (TODO)
|
7936 | 80d11f44 | j_mayer | /* MPC5534 */
|
7937 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5534",
|
7938 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5534, POWERPC_SVR_5534, e200), |
7939 | a750fc0b | j_mayer | #endif
|
7940 | 80d11f44 | j_mayer | #if defined (TODO)
|
7941 | 80d11f44 | j_mayer | /* MPC5553 */
|
7942 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5553",
|
7943 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5553, POWERPC_SVR_5553, e200), |
7944 | 80d11f44 | j_mayer | #endif
|
7945 | 80d11f44 | j_mayer | #if defined (TODO)
|
7946 | 80d11f44 | j_mayer | /* MPC5554 */
|
7947 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5554",
|
7948 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5554, POWERPC_SVR_5554, e200), |
7949 | 80d11f44 | j_mayer | #endif
|
7950 | 80d11f44 | j_mayer | #if defined (TODO)
|
7951 | 80d11f44 | j_mayer | /* MPC5561 */
|
7952 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5561",
|
7953 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5561, POWERPC_SVR_5561, e200), |
7954 | 80d11f44 | j_mayer | #endif
|
7955 | 80d11f44 | j_mayer | #if defined (TODO)
|
7956 | 80d11f44 | j_mayer | /* MPC5565 */
|
7957 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5565",
|
7958 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5565, POWERPC_SVR_5565, e200), |
7959 | 80d11f44 | j_mayer | #endif
|
7960 | 80d11f44 | j_mayer | #if defined (TODO)
|
7961 | 80d11f44 | j_mayer | /* MPC5566 */
|
7962 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5566",
|
7963 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5566, POWERPC_SVR_5566, e200), |
7964 | 80d11f44 | j_mayer | #endif
|
7965 | 80d11f44 | j_mayer | #if defined (TODO)
|
7966 | 80d11f44 | j_mayer | /* MPC5567 */
|
7967 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5567",
|
7968 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5567, POWERPC_SVR_5567, e200), |
7969 | 80d11f44 | j_mayer | #endif
|
7970 | 80d11f44 | j_mayer | /* e300 family */
|
7971 | 80d11f44 | j_mayer | /* Generic PowerPC e300 core */
|
7972 | 80d11f44 | j_mayer | POWERPC_DEF("e300", CPU_POWERPC_e300, e300),
|
7973 | 80d11f44 | j_mayer | /* PowerPC e300c1 core */
|
7974 | 80d11f44 | j_mayer | POWERPC_DEF("e300c1", CPU_POWERPC_e300c1, e300),
|
7975 | 80d11f44 | j_mayer | /* PowerPC e300c2 core */
|
7976 | 80d11f44 | j_mayer | POWERPC_DEF("e300c2", CPU_POWERPC_e300c2, e300),
|
7977 | 80d11f44 | j_mayer | /* PowerPC e300c3 core */
|
7978 | 80d11f44 | j_mayer | POWERPC_DEF("e300c3", CPU_POWERPC_e300c3, e300),
|
7979 | 80d11f44 | j_mayer | /* PowerPC e300c4 core */
|
7980 | 80d11f44 | j_mayer | POWERPC_DEF("e300c4", CPU_POWERPC_e300c4, e300),
|
7981 | 80d11f44 | j_mayer | /* PowerPC e300 microcontrollers */
|
7982 | 80d11f44 | j_mayer | #if defined (TODO)
|
7983 | 80d11f44 | j_mayer | /* MPC8313 */
|
7984 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313",
|
7985 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8313, e300), |
7986 | 80d11f44 | j_mayer | #endif
|
7987 | 80d11f44 | j_mayer | #if defined (TODO)
|
7988 | 80d11f44 | j_mayer | /* MPC8313E */
|
7989 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313E",
|
7990 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8313E, e300), |
7991 | 80d11f44 | j_mayer | #endif
|
7992 | 80d11f44 | j_mayer | #if defined (TODO)
|
7993 | 80d11f44 | j_mayer | /* MPC8314 */
|
7994 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314",
|
7995 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8314, e300), |
7996 | 80d11f44 | j_mayer | #endif
|
7997 | 80d11f44 | j_mayer | #if defined (TODO)
|
7998 | 80d11f44 | j_mayer | /* MPC8314E */
|
7999 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314E",
|
8000 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8314E, e300), |
8001 | 80d11f44 | j_mayer | #endif
|
8002 | 80d11f44 | j_mayer | #if defined (TODO)
|
8003 | 80d11f44 | j_mayer | /* MPC8315 */
|
8004 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315",
|
8005 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8315, e300), |
8006 | 80d11f44 | j_mayer | #endif
|
8007 | 80d11f44 | j_mayer | #if defined (TODO)
|
8008 | 80d11f44 | j_mayer | /* MPC8315E */
|
8009 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315E",
|
8010 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8315E, e300), |
8011 | 80d11f44 | j_mayer | #endif
|
8012 | 80d11f44 | j_mayer | #if defined (TODO)
|
8013 | 80d11f44 | j_mayer | /* MPC8321 */
|
8014 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321",
|
8015 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC832x, POWERPC_SVR_8321, e300), |
8016 | 80d11f44 | j_mayer | #endif
|
8017 | 80d11f44 | j_mayer | #if defined (TODO)
|
8018 | 80d11f44 | j_mayer | /* MPC8321E */
|
8019 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321E",
|
8020 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC832x, POWERPC_SVR_8321E, e300), |
8021 | 80d11f44 | j_mayer | #endif
|
8022 | 80d11f44 | j_mayer | #if defined (TODO)
|
8023 | 80d11f44 | j_mayer | /* MPC8323 */
|
8024 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323",
|
8025 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC832x, POWERPC_SVR_8323, e300), |
8026 | 80d11f44 | j_mayer | #endif
|
8027 | 80d11f44 | j_mayer | #if defined (TODO)
|
8028 | 80d11f44 | j_mayer | /* MPC8323E */
|
8029 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323E",
|
8030 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC832x, POWERPC_SVR_8323E, e300), |
8031 | 80d11f44 | j_mayer | #endif
|
8032 | 492d7bf5 | Thomas Monjalon | /* MPC8343 */
|
8033 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8343",
|
8034 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8343, e300), |
8035 | 80d11f44 | j_mayer | /* MPC8343A */
|
8036 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343A",
|
8037 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8343A, e300), |
8038 | 492d7bf5 | Thomas Monjalon | /* MPC8343E */
|
8039 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8343E",
|
8040 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8343E, e300), |
8041 | 80d11f44 | j_mayer | /* MPC8343EA */
|
8042 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343EA",
|
8043 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8343EA, e300), |
8044 | 492d7bf5 | Thomas Monjalon | /* MPC8347 */
|
8045 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347",
|
8046 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347, e300), |
8047 | 492d7bf5 | Thomas Monjalon | /* MPC8347T */
|
8048 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347T",
|
8049 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347T, e300), |
8050 | 492d7bf5 | Thomas Monjalon | /* MPC8347P */
|
8051 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347P",
|
8052 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347P, e300), |
8053 | 80d11f44 | j_mayer | /* MPC8347A */
|
8054 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347A",
|
8055 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347A, e300), |
8056 | 80d11f44 | j_mayer | /* MPC8347AT */
|
8057 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AT",
|
8058 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347AT, e300), |
8059 | 80d11f44 | j_mayer | /* MPC8347AP */
|
8060 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AP",
|
8061 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347AP, e300), |
8062 | 492d7bf5 | Thomas Monjalon | /* MPC8347E */
|
8063 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347E",
|
8064 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347E, e300), |
8065 | 492d7bf5 | Thomas Monjalon | /* MPC8347ET */
|
8066 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347ET",
|
8067 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347ET, e300), |
8068 | 492d7bf5 | Thomas Monjalon | /* MPC8343EP */
|
8069 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347EP",
|
8070 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347EP, e300), |
8071 | 80d11f44 | j_mayer | /* MPC8347EA */
|
8072 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EA",
|
8073 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347EA, e300), |
8074 | 80d11f44 | j_mayer | /* MPC8347EAT */
|
8075 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAT",
|
8076 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347EAT, e300), |
8077 | 80d11f44 | j_mayer | /* MPC8343EAP */
|
8078 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAP",
|
8079 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347EAP, e300), |
8080 | 80d11f44 | j_mayer | /* MPC8349 */
|
8081 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349",
|
8082 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8349, e300), |
8083 | 80d11f44 | j_mayer | /* MPC8349A */
|
8084 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349A",
|
8085 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8349A, e300), |
8086 | 80d11f44 | j_mayer | /* MPC8349E */
|
8087 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349E",
|
8088 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8349E, e300), |
8089 | 80d11f44 | j_mayer | /* MPC8349EA */
|
8090 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349EA",
|
8091 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8349EA, e300), |
8092 | 80d11f44 | j_mayer | #if defined (TODO)
|
8093 | 80d11f44 | j_mayer | /* MPC8358E */
|
8094 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8358E",
|
8095 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC835x, POWERPC_SVR_8358E, e300), |
8096 | 80d11f44 | j_mayer | #endif
|
8097 | 80d11f44 | j_mayer | #if defined (TODO)
|
8098 | 80d11f44 | j_mayer | /* MPC8360E */
|
8099 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8360E",
|
8100 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC836x, POWERPC_SVR_8360E, e300), |
8101 | 80d11f44 | j_mayer | #endif
|
8102 | 80d11f44 | j_mayer | /* MPC8377 */
|
8103 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377",
|
8104 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8377, e300), |
8105 | 80d11f44 | j_mayer | /* MPC8377E */
|
8106 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377E",
|
8107 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8377E, e300), |
8108 | 80d11f44 | j_mayer | /* MPC8378 */
|
8109 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378",
|
8110 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8378, e300), |
8111 | 80d11f44 | j_mayer | /* MPC8378E */
|
8112 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378E",
|
8113 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8378E, e300), |
8114 | 80d11f44 | j_mayer | /* MPC8379 */
|
8115 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379",
|
8116 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8379, e300), |
8117 | 80d11f44 | j_mayer | /* MPC8379E */
|
8118 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379E",
|
8119 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8379E, e300), |
8120 | 80d11f44 | j_mayer | /* e500 family */
|
8121 | 80d11f44 | j_mayer | /* PowerPC e500 core */
|
8122 | bd5ea513 | aurel32 | POWERPC_DEF("e500", CPU_POWERPC_e500v2_v22, e500v2),
|
8123 | bd5ea513 | aurel32 | /* PowerPC e500v1 core */
|
8124 | bd5ea513 | aurel32 | POWERPC_DEF("e500v1", CPU_POWERPC_e500v1, e500v1),
|
8125 | 80d11f44 | j_mayer | /* PowerPC e500 v1.0 core */
|
8126 | bd5ea513 | aurel32 | POWERPC_DEF("e500_v10", CPU_POWERPC_e500v1_v10, e500v1),
|
8127 | 80d11f44 | j_mayer | /* PowerPC e500 v2.0 core */
|
8128 | bd5ea513 | aurel32 | POWERPC_DEF("e500_v20", CPU_POWERPC_e500v1_v20, e500v1),
|
8129 | 80d11f44 | j_mayer | /* PowerPC e500v2 core */
|
8130 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2", CPU_POWERPC_e500v2, e500v2),
|
8131 | 80d11f44 | j_mayer | /* PowerPC e500v2 v1.0 core */
|
8132 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v10", CPU_POWERPC_e500v2_v10, e500v2),
|
8133 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.0 core */
|
8134 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v20", CPU_POWERPC_e500v2_v20, e500v2),
|
8135 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.1 core */
|
8136 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v21", CPU_POWERPC_e500v2_v21, e500v2),
|
8137 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.2 core */
|
8138 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v22", CPU_POWERPC_e500v2_v22, e500v2),
|
8139 | 80d11f44 | j_mayer | /* PowerPC e500v2 v3.0 core */
|
8140 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v30", CPU_POWERPC_e500v2_v30, e500v2),
|
8141 | 80d11f44 | j_mayer | /* PowerPC e500 microcontrollers */
|
8142 | 80d11f44 | j_mayer | /* MPC8533 */
|
8143 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533",
|
8144 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533, POWERPC_SVR_8533, e500v2), |
8145 | 80d11f44 | j_mayer | /* MPC8533 v1.0 */
|
8146 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v10",
|
8147 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533_v10, POWERPC_SVR_8533_v10, e500v2), |
8148 | 80d11f44 | j_mayer | /* MPC8533 v1.1 */
|
8149 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v11",
|
8150 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533_v11, POWERPC_SVR_8533_v11, e500v2), |
8151 | 80d11f44 | j_mayer | /* MPC8533E */
|
8152 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E",
|
8153 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E, POWERPC_SVR_8533E, e500v2), |
8154 | 80d11f44 | j_mayer | /* MPC8533E v1.0 */
|
8155 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v10",
|
8156 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E_v10, POWERPC_SVR_8533E_v10, e500v2), |
8157 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v11",
|
8158 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E_v11, POWERPC_SVR_8533E_v11, e500v2), |
8159 | 80d11f44 | j_mayer | /* MPC8540 */
|
8160 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540",
|
8161 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540, POWERPC_SVR_8540, e500v1), |
8162 | 80d11f44 | j_mayer | /* MPC8540 v1.0 */
|
8163 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v10",
|
8164 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v10, POWERPC_SVR_8540_v10, e500v1), |
8165 | 80d11f44 | j_mayer | /* MPC8540 v2.0 */
|
8166 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v20",
|
8167 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v20, POWERPC_SVR_8540_v20, e500v1), |
8168 | 80d11f44 | j_mayer | /* MPC8540 v2.1 */
|
8169 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v21",
|
8170 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v21, POWERPC_SVR_8540_v21, e500v1), |
8171 | 80d11f44 | j_mayer | /* MPC8541 */
|
8172 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541",
|
8173 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541, POWERPC_SVR_8541, e500v1), |
8174 | 80d11f44 | j_mayer | /* MPC8541 v1.0 */
|
8175 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v10",
|
8176 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541_v10, POWERPC_SVR_8541_v10, e500v1), |
8177 | 80d11f44 | j_mayer | /* MPC8541 v1.1 */
|
8178 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v11",
|
8179 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541_v11, POWERPC_SVR_8541_v11, e500v1), |
8180 | 80d11f44 | j_mayer | /* MPC8541E */
|
8181 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E",
|
8182 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E, POWERPC_SVR_8541E, e500v1), |
8183 | 80d11f44 | j_mayer | /* MPC8541E v1.0 */
|
8184 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v10",
|
8185 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E_v10, POWERPC_SVR_8541E_v10, e500v1), |
8186 | 80d11f44 | j_mayer | /* MPC8541E v1.1 */
|
8187 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v11",
|
8188 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E_v11, POWERPC_SVR_8541E_v11, e500v1), |
8189 | 80d11f44 | j_mayer | /* MPC8543 */
|
8190 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543",
|
8191 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543, POWERPC_SVR_8543, e500v2), |
8192 | 80d11f44 | j_mayer | /* MPC8543 v1.0 */
|
8193 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v10",
|
8194 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v10, POWERPC_SVR_8543_v10, e500v2), |
8195 | 80d11f44 | j_mayer | /* MPC8543 v1.1 */
|
8196 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v11",
|
8197 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v11, POWERPC_SVR_8543_v11, e500v2), |
8198 | 80d11f44 | j_mayer | /* MPC8543 v2.0 */
|
8199 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v20",
|
8200 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v20, POWERPC_SVR_8543_v20, e500v2), |
8201 | 80d11f44 | j_mayer | /* MPC8543 v2.1 */
|
8202 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v21",
|
8203 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v21, POWERPC_SVR_8543_v21, e500v2), |
8204 | 80d11f44 | j_mayer | /* MPC8543E */
|
8205 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E",
|
8206 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E, POWERPC_SVR_8543E, e500v2), |
8207 | 80d11f44 | j_mayer | /* MPC8543E v1.0 */
|
8208 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v10",
|
8209 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v10, POWERPC_SVR_8543E_v10, e500v2), |
8210 | 80d11f44 | j_mayer | /* MPC8543E v1.1 */
|
8211 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v11",
|
8212 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v11, POWERPC_SVR_8543E_v11, e500v2), |
8213 | 80d11f44 | j_mayer | /* MPC8543E v2.0 */
|
8214 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v20",
|
8215 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v20, POWERPC_SVR_8543E_v20, e500v2), |
8216 | 80d11f44 | j_mayer | /* MPC8543E v2.1 */
|
8217 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v21",
|
8218 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v21, POWERPC_SVR_8543E_v21, e500v2), |
8219 | 80d11f44 | j_mayer | /* MPC8544 */
|
8220 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544",
|
8221 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544, POWERPC_SVR_8544, e500v2), |
8222 | 80d11f44 | j_mayer | /* MPC8544 v1.0 */
|
8223 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v10",
|
8224 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544_v10, POWERPC_SVR_8544_v10, e500v2), |
8225 | 80d11f44 | j_mayer | /* MPC8544 v1.1 */
|
8226 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v11",
|
8227 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544_v11, POWERPC_SVR_8544_v11, e500v2), |
8228 | 80d11f44 | j_mayer | /* MPC8544E */
|
8229 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E",
|
8230 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E, POWERPC_SVR_8544E, e500v2), |
8231 | 80d11f44 | j_mayer | /* MPC8544E v1.0 */
|
8232 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v10",
|
8233 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E_v10, POWERPC_SVR_8544E_v10, e500v2), |
8234 | 80d11f44 | j_mayer | /* MPC8544E v1.1 */
|
8235 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v11",
|
8236 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E_v11, POWERPC_SVR_8544E_v11, e500v2), |
8237 | 80d11f44 | j_mayer | /* MPC8545 */
|
8238 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545",
|
8239 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545, POWERPC_SVR_8545, e500v2), |
8240 | 80d11f44 | j_mayer | /* MPC8545 v2.0 */
|
8241 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v20",
|
8242 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545_v20, POWERPC_SVR_8545_v20, e500v2), |
8243 | 80d11f44 | j_mayer | /* MPC8545 v2.1 */
|
8244 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v21",
|
8245 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545_v21, POWERPC_SVR_8545_v21, e500v2), |
8246 | 80d11f44 | j_mayer | /* MPC8545E */
|
8247 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E",
|
8248 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E, POWERPC_SVR_8545E, e500v2), |
8249 | 80d11f44 | j_mayer | /* MPC8545E v2.0 */
|
8250 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v20",
|
8251 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E_v20, POWERPC_SVR_8545E_v20, e500v2), |
8252 | 80d11f44 | j_mayer | /* MPC8545E v2.1 */
|
8253 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v21",
|
8254 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E_v21, POWERPC_SVR_8545E_v21, e500v2), |
8255 | 80d11f44 | j_mayer | /* MPC8547E */
|
8256 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E",
|
8257 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E, POWERPC_SVR_8547E, e500v2), |
8258 | 80d11f44 | j_mayer | /* MPC8547E v2.0 */
|
8259 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v20",
|
8260 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E_v20, POWERPC_SVR_8547E_v20, e500v2), |
8261 | 80d11f44 | j_mayer | /* MPC8547E v2.1 */
|
8262 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v21",
|
8263 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E_v21, POWERPC_SVR_8547E_v21, e500v2), |
8264 | 80d11f44 | j_mayer | /* MPC8548 */
|
8265 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548",
|
8266 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548, POWERPC_SVR_8548, e500v2), |
8267 | 80d11f44 | j_mayer | /* MPC8548 v1.0 */
|
8268 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v10",
|
8269 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v10, POWERPC_SVR_8548_v10, e500v2), |
8270 | 80d11f44 | j_mayer | /* MPC8548 v1.1 */
|
8271 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v11",
|
8272 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v11, POWERPC_SVR_8548_v11, e500v2), |
8273 | 80d11f44 | j_mayer | /* MPC8548 v2.0 */
|
8274 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v20",
|
8275 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v20, POWERPC_SVR_8548_v20, e500v2), |
8276 | 80d11f44 | j_mayer | /* MPC8548 v2.1 */
|
8277 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v21",
|
8278 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v21, POWERPC_SVR_8548_v21, e500v2), |
8279 | 80d11f44 | j_mayer | /* MPC8548E */
|
8280 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E",
|
8281 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E, POWERPC_SVR_8548E, e500v2), |
8282 | 80d11f44 | j_mayer | /* MPC8548E v1.0 */
|
8283 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v10",
|
8284 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v10, POWERPC_SVR_8548E_v10, e500v2), |
8285 | 80d11f44 | j_mayer | /* MPC8548E v1.1 */
|
8286 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v11",
|
8287 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v11, POWERPC_SVR_8548E_v11, e500v2), |
8288 | 80d11f44 | j_mayer | /* MPC8548E v2.0 */
|
8289 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v20",
|
8290 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v20, POWERPC_SVR_8548E_v20, e500v2), |
8291 | 80d11f44 | j_mayer | /* MPC8548E v2.1 */
|
8292 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v21",
|
8293 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v21, POWERPC_SVR_8548E_v21, e500v2), |
8294 | 80d11f44 | j_mayer | /* MPC8555 */
|
8295 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555",
|
8296 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555, POWERPC_SVR_8555, e500v2), |
8297 | 80d11f44 | j_mayer | /* MPC8555 v1.0 */
|
8298 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v10",
|
8299 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555_v10, POWERPC_SVR_8555_v10, e500v2), |
8300 | 80d11f44 | j_mayer | /* MPC8555 v1.1 */
|
8301 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v11",
|
8302 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555_v11, POWERPC_SVR_8555_v11, e500v2), |
8303 | 80d11f44 | j_mayer | /* MPC8555E */
|
8304 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E",
|
8305 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E, POWERPC_SVR_8555E, e500v2), |
8306 | 80d11f44 | j_mayer | /* MPC8555E v1.0 */
|
8307 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v10",
|
8308 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E_v10, POWERPC_SVR_8555E_v10, e500v2), |
8309 | 80d11f44 | j_mayer | /* MPC8555E v1.1 */
|
8310 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v11",
|
8311 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E_v11, POWERPC_SVR_8555E_v11, e500v2), |
8312 | 80d11f44 | j_mayer | /* MPC8560 */
|
8313 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560",
|
8314 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560, POWERPC_SVR_8560, e500v2), |
8315 | 80d11f44 | j_mayer | /* MPC8560 v1.0 */
|
8316 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v10",
|
8317 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v10, POWERPC_SVR_8560_v10, e500v2), |
8318 | 80d11f44 | j_mayer | /* MPC8560 v2.0 */
|
8319 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v20",
|
8320 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v20, POWERPC_SVR_8560_v20, e500v2), |
8321 | 80d11f44 | j_mayer | /* MPC8560 v2.1 */
|
8322 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v21",
|
8323 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v21, POWERPC_SVR_8560_v21, e500v2), |
8324 | 80d11f44 | j_mayer | /* MPC8567 */
|
8325 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567",
|
8326 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8567, POWERPC_SVR_8567, e500v2), |
8327 | 80d11f44 | j_mayer | /* MPC8567E */
|
8328 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567E",
|
8329 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8567E, POWERPC_SVR_8567E, e500v2), |
8330 | 80d11f44 | j_mayer | /* MPC8568 */
|
8331 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568",
|
8332 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8568, POWERPC_SVR_8568, e500v2), |
8333 | 80d11f44 | j_mayer | /* MPC8568E */
|
8334 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568E",
|
8335 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8568E, POWERPC_SVR_8568E, e500v2), |
8336 | 80d11f44 | j_mayer | /* MPC8572 */
|
8337 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572",
|
8338 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8572, POWERPC_SVR_8572, e500v2), |
8339 | 80d11f44 | j_mayer | /* MPC8572E */
|
8340 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572E",
|
8341 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8572E, POWERPC_SVR_8572E, e500v2), |
8342 | 80d11f44 | j_mayer | /* e600 family */
|
8343 | 80d11f44 | j_mayer | /* PowerPC e600 core */
|
8344 | 80d11f44 | j_mayer | POWERPC_DEF("e600", CPU_POWERPC_e600, 7400), |
8345 | 80d11f44 | j_mayer | /* PowerPC e600 microcontrollers */
|
8346 | 80d11f44 | j_mayer | #if defined (TODO)
|
8347 | 80d11f44 | j_mayer | /* MPC8610 */
|
8348 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8610",
|
8349 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8610, POWERPC_SVR_8610, 7400),
|
8350 | 80d11f44 | j_mayer | #endif
|
8351 | 80d11f44 | j_mayer | /* MPC8641 */
|
8352 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641",
|
8353 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641, POWERPC_SVR_8641, 7400),
|
8354 | 80d11f44 | j_mayer | /* MPC8641D */
|
8355 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641D",
|
8356 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641D, POWERPC_SVR_8641D, 7400),
|
8357 | a750fc0b | j_mayer | /* 32 bits "classic" PowerPC */
|
8358 | a750fc0b | j_mayer | /* PowerPC 6xx family */
|
8359 | a750fc0b | j_mayer | /* PowerPC 601 */
|
8360 | bd928eba | j_mayer | POWERPC_DEF("601", CPU_POWERPC_601, 601v), |
8361 | c3e36823 | j_mayer | /* PowerPC 601v0 */
|
8362 | 082c6681 | j_mayer | POWERPC_DEF("601_v0", CPU_POWERPC_601_v0, 601), |
8363 | c3e36823 | j_mayer | /* PowerPC 601v1 */
|
8364 | 082c6681 | j_mayer | POWERPC_DEF("601_v1", CPU_POWERPC_601_v1, 601), |
8365 | 082c6681 | j_mayer | /* PowerPC 601v */
|
8366 | bd928eba | j_mayer | POWERPC_DEF("601v", CPU_POWERPC_601v, 601v), |
8367 | a750fc0b | j_mayer | /* PowerPC 601v2 */
|
8368 | 082c6681 | j_mayer | POWERPC_DEF("601_v2", CPU_POWERPC_601_v2, 601v), |
8369 | a750fc0b | j_mayer | /* PowerPC 602 */
|
8370 | 80d11f44 | j_mayer | POWERPC_DEF("602", CPU_POWERPC_602, 602), |
8371 | a750fc0b | j_mayer | /* PowerPC 603 */
|
8372 | 80d11f44 | j_mayer | POWERPC_DEF("603", CPU_POWERPC_603, 603), |
8373 | a750fc0b | j_mayer | /* Code name for PowerPC 603 */
|
8374 | 80d11f44 | j_mayer | POWERPC_DEF("Vanilla", CPU_POWERPC_603, 603), |
8375 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID6) */
|
8376 | 80d11f44 | j_mayer | POWERPC_DEF("603e", CPU_POWERPC_603E, 603E), |
8377 | a750fc0b | j_mayer | /* Code name for PowerPC 603e */
|
8378 | 80d11f44 | j_mayer | POWERPC_DEF("Stretch", CPU_POWERPC_603E, 603E), |
8379 | a750fc0b | j_mayer | /* PowerPC 603e v1.1 */
|
8380 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.1", CPU_POWERPC_603E_v11, 603E), |
8381 | a750fc0b | j_mayer | /* PowerPC 603e v1.2 */
|
8382 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.2", CPU_POWERPC_603E_v12, 603E), |
8383 | a750fc0b | j_mayer | /* PowerPC 603e v1.3 */
|
8384 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.3", CPU_POWERPC_603E_v13, 603E), |
8385 | a750fc0b | j_mayer | /* PowerPC 603e v1.4 */
|
8386 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.4", CPU_POWERPC_603E_v14, 603E), |
8387 | a750fc0b | j_mayer | /* PowerPC 603e v2.2 */
|
8388 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v2.2", CPU_POWERPC_603E_v22, 603E), |
8389 | a750fc0b | j_mayer | /* PowerPC 603e v3 */
|
8390 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v3", CPU_POWERPC_603E_v3, 603E), |
8391 | a750fc0b | j_mayer | /* PowerPC 603e v4 */
|
8392 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4", CPU_POWERPC_603E_v4, 603E), |
8393 | a750fc0b | j_mayer | /* PowerPC 603e v4.1 */
|
8394 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4.1", CPU_POWERPC_603E_v41, 603E), |
8395 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID7) */
|
8396 | 80d11f44 | j_mayer | POWERPC_DEF("603e7", CPU_POWERPC_603E7, 603E), |
8397 | a750fc0b | j_mayer | /* PowerPC 603e7t */
|
8398 | 80d11f44 | j_mayer | POWERPC_DEF("603e7t", CPU_POWERPC_603E7t, 603E), |
8399 | a750fc0b | j_mayer | /* PowerPC 603e7v */
|
8400 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v", CPU_POWERPC_603E7v, 603E), |
8401 | a750fc0b | j_mayer | /* Code name for PowerPC 603ev */
|
8402 | 80d11f44 | j_mayer | POWERPC_DEF("Vaillant", CPU_POWERPC_603E7v, 603E), |
8403 | a750fc0b | j_mayer | /* PowerPC 603e7v1 */
|
8404 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v1", CPU_POWERPC_603E7v1, 603E), |
8405 | a750fc0b | j_mayer | /* PowerPC 603e7v2 */
|
8406 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v2", CPU_POWERPC_603E7v2, 603E), |
8407 | 082c6681 | j_mayer | /* PowerPC 603p (aka PID7v) */
|
8408 | 082c6681 | j_mayer | POWERPC_DEF("603p", CPU_POWERPC_603P, 603E), |
8409 | 082c6681 | j_mayer | /* PowerPC 603r (aka PID7t) */
|
8410 | 80d11f44 | j_mayer | POWERPC_DEF("603r", CPU_POWERPC_603R, 603E), |
8411 | a750fc0b | j_mayer | /* Code name for PowerPC 603r */
|
8412 | 80d11f44 | j_mayer | POWERPC_DEF("Goldeneye", CPU_POWERPC_603R, 603E), |
8413 | a750fc0b | j_mayer | /* PowerPC 604 */
|
8414 | 80d11f44 | j_mayer | POWERPC_DEF("604", CPU_POWERPC_604, 604), |
8415 | 082c6681 | j_mayer | /* PowerPC 604e (aka PID9) */
|
8416 | 082c6681 | j_mayer | POWERPC_DEF("604e", CPU_POWERPC_604E, 604E), |
8417 | 082c6681 | j_mayer | /* Code name for PowerPC 604e */
|
8418 | 082c6681 | j_mayer | POWERPC_DEF("Sirocco", CPU_POWERPC_604E, 604E), |
8419 | a750fc0b | j_mayer | /* PowerPC 604e v1.0 */
|
8420 | 082c6681 | j_mayer | POWERPC_DEF("604e_v1.0", CPU_POWERPC_604E_v10, 604E), |
8421 | a750fc0b | j_mayer | /* PowerPC 604e v2.2 */
|
8422 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.2", CPU_POWERPC_604E_v22, 604E), |
8423 | a750fc0b | j_mayer | /* PowerPC 604e v2.4 */
|
8424 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.4", CPU_POWERPC_604E_v24, 604E), |
8425 | 082c6681 | j_mayer | /* PowerPC 604r (aka PIDA) */
|
8426 | 082c6681 | j_mayer | POWERPC_DEF("604r", CPU_POWERPC_604R, 604E), |
8427 | 082c6681 | j_mayer | /* Code name for PowerPC 604r */
|
8428 | 082c6681 | j_mayer | POWERPC_DEF("Mach5", CPU_POWERPC_604R, 604E), |
8429 | a750fc0b | j_mayer | #if defined(TODO)
|
8430 | a750fc0b | j_mayer | /* PowerPC 604ev */
|
8431 | 082c6681 | j_mayer | POWERPC_DEF("604ev", CPU_POWERPC_604EV, 604E), |
8432 | a750fc0b | j_mayer | #endif
|
8433 | a750fc0b | j_mayer | /* PowerPC 7xx family */
|
8434 | a750fc0b | j_mayer | /* Generic PowerPC 740 (G3) */
|
8435 | bd928eba | j_mayer | POWERPC_DEF("740", CPU_POWERPC_7x0, 740), |
8436 | 082c6681 | j_mayer | /* Code name for PowerPC 740 */
|
8437 | bd928eba | j_mayer | POWERPC_DEF("Arthur", CPU_POWERPC_7x0, 740), |
8438 | a750fc0b | j_mayer | /* Generic PowerPC 750 (G3) */
|
8439 | bd928eba | j_mayer | POWERPC_DEF("750", CPU_POWERPC_7x0, 750), |
8440 | 082c6681 | j_mayer | /* Code name for PowerPC 750 */
|
8441 | bd928eba | j_mayer | POWERPC_DEF("Typhoon", CPU_POWERPC_7x0, 750), |
8442 | a750fc0b | j_mayer | /* PowerPC 740/750 is also known as G3 */
|
8443 | bd928eba | j_mayer | POWERPC_DEF("G3", CPU_POWERPC_7x0, 750), |
8444 | bd928eba | j_mayer | /* PowerPC 740 v1.0 (G3) */
|
8445 | bd928eba | j_mayer | POWERPC_DEF("740_v1.0", CPU_POWERPC_7x0_v10, 740), |
8446 | bd928eba | j_mayer | /* PowerPC 750 v1.0 (G3) */
|
8447 | bd928eba | j_mayer | POWERPC_DEF("750_v1.0", CPU_POWERPC_7x0_v10, 750), |
8448 | a750fc0b | j_mayer | /* PowerPC 740 v2.0 (G3) */
|
8449 | bd928eba | j_mayer | POWERPC_DEF("740_v2.0", CPU_POWERPC_7x0_v20, 740), |
8450 | a750fc0b | j_mayer | /* PowerPC 750 v2.0 (G3) */
|
8451 | bd928eba | j_mayer | POWERPC_DEF("750_v2.0", CPU_POWERPC_7x0_v20, 750), |
8452 | a750fc0b | j_mayer | /* PowerPC 740 v2.1 (G3) */
|
8453 | bd928eba | j_mayer | POWERPC_DEF("740_v2.1", CPU_POWERPC_7x0_v21, 740), |
8454 | a750fc0b | j_mayer | /* PowerPC 750 v2.1 (G3) */
|
8455 | bd928eba | j_mayer | POWERPC_DEF("750_v2.1", CPU_POWERPC_7x0_v21, 750), |
8456 | a750fc0b | j_mayer | /* PowerPC 740 v2.2 (G3) */
|
8457 | bd928eba | j_mayer | POWERPC_DEF("740_v2.2", CPU_POWERPC_7x0_v22, 740), |
8458 | a750fc0b | j_mayer | /* PowerPC 750 v2.2 (G3) */
|
8459 | bd928eba | j_mayer | POWERPC_DEF("750_v2.2", CPU_POWERPC_7x0_v22, 750), |
8460 | a750fc0b | j_mayer | /* PowerPC 740 v3.0 (G3) */
|
8461 | bd928eba | j_mayer | POWERPC_DEF("740_v3.0", CPU_POWERPC_7x0_v30, 740), |
8462 | a750fc0b | j_mayer | /* PowerPC 750 v3.0 (G3) */
|
8463 | bd928eba | j_mayer | POWERPC_DEF("750_v3.0", CPU_POWERPC_7x0_v30, 750), |
8464 | a750fc0b | j_mayer | /* PowerPC 740 v3.1 (G3) */
|
8465 | bd928eba | j_mayer | POWERPC_DEF("740_v3.1", CPU_POWERPC_7x0_v31, 740), |
8466 | a750fc0b | j_mayer | /* PowerPC 750 v3.1 (G3) */
|
8467 | bd928eba | j_mayer | POWERPC_DEF("750_v3.1", CPU_POWERPC_7x0_v31, 750), |
8468 | a750fc0b | j_mayer | /* PowerPC 740E (G3) */
|
8469 | bd928eba | j_mayer | POWERPC_DEF("740e", CPU_POWERPC_740E, 740), |
8470 | bd928eba | j_mayer | /* PowerPC 750E (G3) */
|
8471 | bd928eba | j_mayer | POWERPC_DEF("750e", CPU_POWERPC_750E, 750), |
8472 | a750fc0b | j_mayer | /* PowerPC 740P (G3) */
|
8473 | bd928eba | j_mayer | POWERPC_DEF("740p", CPU_POWERPC_7x0P, 740), |
8474 | a750fc0b | j_mayer | /* PowerPC 750P (G3) */
|
8475 | bd928eba | j_mayer | POWERPC_DEF("750p", CPU_POWERPC_7x0P, 750), |
8476 | a750fc0b | j_mayer | /* Code name for PowerPC 740P/750P (G3) */
|
8477 | bd928eba | j_mayer | POWERPC_DEF("Conan/Doyle", CPU_POWERPC_7x0P, 750), |
8478 | a750fc0b | j_mayer | /* PowerPC 750CL (G3 embedded) */
|
8479 | bd928eba | j_mayer | POWERPC_DEF("750cl", CPU_POWERPC_750CL, 750cl), |
8480 | bd928eba | j_mayer | /* PowerPC 750CL v1.0 */
|
8481 | bd928eba | j_mayer | POWERPC_DEF("750cl_v1.0", CPU_POWERPC_750CL_v10, 750cl), |
8482 | bd928eba | j_mayer | /* PowerPC 750CL v2.0 */
|
8483 | bd928eba | j_mayer | POWERPC_DEF("750cl_v2.0", CPU_POWERPC_750CL_v20, 750cl), |
8484 | a750fc0b | j_mayer | /* PowerPC 750CX (G3 embedded) */
|
8485 | bd928eba | j_mayer | POWERPC_DEF("750cx", CPU_POWERPC_750CX, 750cx), |
8486 | bd928eba | j_mayer | /* PowerPC 750CX v1.0 (G3 embedded) */
|
8487 | bd928eba | j_mayer | POWERPC_DEF("750cx_v1.0", CPU_POWERPC_750CX_v10, 750cx), |
8488 | bd928eba | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8489 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.0", CPU_POWERPC_750CX_v20, 750cx), |
8490 | a750fc0b | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8491 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.1", CPU_POWERPC_750CX_v21, 750cx), |
8492 | a750fc0b | j_mayer | /* PowerPC 750CX v2.2 (G3 embedded) */
|
8493 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.2", CPU_POWERPC_750CX_v22, 750cx), |
8494 | a750fc0b | j_mayer | /* PowerPC 750CXe (G3 embedded) */
|
8495 | bd928eba | j_mayer | POWERPC_DEF("750cxe", CPU_POWERPC_750CXE, 750cx), |
8496 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.1 (G3 embedded) */
|
8497 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.1", CPU_POWERPC_750CXE_v21, 750cx), |
8498 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.2 (G3 embedded) */
|
8499 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.2", CPU_POWERPC_750CXE_v22, 750cx), |
8500 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.3 (G3 embedded) */
|
8501 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.3", CPU_POWERPC_750CXE_v23, 750cx), |
8502 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4 (G3 embedded) */
|
8503 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4", CPU_POWERPC_750CXE_v24, 750cx), |
8504 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4b (G3 embedded) */
|
8505 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4b", CPU_POWERPC_750CXE_v24b, 750cx), |
8506 | bd928eba | j_mayer | /* PowerPC 750CXe v3.0 (G3 embedded) */
|
8507 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.0", CPU_POWERPC_750CXE_v30, 750cx), |
8508 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1 (G3 embedded) */
|
8509 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1", CPU_POWERPC_750CXE_v31, 750cx), |
8510 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1b (G3 embedded) */
|
8511 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1b", CPU_POWERPC_750CXE_v31b, 750cx), |
8512 | a750fc0b | j_mayer | /* PowerPC 750CXr (G3 embedded) */
|
8513 | bd928eba | j_mayer | POWERPC_DEF("750cxr", CPU_POWERPC_750CXR, 750cx), |
8514 | a750fc0b | j_mayer | /* PowerPC 750FL (G3 embedded) */
|
8515 | 80d11f44 | j_mayer | POWERPC_DEF("750fl", CPU_POWERPC_750FL, 750fx), |
8516 | a750fc0b | j_mayer | /* PowerPC 750FX (G3 embedded) */
|
8517 | 80d11f44 | j_mayer | POWERPC_DEF("750fx", CPU_POWERPC_750FX, 750fx), |
8518 | a750fc0b | j_mayer | /* PowerPC 750FX v1.0 (G3 embedded) */
|
8519 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v1.0", CPU_POWERPC_750FX_v10, 750fx), |
8520 | a750fc0b | j_mayer | /* PowerPC 750FX v2.0 (G3 embedded) */
|
8521 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.0", CPU_POWERPC_750FX_v20, 750fx), |
8522 | a750fc0b | j_mayer | /* PowerPC 750FX v2.1 (G3 embedded) */
|
8523 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.1", CPU_POWERPC_750FX_v21, 750fx), |
8524 | a750fc0b | j_mayer | /* PowerPC 750FX v2.2 (G3 embedded) */
|
8525 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.2", CPU_POWERPC_750FX_v22, 750fx), |
8526 | a750fc0b | j_mayer | /* PowerPC 750FX v2.3 (G3 embedded) */
|
8527 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.3", CPU_POWERPC_750FX_v23, 750fx), |
8528 | a750fc0b | j_mayer | /* PowerPC 750GL (G3 embedded) */
|
8529 | bd928eba | j_mayer | POWERPC_DEF("750gl", CPU_POWERPC_750GL, 750gx), |
8530 | a750fc0b | j_mayer | /* PowerPC 750GX (G3 embedded) */
|
8531 | bd928eba | j_mayer | POWERPC_DEF("750gx", CPU_POWERPC_750GX, 750gx), |
8532 | a750fc0b | j_mayer | /* PowerPC 750GX v1.0 (G3 embedded) */
|
8533 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.0", CPU_POWERPC_750GX_v10, 750gx), |
8534 | a750fc0b | j_mayer | /* PowerPC 750GX v1.1 (G3 embedded) */
|
8535 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.1", CPU_POWERPC_750GX_v11, 750gx), |
8536 | a750fc0b | j_mayer | /* PowerPC 750GX v1.2 (G3 embedded) */
|
8537 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.2", CPU_POWERPC_750GX_v12, 750gx), |
8538 | a750fc0b | j_mayer | /* PowerPC 750L (G3 embedded) */
|
8539 | bd928eba | j_mayer | POWERPC_DEF("750l", CPU_POWERPC_750L, 750), |
8540 | a750fc0b | j_mayer | /* Code name for PowerPC 750L (G3 embedded) */
|
8541 | bd928eba | j_mayer | POWERPC_DEF("LoneStar", CPU_POWERPC_750L, 750), |
8542 | bd928eba | j_mayer | /* PowerPC 750L v2.0 (G3 embedded) */
|
8543 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.0", CPU_POWERPC_750L_v20, 750), |
8544 | bd928eba | j_mayer | /* PowerPC 750L v2.1 (G3 embedded) */
|
8545 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.1", CPU_POWERPC_750L_v21, 750), |
8546 | a750fc0b | j_mayer | /* PowerPC 750L v2.2 (G3 embedded) */
|
8547 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.2", CPU_POWERPC_750L_v22, 750), |
8548 | a750fc0b | j_mayer | /* PowerPC 750L v3.0 (G3 embedded) */
|
8549 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.0", CPU_POWERPC_750L_v30, 750), |
8550 | a750fc0b | j_mayer | /* PowerPC 750L v3.2 (G3 embedded) */
|
8551 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.2", CPU_POWERPC_750L_v32, 750), |
8552 | a750fc0b | j_mayer | /* Generic PowerPC 745 */
|
8553 | bd928eba | j_mayer | POWERPC_DEF("745", CPU_POWERPC_7x5, 745), |
8554 | a750fc0b | j_mayer | /* Generic PowerPC 755 */
|
8555 | bd928eba | j_mayer | POWERPC_DEF("755", CPU_POWERPC_7x5, 755), |
8556 | a750fc0b | j_mayer | /* Code name for PowerPC 745/755 */
|
8557 | bd928eba | j_mayer | POWERPC_DEF("Goldfinger", CPU_POWERPC_7x5, 755), |
8558 | a750fc0b | j_mayer | /* PowerPC 745 v1.0 */
|
8559 | bd928eba | j_mayer | POWERPC_DEF("745_v1.0", CPU_POWERPC_7x5_v10, 745), |
8560 | a750fc0b | j_mayer | /* PowerPC 755 v1.0 */
|
8561 | bd928eba | j_mayer | POWERPC_DEF("755_v1.0", CPU_POWERPC_7x5_v10, 755), |
8562 | a750fc0b | j_mayer | /* PowerPC 745 v1.1 */
|
8563 | bd928eba | j_mayer | POWERPC_DEF("745_v1.1", CPU_POWERPC_7x5_v11, 745), |
8564 | a750fc0b | j_mayer | /* PowerPC 755 v1.1 */
|
8565 | bd928eba | j_mayer | POWERPC_DEF("755_v1.1", CPU_POWERPC_7x5_v11, 755), |
8566 | a750fc0b | j_mayer | /* PowerPC 745 v2.0 */
|
8567 | bd928eba | j_mayer | POWERPC_DEF("745_v2.0", CPU_POWERPC_7x5_v20, 745), |
8568 | a750fc0b | j_mayer | /* PowerPC 755 v2.0 */
|
8569 | bd928eba | j_mayer | POWERPC_DEF("755_v2.0", CPU_POWERPC_7x5_v20, 755), |
8570 | a750fc0b | j_mayer | /* PowerPC 745 v2.1 */
|
8571 | bd928eba | j_mayer | POWERPC_DEF("745_v2.1", CPU_POWERPC_7x5_v21, 745), |
8572 | a750fc0b | j_mayer | /* PowerPC 755 v2.1 */
|
8573 | bd928eba | j_mayer | POWERPC_DEF("755_v2.1", CPU_POWERPC_7x5_v21, 755), |
8574 | a750fc0b | j_mayer | /* PowerPC 745 v2.2 */
|
8575 | bd928eba | j_mayer | POWERPC_DEF("745_v2.2", CPU_POWERPC_7x5_v22, 745), |
8576 | a750fc0b | j_mayer | /* PowerPC 755 v2.2 */
|
8577 | bd928eba | j_mayer | POWERPC_DEF("755_v2.2", CPU_POWERPC_7x5_v22, 755), |
8578 | a750fc0b | j_mayer | /* PowerPC 745 v2.3 */
|
8579 | bd928eba | j_mayer | POWERPC_DEF("745_v2.3", CPU_POWERPC_7x5_v23, 745), |
8580 | a750fc0b | j_mayer | /* PowerPC 755 v2.3 */
|
8581 | bd928eba | j_mayer | POWERPC_DEF("755_v2.3", CPU_POWERPC_7x5_v23, 755), |
8582 | a750fc0b | j_mayer | /* PowerPC 745 v2.4 */
|
8583 | bd928eba | j_mayer | POWERPC_DEF("745_v2.4", CPU_POWERPC_7x5_v24, 745), |
8584 | a750fc0b | j_mayer | /* PowerPC 755 v2.4 */
|
8585 | bd928eba | j_mayer | POWERPC_DEF("755_v2.4", CPU_POWERPC_7x5_v24, 755), |
8586 | a750fc0b | j_mayer | /* PowerPC 745 v2.5 */
|
8587 | bd928eba | j_mayer | POWERPC_DEF("745_v2.5", CPU_POWERPC_7x5_v25, 745), |
8588 | a750fc0b | j_mayer | /* PowerPC 755 v2.5 */
|
8589 | bd928eba | j_mayer | POWERPC_DEF("755_v2.5", CPU_POWERPC_7x5_v25, 755), |
8590 | a750fc0b | j_mayer | /* PowerPC 745 v2.6 */
|
8591 | bd928eba | j_mayer | POWERPC_DEF("745_v2.6", CPU_POWERPC_7x5_v26, 745), |
8592 | a750fc0b | j_mayer | /* PowerPC 755 v2.6 */
|
8593 | bd928eba | j_mayer | POWERPC_DEF("755_v2.6", CPU_POWERPC_7x5_v26, 755), |
8594 | a750fc0b | j_mayer | /* PowerPC 745 v2.7 */
|
8595 | bd928eba | j_mayer | POWERPC_DEF("745_v2.7", CPU_POWERPC_7x5_v27, 745), |
8596 | a750fc0b | j_mayer | /* PowerPC 755 v2.7 */
|
8597 | bd928eba | j_mayer | POWERPC_DEF("755_v2.7", CPU_POWERPC_7x5_v27, 755), |
8598 | a750fc0b | j_mayer | /* PowerPC 745 v2.8 */
|
8599 | bd928eba | j_mayer | POWERPC_DEF("745_v2.8", CPU_POWERPC_7x5_v28, 745), |
8600 | a750fc0b | j_mayer | /* PowerPC 755 v2.8 */
|
8601 | bd928eba | j_mayer | POWERPC_DEF("755_v2.8", CPU_POWERPC_7x5_v28, 755), |
8602 | a750fc0b | j_mayer | #if defined (TODO)
|
8603 | a750fc0b | j_mayer | /* PowerPC 745P (G3) */
|
8604 | bd928eba | j_mayer | POWERPC_DEF("745p", CPU_POWERPC_7x5P, 745), |
8605 | a750fc0b | j_mayer | /* PowerPC 755P (G3) */
|
8606 | bd928eba | j_mayer | POWERPC_DEF("755p", CPU_POWERPC_7x5P, 755), |
8607 | a750fc0b | j_mayer | #endif
|
8608 | a750fc0b | j_mayer | /* PowerPC 74xx family */
|
8609 | a750fc0b | j_mayer | /* PowerPC 7400 (G4) */
|
8610 | 80d11f44 | j_mayer | POWERPC_DEF("7400", CPU_POWERPC_7400, 7400), |
8611 | a750fc0b | j_mayer | /* Code name for PowerPC 7400 */
|
8612 | 80d11f44 | j_mayer | POWERPC_DEF("Max", CPU_POWERPC_7400, 7400), |
8613 | a750fc0b | j_mayer | /* PowerPC 74xx is also well known as G4 */
|
8614 | 80d11f44 | j_mayer | POWERPC_DEF("G4", CPU_POWERPC_7400, 7400), |
8615 | a750fc0b | j_mayer | /* PowerPC 7400 v1.0 (G4) */
|
8616 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.0", CPU_POWERPC_7400_v10, 7400), |
8617 | a750fc0b | j_mayer | /* PowerPC 7400 v1.1 (G4) */
|
8618 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.1", CPU_POWERPC_7400_v11, 7400), |
8619 | a750fc0b | j_mayer | /* PowerPC 7400 v2.0 (G4) */
|
8620 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.0", CPU_POWERPC_7400_v20, 7400), |
8621 | 4e777442 | j_mayer | /* PowerPC 7400 v2.1 (G4) */
|
8622 | 4e777442 | j_mayer | POWERPC_DEF("7400_v2.1", CPU_POWERPC_7400_v21, 7400), |
8623 | a750fc0b | j_mayer | /* PowerPC 7400 v2.2 (G4) */
|
8624 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.2", CPU_POWERPC_7400_v22, 7400), |
8625 | a750fc0b | j_mayer | /* PowerPC 7400 v2.6 (G4) */
|
8626 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.6", CPU_POWERPC_7400_v26, 7400), |
8627 | a750fc0b | j_mayer | /* PowerPC 7400 v2.7 (G4) */
|
8628 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.7", CPU_POWERPC_7400_v27, 7400), |
8629 | a750fc0b | j_mayer | /* PowerPC 7400 v2.8 (G4) */
|
8630 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.8", CPU_POWERPC_7400_v28, 7400), |
8631 | a750fc0b | j_mayer | /* PowerPC 7400 v2.9 (G4) */
|
8632 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.9", CPU_POWERPC_7400_v29, 7400), |
8633 | a750fc0b | j_mayer | /* PowerPC 7410 (G4) */
|
8634 | 80d11f44 | j_mayer | POWERPC_DEF("7410", CPU_POWERPC_7410, 7410), |
8635 | a750fc0b | j_mayer | /* Code name for PowerPC 7410 */
|
8636 | 80d11f44 | j_mayer | POWERPC_DEF("Nitro", CPU_POWERPC_7410, 7410), |
8637 | a750fc0b | j_mayer | /* PowerPC 7410 v1.0 (G4) */
|
8638 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.0", CPU_POWERPC_7410_v10, 7410), |
8639 | a750fc0b | j_mayer | /* PowerPC 7410 v1.1 (G4) */
|
8640 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.1", CPU_POWERPC_7410_v11, 7410), |
8641 | a750fc0b | j_mayer | /* PowerPC 7410 v1.2 (G4) */
|
8642 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.2", CPU_POWERPC_7410_v12, 7410), |
8643 | a750fc0b | j_mayer | /* PowerPC 7410 v1.3 (G4) */
|
8644 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.3", CPU_POWERPC_7410_v13, 7410), |
8645 | a750fc0b | j_mayer | /* PowerPC 7410 v1.4 (G4) */
|
8646 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.4", CPU_POWERPC_7410_v14, 7410), |
8647 | a750fc0b | j_mayer | /* PowerPC 7448 (G4) */
|
8648 | 80d11f44 | j_mayer | POWERPC_DEF("7448", CPU_POWERPC_7448, 7400), |
8649 | a750fc0b | j_mayer | /* PowerPC 7448 v1.0 (G4) */
|
8650 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.0", CPU_POWERPC_7448_v10, 7400), |
8651 | a750fc0b | j_mayer | /* PowerPC 7448 v1.1 (G4) */
|
8652 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.1", CPU_POWERPC_7448_v11, 7400), |
8653 | a750fc0b | j_mayer | /* PowerPC 7448 v2.0 (G4) */
|
8654 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.0", CPU_POWERPC_7448_v20, 7400), |
8655 | a750fc0b | j_mayer | /* PowerPC 7448 v2.1 (G4) */
|
8656 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.1", CPU_POWERPC_7448_v21, 7400), |
8657 | a750fc0b | j_mayer | /* PowerPC 7450 (G4) */
|
8658 | 80d11f44 | j_mayer | POWERPC_DEF("7450", CPU_POWERPC_7450, 7450), |
8659 | a750fc0b | j_mayer | /* Code name for PowerPC 7450 */
|
8660 | 80d11f44 | j_mayer | POWERPC_DEF("Vger", CPU_POWERPC_7450, 7450), |
8661 | a750fc0b | j_mayer | /* PowerPC 7450 v1.0 (G4) */
|
8662 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.0", CPU_POWERPC_7450_v10, 7450), |
8663 | a750fc0b | j_mayer | /* PowerPC 7450 v1.1 (G4) */
|
8664 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.1", CPU_POWERPC_7450_v11, 7450), |
8665 | a750fc0b | j_mayer | /* PowerPC 7450 v1.2 (G4) */
|
8666 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.2", CPU_POWERPC_7450_v12, 7450), |
8667 | a750fc0b | j_mayer | /* PowerPC 7450 v2.0 (G4) */
|
8668 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.0", CPU_POWERPC_7450_v20, 7450), |
8669 | a750fc0b | j_mayer | /* PowerPC 7450 v2.1 (G4) */
|
8670 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.1", CPU_POWERPC_7450_v21, 7450), |
8671 | a750fc0b | j_mayer | /* PowerPC 7441 (G4) */
|
8672 | 80d11f44 | j_mayer | POWERPC_DEF("7441", CPU_POWERPC_74x1, 7440), |
8673 | a750fc0b | j_mayer | /* PowerPC 7451 (G4) */
|
8674 | 80d11f44 | j_mayer | POWERPC_DEF("7451", CPU_POWERPC_74x1, 7450), |
8675 | 4e777442 | j_mayer | /* PowerPC 7441 v2.1 (G4) */
|
8676 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.1", CPU_POWERPC_7450_v21, 7440), |
8677 | 4e777442 | j_mayer | /* PowerPC 7441 v2.3 (G4) */
|
8678 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.3", CPU_POWERPC_74x1_v23, 7440), |
8679 | 4e777442 | j_mayer | /* PowerPC 7451 v2.3 (G4) */
|
8680 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.3", CPU_POWERPC_74x1_v23, 7450), |
8681 | 4e777442 | j_mayer | /* PowerPC 7441 v2.10 (G4) */
|
8682 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.10", CPU_POWERPC_74x1_v210, 7440), |
8683 | 4e777442 | j_mayer | /* PowerPC 7451 v2.10 (G4) */
|
8684 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.10", CPU_POWERPC_74x1_v210, 7450), |
8685 | a750fc0b | j_mayer | /* PowerPC 7445 (G4) */
|
8686 | 80d11f44 | j_mayer | POWERPC_DEF("7445", CPU_POWERPC_74x5, 7445), |
8687 | a750fc0b | j_mayer | /* PowerPC 7455 (G4) */
|
8688 | 80d11f44 | j_mayer | POWERPC_DEF("7455", CPU_POWERPC_74x5, 7455), |
8689 | a750fc0b | j_mayer | /* Code name for PowerPC 7445/7455 */
|
8690 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo6", CPU_POWERPC_74x5, 7455), |
8691 | a750fc0b | j_mayer | /* PowerPC 7445 v1.0 (G4) */
|
8692 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v1.0", CPU_POWERPC_74x5_v10, 7445), |
8693 | a750fc0b | j_mayer | /* PowerPC 7455 v1.0 (G4) */
|
8694 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v1.0", CPU_POWERPC_74x5_v10, 7455), |
8695 | a750fc0b | j_mayer | /* PowerPC 7445 v2.1 (G4) */
|
8696 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v2.1", CPU_POWERPC_74x5_v21, 7445), |
8697 | a750fc0b | j_mayer | /* PowerPC 7455 v2.1 (G4) */
|
8698 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v2.1", CPU_POWERPC_74x5_v21, 7455), |
8699 | a750fc0b | j_mayer | /* PowerPC 7445 v3.2 (G4) */
|
8700 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.2", CPU_POWERPC_74x5_v32, 7445), |
8701 | a750fc0b | j_mayer | /* PowerPC 7455 v3.2 (G4) */
|
8702 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.2", CPU_POWERPC_74x5_v32, 7455), |
8703 | a750fc0b | j_mayer | /* PowerPC 7445 v3.3 (G4) */
|
8704 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.3", CPU_POWERPC_74x5_v33, 7445), |
8705 | a750fc0b | j_mayer | /* PowerPC 7455 v3.3 (G4) */
|
8706 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.3", CPU_POWERPC_74x5_v33, 7455), |
8707 | a750fc0b | j_mayer | /* PowerPC 7445 v3.4 (G4) */
|
8708 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.4", CPU_POWERPC_74x5_v34, 7445), |
8709 | a750fc0b | j_mayer | /* PowerPC 7455 v3.4 (G4) */
|
8710 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.4", CPU_POWERPC_74x5_v34, 7455), |
8711 | a750fc0b | j_mayer | /* PowerPC 7447 (G4) */
|
8712 | 80d11f44 | j_mayer | POWERPC_DEF("7447", CPU_POWERPC_74x7, 7445), |
8713 | a750fc0b | j_mayer | /* PowerPC 7457 (G4) */
|
8714 | 80d11f44 | j_mayer | POWERPC_DEF("7457", CPU_POWERPC_74x7, 7455), |
8715 | a750fc0b | j_mayer | /* Code name for PowerPC 7447/7457 */
|
8716 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo7", CPU_POWERPC_74x7, 7455), |
8717 | a750fc0b | j_mayer | /* PowerPC 7447 v1.0 (G4) */
|
8718 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.0", CPU_POWERPC_74x7_v10, 7445), |
8719 | a750fc0b | j_mayer | /* PowerPC 7457 v1.0 (G4) */
|
8720 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.0", CPU_POWERPC_74x7_v10, 7455), |
8721 | a750fc0b | j_mayer | /* PowerPC 7447 v1.1 (G4) */
|
8722 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.1", CPU_POWERPC_74x7_v11, 7445), |
8723 | a750fc0b | j_mayer | /* PowerPC 7457 v1.1 (G4) */
|
8724 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.1", CPU_POWERPC_74x7_v11, 7455), |
8725 | a750fc0b | j_mayer | /* PowerPC 7457 v1.2 (G4) */
|
8726 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.2", CPU_POWERPC_74x7_v12, 7455), |
8727 | 082c6681 | j_mayer | /* PowerPC 7447A (G4) */
|
8728 | 082c6681 | j_mayer | POWERPC_DEF("7447A", CPU_POWERPC_74x7A, 7445), |
8729 | 082c6681 | j_mayer | /* PowerPC 7457A (G4) */
|
8730 | 082c6681 | j_mayer | POWERPC_DEF("7457A", CPU_POWERPC_74x7A, 7455), |
8731 | 082c6681 | j_mayer | /* PowerPC 7447A v1.0 (G4) */
|
8732 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.0", CPU_POWERPC_74x7A_v10, 7445), |
8733 | 082c6681 | j_mayer | /* PowerPC 7457A v1.0 (G4) */
|
8734 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.0", CPU_POWERPC_74x7A_v10, 7455), |
8735 | 082c6681 | j_mayer | /* Code name for PowerPC 7447A/7457A */
|
8736 | 082c6681 | j_mayer | POWERPC_DEF("Apollo7PM", CPU_POWERPC_74x7A_v10, 7455), |
8737 | 082c6681 | j_mayer | /* PowerPC 7447A v1.1 (G4) */
|
8738 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.1", CPU_POWERPC_74x7A_v11, 7445), |
8739 | 082c6681 | j_mayer | /* PowerPC 7457A v1.1 (G4) */
|
8740 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.1", CPU_POWERPC_74x7A_v11, 7455), |
8741 | 082c6681 | j_mayer | /* PowerPC 7447A v1.2 (G4) */
|
8742 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.2", CPU_POWERPC_74x7A_v12, 7445), |
8743 | 082c6681 | j_mayer | /* PowerPC 7457A v1.2 (G4) */
|
8744 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.2", CPU_POWERPC_74x7A_v12, 7455), |
8745 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
8746 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8747 | a750fc0b | j_mayer | /* PowerPC 620 */
|
8748 | 80d11f44 | j_mayer | POWERPC_DEF("620", CPU_POWERPC_620, 620), |
8749 | 082c6681 | j_mayer | /* Code name for PowerPC 620 */
|
8750 | 082c6681 | j_mayer | POWERPC_DEF("Trident", CPU_POWERPC_620, 620), |
8751 | 3fc6c082 | bellard | #if defined (TODO)
|
8752 | a750fc0b | j_mayer | /* PowerPC 630 (POWER3) */
|
8753 | 80d11f44 | j_mayer | POWERPC_DEF("630", CPU_POWERPC_630, 630), |
8754 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3", CPU_POWERPC_630, 630), |
8755 | 082c6681 | j_mayer | /* Code names for POWER3 */
|
8756 | 082c6681 | j_mayer | POWERPC_DEF("Boxer", CPU_POWERPC_630, 630), |
8757 | 082c6681 | j_mayer | POWERPC_DEF("Dino", CPU_POWERPC_630, 630), |
8758 | a750fc0b | j_mayer | #endif
|
8759 | 3a607854 | j_mayer | #if defined (TODO)
|
8760 | a750fc0b | j_mayer | /* PowerPC 631 (Power 3+) */
|
8761 | 80d11f44 | j_mayer | POWERPC_DEF("631", CPU_POWERPC_631, 631), |
8762 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3+", CPU_POWERPC_631, 631), |
8763 | 3a607854 | j_mayer | #endif
|
8764 | 3a607854 | j_mayer | #if defined (TODO)
|
8765 | a750fc0b | j_mayer | /* POWER4 */
|
8766 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4", CPU_POWERPC_POWER4, POWER4),
|
8767 | a750fc0b | j_mayer | #endif
|
8768 | 3a607854 | j_mayer | #if defined (TODO)
|
8769 | a750fc0b | j_mayer | /* POWER4p */
|
8770 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4+", CPU_POWERPC_POWER4P, POWER4P),
|
8771 | a750fc0b | j_mayer | #endif
|
8772 | 3a607854 | j_mayer | #if defined (TODO)
|
8773 | a750fc0b | j_mayer | /* POWER5 */
|
8774 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5", CPU_POWERPC_POWER5, POWER5),
|
8775 | a750fc0b | j_mayer | /* POWER5GR */
|
8776 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gr", CPU_POWERPC_POWER5GR, POWER5),
|
8777 | 2662a059 | j_mayer | #endif
|
8778 | 2662a059 | j_mayer | #if defined (TODO)
|
8779 | a750fc0b | j_mayer | /* POWER5+ */
|
8780 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5+", CPU_POWERPC_POWER5P, POWER5P),
|
8781 | a750fc0b | j_mayer | /* POWER5GS */
|
8782 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gs", CPU_POWERPC_POWER5GS, POWER5P),
|
8783 | a750fc0b | j_mayer | #endif
|
8784 | 2662a059 | j_mayer | #if defined (TODO)
|
8785 | a750fc0b | j_mayer | /* POWER6 */
|
8786 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6", CPU_POWERPC_POWER6, POWER6),
|
8787 | a750fc0b | j_mayer | /* POWER6 running in POWER5 mode */
|
8788 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6_5", CPU_POWERPC_POWER6_5, POWER5),
|
8789 | a750fc0b | j_mayer | /* POWER6A */
|
8790 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6A", CPU_POWERPC_POWER6A, POWER6),
|
8791 | 2662a059 | j_mayer | #endif
|
8792 | a750fc0b | j_mayer | /* PowerPC 970 */
|
8793 | 80d11f44 | j_mayer | POWERPC_DEF("970", CPU_POWERPC_970, 970), |
8794 | a750fc0b | j_mayer | /* PowerPC 970FX (G5) */
|
8795 | 80d11f44 | j_mayer | POWERPC_DEF("970fx", CPU_POWERPC_970FX, 970FX), |
8796 | a750fc0b | j_mayer | /* PowerPC 970FX v1.0 (G5) */
|
8797 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v1.0", CPU_POWERPC_970FX_v10, 970FX), |
8798 | a750fc0b | j_mayer | /* PowerPC 970FX v2.0 (G5) */
|
8799 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.0", CPU_POWERPC_970FX_v20, 970FX), |
8800 | a750fc0b | j_mayer | /* PowerPC 970FX v2.1 (G5) */
|
8801 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.1", CPU_POWERPC_970FX_v21, 970FX), |
8802 | a750fc0b | j_mayer | /* PowerPC 970FX v3.0 (G5) */
|
8803 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.0", CPU_POWERPC_970FX_v30, 970FX), |
8804 | a750fc0b | j_mayer | /* PowerPC 970FX v3.1 (G5) */
|
8805 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.1", CPU_POWERPC_970FX_v31, 970FX), |
8806 | a750fc0b | j_mayer | /* PowerPC 970GX (G5) */
|
8807 | 80d11f44 | j_mayer | POWERPC_DEF("970gx", CPU_POWERPC_970GX, 970GX), |
8808 | a750fc0b | j_mayer | /* PowerPC 970MP */
|
8809 | 80d11f44 | j_mayer | POWERPC_DEF("970mp", CPU_POWERPC_970MP, 970MP), |
8810 | a750fc0b | j_mayer | /* PowerPC 970MP v1.0 */
|
8811 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.0", CPU_POWERPC_970MP_v10, 970MP), |
8812 | a750fc0b | j_mayer | /* PowerPC 970MP v1.1 */
|
8813 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.1", CPU_POWERPC_970MP_v11, 970MP), |
8814 | 3a607854 | j_mayer | #if defined (TODO)
|
8815 | a750fc0b | j_mayer | /* PowerPC Cell */
|
8816 | 80d11f44 | j_mayer | POWERPC_DEF("Cell", CPU_POWERPC_CELL, 970), |
8817 | 2662a059 | j_mayer | #endif
|
8818 | 2662a059 | j_mayer | #if defined (TODO)
|
8819 | a750fc0b | j_mayer | /* PowerPC Cell v1.0 */
|
8820 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v1.0", CPU_POWERPC_CELL_v10, 970), |
8821 | 2662a059 | j_mayer | #endif
|
8822 | 2662a059 | j_mayer | #if defined (TODO)
|
8823 | a750fc0b | j_mayer | /* PowerPC Cell v2.0 */
|
8824 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v2.0", CPU_POWERPC_CELL_v20, 970), |
8825 | 2662a059 | j_mayer | #endif
|
8826 | 2662a059 | j_mayer | #if defined (TODO)
|
8827 | a750fc0b | j_mayer | /* PowerPC Cell v3.0 */
|
8828 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.0", CPU_POWERPC_CELL_v30, 970), |
8829 | 3a607854 | j_mayer | #endif
|
8830 | 3a607854 | j_mayer | #if defined (TODO)
|
8831 | a750fc0b | j_mayer | /* PowerPC Cell v3.1 */
|
8832 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.1", CPU_POWERPC_CELL_v31, 970), |
8833 | 2662a059 | j_mayer | #endif
|
8834 | 2662a059 | j_mayer | #if defined (TODO)
|
8835 | a750fc0b | j_mayer | /* PowerPC Cell v3.2 */
|
8836 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.2", CPU_POWERPC_CELL_v32, 970), |
8837 | 2662a059 | j_mayer | #endif
|
8838 | 2662a059 | j_mayer | #if defined (TODO)
|
8839 | a750fc0b | j_mayer | /* RS64 (Apache/A35) */
|
8840 | a750fc0b | j_mayer | /* This one seems to support the whole POWER2 instruction set
|
8841 | a750fc0b | j_mayer | * and the PowerPC 64 one.
|
8842 | a750fc0b | j_mayer | */
|
8843 | a750fc0b | j_mayer | /* What about A10 & A30 ? */
|
8844 | 80d11f44 | j_mayer | POWERPC_DEF("RS64", CPU_POWERPC_RS64, RS64),
|
8845 | 80d11f44 | j_mayer | POWERPC_DEF("Apache", CPU_POWERPC_RS64, RS64),
|
8846 | 80d11f44 | j_mayer | POWERPC_DEF("A35", CPU_POWERPC_RS64, RS64),
|
8847 | 3a607854 | j_mayer | #endif
|
8848 | 3a607854 | j_mayer | #if defined (TODO)
|
8849 | a750fc0b | j_mayer | /* RS64-II (NorthStar/A50) */
|
8850 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-II", CPU_POWERPC_RS64II, RS64),
|
8851 | 80d11f44 | j_mayer | POWERPC_DEF("NorthStar", CPU_POWERPC_RS64II, RS64),
|
8852 | 80d11f44 | j_mayer | POWERPC_DEF("A50", CPU_POWERPC_RS64II, RS64),
|
8853 | 3a607854 | j_mayer | #endif
|
8854 | 3a607854 | j_mayer | #if defined (TODO)
|
8855 | a750fc0b | j_mayer | /* RS64-III (Pulsar) */
|
8856 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-III", CPU_POWERPC_RS64III, RS64),
|
8857 | 80d11f44 | j_mayer | POWERPC_DEF("Pulsar", CPU_POWERPC_RS64III, RS64),
|
8858 | 2662a059 | j_mayer | #endif
|
8859 | 2662a059 | j_mayer | #if defined (TODO)
|
8860 | a750fc0b | j_mayer | /* RS64-IV (IceStar/IStar/SStar) */
|
8861 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-IV", CPU_POWERPC_RS64IV, RS64),
|
8862 | 80d11f44 | j_mayer | POWERPC_DEF("IceStar", CPU_POWERPC_RS64IV, RS64),
|
8863 | 80d11f44 | j_mayer | POWERPC_DEF("IStar", CPU_POWERPC_RS64IV, RS64),
|
8864 | 80d11f44 | j_mayer | POWERPC_DEF("SStar", CPU_POWERPC_RS64IV, RS64),
|
8865 | 3a607854 | j_mayer | #endif
|
8866 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
8867 | a750fc0b | j_mayer | /* POWER */
|
8868 | 3fc6c082 | bellard | #if defined (TODO)
|
8869 | a750fc0b | j_mayer | /* Original POWER */
|
8870 | 80d11f44 | j_mayer | POWERPC_DEF("POWER", CPU_POWERPC_POWER, POWER),
|
8871 | 80d11f44 | j_mayer | POWERPC_DEF("RIOS", CPU_POWERPC_POWER, POWER),
|
8872 | 80d11f44 | j_mayer | POWERPC_DEF("RSC", CPU_POWERPC_POWER, POWER),
|
8873 | 80d11f44 | j_mayer | POWERPC_DEF("RSC3308", CPU_POWERPC_POWER, POWER),
|
8874 | 80d11f44 | j_mayer | POWERPC_DEF("RSC4608", CPU_POWERPC_POWER, POWER),
|
8875 | 76a66253 | j_mayer | #endif
|
8876 | 76a66253 | j_mayer | #if defined (TODO)
|
8877 | a750fc0b | j_mayer | /* POWER2 */
|
8878 | 80d11f44 | j_mayer | POWERPC_DEF("POWER2", CPU_POWERPC_POWER2, POWER),
|
8879 | 80d11f44 | j_mayer | POWERPC_DEF("RSC2", CPU_POWERPC_POWER2, POWER),
|
8880 | 80d11f44 | j_mayer | POWERPC_DEF("P2SC", CPU_POWERPC_POWER2, POWER),
|
8881 | a750fc0b | j_mayer | #endif
|
8882 | a750fc0b | j_mayer | /* PA semi cores */
|
8883 | a750fc0b | j_mayer | #if defined (TODO)
|
8884 | a750fc0b | j_mayer | /* PA PA6T */
|
8885 | 80d11f44 | j_mayer | POWERPC_DEF("PA6T", CPU_POWERPC_PA6T, PA6T),
|
8886 | a750fc0b | j_mayer | #endif
|
8887 | a750fc0b | j_mayer | /* Generic PowerPCs */
|
8888 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8889 | 80d11f44 | j_mayer | POWERPC_DEF("ppc64", CPU_POWERPC_PPC64, PPC64),
|
8890 | a750fc0b | j_mayer | #endif
|
8891 | 80d11f44 | j_mayer | POWERPC_DEF("ppc32", CPU_POWERPC_PPC32, PPC32),
|
8892 | 80d11f44 | j_mayer | POWERPC_DEF("ppc", CPU_POWERPC_DEFAULT, DEFAULT),
|
8893 | a750fc0b | j_mayer | /* Fallback */
|
8894 | 80d11f44 | j_mayer | POWERPC_DEF("default", CPU_POWERPC_DEFAULT, DEFAULT),
|
8895 | a750fc0b | j_mayer | }; |
8896 | a750fc0b | j_mayer | |
8897 | a750fc0b | j_mayer | /*****************************************************************************/
|
8898 | a750fc0b | j_mayer | /* Generic CPU instanciation routine */
|
8899 | c227f099 | Anthony Liguori | static void init_ppc_proc (CPUPPCState *env, const ppc_def_t *def) |
8900 | a750fc0b | j_mayer | { |
8901 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8902 | e1833e1f | j_mayer | int i;
|
8903 | e1833e1f | j_mayer | |
8904 | a750fc0b | j_mayer | env->irq_inputs = NULL;
|
8905 | e1833e1f | j_mayer | /* Set all exception vectors to an invalid address */
|
8906 | e1833e1f | j_mayer | for (i = 0; i < POWERPC_EXCP_NB; i++) |
8907 | e1833e1f | j_mayer | env->excp_vectors[i] = (target_ulong)(-1ULL);
|
8908 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000;
|
8909 | e1833e1f | j_mayer | env->ivor_mask = 0x00000000;
|
8910 | e1833e1f | j_mayer | env->ivpr_mask = 0x00000000;
|
8911 | a750fc0b | j_mayer | /* Default MMU definitions */
|
8912 | a750fc0b | j_mayer | env->nb_BATs = 0;
|
8913 | a750fc0b | j_mayer | env->nb_tlb = 0;
|
8914 | a750fc0b | j_mayer | env->nb_ways = 0;
|
8915 | f2e63a42 | j_mayer | #endif
|
8916 | a750fc0b | j_mayer | /* Register SPR common to all PowerPC implementations */
|
8917 | a750fc0b | j_mayer | gen_spr_generic(env); |
8918 | a750fc0b | j_mayer | spr_register(env, SPR_PVR, "PVR",
|
8919 | a139aa17 | Nathan Froyd | /* Linux permits userspace to read PVR */
|
8920 | a139aa17 | Nathan Froyd | #if defined(CONFIG_LINUX_USER)
|
8921 | a139aa17 | Nathan Froyd | &spr_read_generic, |
8922 | a139aa17 | Nathan Froyd | #else
|
8923 | a139aa17 | Nathan Froyd | SPR_NOACCESS, |
8924 | a139aa17 | Nathan Froyd | #endif
|
8925 | a139aa17 | Nathan Froyd | SPR_NOACCESS, |
8926 | a750fc0b | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8927 | a750fc0b | j_mayer | def->pvr); |
8928 | 80d11f44 | j_mayer | /* Register SVR if it's defined to anything else than POWERPC_SVR_NONE */
|
8929 | 80d11f44 | j_mayer | if (def->svr != POWERPC_SVR_NONE) {
|
8930 | 80d11f44 | j_mayer | if (def->svr & POWERPC_SVR_E500) {
|
8931 | 80d11f44 | j_mayer | spr_register(env, SPR_E500_SVR, "SVR",
|
8932 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8933 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8934 | 80d11f44 | j_mayer | def->svr & ~POWERPC_SVR_E500); |
8935 | 80d11f44 | j_mayer | } else {
|
8936 | 80d11f44 | j_mayer | spr_register(env, SPR_SVR, "SVR",
|
8937 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8938 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8939 | 80d11f44 | j_mayer | def->svr); |
8940 | 80d11f44 | j_mayer | } |
8941 | 80d11f44 | j_mayer | } |
8942 | a750fc0b | j_mayer | /* PowerPC implementation specific initialisations (SPRs, timers, ...) */
|
8943 | a750fc0b | j_mayer | (*def->init_proc)(env); |
8944 | fc1c67bc | Blue Swirl | #if !defined(CONFIG_USER_ONLY)
|
8945 | fc1c67bc | Blue Swirl | env->excp_prefix = env->hreset_excp_prefix; |
8946 | fc1c67bc | Blue Swirl | #endif
|
8947 | 25ba3a68 | j_mayer | /* MSR bits & flags consistency checks */
|
8948 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 25)) { |
8949 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) {
|
8950 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SPE:
|
8951 | 25ba3a68 | j_mayer | case POWERPC_FLAG_VRE:
|
8952 | 25ba3a68 | j_mayer | break;
|
8953 | 25ba3a68 | j_mayer | default:
|
8954 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8955 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SPE or POWERPC_FLAG_VRE\n");
|
8956 | 25ba3a68 | j_mayer | exit(1);
|
8957 | 25ba3a68 | j_mayer | } |
8958 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) { |
8959 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8960 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SPE nor POWERPC_FLAG_VRE\n");
|
8961 | 25ba3a68 | j_mayer | exit(1);
|
8962 | 25ba3a68 | j_mayer | } |
8963 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 17)) { |
8964 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) {
|
8965 | 25ba3a68 | j_mayer | case POWERPC_FLAG_TGPR:
|
8966 | 25ba3a68 | j_mayer | case POWERPC_FLAG_CE:
|
8967 | 25ba3a68 | j_mayer | break;
|
8968 | 25ba3a68 | j_mayer | default:
|
8969 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8970 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_TGPR or POWERPC_FLAG_CE\n");
|
8971 | 25ba3a68 | j_mayer | exit(1);
|
8972 | 25ba3a68 | j_mayer | } |
8973 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) { |
8974 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8975 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_TGPR nor POWERPC_FLAG_CE\n");
|
8976 | 25ba3a68 | j_mayer | exit(1);
|
8977 | 25ba3a68 | j_mayer | } |
8978 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 10)) { |
8979 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE |
|
8980 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
8981 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SE:
|
8982 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DWE:
|
8983 | 25ba3a68 | j_mayer | case POWERPC_FLAG_UBLE:
|
8984 | 25ba3a68 | j_mayer | break;
|
8985 | 25ba3a68 | j_mayer | default:
|
8986 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8987 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SE or POWERPC_FLAG_DWE or "
|
8988 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
8989 | 25ba3a68 | j_mayer | exit(1);
|
8990 | 25ba3a68 | j_mayer | } |
8991 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE | |
8992 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
8993 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8994 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SE nor POWERPC_FLAG_DWE nor "
|
8995 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
8996 | 25ba3a68 | j_mayer | exit(1);
|
8997 | 25ba3a68 | j_mayer | } |
8998 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 9)) { |
8999 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) {
|
9000 | 25ba3a68 | j_mayer | case POWERPC_FLAG_BE:
|
9001 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DE:
|
9002 | 25ba3a68 | j_mayer | break;
|
9003 | 25ba3a68 | j_mayer | default:
|
9004 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9005 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_BE or POWERPC_FLAG_DE\n");
|
9006 | 25ba3a68 | j_mayer | exit(1);
|
9007 | 25ba3a68 | j_mayer | } |
9008 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) { |
9009 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9010 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_BE nor POWERPC_FLAG_DE\n");
|
9011 | 25ba3a68 | j_mayer | exit(1);
|
9012 | 25ba3a68 | j_mayer | } |
9013 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 2)) { |
9014 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) {
|
9015 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PX:
|
9016 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PMM:
|
9017 | 25ba3a68 | j_mayer | break;
|
9018 | 25ba3a68 | j_mayer | default:
|
9019 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9020 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_PX or POWERPC_FLAG_PMM\n");
|
9021 | 25ba3a68 | j_mayer | exit(1);
|
9022 | 25ba3a68 | j_mayer | } |
9023 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) { |
9024 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9025 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_PX nor POWERPC_FLAG_PMM\n");
|
9026 | 25ba3a68 | j_mayer | exit(1);
|
9027 | 25ba3a68 | j_mayer | } |
9028 | 4018bae9 | j_mayer | if ((env->flags & (POWERPC_FLAG_RTC_CLK | POWERPC_FLAG_BUS_CLK)) == 0) { |
9029 | 4018bae9 | j_mayer | fprintf(stderr, "PowerPC flags inconsistency\n"
|
9030 | 4018bae9 | j_mayer | "Should define the time-base and decrementer clock source\n");
|
9031 | 4018bae9 | j_mayer | exit(1);
|
9032 | 4018bae9 | j_mayer | } |
9033 | a750fc0b | j_mayer | /* Allocate TLBs buffer when needed */
|
9034 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9035 | a750fc0b | j_mayer | if (env->nb_tlb != 0) { |
9036 | a750fc0b | j_mayer | int nb_tlb = env->nb_tlb;
|
9037 | a750fc0b | j_mayer | if (env->id_tlbs != 0) |
9038 | a750fc0b | j_mayer | nb_tlb *= 2;
|
9039 | c227f099 | Anthony Liguori | env->tlb = qemu_mallocz(nb_tlb * sizeof(ppc_tlb_t));
|
9040 | a750fc0b | j_mayer | /* Pre-compute some useful values */
|
9041 | a750fc0b | j_mayer | env->tlb_per_way = env->nb_tlb / env->nb_ways; |
9042 | a750fc0b | j_mayer | } |
9043 | a750fc0b | j_mayer | if (env->irq_inputs == NULL) { |
9044 | a750fc0b | j_mayer | fprintf(stderr, "WARNING: no internal IRQ controller registered.\n"
|
9045 | a750fc0b | j_mayer | " Attempt Qemu to crash very soon !\n");
|
9046 | a750fc0b | j_mayer | } |
9047 | a750fc0b | j_mayer | #endif
|
9048 | 2f462816 | j_mayer | if (env->check_pow == NULL) { |
9049 | 2f462816 | j_mayer | fprintf(stderr, "WARNING: no power management check handler "
|
9050 | 2f462816 | j_mayer | "registered.\n"
|
9051 | 2f462816 | j_mayer | " Attempt Qemu to crash very soon !\n");
|
9052 | 2f462816 | j_mayer | } |
9053 | a750fc0b | j_mayer | } |
9054 | a750fc0b | j_mayer | |
9055 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9056 | a750fc0b | j_mayer | static void dump_ppc_sprs (CPUPPCState *env) |
9057 | a750fc0b | j_mayer | { |
9058 | a750fc0b | j_mayer | ppc_spr_t *spr; |
9059 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9060 | a750fc0b | j_mayer | uint32_t sr, sw; |
9061 | a750fc0b | j_mayer | #endif
|
9062 | a750fc0b | j_mayer | uint32_t ur, uw; |
9063 | a750fc0b | j_mayer | int i, j, n;
|
9064 | a750fc0b | j_mayer | |
9065 | a750fc0b | j_mayer | printf("Special purpose registers:\n");
|
9066 | a750fc0b | j_mayer | for (i = 0; i < 32; i++) { |
9067 | a750fc0b | j_mayer | for (j = 0; j < 32; j++) { |
9068 | a750fc0b | j_mayer | n = (i << 5) | j;
|
9069 | a750fc0b | j_mayer | spr = &env->spr_cb[n]; |
9070 | a750fc0b | j_mayer | uw = spr->uea_write != NULL && spr->uea_write != SPR_NOACCESS;
|
9071 | a750fc0b | j_mayer | ur = spr->uea_read != NULL && spr->uea_read != SPR_NOACCESS;
|
9072 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9073 | a750fc0b | j_mayer | sw = spr->oea_write != NULL && spr->oea_write != SPR_NOACCESS;
|
9074 | a750fc0b | j_mayer | sr = spr->oea_read != NULL && spr->oea_read != SPR_NOACCESS;
|
9075 | a750fc0b | j_mayer | if (sw || sr || uw || ur) {
|
9076 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s s%c%c u%c%c\n",
|
9077 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
9078 | a750fc0b | j_mayer | sw ? 'w' : '-', sr ? 'r' : '-', |
9079 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
9080 | a750fc0b | j_mayer | } |
9081 | a750fc0b | j_mayer | #else
|
9082 | a750fc0b | j_mayer | if (uw || ur) {
|
9083 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s u%c%c\n",
|
9084 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
9085 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
9086 | a750fc0b | j_mayer | } |
9087 | a750fc0b | j_mayer | #endif
|
9088 | a750fc0b | j_mayer | } |
9089 | a750fc0b | j_mayer | } |
9090 | a750fc0b | j_mayer | fflush(stdout); |
9091 | a750fc0b | j_mayer | fflush(stderr); |
9092 | a750fc0b | j_mayer | } |
9093 | a750fc0b | j_mayer | #endif
|
9094 | a750fc0b | j_mayer | |
9095 | a750fc0b | j_mayer | /*****************************************************************************/
|
9096 | a750fc0b | j_mayer | #include <stdlib.h> |
9097 | a750fc0b | j_mayer | #include <string.h> |
9098 | a750fc0b | j_mayer | |
9099 | a750fc0b | j_mayer | /* Opcode types */
|
9100 | a750fc0b | j_mayer | enum {
|
9101 | a750fc0b | j_mayer | PPC_DIRECT = 0, /* Opcode routine */ |
9102 | a750fc0b | j_mayer | PPC_INDIRECT = 1, /* Indirect opcode table */ |
9103 | a750fc0b | j_mayer | }; |
9104 | a750fc0b | j_mayer | |
9105 | a750fc0b | j_mayer | static inline int is_indirect_opcode (void *handler) |
9106 | a750fc0b | j_mayer | { |
9107 | a750fc0b | j_mayer | return ((unsigned long)handler & 0x03) == PPC_INDIRECT; |
9108 | a750fc0b | j_mayer | } |
9109 | a750fc0b | j_mayer | |
9110 | c227f099 | Anthony Liguori | static inline opc_handler_t **ind_table(void *handler) |
9111 | a750fc0b | j_mayer | { |
9112 | c227f099 | Anthony Liguori | return (opc_handler_t **)((unsigned long)handler & ~3); |
9113 | a750fc0b | j_mayer | } |
9114 | a750fc0b | j_mayer | |
9115 | a750fc0b | j_mayer | /* Instruction table creation */
|
9116 | a750fc0b | j_mayer | /* Opcodes tables creation */
|
9117 | c227f099 | Anthony Liguori | static void fill_new_table (opc_handler_t **table, int len) |
9118 | a750fc0b | j_mayer | { |
9119 | a750fc0b | j_mayer | int i;
|
9120 | a750fc0b | j_mayer | |
9121 | a750fc0b | j_mayer | for (i = 0; i < len; i++) |
9122 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9123 | a750fc0b | j_mayer | } |
9124 | a750fc0b | j_mayer | |
9125 | c227f099 | Anthony Liguori | static int create_new_table (opc_handler_t **table, unsigned char idx) |
9126 | a750fc0b | j_mayer | { |
9127 | c227f099 | Anthony Liguori | opc_handler_t **tmp; |
9128 | a750fc0b | j_mayer | |
9129 | c227f099 | Anthony Liguori | tmp = malloc(0x20 * sizeof(opc_handler_t)); |
9130 | a750fc0b | j_mayer | fill_new_table(tmp, 0x20);
|
9131 | c227f099 | Anthony Liguori | table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT); |
9132 | a750fc0b | j_mayer | |
9133 | a750fc0b | j_mayer | return 0; |
9134 | a750fc0b | j_mayer | } |
9135 | a750fc0b | j_mayer | |
9136 | c227f099 | Anthony Liguori | static int insert_in_table (opc_handler_t **table, unsigned char idx, |
9137 | c227f099 | Anthony Liguori | opc_handler_t *handler) |
9138 | a750fc0b | j_mayer | { |
9139 | a750fc0b | j_mayer | if (table[idx] != &invalid_handler)
|
9140 | a750fc0b | j_mayer | return -1; |
9141 | a750fc0b | j_mayer | table[idx] = handler; |
9142 | a750fc0b | j_mayer | |
9143 | a750fc0b | j_mayer | return 0; |
9144 | a750fc0b | j_mayer | } |
9145 | a750fc0b | j_mayer | |
9146 | c227f099 | Anthony Liguori | static int register_direct_insn (opc_handler_t **ppc_opcodes, |
9147 | c227f099 | Anthony Liguori | unsigned char idx, opc_handler_t *handler) |
9148 | a750fc0b | j_mayer | { |
9149 | a750fc0b | j_mayer | if (insert_in_table(ppc_opcodes, idx, handler) < 0) { |
9150 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in main "
|
9151 | a750fc0b | j_mayer | "opcode table\n", idx);
|
9152 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9153 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9154 | 4c1b1bfe | j_mayer | ppc_opcodes[idx]->oname, handler->oname); |
9155 | 4c1b1bfe | j_mayer | #endif
|
9156 | a750fc0b | j_mayer | return -1; |
9157 | a750fc0b | j_mayer | } |
9158 | a750fc0b | j_mayer | |
9159 | a750fc0b | j_mayer | return 0; |
9160 | a750fc0b | j_mayer | } |
9161 | a750fc0b | j_mayer | |
9162 | c227f099 | Anthony Liguori | static int register_ind_in_table (opc_handler_t **table, |
9163 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9164 | c227f099 | Anthony Liguori | opc_handler_t *handler) |
9165 | a750fc0b | j_mayer | { |
9166 | a750fc0b | j_mayer | if (table[idx1] == &invalid_handler) {
|
9167 | a750fc0b | j_mayer | if (create_new_table(table, idx1) < 0) { |
9168 | a750fc0b | j_mayer | printf("*** ERROR: unable to create indirect table "
|
9169 | a750fc0b | j_mayer | "idx=%02x\n", idx1);
|
9170 | a750fc0b | j_mayer | return -1; |
9171 | a750fc0b | j_mayer | } |
9172 | a750fc0b | j_mayer | } else {
|
9173 | a750fc0b | j_mayer | if (!is_indirect_opcode(table[idx1])) {
|
9174 | a750fc0b | j_mayer | printf("*** ERROR: idx %02x already assigned to a direct "
|
9175 | a750fc0b | j_mayer | "opcode\n", idx1);
|
9176 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9177 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9178 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9179 | 4c1b1bfe | j_mayer | #endif
|
9180 | a750fc0b | j_mayer | return -1; |
9181 | a750fc0b | j_mayer | } |
9182 | 3a607854 | j_mayer | } |
9183 | a750fc0b | j_mayer | if (handler != NULL && |
9184 | a750fc0b | j_mayer | insert_in_table(ind_table(table[idx1]), idx2, handler) < 0) {
|
9185 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in "
|
9186 | a750fc0b | j_mayer | "opcode table %02x\n", idx2, idx1);
|
9187 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9188 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9189 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9190 | 4c1b1bfe | j_mayer | #endif
|
9191 | a750fc0b | j_mayer | return -1; |
9192 | 3a607854 | j_mayer | } |
9193 | a750fc0b | j_mayer | |
9194 | a750fc0b | j_mayer | return 0; |
9195 | a750fc0b | j_mayer | } |
9196 | a750fc0b | j_mayer | |
9197 | c227f099 | Anthony Liguori | static int register_ind_insn (opc_handler_t **ppc_opcodes, |
9198 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9199 | c227f099 | Anthony Liguori | opc_handler_t *handler) |
9200 | a750fc0b | j_mayer | { |
9201 | a750fc0b | j_mayer | int ret;
|
9202 | a750fc0b | j_mayer | |
9203 | a750fc0b | j_mayer | ret = register_ind_in_table(ppc_opcodes, idx1, idx2, handler); |
9204 | a750fc0b | j_mayer | |
9205 | a750fc0b | j_mayer | return ret;
|
9206 | a750fc0b | j_mayer | } |
9207 | a750fc0b | j_mayer | |
9208 | c227f099 | Anthony Liguori | static int register_dblind_insn (opc_handler_t **ppc_opcodes, |
9209 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9210 | c227f099 | Anthony Liguori | unsigned char idx3, opc_handler_t *handler) |
9211 | a750fc0b | j_mayer | { |
9212 | a750fc0b | j_mayer | if (register_ind_in_table(ppc_opcodes, idx1, idx2, NULL) < 0) { |
9213 | a750fc0b | j_mayer | printf("*** ERROR: unable to join indirect table idx "
|
9214 | a750fc0b | j_mayer | "[%02x-%02x]\n", idx1, idx2);
|
9215 | a750fc0b | j_mayer | return -1; |
9216 | a750fc0b | j_mayer | } |
9217 | a750fc0b | j_mayer | if (register_ind_in_table(ind_table(ppc_opcodes[idx1]), idx2, idx3,
|
9218 | a750fc0b | j_mayer | handler) < 0) {
|
9219 | a750fc0b | j_mayer | printf("*** ERROR: unable to insert opcode "
|
9220 | a750fc0b | j_mayer | "[%02x-%02x-%02x]\n", idx1, idx2, idx3);
|
9221 | a750fc0b | j_mayer | return -1; |
9222 | a750fc0b | j_mayer | } |
9223 | a750fc0b | j_mayer | |
9224 | a750fc0b | j_mayer | return 0; |
9225 | a750fc0b | j_mayer | } |
9226 | a750fc0b | j_mayer | |
9227 | c227f099 | Anthony Liguori | static int register_insn (opc_handler_t **ppc_opcodes, opcode_t *insn) |
9228 | a750fc0b | j_mayer | { |
9229 | a750fc0b | j_mayer | if (insn->opc2 != 0xFF) { |
9230 | a750fc0b | j_mayer | if (insn->opc3 != 0xFF) { |
9231 | a750fc0b | j_mayer | if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,
|
9232 | a750fc0b | j_mayer | insn->opc3, &insn->handler) < 0)
|
9233 | a750fc0b | j_mayer | return -1; |
9234 | a750fc0b | j_mayer | } else {
|
9235 | a750fc0b | j_mayer | if (register_ind_insn(ppc_opcodes, insn->opc1,
|
9236 | a750fc0b | j_mayer | insn->opc2, &insn->handler) < 0)
|
9237 | a750fc0b | j_mayer | return -1; |
9238 | a750fc0b | j_mayer | } |
9239 | a750fc0b | j_mayer | } else {
|
9240 | a750fc0b | j_mayer | if (register_direct_insn(ppc_opcodes, insn->opc1, &insn->handler) < 0) |
9241 | a750fc0b | j_mayer | return -1; |
9242 | a750fc0b | j_mayer | } |
9243 | a750fc0b | j_mayer | |
9244 | a750fc0b | j_mayer | return 0; |
9245 | a750fc0b | j_mayer | } |
9246 | a750fc0b | j_mayer | |
9247 | c227f099 | Anthony Liguori | static int test_opcode_table (opc_handler_t **table, int len) |
9248 | a750fc0b | j_mayer | { |
9249 | a750fc0b | j_mayer | int i, count, tmp;
|
9250 | a750fc0b | j_mayer | |
9251 | a750fc0b | j_mayer | for (i = 0, count = 0; i < len; i++) { |
9252 | a750fc0b | j_mayer | /* Consistency fixup */
|
9253 | a750fc0b | j_mayer | if (table[i] == NULL) |
9254 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9255 | a750fc0b | j_mayer | if (table[i] != &invalid_handler) {
|
9256 | a750fc0b | j_mayer | if (is_indirect_opcode(table[i])) {
|
9257 | c227f099 | Anthony Liguori | tmp = test_opcode_table(ind_table(table[i]), 0x20);
|
9258 | a750fc0b | j_mayer | if (tmp == 0) { |
9259 | a750fc0b | j_mayer | free(table[i]); |
9260 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9261 | a750fc0b | j_mayer | } else {
|
9262 | a750fc0b | j_mayer | count++; |
9263 | a750fc0b | j_mayer | } |
9264 | a750fc0b | j_mayer | } else {
|
9265 | a750fc0b | j_mayer | count++; |
9266 | a750fc0b | j_mayer | } |
9267 | a750fc0b | j_mayer | } |
9268 | a750fc0b | j_mayer | } |
9269 | a750fc0b | j_mayer | |
9270 | a750fc0b | j_mayer | return count;
|
9271 | a750fc0b | j_mayer | } |
9272 | a750fc0b | j_mayer | |
9273 | c227f099 | Anthony Liguori | static void fix_opcode_tables (opc_handler_t **ppc_opcodes) |
9274 | a750fc0b | j_mayer | { |
9275 | c227f099 | Anthony Liguori | if (test_opcode_table(ppc_opcodes, 0x40) == 0) |
9276 | a750fc0b | j_mayer | printf("*** WARNING: no opcode defined !\n");
|
9277 | a750fc0b | j_mayer | } |
9278 | a750fc0b | j_mayer | |
9279 | a750fc0b | j_mayer | /*****************************************************************************/
|
9280 | c227f099 | Anthony Liguori | static int create_ppc_opcodes (CPUPPCState *env, const ppc_def_t *def) |
9281 | a750fc0b | j_mayer | { |
9282 | c227f099 | Anthony Liguori | opcode_t *opc; |
9283 | a750fc0b | j_mayer | |
9284 | a750fc0b | j_mayer | fill_new_table(env->opcodes, 0x40);
|
9285 | 5c55ff99 | Blue Swirl | for (opc = opcodes; opc < &opcodes[ARRAY_SIZE(opcodes)]; opc++) {
|
9286 | a750fc0b | j_mayer | if ((opc->handler.type & def->insns_flags) != 0) { |
9287 | a750fc0b | j_mayer | if (register_insn(env->opcodes, opc) < 0) { |
9288 | a750fc0b | j_mayer | printf("*** ERROR initializing PowerPC instruction "
|
9289 | a750fc0b | j_mayer | "0x%02x 0x%02x 0x%02x\n", opc->opc1, opc->opc2,
|
9290 | a750fc0b | j_mayer | opc->opc3); |
9291 | a750fc0b | j_mayer | return -1; |
9292 | a750fc0b | j_mayer | } |
9293 | a750fc0b | j_mayer | } |
9294 | a750fc0b | j_mayer | } |
9295 | c227f099 | Anthony Liguori | fix_opcode_tables(env->opcodes); |
9296 | a750fc0b | j_mayer | fflush(stdout); |
9297 | a750fc0b | j_mayer | fflush(stderr); |
9298 | a750fc0b | j_mayer | |
9299 | a750fc0b | j_mayer | return 0; |
9300 | a750fc0b | j_mayer | } |
9301 | a750fc0b | j_mayer | |
9302 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9303 | 25ba3a68 | j_mayer | static void dump_ppc_insns (CPUPPCState *env) |
9304 | a750fc0b | j_mayer | { |
9305 | c227f099 | Anthony Liguori | opc_handler_t **table, *handler; |
9306 | b55266b5 | blueswir1 | const char *p, *q; |
9307 | a750fc0b | j_mayer | uint8_t opc1, opc2, opc3; |
9308 | a750fc0b | j_mayer | |
9309 | a750fc0b | j_mayer | printf("Instructions set:\n");
|
9310 | a750fc0b | j_mayer | /* opc1 is 6 bits long */
|
9311 | a750fc0b | j_mayer | for (opc1 = 0x00; opc1 < 0x40; opc1++) { |
9312 | a750fc0b | j_mayer | table = env->opcodes; |
9313 | a750fc0b | j_mayer | handler = table[opc1]; |
9314 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9315 | a750fc0b | j_mayer | /* opc2 is 5 bits long */
|
9316 | a750fc0b | j_mayer | for (opc2 = 0; opc2 < 0x20; opc2++) { |
9317 | a750fc0b | j_mayer | table = env->opcodes; |
9318 | a750fc0b | j_mayer | handler = env->opcodes[opc1]; |
9319 | a750fc0b | j_mayer | table = ind_table(handler); |
9320 | a750fc0b | j_mayer | handler = table[opc2]; |
9321 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9322 | a750fc0b | j_mayer | table = ind_table(handler); |
9323 | a750fc0b | j_mayer | /* opc3 is 5 bits long */
|
9324 | a750fc0b | j_mayer | for (opc3 = 0; opc3 < 0x20; opc3++) { |
9325 | a750fc0b | j_mayer | handler = table[opc3]; |
9326 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9327 | 4c1b1bfe | j_mayer | /* Special hack to properly dump SPE insns */
|
9328 | 4c1b1bfe | j_mayer | p = strchr(handler->oname, '_');
|
9329 | 4c1b1bfe | j_mayer | if (p == NULL) { |
9330 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9331 | 4c1b1bfe | j_mayer | "%s\n",
|
9332 | 4c1b1bfe | j_mayer | opc1, opc2, opc3, opc1, |
9333 | 4c1b1bfe | j_mayer | (opc3 << 5) | opc2,
|
9334 | 4c1b1bfe | j_mayer | handler->oname); |
9335 | 4c1b1bfe | j_mayer | } else {
|
9336 | 4c1b1bfe | j_mayer | q = "speundef";
|
9337 | 4c1b1bfe | j_mayer | if ((p - handler->oname) != strlen(q) ||
|
9338 | 4c1b1bfe | j_mayer | memcmp(handler->oname, q, strlen(q)) != 0) {
|
9339 | 4c1b1bfe | j_mayer | /* First instruction */
|
9340 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9341 | 4c1b1bfe | j_mayer | "%.*s\n",
|
9342 | 4c1b1bfe | j_mayer | opc1, opc2 << 1, opc3, opc1,
|
9343 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1), |
9344 | 4c1b1bfe | j_mayer | (int)(p - handler->oname),
|
9345 | 4c1b1bfe | j_mayer | handler->oname); |
9346 | 4c1b1bfe | j_mayer | } |
9347 | 4c1b1bfe | j_mayer | if (strcmp(p + 1, q) != 0) { |
9348 | 4c1b1bfe | j_mayer | /* Second instruction */
|
9349 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9350 | 4c1b1bfe | j_mayer | "%s\n",
|
9351 | 4c1b1bfe | j_mayer | opc1, (opc2 << 1) | 1, opc3, opc1, |
9352 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1) | 1, |
9353 | 4c1b1bfe | j_mayer | p + 1);
|
9354 | 4c1b1bfe | j_mayer | } |
9355 | 4c1b1bfe | j_mayer | } |
9356 | a750fc0b | j_mayer | } |
9357 | a750fc0b | j_mayer | } |
9358 | a750fc0b | j_mayer | } else {
|
9359 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9360 | a750fc0b | j_mayer | printf("INSN: %02x %02x -- (%02d %04d) : %s\n",
|
9361 | a750fc0b | j_mayer | opc1, opc2, opc1, opc2, handler->oname); |
9362 | a750fc0b | j_mayer | } |
9363 | a750fc0b | j_mayer | } |
9364 | a750fc0b | j_mayer | } |
9365 | a750fc0b | j_mayer | } else {
|
9366 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9367 | a750fc0b | j_mayer | printf("INSN: %02x -- -- (%02d ----) : %s\n",
|
9368 | a750fc0b | j_mayer | opc1, opc1, handler->oname); |
9369 | a750fc0b | j_mayer | } |
9370 | a750fc0b | j_mayer | } |
9371 | a750fc0b | j_mayer | } |
9372 | a750fc0b | j_mayer | } |
9373 | 3a607854 | j_mayer | #endif
|
9374 | a750fc0b | j_mayer | |
9375 | 24951522 | aurel32 | static int gdb_get_float_reg(CPUState *env, uint8_t *mem_buf, int n) |
9376 | 24951522 | aurel32 | { |
9377 | 24951522 | aurel32 | if (n < 32) { |
9378 | 24951522 | aurel32 | stfq_p(mem_buf, env->fpr[n]); |
9379 | 24951522 | aurel32 | return 8; |
9380 | 24951522 | aurel32 | } |
9381 | 24951522 | aurel32 | if (n == 32) { |
9382 | 24951522 | aurel32 | /* FPSCR not implemented */
|
9383 | 24951522 | aurel32 | memset(mem_buf, 0, 4); |
9384 | 24951522 | aurel32 | return 4; |
9385 | 24951522 | aurel32 | } |
9386 | 24951522 | aurel32 | return 0; |
9387 | 24951522 | aurel32 | } |
9388 | 24951522 | aurel32 | |
9389 | 24951522 | aurel32 | static int gdb_set_float_reg(CPUState *env, uint8_t *mem_buf, int n) |
9390 | 24951522 | aurel32 | { |
9391 | 24951522 | aurel32 | if (n < 32) { |
9392 | 24951522 | aurel32 | env->fpr[n] = ldfq_p(mem_buf); |
9393 | 24951522 | aurel32 | return 8; |
9394 | 24951522 | aurel32 | } |
9395 | 24951522 | aurel32 | if (n == 32) { |
9396 | 24951522 | aurel32 | /* FPSCR not implemented */
|
9397 | 24951522 | aurel32 | return 4; |
9398 | 24951522 | aurel32 | } |
9399 | 24951522 | aurel32 | return 0; |
9400 | 24951522 | aurel32 | } |
9401 | 24951522 | aurel32 | |
9402 | b4f8d821 | aurel32 | static int gdb_get_avr_reg(CPUState *env, uint8_t *mem_buf, int n) |
9403 | b4f8d821 | aurel32 | { |
9404 | b4f8d821 | aurel32 | if (n < 32) { |
9405 | e2542fe2 | Juan Quintela | #ifdef HOST_WORDS_BIGENDIAN
|
9406 | b4f8d821 | aurel32 | stq_p(mem_buf, env->avr[n].u64[0]);
|
9407 | b4f8d821 | aurel32 | stq_p(mem_buf+8, env->avr[n].u64[1]); |
9408 | b4f8d821 | aurel32 | #else
|
9409 | b4f8d821 | aurel32 | stq_p(mem_buf, env->avr[n].u64[1]);
|
9410 | b4f8d821 | aurel32 | stq_p(mem_buf+8, env->avr[n].u64[0]); |
9411 | b4f8d821 | aurel32 | #endif
|
9412 | b4f8d821 | aurel32 | return 16; |
9413 | b4f8d821 | aurel32 | } |
9414 | 70976a79 | aurel32 | if (n == 32) { |
9415 | b4f8d821 | aurel32 | stl_p(mem_buf, env->vscr); |
9416 | b4f8d821 | aurel32 | return 4; |
9417 | b4f8d821 | aurel32 | } |
9418 | 70976a79 | aurel32 | if (n == 33) { |
9419 | b4f8d821 | aurel32 | stl_p(mem_buf, (uint32_t)env->spr[SPR_VRSAVE]); |
9420 | b4f8d821 | aurel32 | return 4; |
9421 | b4f8d821 | aurel32 | } |
9422 | b4f8d821 | aurel32 | return 0; |
9423 | b4f8d821 | aurel32 | } |
9424 | b4f8d821 | aurel32 | |
9425 | b4f8d821 | aurel32 | static int gdb_set_avr_reg(CPUState *env, uint8_t *mem_buf, int n) |
9426 | b4f8d821 | aurel32 | { |
9427 | b4f8d821 | aurel32 | if (n < 32) { |
9428 | e2542fe2 | Juan Quintela | #ifdef HOST_WORDS_BIGENDIAN
|
9429 | b4f8d821 | aurel32 | env->avr[n].u64[0] = ldq_p(mem_buf);
|
9430 | b4f8d821 | aurel32 | env->avr[n].u64[1] = ldq_p(mem_buf+8); |
9431 | b4f8d821 | aurel32 | #else
|
9432 | b4f8d821 | aurel32 | env->avr[n].u64[1] = ldq_p(mem_buf);
|
9433 | b4f8d821 | aurel32 | env->avr[n].u64[0] = ldq_p(mem_buf+8); |
9434 | b4f8d821 | aurel32 | #endif
|
9435 | b4f8d821 | aurel32 | return 16; |
9436 | b4f8d821 | aurel32 | } |
9437 | 70976a79 | aurel32 | if (n == 32) { |
9438 | b4f8d821 | aurel32 | env->vscr = ldl_p(mem_buf); |
9439 | b4f8d821 | aurel32 | return 4; |
9440 | b4f8d821 | aurel32 | } |
9441 | 70976a79 | aurel32 | if (n == 33) { |
9442 | b4f8d821 | aurel32 | env->spr[SPR_VRSAVE] = (target_ulong)ldl_p(mem_buf); |
9443 | b4f8d821 | aurel32 | return 4; |
9444 | b4f8d821 | aurel32 | } |
9445 | b4f8d821 | aurel32 | return 0; |
9446 | b4f8d821 | aurel32 | } |
9447 | b4f8d821 | aurel32 | |
9448 | 688890f7 | aurel32 | static int gdb_get_spe_reg(CPUState *env, uint8_t *mem_buf, int n) |
9449 | 688890f7 | aurel32 | { |
9450 | 688890f7 | aurel32 | if (n < 32) { |
9451 | 688890f7 | aurel32 | #if defined(TARGET_PPC64)
|
9452 | 688890f7 | aurel32 | stl_p(mem_buf, env->gpr[n] >> 32);
|
9453 | 688890f7 | aurel32 | #else
|
9454 | 688890f7 | aurel32 | stl_p(mem_buf, env->gprh[n]); |
9455 | 688890f7 | aurel32 | #endif
|
9456 | 688890f7 | aurel32 | return 4; |
9457 | 688890f7 | aurel32 | } |
9458 | 70976a79 | aurel32 | if (n == 32) { |
9459 | 688890f7 | aurel32 | stq_p(mem_buf, env->spe_acc); |
9460 | 688890f7 | aurel32 | return 8; |
9461 | 688890f7 | aurel32 | } |
9462 | 70976a79 | aurel32 | if (n == 33) { |
9463 | d34defbc | aurel32 | stl_p(mem_buf, env->spe_fscr); |
9464 | 688890f7 | aurel32 | return 4; |
9465 | 688890f7 | aurel32 | } |
9466 | 688890f7 | aurel32 | return 0; |
9467 | 688890f7 | aurel32 | } |
9468 | 688890f7 | aurel32 | |
9469 | 688890f7 | aurel32 | static int gdb_set_spe_reg(CPUState *env, uint8_t *mem_buf, int n) |
9470 | 688890f7 | aurel32 | { |
9471 | 688890f7 | aurel32 | if (n < 32) { |
9472 | 688890f7 | aurel32 | #if defined(TARGET_PPC64)
|
9473 | 688890f7 | aurel32 | target_ulong lo = (uint32_t)env->gpr[n]; |
9474 | 688890f7 | aurel32 | target_ulong hi = (target_ulong)ldl_p(mem_buf) << 32;
|
9475 | 688890f7 | aurel32 | env->gpr[n] = lo | hi; |
9476 | 688890f7 | aurel32 | #else
|
9477 | 688890f7 | aurel32 | env->gprh[n] = ldl_p(mem_buf); |
9478 | 688890f7 | aurel32 | #endif
|
9479 | 688890f7 | aurel32 | return 4; |
9480 | 688890f7 | aurel32 | } |
9481 | 70976a79 | aurel32 | if (n == 32) { |
9482 | 688890f7 | aurel32 | env->spe_acc = ldq_p(mem_buf); |
9483 | 688890f7 | aurel32 | return 8; |
9484 | 688890f7 | aurel32 | } |
9485 | 70976a79 | aurel32 | if (n == 33) { |
9486 | d34defbc | aurel32 | env->spe_fscr = ldl_p(mem_buf); |
9487 | 688890f7 | aurel32 | return 4; |
9488 | 688890f7 | aurel32 | } |
9489 | 688890f7 | aurel32 | return 0; |
9490 | 688890f7 | aurel32 | } |
9491 | 688890f7 | aurel32 | |
9492 | c227f099 | Anthony Liguori | int cpu_ppc_register_internal (CPUPPCState *env, const ppc_def_t *def) |
9493 | a750fc0b | j_mayer | { |
9494 | a750fc0b | j_mayer | env->msr_mask = def->msr_mask; |
9495 | a750fc0b | j_mayer | env->mmu_model = def->mmu_model; |
9496 | a750fc0b | j_mayer | env->excp_model = def->excp_model; |
9497 | a750fc0b | j_mayer | env->bus_model = def->bus_model; |
9498 | c29b735c | Nathan Froyd | env->insns_flags = def->insns_flags; |
9499 | d26bfc9a | j_mayer | env->flags = def->flags; |
9500 | 237c0af0 | j_mayer | env->bfd_mach = def->bfd_mach; |
9501 | 2f462816 | j_mayer | env->check_pow = def->check_pow; |
9502 | a750fc0b | j_mayer | if (create_ppc_opcodes(env, def) < 0) |
9503 | a750fc0b | j_mayer | return -1; |
9504 | a750fc0b | j_mayer | init_ppc_proc(env, def); |
9505 | 24951522 | aurel32 | |
9506 | 24951522 | aurel32 | if (def->insns_flags & PPC_FLOAT) {
|
9507 | 24951522 | aurel32 | gdb_register_coprocessor(env, gdb_get_float_reg, gdb_set_float_reg, |
9508 | 24951522 | aurel32 | 33, "power-fpu.xml", 0); |
9509 | 24951522 | aurel32 | } |
9510 | b4f8d821 | aurel32 | if (def->insns_flags & PPC_ALTIVEC) {
|
9511 | b4f8d821 | aurel32 | gdb_register_coprocessor(env, gdb_get_avr_reg, gdb_set_avr_reg, |
9512 | b4f8d821 | aurel32 | 34, "power-altivec.xml", 0); |
9513 | b4f8d821 | aurel32 | } |
9514 | 40569b7e | aurel32 | if (def->insns_flags & PPC_SPE) {
|
9515 | 688890f7 | aurel32 | gdb_register_coprocessor(env, gdb_get_spe_reg, gdb_set_spe_reg, |
9516 | 688890f7 | aurel32 | 34, "power-spe.xml", 0); |
9517 | 688890f7 | aurel32 | } |
9518 | 688890f7 | aurel32 | |
9519 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9520 | 3a607854 | j_mayer | { |
9521 | b55266b5 | blueswir1 | const char *mmu_model, *excp_model, *bus_model; |
9522 | a750fc0b | j_mayer | switch (env->mmu_model) {
|
9523 | a750fc0b | j_mayer | case POWERPC_MMU_32B:
|
9524 | a750fc0b | j_mayer | mmu_model = "PowerPC 32";
|
9525 | a750fc0b | j_mayer | break;
|
9526 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_6xx:
|
9527 | a750fc0b | j_mayer | mmu_model = "PowerPC 6xx/7xx with software driven TLBs";
|
9528 | a750fc0b | j_mayer | break;
|
9529 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_74xx:
|
9530 | a750fc0b | j_mayer | mmu_model = "PowerPC 74xx with software driven TLBs";
|
9531 | a750fc0b | j_mayer | break;
|
9532 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx:
|
9533 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs";
|
9534 | a750fc0b | j_mayer | break;
|
9535 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx_Z:
|
9536 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs "
|
9537 | a750fc0b | j_mayer | "and zones protections";
|
9538 | a750fc0b | j_mayer | break;
|
9539 | b4095fed | j_mayer | case POWERPC_MMU_REAL:
|
9540 | b4095fed | j_mayer | mmu_model = "PowerPC real mode only";
|
9541 | b4095fed | j_mayer | break;
|
9542 | b4095fed | j_mayer | case POWERPC_MMU_MPC8xx:
|
9543 | b4095fed | j_mayer | mmu_model = "PowerPC MPC8xx";
|
9544 | a750fc0b | j_mayer | break;
|
9545 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE:
|
9546 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE";
|
9547 | a750fc0b | j_mayer | break;
|
9548 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE_FSL:
|
9549 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE FSL";
|
9550 | a750fc0b | j_mayer | break;
|
9551 | b4095fed | j_mayer | case POWERPC_MMU_601:
|
9552 | b4095fed | j_mayer | mmu_model = "PowerPC 601";
|
9553 | b4095fed | j_mayer | break;
|
9554 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9555 | 00af685f | j_mayer | case POWERPC_MMU_64B:
|
9556 | 00af685f | j_mayer | mmu_model = "PowerPC 64";
|
9557 | 00af685f | j_mayer | break;
|
9558 | add78955 | j_mayer | case POWERPC_MMU_620:
|
9559 | add78955 | j_mayer | mmu_model = "PowerPC 620";
|
9560 | add78955 | j_mayer | break;
|
9561 | 00af685f | j_mayer | #endif
|
9562 | a750fc0b | j_mayer | default:
|
9563 | a750fc0b | j_mayer | mmu_model = "Unknown or invalid";
|
9564 | a750fc0b | j_mayer | break;
|
9565 | a750fc0b | j_mayer | } |
9566 | a750fc0b | j_mayer | switch (env->excp_model) {
|
9567 | a750fc0b | j_mayer | case POWERPC_EXCP_STD:
|
9568 | a750fc0b | j_mayer | excp_model = "PowerPC";
|
9569 | a750fc0b | j_mayer | break;
|
9570 | a750fc0b | j_mayer | case POWERPC_EXCP_40x:
|
9571 | a750fc0b | j_mayer | excp_model = "PowerPC 40x";
|
9572 | a750fc0b | j_mayer | break;
|
9573 | a750fc0b | j_mayer | case POWERPC_EXCP_601:
|
9574 | a750fc0b | j_mayer | excp_model = "PowerPC 601";
|
9575 | a750fc0b | j_mayer | break;
|
9576 | a750fc0b | j_mayer | case POWERPC_EXCP_602:
|
9577 | a750fc0b | j_mayer | excp_model = "PowerPC 602";
|
9578 | a750fc0b | j_mayer | break;
|
9579 | a750fc0b | j_mayer | case POWERPC_EXCP_603:
|
9580 | a750fc0b | j_mayer | excp_model = "PowerPC 603";
|
9581 | a750fc0b | j_mayer | break;
|
9582 | a750fc0b | j_mayer | case POWERPC_EXCP_603E:
|
9583 | a750fc0b | j_mayer | excp_model = "PowerPC 603e";
|
9584 | a750fc0b | j_mayer | break;
|
9585 | a750fc0b | j_mayer | case POWERPC_EXCP_604:
|
9586 | a750fc0b | j_mayer | excp_model = "PowerPC 604";
|
9587 | a750fc0b | j_mayer | break;
|
9588 | a750fc0b | j_mayer | case POWERPC_EXCP_7x0:
|
9589 | a750fc0b | j_mayer | excp_model = "PowerPC 740/750";
|
9590 | a750fc0b | j_mayer | break;
|
9591 | a750fc0b | j_mayer | case POWERPC_EXCP_7x5:
|
9592 | a750fc0b | j_mayer | excp_model = "PowerPC 745/755";
|
9593 | a750fc0b | j_mayer | break;
|
9594 | a750fc0b | j_mayer | case POWERPC_EXCP_74xx:
|
9595 | a750fc0b | j_mayer | excp_model = "PowerPC 74xx";
|
9596 | a750fc0b | j_mayer | break;
|
9597 | a750fc0b | j_mayer | case POWERPC_EXCP_BOOKE:
|
9598 | a750fc0b | j_mayer | excp_model = "PowerPC BookE";
|
9599 | a750fc0b | j_mayer | break;
|
9600 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9601 | 00af685f | j_mayer | case POWERPC_EXCP_970:
|
9602 | 00af685f | j_mayer | excp_model = "PowerPC 970";
|
9603 | 00af685f | j_mayer | break;
|
9604 | 00af685f | j_mayer | #endif
|
9605 | a750fc0b | j_mayer | default:
|
9606 | a750fc0b | j_mayer | excp_model = "Unknown or invalid";
|
9607 | a750fc0b | j_mayer | break;
|
9608 | a750fc0b | j_mayer | } |
9609 | a750fc0b | j_mayer | switch (env->bus_model) {
|
9610 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_6xx:
|
9611 | a750fc0b | j_mayer | bus_model = "PowerPC 6xx";
|
9612 | a750fc0b | j_mayer | break;
|
9613 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_BookE:
|
9614 | a750fc0b | j_mayer | bus_model = "PowerPC BookE";
|
9615 | a750fc0b | j_mayer | break;
|
9616 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_405:
|
9617 | a750fc0b | j_mayer | bus_model = "PowerPC 405";
|
9618 | a750fc0b | j_mayer | break;
|
9619 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_401:
|
9620 | a750fc0b | j_mayer | bus_model = "PowerPC 401/403";
|
9621 | a750fc0b | j_mayer | break;
|
9622 | b4095fed | j_mayer | case PPC_FLAGS_INPUT_RCPU:
|
9623 | b4095fed | j_mayer | bus_model = "RCPU / MPC8xx";
|
9624 | b4095fed | j_mayer | break;
|
9625 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9626 | 00af685f | j_mayer | case PPC_FLAGS_INPUT_970:
|
9627 | 00af685f | j_mayer | bus_model = "PowerPC 970";
|
9628 | 00af685f | j_mayer | break;
|
9629 | 00af685f | j_mayer | #endif
|
9630 | a750fc0b | j_mayer | default:
|
9631 | a750fc0b | j_mayer | bus_model = "Unknown or invalid";
|
9632 | a750fc0b | j_mayer | break;
|
9633 | a750fc0b | j_mayer | } |
9634 | a750fc0b | j_mayer | printf("PowerPC %-12s : PVR %08x MSR %016" PRIx64 "\n" |
9635 | a750fc0b | j_mayer | " MMU model : %s\n",
|
9636 | a750fc0b | j_mayer | def->name, def->pvr, def->msr_mask, mmu_model); |
9637 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9638 | a750fc0b | j_mayer | if (env->tlb != NULL) { |
9639 | a750fc0b | j_mayer | printf(" %d %s TLB in %d ways\n",
|
9640 | a750fc0b | j_mayer | env->nb_tlb, env->id_tlbs ? "splitted" : "merged", |
9641 | a750fc0b | j_mayer | env->nb_ways); |
9642 | a750fc0b | j_mayer | } |
9643 | f2e63a42 | j_mayer | #endif
|
9644 | a750fc0b | j_mayer | printf(" Exceptions model : %s\n"
|
9645 | a750fc0b | j_mayer | " Bus model : %s\n",
|
9646 | a750fc0b | j_mayer | excp_model, bus_model); |
9647 | 25ba3a68 | j_mayer | printf(" MSR features :\n");
|
9648 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SPE)
|
9649 | 25ba3a68 | j_mayer | printf(" signal processing engine enable"
|
9650 | 25ba3a68 | j_mayer | "\n");
|
9651 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_VRE) |
9652 | 25ba3a68 | j_mayer | printf(" vector processor enable\n");
|
9653 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_TGPR)
|
9654 | 25ba3a68 | j_mayer | printf(" temporary GPRs\n");
|
9655 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_CE) |
9656 | 25ba3a68 | j_mayer | printf(" critical input enable\n");
|
9657 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SE)
|
9658 | 25ba3a68 | j_mayer | printf(" single-step trace mode\n");
|
9659 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DWE) |
9660 | 25ba3a68 | j_mayer | printf(" debug wait enable\n");
|
9661 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_UBLE) |
9662 | 25ba3a68 | j_mayer | printf(" user BTB lock enable\n");
|
9663 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_BE)
|
9664 | 25ba3a68 | j_mayer | printf(" branch-step trace mode\n");
|
9665 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DE) |
9666 | 25ba3a68 | j_mayer | printf(" debug interrupt enable\n");
|
9667 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_PX)
|
9668 | 25ba3a68 | j_mayer | printf(" inclusive protection\n");
|
9669 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_PMM) |
9670 | 25ba3a68 | j_mayer | printf(" performance monitor mark\n");
|
9671 | 25ba3a68 | j_mayer | if (env->flags == POWERPC_FLAG_NONE)
|
9672 | 25ba3a68 | j_mayer | printf(" none\n");
|
9673 | 4018bae9 | j_mayer | printf(" Time-base/decrementer clock source: %s\n",
|
9674 | 4018bae9 | j_mayer | env->flags & POWERPC_FLAG_RTC_CLK ? "RTC clock" : "bus clock"); |
9675 | a750fc0b | j_mayer | } |
9676 | a750fc0b | j_mayer | dump_ppc_insns(env); |
9677 | a750fc0b | j_mayer | dump_ppc_sprs(env); |
9678 | a750fc0b | j_mayer | fflush(stdout); |
9679 | 3a607854 | j_mayer | #endif
|
9680 | a750fc0b | j_mayer | |
9681 | a750fc0b | j_mayer | return 0; |
9682 | a750fc0b | j_mayer | } |
9683 | 3fc6c082 | bellard | |
9684 | c227f099 | Anthony Liguori | static const ppc_def_t *ppc_find_by_pvr (uint32_t pvr) |
9685 | 3fc6c082 | bellard | { |
9686 | c227f099 | Anthony Liguori | const ppc_def_t *ret;
|
9687 | ee4e83ed | j_mayer | uint32_t pvr_rev; |
9688 | ee4e83ed | j_mayer | int i, best, match, best_match, max;
|
9689 | 3fc6c082 | bellard | |
9690 | ee4e83ed | j_mayer | ret = NULL;
|
9691 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9692 | ee4e83ed | j_mayer | best = -1;
|
9693 | ee4e83ed | j_mayer | pvr_rev = pvr & 0xFFFF;
|
9694 | ee4e83ed | j_mayer | /* We want all specified bits to match */
|
9695 | ee4e83ed | j_mayer | best_match = 32 - ctz32(pvr_rev);
|
9696 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9697 | ee4e83ed | j_mayer | /* We check that the 16 higher bits are the same to ensure the CPU
|
9698 | ee4e83ed | j_mayer | * model will be the choosen one.
|
9699 | ee4e83ed | j_mayer | */
|
9700 | ee4e83ed | j_mayer | if (((pvr ^ ppc_defs[i].pvr) >> 16) == 0) { |
9701 | ee4e83ed | j_mayer | /* We want as much as possible of the low-level 16 bits
|
9702 | ee4e83ed | j_mayer | * to be the same but we allow inexact matches.
|
9703 | ee4e83ed | j_mayer | */
|
9704 | ee4e83ed | j_mayer | match = clz32(pvr_rev ^ (ppc_defs[i].pvr & 0xFFFF));
|
9705 | ee4e83ed | j_mayer | /* We check '>=' instead of '>' because the PPC_defs table
|
9706 | ee4e83ed | j_mayer | * is ordered by increasing revision.
|
9707 | 4c1b1bfe | j_mayer | * Then, we will match the higher revision compatible
|
9708 | ee4e83ed | j_mayer | * with the requested PVR
|
9709 | ee4e83ed | j_mayer | */
|
9710 | ee4e83ed | j_mayer | if (match >= best_match) {
|
9711 | ee4e83ed | j_mayer | best = i; |
9712 | ee4e83ed | j_mayer | best_match = match; |
9713 | ee4e83ed | j_mayer | } |
9714 | 3fc6c082 | bellard | } |
9715 | 3fc6c082 | bellard | } |
9716 | ee4e83ed | j_mayer | if (best != -1) |
9717 | ee4e83ed | j_mayer | ret = &ppc_defs[best]; |
9718 | ee4e83ed | j_mayer | |
9719 | ee4e83ed | j_mayer | return ret;
|
9720 | 3fc6c082 | bellard | } |
9721 | 3fc6c082 | bellard | |
9722 | ee4e83ed | j_mayer | #include <ctype.h> |
9723 | 3fc6c082 | bellard | |
9724 | c227f099 | Anthony Liguori | const ppc_def_t *cpu_ppc_find_by_name (const char *name) |
9725 | ee4e83ed | j_mayer | { |
9726 | c227f099 | Anthony Liguori | const ppc_def_t *ret;
|
9727 | b55266b5 | blueswir1 | const char *p; |
9728 | ee4e83ed | j_mayer | int i, max, len;
|
9729 | ee4e83ed | j_mayer | |
9730 | ee4e83ed | j_mayer | /* Check if the given name is a PVR */
|
9731 | ee4e83ed | j_mayer | len = strlen(name); |
9732 | ee4e83ed | j_mayer | if (len == 10 && name[0] == '0' && name[1] == 'x') { |
9733 | ee4e83ed | j_mayer | p = name + 2;
|
9734 | ee4e83ed | j_mayer | goto check_pvr;
|
9735 | ee4e83ed | j_mayer | } else if (len == 8) { |
9736 | ee4e83ed | j_mayer | p = name; |
9737 | ee4e83ed | j_mayer | check_pvr:
|
9738 | ee4e83ed | j_mayer | for (i = 0; i < 8; i++) { |
9739 | cd390083 | blueswir1 | if (!qemu_isxdigit(*p++))
|
9740 | ee4e83ed | j_mayer | break;
|
9741 | ee4e83ed | j_mayer | } |
9742 | ee4e83ed | j_mayer | if (i == 8) |
9743 | ee4e83ed | j_mayer | return ppc_find_by_pvr(strtoul(name, NULL, 16)); |
9744 | ee4e83ed | j_mayer | } |
9745 | ee4e83ed | j_mayer | ret = NULL;
|
9746 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9747 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9748 | ee4e83ed | j_mayer | if (strcasecmp(name, ppc_defs[i].name) == 0) { |
9749 | ee4e83ed | j_mayer | ret = &ppc_defs[i]; |
9750 | ee4e83ed | j_mayer | break;
|
9751 | 3fc6c082 | bellard | } |
9752 | 3fc6c082 | bellard | } |
9753 | ee4e83ed | j_mayer | |
9754 | ee4e83ed | j_mayer | return ret;
|
9755 | 3fc6c082 | bellard | } |
9756 | 3fc6c082 | bellard | |
9757 | 3fc6c082 | bellard | void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) |
9758 | 3fc6c082 | bellard | { |
9759 | 068abdc8 | j_mayer | int i, max;
|
9760 | 3fc6c082 | bellard | |
9761 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9762 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9763 | a750fc0b | j_mayer | (*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n",
|
9764 | a750fc0b | j_mayer | ppc_defs[i].name, ppc_defs[i].pvr); |
9765 | 3fc6c082 | bellard | } |
9766 | 3fc6c082 | bellard | } |