root / target-ppc / translate_init.c @ eaabeef2
History | View | Annotate | Download (415.4 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 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
158 | 630ecca0 | Tristan Gingold | gen_io_start(); |
159 | 630ecca0 | Tristan Gingold | } |
160 | 45d827d2 | aurel32 | gen_helper_load_decr(cpu_gpr[gprn]); |
161 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
162 | 630ecca0 | Tristan Gingold | gen_io_end(); |
163 | 630ecca0 | Tristan Gingold | gen_stop_exception(opaque); |
164 | 630ecca0 | Tristan Gingold | } |
165 | 3fc6c082 | bellard | } |
166 | 3fc6c082 | bellard | |
167 | 45d827d2 | aurel32 | static void spr_write_decr (void *opaque, int sprn, int gprn) |
168 | 3fc6c082 | bellard | { |
169 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
170 | 630ecca0 | Tristan Gingold | gen_io_start(); |
171 | 630ecca0 | Tristan Gingold | } |
172 | 45d827d2 | aurel32 | gen_helper_store_decr(cpu_gpr[gprn]); |
173 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
174 | 630ecca0 | Tristan Gingold | gen_io_end(); |
175 | 630ecca0 | Tristan Gingold | gen_stop_exception(opaque); |
176 | 630ecca0 | Tristan Gingold | } |
177 | 3fc6c082 | bellard | } |
178 | 76a66253 | j_mayer | #endif
|
179 | 3fc6c082 | bellard | |
180 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC, except 601 */
|
181 | 3fc6c082 | bellard | /* Time base */
|
182 | 45d827d2 | aurel32 | static void spr_read_tbl (void *opaque, int gprn, int sprn) |
183 | 3fc6c082 | bellard | { |
184 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
185 | 630ecca0 | Tristan Gingold | gen_io_start(); |
186 | 630ecca0 | Tristan Gingold | } |
187 | 45d827d2 | aurel32 | gen_helper_load_tbl(cpu_gpr[gprn]); |
188 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
189 | 630ecca0 | Tristan Gingold | gen_io_end(); |
190 | 630ecca0 | Tristan Gingold | gen_stop_exception(opaque); |
191 | 630ecca0 | Tristan Gingold | } |
192 | 3fc6c082 | bellard | } |
193 | 3fc6c082 | bellard | |
194 | 45d827d2 | aurel32 | static void spr_read_tbu (void *opaque, int gprn, int sprn) |
195 | 3fc6c082 | bellard | { |
196 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
197 | 630ecca0 | Tristan Gingold | gen_io_start(); |
198 | 630ecca0 | Tristan Gingold | } |
199 | 45d827d2 | aurel32 | gen_helper_load_tbu(cpu_gpr[gprn]); |
200 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
201 | 630ecca0 | Tristan Gingold | gen_io_end(); |
202 | 630ecca0 | Tristan Gingold | gen_stop_exception(opaque); |
203 | 630ecca0 | Tristan Gingold | } |
204 | 3fc6c082 | bellard | } |
205 | 3fc6c082 | bellard | |
206 | a062e36c | j_mayer | __attribute__ (( unused )) |
207 | 45d827d2 | aurel32 | static void spr_read_atbl (void *opaque, int gprn, int sprn) |
208 | a062e36c | j_mayer | { |
209 | 45d827d2 | aurel32 | gen_helper_load_atbl(cpu_gpr[gprn]); |
210 | a062e36c | j_mayer | } |
211 | a062e36c | j_mayer | |
212 | a062e36c | j_mayer | __attribute__ (( unused )) |
213 | 45d827d2 | aurel32 | static void spr_read_atbu (void *opaque, int gprn, int sprn) |
214 | a062e36c | j_mayer | { |
215 | 45d827d2 | aurel32 | gen_helper_load_atbu(cpu_gpr[gprn]); |
216 | a062e36c | j_mayer | } |
217 | a062e36c | j_mayer | |
218 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
219 | 45d827d2 | aurel32 | static void spr_write_tbl (void *opaque, int sprn, int gprn) |
220 | 3fc6c082 | bellard | { |
221 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
222 | 630ecca0 | Tristan Gingold | gen_io_start(); |
223 | 630ecca0 | Tristan Gingold | } |
224 | 45d827d2 | aurel32 | gen_helper_store_tbl(cpu_gpr[gprn]); |
225 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
226 | 630ecca0 | Tristan Gingold | gen_io_end(); |
227 | 630ecca0 | Tristan Gingold | gen_stop_exception(opaque); |
228 | 630ecca0 | Tristan Gingold | } |
229 | 3fc6c082 | bellard | } |
230 | 3fc6c082 | bellard | |
231 | 45d827d2 | aurel32 | static void spr_write_tbu (void *opaque, int sprn, int gprn) |
232 | 3fc6c082 | bellard | { |
233 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
234 | 630ecca0 | Tristan Gingold | gen_io_start(); |
235 | 630ecca0 | Tristan Gingold | } |
236 | 45d827d2 | aurel32 | gen_helper_store_tbu(cpu_gpr[gprn]); |
237 | 630ecca0 | Tristan Gingold | if (use_icount) {
|
238 | 630ecca0 | Tristan Gingold | gen_io_end(); |
239 | 630ecca0 | Tristan Gingold | gen_stop_exception(opaque); |
240 | 630ecca0 | Tristan Gingold | } |
241 | 3fc6c082 | bellard | } |
242 | a062e36c | j_mayer | |
243 | a062e36c | j_mayer | __attribute__ (( unused )) |
244 | 45d827d2 | aurel32 | static void spr_write_atbl (void *opaque, int sprn, int gprn) |
245 | a062e36c | j_mayer | { |
246 | 45d827d2 | aurel32 | gen_helper_store_atbl(cpu_gpr[gprn]); |
247 | a062e36c | j_mayer | } |
248 | a062e36c | j_mayer | |
249 | a062e36c | j_mayer | __attribute__ (( unused )) |
250 | 45d827d2 | aurel32 | static void spr_write_atbu (void *opaque, int sprn, int gprn) |
251 | a062e36c | j_mayer | { |
252 | 45d827d2 | aurel32 | gen_helper_store_atbu(cpu_gpr[gprn]); |
253 | a062e36c | j_mayer | } |
254 | 3a7f009a | David Gibson | |
255 | 3a7f009a | David Gibson | #if defined(TARGET_PPC64)
|
256 | 3a7f009a | David Gibson | __attribute__ (( unused )) |
257 | 3a7f009a | David Gibson | static void spr_read_purr (void *opaque, int gprn, int sprn) |
258 | 3a7f009a | David Gibson | { |
259 | 3a7f009a | David Gibson | gen_helper_load_purr(cpu_gpr[gprn]); |
260 | 3a7f009a | David Gibson | } |
261 | 3a7f009a | David Gibson | #endif
|
262 | 76a66253 | j_mayer | #endif
|
263 | 3fc6c082 | bellard | |
264 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
265 | 3fc6c082 | bellard | /* IBAT0U...IBAT0U */
|
266 | 3fc6c082 | bellard | /* IBAT0L...IBAT7L */
|
267 | 45d827d2 | aurel32 | static void spr_read_ibat (void *opaque, int gprn, int sprn) |
268 | 3fc6c082 | bellard | { |
269 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT0U) / 2])); |
270 | 3fc6c082 | bellard | } |
271 | 3fc6c082 | bellard | |
272 | 45d827d2 | aurel32 | static void spr_read_ibat_h (void *opaque, int gprn, int sprn) |
273 | 3fc6c082 | bellard | { |
274 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT4U) / 2])); |
275 | 3fc6c082 | bellard | } |
276 | 3fc6c082 | bellard | |
277 | 45d827d2 | aurel32 | static void spr_write_ibatu (void *opaque, int sprn, int gprn) |
278 | 3fc6c082 | bellard | { |
279 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
280 | 45d827d2 | aurel32 | gen_helper_store_ibatu(t0, cpu_gpr[gprn]); |
281 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
282 | 3fc6c082 | bellard | } |
283 | 3fc6c082 | bellard | |
284 | 45d827d2 | aurel32 | static void spr_write_ibatu_h (void *opaque, int sprn, int gprn) |
285 | 3fc6c082 | bellard | { |
286 | 8daf1781 | Thomas Monjalon | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_IBAT4U) / 2) + 4); |
287 | 45d827d2 | aurel32 | gen_helper_store_ibatu(t0, cpu_gpr[gprn]); |
288 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
289 | 3fc6c082 | bellard | } |
290 | 3fc6c082 | bellard | |
291 | 45d827d2 | aurel32 | static void spr_write_ibatl (void *opaque, int sprn, int gprn) |
292 | 3fc6c082 | bellard | { |
293 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0L) / 2);
|
294 | 45d827d2 | aurel32 | gen_helper_store_ibatl(t0, cpu_gpr[gprn]); |
295 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
296 | 3fc6c082 | bellard | } |
297 | 3fc6c082 | bellard | |
298 | 45d827d2 | aurel32 | static void spr_write_ibatl_h (void *opaque, int sprn, int gprn) |
299 | 3fc6c082 | bellard | { |
300 | 8daf1781 | Thomas Monjalon | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_IBAT4L) / 2) + 4); |
301 | 45d827d2 | aurel32 | gen_helper_store_ibatl(t0, cpu_gpr[gprn]); |
302 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
303 | 3fc6c082 | bellard | } |
304 | 3fc6c082 | bellard | |
305 | 3fc6c082 | bellard | /* DBAT0U...DBAT7U */
|
306 | 3fc6c082 | bellard | /* DBAT0L...DBAT7L */
|
307 | 45d827d2 | aurel32 | static void spr_read_dbat (void *opaque, int gprn, int sprn) |
308 | 3fc6c082 | bellard | { |
309 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, DBAT[sprn & 1][(sprn - SPR_DBAT0U) / 2])); |
310 | 3fc6c082 | bellard | } |
311 | 3fc6c082 | bellard | |
312 | 45d827d2 | aurel32 | static void spr_read_dbat_h (void *opaque, int gprn, int sprn) |
313 | 3fc6c082 | bellard | { |
314 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, DBAT[sprn & 1][((sprn - SPR_DBAT4U) / 2) + 4])); |
315 | 3fc6c082 | bellard | } |
316 | 3fc6c082 | bellard | |
317 | 45d827d2 | aurel32 | static void spr_write_dbatu (void *opaque, int sprn, int gprn) |
318 | 3fc6c082 | bellard | { |
319 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_DBAT0U) / 2);
|
320 | 45d827d2 | aurel32 | gen_helper_store_dbatu(t0, cpu_gpr[gprn]); |
321 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
322 | 3fc6c082 | bellard | } |
323 | 3fc6c082 | bellard | |
324 | 45d827d2 | aurel32 | static void spr_write_dbatu_h (void *opaque, int sprn, int gprn) |
325 | 3fc6c082 | bellard | { |
326 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_DBAT4U) / 2) + 4); |
327 | 45d827d2 | aurel32 | gen_helper_store_dbatu(t0, cpu_gpr[gprn]); |
328 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
329 | 3fc6c082 | bellard | } |
330 | 3fc6c082 | bellard | |
331 | 45d827d2 | aurel32 | static void spr_write_dbatl (void *opaque, int sprn, int gprn) |
332 | 3fc6c082 | bellard | { |
333 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_DBAT0L) / 2);
|
334 | 45d827d2 | aurel32 | gen_helper_store_dbatl(t0, cpu_gpr[gprn]); |
335 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
336 | 3fc6c082 | bellard | } |
337 | 3fc6c082 | bellard | |
338 | 45d827d2 | aurel32 | static void spr_write_dbatl_h (void *opaque, int sprn, int gprn) |
339 | 3fc6c082 | bellard | { |
340 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(((sprn - SPR_DBAT4L) / 2) + 4); |
341 | 45d827d2 | aurel32 | gen_helper_store_dbatl(t0, cpu_gpr[gprn]); |
342 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
343 | 3fc6c082 | bellard | } |
344 | 3fc6c082 | bellard | |
345 | 3fc6c082 | bellard | /* SDR1 */
|
346 | 45d827d2 | aurel32 | static void spr_read_sdr1 (void *opaque, int gprn, int sprn) |
347 | 3fc6c082 | bellard | { |
348 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, sdr1)); |
349 | 3fc6c082 | bellard | } |
350 | 3fc6c082 | bellard | |
351 | 45d827d2 | aurel32 | static void spr_write_sdr1 (void *opaque, int sprn, int gprn) |
352 | 3fc6c082 | bellard | { |
353 | 45d827d2 | aurel32 | gen_helper_store_sdr1(cpu_gpr[gprn]); |
354 | 3fc6c082 | bellard | } |
355 | 3fc6c082 | bellard | |
356 | 76a66253 | j_mayer | /* 64 bits PowerPC specific SPRs */
|
357 | 76a66253 | j_mayer | /* ASR */
|
358 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
359 | 2adab7d6 | blueswir1 | static void spr_read_hior (void *opaque, int gprn, int sprn) |
360 | 2adab7d6 | blueswir1 | { |
361 | 2adab7d6 | blueswir1 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, excp_prefix)); |
362 | 2adab7d6 | blueswir1 | } |
363 | 2adab7d6 | blueswir1 | |
364 | 2adab7d6 | blueswir1 | static void spr_write_hior (void *opaque, int sprn, int gprn) |
365 | 2adab7d6 | blueswir1 | { |
366 | 2adab7d6 | blueswir1 | TCGv t0 = tcg_temp_new(); |
367 | 2adab7d6 | blueswir1 | tcg_gen_andi_tl(t0, cpu_gpr[gprn], 0x3FFFFF00000ULL);
|
368 | 2adab7d6 | blueswir1 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_prefix)); |
369 | 2adab7d6 | blueswir1 | tcg_temp_free(t0); |
370 | 2adab7d6 | blueswir1 | } |
371 | 2adab7d6 | blueswir1 | |
372 | 45d827d2 | aurel32 | static void spr_read_asr (void *opaque, int gprn, int sprn) |
373 | 76a66253 | j_mayer | { |
374 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, asr)); |
375 | 76a66253 | j_mayer | } |
376 | 76a66253 | j_mayer | |
377 | 45d827d2 | aurel32 | static void spr_write_asr (void *opaque, int sprn, int gprn) |
378 | 76a66253 | j_mayer | { |
379 | 45d827d2 | aurel32 | gen_helper_store_asr(cpu_gpr[gprn]); |
380 | 76a66253 | j_mayer | } |
381 | 76a66253 | j_mayer | #endif
|
382 | a750fc0b | j_mayer | #endif
|
383 | 76a66253 | j_mayer | |
384 | 76a66253 | j_mayer | /* PowerPC 601 specific registers */
|
385 | 76a66253 | j_mayer | /* RTC */
|
386 | 45d827d2 | aurel32 | static void spr_read_601_rtcl (void *opaque, int gprn, int sprn) |
387 | 76a66253 | j_mayer | { |
388 | 45d827d2 | aurel32 | gen_helper_load_601_rtcl(cpu_gpr[gprn]); |
389 | 76a66253 | j_mayer | } |
390 | 76a66253 | j_mayer | |
391 | 45d827d2 | aurel32 | static void spr_read_601_rtcu (void *opaque, int gprn, int sprn) |
392 | 76a66253 | j_mayer | { |
393 | 45d827d2 | aurel32 | gen_helper_load_601_rtcu(cpu_gpr[gprn]); |
394 | 76a66253 | j_mayer | } |
395 | 76a66253 | j_mayer | |
396 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
397 | 45d827d2 | aurel32 | static void spr_write_601_rtcu (void *opaque, int sprn, int gprn) |
398 | 76a66253 | j_mayer | { |
399 | 45d827d2 | aurel32 | gen_helper_store_601_rtcu(cpu_gpr[gprn]); |
400 | 76a66253 | j_mayer | } |
401 | 76a66253 | j_mayer | |
402 | 45d827d2 | aurel32 | static void spr_write_601_rtcl (void *opaque, int sprn, int gprn) |
403 | 76a66253 | j_mayer | { |
404 | 45d827d2 | aurel32 | gen_helper_store_601_rtcl(cpu_gpr[gprn]); |
405 | 76a66253 | j_mayer | } |
406 | 056401ea | j_mayer | |
407 | 45d827d2 | aurel32 | static void spr_write_hid0_601 (void *opaque, int sprn, int gprn) |
408 | 056401ea | j_mayer | { |
409 | 056401ea | j_mayer | DisasContext *ctx = opaque; |
410 | 056401ea | j_mayer | |
411 | 45d827d2 | aurel32 | gen_helper_store_hid0_601(cpu_gpr[gprn]); |
412 | 056401ea | j_mayer | /* Must stop the translation as endianness may have changed */
|
413 | e06fcd75 | aurel32 | gen_stop_exception(ctx); |
414 | 056401ea | j_mayer | } |
415 | 76a66253 | j_mayer | #endif
|
416 | 76a66253 | j_mayer | |
417 | 76a66253 | j_mayer | /* Unified bats */
|
418 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
419 | 45d827d2 | aurel32 | static void spr_read_601_ubat (void *opaque, int gprn, int sprn) |
420 | 76a66253 | j_mayer | { |
421 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, IBAT[sprn & 1][(sprn - SPR_IBAT0U) / 2])); |
422 | 76a66253 | j_mayer | } |
423 | 76a66253 | j_mayer | |
424 | 45d827d2 | aurel32 | static void spr_write_601_ubatu (void *opaque, int sprn, int gprn) |
425 | 76a66253 | j_mayer | { |
426 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
427 | 45d827d2 | aurel32 | gen_helper_store_601_batl(t0, cpu_gpr[gprn]); |
428 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
429 | 76a66253 | j_mayer | } |
430 | 76a66253 | j_mayer | |
431 | 45d827d2 | aurel32 | static void spr_write_601_ubatl (void *opaque, int sprn, int gprn) |
432 | 76a66253 | j_mayer | { |
433 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32((sprn - SPR_IBAT0U) / 2);
|
434 | 45d827d2 | aurel32 | gen_helper_store_601_batu(t0, cpu_gpr[gprn]); |
435 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
436 | 76a66253 | j_mayer | } |
437 | 76a66253 | j_mayer | #endif
|
438 | 76a66253 | j_mayer | |
439 | 76a66253 | j_mayer | /* PowerPC 40x specific registers */
|
440 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
441 | 45d827d2 | aurel32 | static void spr_read_40x_pit (void *opaque, int gprn, int sprn) |
442 | 76a66253 | j_mayer | { |
443 | 45d827d2 | aurel32 | gen_helper_load_40x_pit(cpu_gpr[gprn]); |
444 | 76a66253 | j_mayer | } |
445 | 76a66253 | j_mayer | |
446 | 45d827d2 | aurel32 | static void spr_write_40x_pit (void *opaque, int sprn, int gprn) |
447 | 76a66253 | j_mayer | { |
448 | 45d827d2 | aurel32 | gen_helper_store_40x_pit(cpu_gpr[gprn]); |
449 | 76a66253 | j_mayer | } |
450 | 76a66253 | j_mayer | |
451 | 45d827d2 | aurel32 | static void spr_write_40x_dbcr0 (void *opaque, int sprn, int gprn) |
452 | 8ecc7913 | j_mayer | { |
453 | 8ecc7913 | j_mayer | DisasContext *ctx = opaque; |
454 | 8ecc7913 | j_mayer | |
455 | 45d827d2 | aurel32 | gen_helper_store_40x_dbcr0(cpu_gpr[gprn]); |
456 | 8ecc7913 | j_mayer | /* We must stop translation as we may have rebooted */
|
457 | e06fcd75 | aurel32 | gen_stop_exception(ctx); |
458 | 8ecc7913 | j_mayer | } |
459 | 8ecc7913 | j_mayer | |
460 | 45d827d2 | aurel32 | static void spr_write_40x_sler (void *opaque, int sprn, int gprn) |
461 | c294fc58 | j_mayer | { |
462 | 45d827d2 | aurel32 | gen_helper_store_40x_sler(cpu_gpr[gprn]); |
463 | c294fc58 | j_mayer | } |
464 | c294fc58 | j_mayer | |
465 | 45d827d2 | aurel32 | static void spr_write_booke_tcr (void *opaque, int sprn, int gprn) |
466 | 76a66253 | j_mayer | { |
467 | 45d827d2 | aurel32 | gen_helper_store_booke_tcr(cpu_gpr[gprn]); |
468 | 76a66253 | j_mayer | } |
469 | 76a66253 | j_mayer | |
470 | 45d827d2 | aurel32 | static void spr_write_booke_tsr (void *opaque, int sprn, int gprn) |
471 | 76a66253 | j_mayer | { |
472 | 45d827d2 | aurel32 | gen_helper_store_booke_tsr(cpu_gpr[gprn]); |
473 | 76a66253 | j_mayer | } |
474 | 76a66253 | j_mayer | #endif
|
475 | 76a66253 | j_mayer | |
476 | 76a66253 | j_mayer | /* PowerPC 403 specific registers */
|
477 | 76a66253 | j_mayer | /* PBL1 / PBU1 / PBL2 / PBU2 */
|
478 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
479 | 45d827d2 | aurel32 | static void spr_read_403_pbr (void *opaque, int gprn, int sprn) |
480 | 76a66253 | j_mayer | { |
481 | 45d827d2 | aurel32 | tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, pb[sprn - SPR_403_PBL1])); |
482 | 76a66253 | j_mayer | } |
483 | 76a66253 | j_mayer | |
484 | 45d827d2 | aurel32 | static void spr_write_403_pbr (void *opaque, int sprn, int gprn) |
485 | 76a66253 | j_mayer | { |
486 | 45d827d2 | aurel32 | TCGv_i32 t0 = tcg_const_i32(sprn - SPR_403_PBL1); |
487 | 45d827d2 | aurel32 | gen_helper_store_403_pbr(t0, cpu_gpr[gprn]); |
488 | 45d827d2 | aurel32 | tcg_temp_free_i32(t0); |
489 | 76a66253 | j_mayer | } |
490 | 76a66253 | j_mayer | |
491 | 45d827d2 | aurel32 | static void spr_write_pir (void *opaque, int sprn, int gprn) |
492 | 3fc6c082 | bellard | { |
493 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
494 | 45d827d2 | aurel32 | tcg_gen_andi_tl(t0, cpu_gpr[gprn], 0xF);
|
495 | 45d827d2 | aurel32 | gen_store_spr(SPR_PIR, t0); |
496 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
497 | 3fc6c082 | bellard | } |
498 | 76a66253 | j_mayer | #endif
|
499 | 3fc6c082 | bellard | |
500 | d34defbc | aurel32 | /* SPE specific registers */
|
501 | d34defbc | aurel32 | static void spr_read_spefscr (void *opaque, int gprn, int sprn) |
502 | d34defbc | aurel32 | { |
503 | d34defbc | aurel32 | TCGv_i32 t0 = tcg_temp_new_i32(); |
504 | 515e2f7e | aurel32 | tcg_gen_ld_i32(t0, cpu_env, offsetof(CPUState, spe_fscr)); |
505 | d34defbc | aurel32 | tcg_gen_extu_i32_tl(cpu_gpr[gprn], t0); |
506 | d34defbc | aurel32 | tcg_temp_free_i32(t0); |
507 | d34defbc | aurel32 | } |
508 | d34defbc | aurel32 | |
509 | d34defbc | aurel32 | static void spr_write_spefscr (void *opaque, int sprn, int gprn) |
510 | d34defbc | aurel32 | { |
511 | d34defbc | aurel32 | TCGv_i32 t0 = tcg_temp_new_i32(); |
512 | d34defbc | aurel32 | tcg_gen_trunc_tl_i32(t0, cpu_gpr[gprn]); |
513 | 515e2f7e | aurel32 | tcg_gen_st_i32(t0, cpu_env, offsetof(CPUState, spe_fscr)); |
514 | d34defbc | aurel32 | tcg_temp_free_i32(t0); |
515 | d34defbc | aurel32 | } |
516 | d34defbc | aurel32 | |
517 | 6f5d427d | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
518 | 6f5d427d | j_mayer | /* Callback used to write the exception vector base */
|
519 | 45d827d2 | aurel32 | static void spr_write_excp_prefix (void *opaque, int sprn, int gprn) |
520 | 6f5d427d | j_mayer | { |
521 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
522 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivpr_mask)); |
523 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
524 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_prefix)); |
525 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
526 | 69bd5820 | aurel32 | tcg_temp_free(t0); |
527 | 6f5d427d | j_mayer | } |
528 | 6f5d427d | j_mayer | |
529 | 45d827d2 | aurel32 | static void spr_write_excp_vector (void *opaque, int sprn, int gprn) |
530 | 6f5d427d | j_mayer | { |
531 | 6f5d427d | j_mayer | DisasContext *ctx = opaque; |
532 | 6f5d427d | j_mayer | |
533 | 6f5d427d | j_mayer | if (sprn >= SPR_BOOKE_IVOR0 && sprn <= SPR_BOOKE_IVOR15) {
|
534 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
535 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivor_mask)); |
536 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
537 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_vectors[sprn - SPR_BOOKE_IVOR0])); |
538 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
539 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
540 | 6f5d427d | j_mayer | } else if (sprn >= SPR_BOOKE_IVOR32 && sprn <= SPR_BOOKE_IVOR37) { |
541 | 45d827d2 | aurel32 | TCGv t0 = tcg_temp_new(); |
542 | 45d827d2 | aurel32 | tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, ivor_mask)); |
543 | 45d827d2 | aurel32 | tcg_gen_and_tl(t0, t0, cpu_gpr[gprn]); |
544 | 45d827d2 | aurel32 | tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, excp_vectors[sprn - SPR_BOOKE_IVOR32 + 32]));
|
545 | 45d827d2 | aurel32 | gen_store_spr(sprn, t0); |
546 | 45d827d2 | aurel32 | tcg_temp_free(t0); |
547 | 6f5d427d | j_mayer | } else {
|
548 | 6f5d427d | j_mayer | printf("Trying to write an unknown exception vector %d %03x\n",
|
549 | 6f5d427d | j_mayer | sprn, sprn); |
550 | e06fcd75 | aurel32 | gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); |
551 | 6f5d427d | j_mayer | } |
552 | 6f5d427d | j_mayer | } |
553 | 6f5d427d | j_mayer | #endif
|
554 | 6f5d427d | j_mayer | |
555 | cf8358c8 | aurel32 | static inline void vscr_init (CPUPPCState *env, uint32_t val) |
556 | cf8358c8 | aurel32 | { |
557 | cf8358c8 | aurel32 | env->vscr = val; |
558 | cf8358c8 | aurel32 | /* Altivec always uses round-to-nearest */
|
559 | cf8358c8 | aurel32 | set_float_rounding_mode(float_round_nearest_even, &env->vec_status); |
560 | cf8358c8 | aurel32 | set_flush_to_zero(vscr_nj, &env->vec_status); |
561 | cf8358c8 | aurel32 | } |
562 | cf8358c8 | aurel32 | |
563 | 76a66253 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
564 | 76a66253 | j_mayer | #define spr_register(env, num, name, uea_read, uea_write, \
|
565 | 76a66253 | j_mayer | oea_read, oea_write, initial_value) \ |
566 | 76a66253 | j_mayer | do { \
|
567 | 76a66253 | j_mayer | _spr_register(env, num, name, uea_read, uea_write, initial_value); \ |
568 | 76a66253 | j_mayer | } while (0) |
569 | 76a66253 | j_mayer | static inline void _spr_register (CPUPPCState *env, int num, |
570 | b55266b5 | blueswir1 | const char *name, |
571 | 45d827d2 | aurel32 | void (*uea_read)(void *opaque, int gprn, int sprn), |
572 | 45d827d2 | aurel32 | void (*uea_write)(void *opaque, int sprn, int gprn), |
573 | 76a66253 | j_mayer | target_ulong initial_value) |
574 | 76a66253 | j_mayer | #else
|
575 | 3fc6c082 | bellard | static inline void spr_register (CPUPPCState *env, int num, |
576 | b55266b5 | blueswir1 | const char *name, |
577 | 45d827d2 | aurel32 | void (*uea_read)(void *opaque, int gprn, int sprn), |
578 | 45d827d2 | aurel32 | void (*uea_write)(void *opaque, int sprn, int gprn), |
579 | 45d827d2 | aurel32 | void (*oea_read)(void *opaque, int gprn, int sprn), |
580 | 45d827d2 | aurel32 | void (*oea_write)(void *opaque, int sprn, int gprn), |
581 | 3fc6c082 | bellard | target_ulong initial_value) |
582 | 76a66253 | j_mayer | #endif
|
583 | 3fc6c082 | bellard | { |
584 | c227f099 | Anthony Liguori | ppc_spr_t *spr; |
585 | 3fc6c082 | bellard | |
586 | 3fc6c082 | bellard | spr = &env->spr_cb[num]; |
587 | 3fc6c082 | bellard | if (spr->name != NULL ||env-> spr[num] != 0x00000000 || |
588 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
589 | 76a66253 | j_mayer | spr->oea_read != NULL || spr->oea_write != NULL || |
590 | 76a66253 | j_mayer | #endif
|
591 | 76a66253 | j_mayer | spr->uea_read != NULL || spr->uea_write != NULL) { |
592 | 3fc6c082 | bellard | printf("Error: Trying to register SPR %d (%03x) twice !\n", num, num);
|
593 | 3fc6c082 | bellard | exit(1);
|
594 | 3fc6c082 | bellard | } |
595 | 3fc6c082 | bellard | #if defined(PPC_DEBUG_SPR)
|
596 | 90e189ec | Blue Swirl | printf("*** register spr %d (%03x) %s val " TARGET_FMT_lx "\n", num, num, |
597 | 90e189ec | Blue Swirl | name, initial_value); |
598 | 3fc6c082 | bellard | #endif
|
599 | 3fc6c082 | bellard | spr->name = name; |
600 | 3fc6c082 | bellard | spr->uea_read = uea_read; |
601 | 3fc6c082 | bellard | spr->uea_write = uea_write; |
602 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
603 | 3fc6c082 | bellard | spr->oea_read = oea_read; |
604 | 3fc6c082 | bellard | spr->oea_write = oea_write; |
605 | 76a66253 | j_mayer | #endif
|
606 | 3fc6c082 | bellard | env->spr[num] = initial_value; |
607 | 3fc6c082 | bellard | } |
608 | 3fc6c082 | bellard | |
609 | 3fc6c082 | bellard | /* Generic PowerPC SPRs */
|
610 | 3fc6c082 | bellard | static void gen_spr_generic (CPUPPCState *env) |
611 | 3fc6c082 | bellard | { |
612 | 3fc6c082 | bellard | /* Integer processing */
|
613 | 3fc6c082 | bellard | spr_register(env, SPR_XER, "XER",
|
614 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
615 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
616 | 3fc6c082 | bellard | 0x00000000);
|
617 | 3fc6c082 | bellard | /* Branch contol */
|
618 | 3fc6c082 | bellard | spr_register(env, SPR_LR, "LR",
|
619 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
620 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
621 | 3fc6c082 | bellard | 0x00000000);
|
622 | 3fc6c082 | bellard | spr_register(env, SPR_CTR, "CTR",
|
623 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
624 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
625 | 3fc6c082 | bellard | 0x00000000);
|
626 | 3fc6c082 | bellard | /* Interrupt processing */
|
627 | 3fc6c082 | bellard | spr_register(env, SPR_SRR0, "SRR0",
|
628 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
629 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
630 | 3fc6c082 | bellard | 0x00000000);
|
631 | 3fc6c082 | bellard | spr_register(env, SPR_SRR1, "SRR1",
|
632 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
633 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
634 | 3fc6c082 | bellard | 0x00000000);
|
635 | 3fc6c082 | bellard | /* Processor control */
|
636 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG0, "SPRG0",
|
637 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
638 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
639 | 3fc6c082 | bellard | 0x00000000);
|
640 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG1, "SPRG1",
|
641 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
642 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
643 | 3fc6c082 | bellard | 0x00000000);
|
644 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG2, "SPRG2",
|
645 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
646 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
647 | 3fc6c082 | bellard | 0x00000000);
|
648 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG3, "SPRG3",
|
649 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
650 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
651 | 3fc6c082 | bellard | 0x00000000);
|
652 | 3fc6c082 | bellard | } |
653 | 3fc6c082 | bellard | |
654 | 3fc6c082 | bellard | /* SPR common to all non-embedded PowerPC, including 601 */
|
655 | 3fc6c082 | bellard | static void gen_spr_ne_601 (CPUPPCState *env) |
656 | 3fc6c082 | bellard | { |
657 | 3fc6c082 | bellard | /* Exception processing */
|
658 | 3fc6c082 | bellard | spr_register(env, SPR_DSISR, "DSISR",
|
659 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
660 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
661 | 3fc6c082 | bellard | 0x00000000);
|
662 | 3fc6c082 | bellard | spr_register(env, SPR_DAR, "DAR",
|
663 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
664 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
665 | 3fc6c082 | bellard | 0x00000000);
|
666 | 3fc6c082 | bellard | /* Timer */
|
667 | 3fc6c082 | bellard | spr_register(env, SPR_DECR, "DECR",
|
668 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
669 | 3fc6c082 | bellard | &spr_read_decr, &spr_write_decr, |
670 | 3fc6c082 | bellard | 0x00000000);
|
671 | 3fc6c082 | bellard | /* Memory management */
|
672 | 3fc6c082 | bellard | spr_register(env, SPR_SDR1, "SDR1",
|
673 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
674 | 3fc6c082 | bellard | &spr_read_sdr1, &spr_write_sdr1, |
675 | 3fc6c082 | bellard | 0x00000000);
|
676 | 3fc6c082 | bellard | } |
677 | 3fc6c082 | bellard | |
678 | 3fc6c082 | bellard | /* BATs 0-3 */
|
679 | 3fc6c082 | bellard | static void gen_low_BATs (CPUPPCState *env) |
680 | 3fc6c082 | bellard | { |
681 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
682 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
683 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
684 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
685 | 3fc6c082 | bellard | 0x00000000);
|
686 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
687 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
688 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
689 | 3fc6c082 | bellard | 0x00000000);
|
690 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
691 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
692 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
693 | 3fc6c082 | bellard | 0x00000000);
|
694 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
695 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
696 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
697 | 3fc6c082 | bellard | 0x00000000);
|
698 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
699 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
700 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
701 | 3fc6c082 | bellard | 0x00000000);
|
702 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
703 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
704 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
705 | 3fc6c082 | bellard | 0x00000000);
|
706 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
707 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
708 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
709 | 3fc6c082 | bellard | 0x00000000);
|
710 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
711 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
712 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
713 | 3fc6c082 | bellard | 0x00000000);
|
714 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0U, "DBAT0U",
|
715 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
716 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
717 | 3fc6c082 | bellard | 0x00000000);
|
718 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0L, "DBAT0L",
|
719 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
720 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
721 | 3fc6c082 | bellard | 0x00000000);
|
722 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1U, "DBAT1U",
|
723 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
724 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
725 | 3fc6c082 | bellard | 0x00000000);
|
726 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1L, "DBAT1L",
|
727 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
728 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
729 | 3fc6c082 | bellard | 0x00000000);
|
730 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2U, "DBAT2U",
|
731 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
732 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
733 | 3fc6c082 | bellard | 0x00000000);
|
734 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2L, "DBAT2L",
|
735 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
736 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
737 | 3fc6c082 | bellard | 0x00000000);
|
738 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3U, "DBAT3U",
|
739 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
740 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
741 | 3fc6c082 | bellard | 0x00000000);
|
742 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3L, "DBAT3L",
|
743 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
744 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
745 | 3fc6c082 | bellard | 0x00000000);
|
746 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
747 | f2e63a42 | j_mayer | #endif
|
748 | 3fc6c082 | bellard | } |
749 | 3fc6c082 | bellard | |
750 | 3fc6c082 | bellard | /* BATs 4-7 */
|
751 | 3fc6c082 | bellard | static void gen_high_BATs (CPUPPCState *env) |
752 | 3fc6c082 | bellard | { |
753 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
754 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4U, "IBAT4U",
|
755 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
756 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
757 | 3fc6c082 | bellard | 0x00000000);
|
758 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4L, "IBAT4L",
|
759 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
760 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
761 | 3fc6c082 | bellard | 0x00000000);
|
762 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5U, "IBAT5U",
|
763 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
764 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
765 | 3fc6c082 | bellard | 0x00000000);
|
766 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5L, "IBAT5L",
|
767 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
768 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
769 | 3fc6c082 | bellard | 0x00000000);
|
770 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6U, "IBAT6U",
|
771 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
772 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
773 | 3fc6c082 | bellard | 0x00000000);
|
774 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6L, "IBAT6L",
|
775 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
776 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
777 | 3fc6c082 | bellard | 0x00000000);
|
778 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7U, "IBAT7U",
|
779 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
780 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
781 | 3fc6c082 | bellard | 0x00000000);
|
782 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7L, "IBAT7L",
|
783 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
784 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
785 | 3fc6c082 | bellard | 0x00000000);
|
786 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4U, "DBAT4U",
|
787 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
788 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
789 | 3fc6c082 | bellard | 0x00000000);
|
790 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4L, "DBAT4L",
|
791 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
792 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
793 | 3fc6c082 | bellard | 0x00000000);
|
794 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5U, "DBAT5U",
|
795 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
796 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
797 | 3fc6c082 | bellard | 0x00000000);
|
798 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5L, "DBAT5L",
|
799 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
800 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
801 | 3fc6c082 | bellard | 0x00000000);
|
802 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6U, "DBAT6U",
|
803 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
804 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
805 | 3fc6c082 | bellard | 0x00000000);
|
806 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6L, "DBAT6L",
|
807 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
808 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
809 | 3fc6c082 | bellard | 0x00000000);
|
810 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7U, "DBAT7U",
|
811 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
812 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
813 | 3fc6c082 | bellard | 0x00000000);
|
814 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7L, "DBAT7L",
|
815 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
816 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
817 | 3fc6c082 | bellard | 0x00000000);
|
818 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
819 | f2e63a42 | j_mayer | #endif
|
820 | 3fc6c082 | bellard | } |
821 | 3fc6c082 | bellard | |
822 | 3fc6c082 | bellard | /* Generic PowerPC time base */
|
823 | 3fc6c082 | bellard | static void gen_tbl (CPUPPCState *env) |
824 | 3fc6c082 | bellard | { |
825 | 3fc6c082 | bellard | spr_register(env, SPR_VTBL, "TBL",
|
826 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
827 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
828 | 3fc6c082 | bellard | 0x00000000);
|
829 | 3fc6c082 | bellard | spr_register(env, SPR_TBL, "TBL",
|
830 | de6a1dec | Dmitry Ilyevsky | &spr_read_tbl, SPR_NOACCESS, |
831 | de6a1dec | Dmitry Ilyevsky | &spr_read_tbl, &spr_write_tbl, |
832 | 3fc6c082 | bellard | 0x00000000);
|
833 | 3fc6c082 | bellard | spr_register(env, SPR_VTBU, "TBU",
|
834 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
835 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
836 | 3fc6c082 | bellard | 0x00000000);
|
837 | 3fc6c082 | bellard | spr_register(env, SPR_TBU, "TBU",
|
838 | de6a1dec | Dmitry Ilyevsky | &spr_read_tbu, SPR_NOACCESS, |
839 | de6a1dec | Dmitry Ilyevsky | &spr_read_tbu, &spr_write_tbu, |
840 | 3fc6c082 | bellard | 0x00000000);
|
841 | 3fc6c082 | bellard | } |
842 | 3fc6c082 | bellard | |
843 | 76a66253 | j_mayer | /* Softare table search registers */
|
844 | 76a66253 | j_mayer | static void gen_6xx_7xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
845 | 76a66253 | j_mayer | { |
846 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
847 | 76a66253 | j_mayer | env->nb_tlb = nb_tlbs; |
848 | 76a66253 | j_mayer | env->nb_ways = nb_ways; |
849 | 76a66253 | j_mayer | env->id_tlbs = 1;
|
850 | 76a66253 | j_mayer | spr_register(env, SPR_DMISS, "DMISS",
|
851 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
852 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
853 | 76a66253 | j_mayer | 0x00000000);
|
854 | 76a66253 | j_mayer | spr_register(env, SPR_DCMP, "DCMP",
|
855 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
856 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
857 | 76a66253 | j_mayer | 0x00000000);
|
858 | 76a66253 | j_mayer | spr_register(env, SPR_HASH1, "HASH1",
|
859 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
860 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
861 | 76a66253 | j_mayer | 0x00000000);
|
862 | 76a66253 | j_mayer | spr_register(env, SPR_HASH2, "HASH2",
|
863 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
864 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
865 | 76a66253 | j_mayer | 0x00000000);
|
866 | 76a66253 | j_mayer | spr_register(env, SPR_IMISS, "IMISS",
|
867 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
868 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
869 | 76a66253 | j_mayer | 0x00000000);
|
870 | 76a66253 | j_mayer | spr_register(env, SPR_ICMP, "ICMP",
|
871 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
872 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
873 | 76a66253 | j_mayer | 0x00000000);
|
874 | 76a66253 | j_mayer | spr_register(env, SPR_RPA, "RPA",
|
875 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
876 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
877 | 76a66253 | j_mayer | 0x00000000);
|
878 | f2e63a42 | j_mayer | #endif
|
879 | 76a66253 | j_mayer | } |
880 | 76a66253 | j_mayer | |
881 | 76a66253 | j_mayer | /* SPR common to MPC755 and G2 */
|
882 | 76a66253 | j_mayer | static void gen_spr_G2_755 (CPUPPCState *env) |
883 | 76a66253 | j_mayer | { |
884 | 76a66253 | j_mayer | /* SGPRs */
|
885 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
886 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
887 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
888 | 76a66253 | j_mayer | 0x00000000);
|
889 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
890 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
891 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
892 | 76a66253 | j_mayer | 0x00000000);
|
893 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
894 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
895 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
896 | 76a66253 | j_mayer | 0x00000000);
|
897 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
898 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
899 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
900 | 76a66253 | j_mayer | 0x00000000);
|
901 | 76a66253 | j_mayer | } |
902 | 76a66253 | j_mayer | |
903 | 3fc6c082 | bellard | /* SPR common to all 7xx PowerPC implementations */
|
904 | 3fc6c082 | bellard | static void gen_spr_7xx (CPUPPCState *env) |
905 | 3fc6c082 | bellard | { |
906 | 3fc6c082 | bellard | /* Breakpoints */
|
907 | 3fc6c082 | bellard | /* XXX : not implemented */
|
908 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
909 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
910 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
911 | 3fc6c082 | bellard | 0x00000000);
|
912 | 3fc6c082 | bellard | /* XXX : not implemented */
|
913 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
914 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
915 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
916 | 3fc6c082 | bellard | 0x00000000);
|
917 | 3fc6c082 | bellard | /* Cache management */
|
918 | 3fc6c082 | bellard | /* XXX : not implemented */
|
919 | 3fc6c082 | bellard | spr_register(env, SPR_ICTC, "ICTC",
|
920 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
921 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
922 | 3fc6c082 | bellard | 0x00000000);
|
923 | 3fc6c082 | bellard | /* Performance monitors */
|
924 | 3fc6c082 | bellard | /* XXX : not implemented */
|
925 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
926 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
927 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
928 | 3fc6c082 | bellard | 0x00000000);
|
929 | 3fc6c082 | bellard | /* XXX : not implemented */
|
930 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR1, "MMCR1",
|
931 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
932 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
933 | 3fc6c082 | bellard | 0x00000000);
|
934 | 3fc6c082 | bellard | /* XXX : not implemented */
|
935 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
936 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
937 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
938 | 3fc6c082 | bellard | 0x00000000);
|
939 | 3fc6c082 | bellard | /* XXX : not implemented */
|
940 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
941 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
942 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
943 | 3fc6c082 | bellard | 0x00000000);
|
944 | 3fc6c082 | bellard | /* XXX : not implemented */
|
945 | 3fc6c082 | bellard | spr_register(env, SPR_PMC3, "PMC3",
|
946 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
947 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
948 | 3fc6c082 | bellard | 0x00000000);
|
949 | 3fc6c082 | bellard | /* XXX : not implemented */
|
950 | 3fc6c082 | bellard | spr_register(env, SPR_PMC4, "PMC4",
|
951 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
952 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
953 | 3fc6c082 | bellard | 0x00000000);
|
954 | 3fc6c082 | bellard | /* XXX : not implemented */
|
955 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
956 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
957 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
958 | 3fc6c082 | bellard | 0x00000000);
|
959 | 578bb252 | j_mayer | /* XXX : not implemented */
|
960 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR0, "UMMCR0",
|
961 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
962 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
963 | 3fc6c082 | bellard | 0x00000000);
|
964 | 578bb252 | j_mayer | /* XXX : not implemented */
|
965 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR1, "UMMCR1",
|
966 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
967 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
968 | 3fc6c082 | bellard | 0x00000000);
|
969 | 578bb252 | j_mayer | /* XXX : not implemented */
|
970 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC1, "UPMC1",
|
971 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
972 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
973 | 3fc6c082 | bellard | 0x00000000);
|
974 | 578bb252 | j_mayer | /* XXX : not implemented */
|
975 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC2, "UPMC2",
|
976 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
977 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
978 | 3fc6c082 | bellard | 0x00000000);
|
979 | 578bb252 | j_mayer | /* XXX : not implemented */
|
980 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC3, "UPMC3",
|
981 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
982 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
983 | 3fc6c082 | bellard | 0x00000000);
|
984 | 578bb252 | j_mayer | /* XXX : not implemented */
|
985 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC4, "UPMC4",
|
986 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
987 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
988 | 3fc6c082 | bellard | 0x00000000);
|
989 | 578bb252 | j_mayer | /* XXX : not implemented */
|
990 | a750fc0b | j_mayer | spr_register(env, SPR_USIAR, "USIAR",
|
991 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
992 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
993 | 3fc6c082 | bellard | 0x00000000);
|
994 | a750fc0b | j_mayer | /* External access control */
|
995 | 3fc6c082 | bellard | /* XXX : not implemented */
|
996 | a750fc0b | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
997 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
998 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
999 | 3fc6c082 | bellard | 0x00000000);
|
1000 | a750fc0b | j_mayer | } |
1001 | a750fc0b | j_mayer | |
1002 | a750fc0b | j_mayer | static void gen_spr_thrm (CPUPPCState *env) |
1003 | a750fc0b | j_mayer | { |
1004 | a750fc0b | j_mayer | /* Thermal management */
|
1005 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1006 | a750fc0b | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
1007 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1008 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1009 | 3fc6c082 | bellard | 0x00000000);
|
1010 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1011 | a750fc0b | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
1012 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1013 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1014 | 3fc6c082 | bellard | 0x00000000);
|
1015 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1016 | a750fc0b | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
1017 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1018 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1019 | 3fc6c082 | bellard | 0x00000000);
|
1020 | 3fc6c082 | bellard | } |
1021 | 3fc6c082 | bellard | |
1022 | 3fc6c082 | bellard | /* SPR specific to PowerPC 604 implementation */
|
1023 | 3fc6c082 | bellard | static void gen_spr_604 (CPUPPCState *env) |
1024 | 3fc6c082 | bellard | { |
1025 | 3fc6c082 | bellard | /* Processor identification */
|
1026 | 3fc6c082 | bellard | spr_register(env, SPR_PIR, "PIR",
|
1027 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1028 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_pir, |
1029 | 3fc6c082 | bellard | 0x00000000);
|
1030 | 3fc6c082 | bellard | /* Breakpoints */
|
1031 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1032 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
1033 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1034 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1035 | 3fc6c082 | bellard | 0x00000000);
|
1036 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1037 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
1038 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1039 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1040 | 3fc6c082 | bellard | 0x00000000);
|
1041 | 3fc6c082 | bellard | /* Performance counters */
|
1042 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1043 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
1044 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1045 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1046 | 3fc6c082 | bellard | 0x00000000);
|
1047 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1048 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
1049 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1050 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1051 | 3fc6c082 | bellard | 0x00000000);
|
1052 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1053 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
1054 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1055 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1056 | 3fc6c082 | bellard | 0x00000000);
|
1057 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1058 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
1059 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1060 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
1061 | 3fc6c082 | bellard | 0x00000000);
|
1062 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1063 | 3fc6c082 | bellard | spr_register(env, SPR_SDA, "SDA",
|
1064 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1065 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
1066 | 3fc6c082 | bellard | 0x00000000);
|
1067 | 3fc6c082 | bellard | /* External access control */
|
1068 | 3fc6c082 | bellard | /* XXX : not implemented */
|
1069 | 3fc6c082 | bellard | spr_register(env, SPR_EAR, "EAR",
|
1070 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1071 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
1072 | 3fc6c082 | bellard | 0x00000000);
|
1073 | 3fc6c082 | bellard | } |
1074 | 3fc6c082 | bellard | |
1075 | 76a66253 | j_mayer | /* SPR specific to PowerPC 603 implementation */
|
1076 | 76a66253 | j_mayer | static void gen_spr_603 (CPUPPCState *env) |
1077 | 3fc6c082 | bellard | { |
1078 | 76a66253 | j_mayer | /* External access control */
|
1079 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1080 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1081 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
1082 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1083 | 76a66253 | j_mayer | 0x00000000);
|
1084 | 3fc6c082 | bellard | } |
1085 | 3fc6c082 | bellard | |
1086 | 76a66253 | j_mayer | /* SPR specific to PowerPC G2 implementation */
|
1087 | 76a66253 | j_mayer | static void gen_spr_G2 (CPUPPCState *env) |
1088 | 3fc6c082 | bellard | { |
1089 | 76a66253 | j_mayer | /* Memory base address */
|
1090 | 76a66253 | j_mayer | /* MBAR */
|
1091 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1092 | 76a66253 | j_mayer | spr_register(env, SPR_MBAR, "MBAR",
|
1093 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1094 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1095 | 76a66253 | j_mayer | 0x00000000);
|
1096 | 76a66253 | j_mayer | /* Exception processing */
|
1097 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1098 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1099 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1100 | 76a66253 | j_mayer | 0x00000000);
|
1101 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1102 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1103 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1104 | 76a66253 | j_mayer | 0x00000000);
|
1105 | 76a66253 | j_mayer | /* Breakpoints */
|
1106 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1107 | 76a66253 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
1108 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1109 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1110 | 76a66253 | j_mayer | 0x00000000);
|
1111 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1112 | 76a66253 | j_mayer | spr_register(env, SPR_DABR2, "DABR2",
|
1113 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1114 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1115 | 76a66253 | j_mayer | 0x00000000);
|
1116 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1117 | 76a66253 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1118 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1119 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1120 | 76a66253 | j_mayer | 0x00000000);
|
1121 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1122 | 76a66253 | j_mayer | spr_register(env, SPR_IABR2, "IABR2",
|
1123 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1124 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1125 | 76a66253 | j_mayer | 0x00000000);
|
1126 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1127 | 76a66253 | j_mayer | spr_register(env, SPR_IBCR, "IBCR",
|
1128 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1129 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1130 | 76a66253 | j_mayer | 0x00000000);
|
1131 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1132 | 76a66253 | j_mayer | spr_register(env, SPR_DBCR, "DBCR",
|
1133 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1134 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1135 | 76a66253 | j_mayer | 0x00000000);
|
1136 | 76a66253 | j_mayer | } |
1137 | 76a66253 | j_mayer | |
1138 | 76a66253 | j_mayer | /* SPR specific to PowerPC 602 implementation */
|
1139 | 76a66253 | j_mayer | static void gen_spr_602 (CPUPPCState *env) |
1140 | 76a66253 | j_mayer | { |
1141 | 76a66253 | j_mayer | /* ESA registers */
|
1142 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1143 | 76a66253 | j_mayer | spr_register(env, SPR_SER, "SER",
|
1144 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1145 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1146 | 76a66253 | j_mayer | 0x00000000);
|
1147 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1148 | 76a66253 | j_mayer | spr_register(env, SPR_SEBR, "SEBR",
|
1149 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1150 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1151 | 76a66253 | j_mayer | 0x00000000);
|
1152 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1153 | a750fc0b | j_mayer | spr_register(env, SPR_ESASRR, "ESASRR",
|
1154 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1155 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1156 | 76a66253 | j_mayer | 0x00000000);
|
1157 | 76a66253 | j_mayer | /* Floating point status */
|
1158 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1159 | 76a66253 | j_mayer | spr_register(env, SPR_SP, "SP",
|
1160 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1161 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1162 | 76a66253 | j_mayer | 0x00000000);
|
1163 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1164 | 76a66253 | j_mayer | spr_register(env, SPR_LT, "LT",
|
1165 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1166 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1167 | 76a66253 | j_mayer | 0x00000000);
|
1168 | 76a66253 | j_mayer | /* Watchdog timer */
|
1169 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1170 | 76a66253 | j_mayer | spr_register(env, SPR_TCR, "TCR",
|
1171 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1172 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1173 | 76a66253 | j_mayer | 0x00000000);
|
1174 | 76a66253 | j_mayer | /* Interrupt base */
|
1175 | 76a66253 | j_mayer | spr_register(env, SPR_IBR, "IBR",
|
1176 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1177 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1178 | 76a66253 | j_mayer | 0x00000000);
|
1179 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1180 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1181 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1182 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1183 | a750fc0b | j_mayer | 0x00000000);
|
1184 | 76a66253 | j_mayer | } |
1185 | 76a66253 | j_mayer | |
1186 | 76a66253 | j_mayer | /* SPR specific to PowerPC 601 implementation */
|
1187 | 76a66253 | j_mayer | static void gen_spr_601 (CPUPPCState *env) |
1188 | 76a66253 | j_mayer | { |
1189 | 76a66253 | j_mayer | /* Multiplication/division register */
|
1190 | 76a66253 | j_mayer | /* MQ */
|
1191 | 76a66253 | j_mayer | spr_register(env, SPR_MQ, "MQ",
|
1192 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1193 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1194 | 76a66253 | j_mayer | 0x00000000);
|
1195 | 76a66253 | j_mayer | /* RTC registers */
|
1196 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCU, "RTCU",
|
1197 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1198 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcu, |
1199 | 76a66253 | j_mayer | 0x00000000);
|
1200 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCU, "RTCU",
|
1201 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1202 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1203 | 76a66253 | j_mayer | 0x00000000);
|
1204 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCL, "RTCL",
|
1205 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1206 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcl, |
1207 | 76a66253 | j_mayer | 0x00000000);
|
1208 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCL, "RTCL",
|
1209 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1210 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1211 | 76a66253 | j_mayer | 0x00000000);
|
1212 | 76a66253 | j_mayer | /* Timer */
|
1213 | 76a66253 | j_mayer | #if 0 /* ? */
|
1214 | 76a66253 | j_mayer | spr_register(env, SPR_601_UDECR, "UDECR",
|
1215 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1216 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1217 | 76a66253 | j_mayer | 0x00000000);
|
1218 | 76a66253 | j_mayer | #endif
|
1219 | 76a66253 | j_mayer | /* External access control */
|
1220 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1221 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1222 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1223 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1224 | 76a66253 | j_mayer | 0x00000000);
|
1225 | 76a66253 | j_mayer | /* Memory management */
|
1226 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1227 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
1228 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1229 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1230 | 76a66253 | j_mayer | 0x00000000);
|
1231 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
1232 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1233 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1234 | 76a66253 | j_mayer | 0x00000000);
|
1235 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
1236 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1237 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1238 | 76a66253 | j_mayer | 0x00000000);
|
1239 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
1240 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1241 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1242 | 76a66253 | j_mayer | 0x00000000);
|
1243 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
1244 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1245 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1246 | 76a66253 | j_mayer | 0x00000000);
|
1247 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
1248 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1249 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1250 | 76a66253 | j_mayer | 0x00000000);
|
1251 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
1252 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1253 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1254 | 76a66253 | j_mayer | 0x00000000);
|
1255 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
1256 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1257 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1258 | 76a66253 | j_mayer | 0x00000000);
|
1259 | a750fc0b | j_mayer | env->nb_BATs = 4;
|
1260 | f2e63a42 | j_mayer | #endif
|
1261 | a750fc0b | j_mayer | } |
1262 | a750fc0b | j_mayer | |
1263 | a750fc0b | j_mayer | static void gen_spr_74xx (CPUPPCState *env) |
1264 | a750fc0b | j_mayer | { |
1265 | a750fc0b | j_mayer | /* Processor identification */
|
1266 | a750fc0b | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
1267 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1268 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_pir, |
1269 | a750fc0b | j_mayer | 0x00000000);
|
1270 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1271 | a750fc0b | j_mayer | spr_register(env, SPR_MMCR2, "MMCR2",
|
1272 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1273 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1274 | a750fc0b | j_mayer | 0x00000000);
|
1275 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1276 | a750fc0b | j_mayer | spr_register(env, SPR_UMMCR2, "UMMCR2",
|
1277 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1278 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1279 | a750fc0b | j_mayer | 0x00000000);
|
1280 | a750fc0b | j_mayer | /* XXX: not implemented */
|
1281 | a750fc0b | j_mayer | spr_register(env, SPR_BAMR, "BAMR",
|
1282 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1283 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1284 | a750fc0b | j_mayer | 0x00000000);
|
1285 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1286 | a750fc0b | j_mayer | spr_register(env, SPR_MSSCR0, "MSSCR0",
|
1287 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1288 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1289 | a750fc0b | j_mayer | 0x00000000);
|
1290 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
1291 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1292 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
1293 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1294 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1295 | a750fc0b | j_mayer | 0x00000000);
|
1296 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1297 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
1298 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1299 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1300 | a750fc0b | j_mayer | 0x00000000);
|
1301 | a750fc0b | j_mayer | /* Altivec */
|
1302 | a750fc0b | j_mayer | spr_register(env, SPR_VRSAVE, "VRSAVE",
|
1303 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1304 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1305 | a750fc0b | j_mayer | 0x00000000);
|
1306 | bd928eba | j_mayer | /* XXX : not implemented */
|
1307 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
1308 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1309 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
1310 | bd928eba | j_mayer | 0x00000000);
|
1311 | cf8358c8 | aurel32 | /* Not strictly an SPR */
|
1312 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
1313 | a750fc0b | j_mayer | } |
1314 | a750fc0b | j_mayer | |
1315 | a750fc0b | j_mayer | static void gen_l3_ctrl (CPUPPCState *env) |
1316 | a750fc0b | j_mayer | { |
1317 | a750fc0b | j_mayer | /* L3CR */
|
1318 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1319 | a750fc0b | j_mayer | spr_register(env, SPR_L3CR, "L3CR",
|
1320 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1321 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1322 | a750fc0b | j_mayer | 0x00000000);
|
1323 | a750fc0b | j_mayer | /* L3ITCR0 */
|
1324 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1325 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR0, "L3ITCR0",
|
1326 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1327 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1328 | a750fc0b | j_mayer | 0x00000000);
|
1329 | a750fc0b | j_mayer | /* L3PM */
|
1330 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1331 | a750fc0b | j_mayer | spr_register(env, SPR_L3PM, "L3PM",
|
1332 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1333 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1334 | a750fc0b | j_mayer | 0x00000000);
|
1335 | a750fc0b | j_mayer | } |
1336 | a750fc0b | j_mayer | |
1337 | 578bb252 | j_mayer | static void gen_74xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
1338 | a750fc0b | j_mayer | { |
1339 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1340 | 578bb252 | j_mayer | env->nb_tlb = nb_tlbs; |
1341 | 578bb252 | j_mayer | env->nb_ways = nb_ways; |
1342 | 578bb252 | j_mayer | env->id_tlbs = 1;
|
1343 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1344 | a750fc0b | j_mayer | spr_register(env, SPR_PTEHI, "PTEHI",
|
1345 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1346 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1347 | a750fc0b | j_mayer | 0x00000000);
|
1348 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1349 | a750fc0b | j_mayer | spr_register(env, SPR_PTELO, "PTELO",
|
1350 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1351 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1352 | a750fc0b | j_mayer | 0x00000000);
|
1353 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1354 | a750fc0b | j_mayer | spr_register(env, SPR_TLBMISS, "TLBMISS",
|
1355 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1356 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1357 | a750fc0b | j_mayer | 0x00000000);
|
1358 | f2e63a42 | j_mayer | #endif
|
1359 | 76a66253 | j_mayer | } |
1360 | 76a66253 | j_mayer | |
1361 | 80d11f44 | j_mayer | static void gen_spr_usprgh (CPUPPCState *env) |
1362 | 76a66253 | j_mayer | { |
1363 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
1364 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1365 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1366 | 80d11f44 | j_mayer | 0x00000000);
|
1367 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
1368 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1369 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1370 | 80d11f44 | j_mayer | 0x00000000);
|
1371 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
1372 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1373 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1374 | 80d11f44 | j_mayer | 0x00000000);
|
1375 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
1376 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1377 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1378 | 76a66253 | j_mayer | 0x00000000);
|
1379 | 80d11f44 | j_mayer | } |
1380 | 80d11f44 | j_mayer | |
1381 | 80d11f44 | j_mayer | /* PowerPC BookE SPR */
|
1382 | 80d11f44 | j_mayer | static void gen_spr_BookE (CPUPPCState *env, uint64_t ivor_mask) |
1383 | 80d11f44 | j_mayer | { |
1384 | b55266b5 | blueswir1 | const char *ivor_names[64] = { |
1385 | 80d11f44 | j_mayer | "IVOR0", "IVOR1", "IVOR2", "IVOR3", |
1386 | 80d11f44 | j_mayer | "IVOR4", "IVOR5", "IVOR6", "IVOR7", |
1387 | 80d11f44 | j_mayer | "IVOR8", "IVOR9", "IVOR10", "IVOR11", |
1388 | 80d11f44 | j_mayer | "IVOR12", "IVOR13", "IVOR14", "IVOR15", |
1389 | 80d11f44 | j_mayer | "IVOR16", "IVOR17", "IVOR18", "IVOR19", |
1390 | 80d11f44 | j_mayer | "IVOR20", "IVOR21", "IVOR22", "IVOR23", |
1391 | 80d11f44 | j_mayer | "IVOR24", "IVOR25", "IVOR26", "IVOR27", |
1392 | 80d11f44 | j_mayer | "IVOR28", "IVOR29", "IVOR30", "IVOR31", |
1393 | 80d11f44 | j_mayer | "IVOR32", "IVOR33", "IVOR34", "IVOR35", |
1394 | 80d11f44 | j_mayer | "IVOR36", "IVOR37", "IVOR38", "IVOR39", |
1395 | 80d11f44 | j_mayer | "IVOR40", "IVOR41", "IVOR42", "IVOR43", |
1396 | 80d11f44 | j_mayer | "IVOR44", "IVOR45", "IVOR46", "IVOR47", |
1397 | 80d11f44 | j_mayer | "IVOR48", "IVOR49", "IVOR50", "IVOR51", |
1398 | 80d11f44 | j_mayer | "IVOR52", "IVOR53", "IVOR54", "IVOR55", |
1399 | 80d11f44 | j_mayer | "IVOR56", "IVOR57", "IVOR58", "IVOR59", |
1400 | 80d11f44 | j_mayer | "IVOR60", "IVOR61", "IVOR62", "IVOR63", |
1401 | 80d11f44 | j_mayer | }; |
1402 | 80d11f44 | j_mayer | #define SPR_BOOKE_IVORxx (-1) |
1403 | 80d11f44 | j_mayer | int ivor_sprn[64] = { |
1404 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR0, SPR_BOOKE_IVOR1, SPR_BOOKE_IVOR2, SPR_BOOKE_IVOR3, |
1405 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR4, SPR_BOOKE_IVOR5, SPR_BOOKE_IVOR6, SPR_BOOKE_IVOR7, |
1406 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR8, SPR_BOOKE_IVOR9, SPR_BOOKE_IVOR10, SPR_BOOKE_IVOR11, |
1407 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR12, SPR_BOOKE_IVOR13, SPR_BOOKE_IVOR14, SPR_BOOKE_IVOR15, |
1408 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1409 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1410 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1411 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1412 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR32, SPR_BOOKE_IVOR33, SPR_BOOKE_IVOR34, SPR_BOOKE_IVOR35, |
1413 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR36, SPR_BOOKE_IVOR37, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1414 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1415 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1416 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1417 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1418 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1419 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1420 | 80d11f44 | j_mayer | }; |
1421 | 80d11f44 | j_mayer | int i;
|
1422 | 80d11f44 | j_mayer | |
1423 | 76a66253 | j_mayer | /* Interrupt processing */
|
1424 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1425 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1426 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1427 | 76a66253 | j_mayer | 0x00000000);
|
1428 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1429 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1430 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1431 | 363be49c | j_mayer | 0x00000000);
|
1432 | 76a66253 | j_mayer | /* Debug */
|
1433 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1434 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC1, "IAC1",
|
1435 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1436 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1437 | 76a66253 | j_mayer | 0x00000000);
|
1438 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1439 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC2, "IAC2",
|
1440 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1441 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1442 | 76a66253 | j_mayer | 0x00000000);
|
1443 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1444 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC1, "DAC1",
|
1445 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1446 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1447 | 76a66253 | j_mayer | 0x00000000);
|
1448 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1449 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC2, "DAC2",
|
1450 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1451 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1452 | 76a66253 | j_mayer | 0x00000000);
|
1453 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1454 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR0, "DBCR0",
|
1455 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1456 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1457 | 76a66253 | j_mayer | 0x00000000);
|
1458 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1459 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR1, "DBCR1",
|
1460 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1461 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1462 | 76a66253 | j_mayer | 0x00000000);
|
1463 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1464 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR2, "DBCR2",
|
1465 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1466 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1467 | 76a66253 | j_mayer | 0x00000000);
|
1468 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1469 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBSR, "DBSR",
|
1470 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1471 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1472 | 76a66253 | j_mayer | 0x00000000);
|
1473 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DEAR, "DEAR",
|
1474 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1475 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1476 | 76a66253 | j_mayer | 0x00000000);
|
1477 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_ESR, "ESR",
|
1478 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1479 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1480 | 76a66253 | j_mayer | 0x00000000);
|
1481 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVPR, "IVPR",
|
1482 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1483 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1484 | 363be49c | j_mayer | 0x00000000);
|
1485 | 363be49c | j_mayer | /* Exception vectors */
|
1486 | 80d11f44 | j_mayer | for (i = 0; i < 64; i++) { |
1487 | 80d11f44 | j_mayer | if (ivor_mask & (1ULL << i)) { |
1488 | 80d11f44 | j_mayer | if (ivor_sprn[i] == SPR_BOOKE_IVORxx) {
|
1489 | 80d11f44 | j_mayer | fprintf(stderr, "ERROR: IVOR %d SPR is not defined\n", i);
|
1490 | 80d11f44 | j_mayer | exit(1);
|
1491 | 80d11f44 | j_mayer | } |
1492 | 80d11f44 | j_mayer | spr_register(env, ivor_sprn[i], ivor_names[i], |
1493 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1494 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_excp_vector, |
1495 | 80d11f44 | j_mayer | 0x00000000);
|
1496 | 80d11f44 | j_mayer | } |
1497 | 80d11f44 | j_mayer | } |
1498 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_PID, "PID",
|
1499 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1500 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1501 | 76a66253 | j_mayer | 0x00000000);
|
1502 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TCR, "TCR",
|
1503 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1504 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1505 | 76a66253 | j_mayer | 0x00000000);
|
1506 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TSR, "TSR",
|
1507 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1508 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1509 | 76a66253 | j_mayer | 0x00000000);
|
1510 | 76a66253 | j_mayer | /* Timer */
|
1511 | 76a66253 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
1512 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1513 | 76a66253 | j_mayer | &spr_read_decr, &spr_write_decr, |
1514 | 76a66253 | j_mayer | 0x00000000);
|
1515 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DECAR, "DECAR",
|
1516 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1517 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
1518 | 76a66253 | j_mayer | 0x00000000);
|
1519 | 76a66253 | j_mayer | /* SPRGs */
|
1520 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1521 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1522 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1523 | 76a66253 | j_mayer | 0x00000000);
|
1524 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1525 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1526 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1527 | 76a66253 | j_mayer | 0x00000000);
|
1528 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1529 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1530 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1531 | 76a66253 | j_mayer | 0x00000000);
|
1532 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1533 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1534 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1535 | 76a66253 | j_mayer | 0x00000000);
|
1536 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1537 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1538 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1539 | 76a66253 | j_mayer | 0x00000000);
|
1540 | 76a66253 | j_mayer | } |
1541 | 76a66253 | j_mayer | |
1542 | 363be49c | j_mayer | /* FSL storage control registers */
|
1543 | 80d11f44 | j_mayer | static void gen_spr_BookE_FSL (CPUPPCState *env, uint32_t mas_mask) |
1544 | 363be49c | j_mayer | { |
1545 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1546 | b55266b5 | blueswir1 | const char *mas_names[8] = { |
1547 | 80d11f44 | j_mayer | "MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7", |
1548 | 80d11f44 | j_mayer | }; |
1549 | 80d11f44 | j_mayer | int mas_sprn[8] = { |
1550 | 80d11f44 | j_mayer | SPR_BOOKE_MAS0, SPR_BOOKE_MAS1, SPR_BOOKE_MAS2, SPR_BOOKE_MAS3, |
1551 | 80d11f44 | j_mayer | SPR_BOOKE_MAS4, SPR_BOOKE_MAS5, SPR_BOOKE_MAS6, SPR_BOOKE_MAS7, |
1552 | 80d11f44 | j_mayer | }; |
1553 | 80d11f44 | j_mayer | int i;
|
1554 | 80d11f44 | j_mayer | |
1555 | 363be49c | j_mayer | /* TLB assist registers */
|
1556 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1557 | 80d11f44 | j_mayer | for (i = 0; i < 8; i++) { |
1558 | 80d11f44 | j_mayer | if (mas_mask & (1 << i)) { |
1559 | 80d11f44 | j_mayer | spr_register(env, mas_sprn[i], mas_names[i], |
1560 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1561 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
1562 | 80d11f44 | j_mayer | 0x00000000);
|
1563 | 80d11f44 | j_mayer | } |
1564 | 80d11f44 | j_mayer | } |
1565 | 363be49c | j_mayer | if (env->nb_pids > 1) { |
1566 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1567 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID1, "PID1",
|
1568 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1569 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1570 | 363be49c | j_mayer | 0x00000000);
|
1571 | 363be49c | j_mayer | } |
1572 | 363be49c | j_mayer | if (env->nb_pids > 2) { |
1573 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1574 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID2, "PID2",
|
1575 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1576 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1577 | 363be49c | j_mayer | 0x00000000);
|
1578 | 363be49c | j_mayer | } |
1579 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1580 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
1581 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1582 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1583 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1584 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1585 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
1586 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1587 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1588 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1589 | 363be49c | j_mayer | switch (env->nb_ways) {
|
1590 | 363be49c | j_mayer | case 4: |
1591 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1592 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB3CFG, "TLB3CFG",
|
1593 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1594 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1595 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1596 | 363be49c | j_mayer | /* Fallthru */
|
1597 | 363be49c | j_mayer | case 3: |
1598 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1599 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB2CFG, "TLB2CFG",
|
1600 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1601 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1602 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1603 | 363be49c | j_mayer | /* Fallthru */
|
1604 | 363be49c | j_mayer | case 2: |
1605 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1606 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
1607 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1608 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1609 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1610 | 363be49c | j_mayer | /* Fallthru */
|
1611 | 363be49c | j_mayer | case 1: |
1612 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1613 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
1614 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1615 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1616 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1617 | 363be49c | j_mayer | /* Fallthru */
|
1618 | 363be49c | j_mayer | case 0: |
1619 | 363be49c | j_mayer | default:
|
1620 | 363be49c | j_mayer | break;
|
1621 | 363be49c | j_mayer | } |
1622 | f2e63a42 | j_mayer | #endif
|
1623 | 363be49c | j_mayer | } |
1624 | 363be49c | j_mayer | |
1625 | 76a66253 | j_mayer | /* SPR specific to PowerPC 440 implementation */
|
1626 | 76a66253 | j_mayer | static void gen_spr_440 (CPUPPCState *env) |
1627 | 76a66253 | j_mayer | { |
1628 | 76a66253 | j_mayer | /* Cache control */
|
1629 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1630 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV0, "DNV0",
|
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_DNV1, "DNV1",
|
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_DNV2, "DNV2",
|
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 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV3, "DNV3",
|
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_DTV0, "DTV0",
|
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_DTV1, "DTV1",
|
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_DTV2, "DTV2",
|
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 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV3, "DTV3",
|
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 | /* XXX : not implemented */
|
1670 | 76a66253 | j_mayer | spr_register(env, SPR_440_DVLIM, "DVLIM",
|
1671 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1672 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1673 | 76a66253 | j_mayer | 0x00000000);
|
1674 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1675 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV0, "INV0",
|
1676 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1677 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1678 | 76a66253 | j_mayer | 0x00000000);
|
1679 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1680 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV1, "INV1",
|
1681 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1682 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1683 | 76a66253 | j_mayer | 0x00000000);
|
1684 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1685 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV2, "INV2",
|
1686 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1687 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1688 | 76a66253 | j_mayer | 0x00000000);
|
1689 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1690 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV3, "INV3",
|
1691 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1692 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1693 | 76a66253 | j_mayer | 0x00000000);
|
1694 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1695 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV0, "ITV0",
|
1696 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1697 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1698 | 76a66253 | j_mayer | 0x00000000);
|
1699 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1700 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV1, "ITV1",
|
1701 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1702 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1703 | 76a66253 | j_mayer | 0x00000000);
|
1704 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1705 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV2, "ITV2",
|
1706 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1707 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1708 | 76a66253 | j_mayer | 0x00000000);
|
1709 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1710 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV3, "ITV3",
|
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 | /* XXX : not implemented */
|
1715 | 76a66253 | j_mayer | spr_register(env, SPR_440_IVLIM, "IVLIM",
|
1716 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1717 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1718 | 76a66253 | j_mayer | 0x00000000);
|
1719 | 76a66253 | j_mayer | /* Cache debug */
|
1720 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1721 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRH, "DCDBTRH",
|
1722 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1723 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1724 | 76a66253 | j_mayer | 0x00000000);
|
1725 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1726 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRL, "DCDBTRL",
|
1727 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1728 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1729 | 76a66253 | j_mayer | 0x00000000);
|
1730 | 76a66253 | j_mayer | /* XXX : not implemented */
|
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 | /* XXX : not implemented */
|
1736 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRH, "ICDBTRH",
|
1737 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1738 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1739 | 76a66253 | j_mayer | 0x00000000);
|
1740 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1741 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRL, "ICDBTRL",
|
1742 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1743 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1744 | 76a66253 | j_mayer | 0x00000000);
|
1745 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1746 | 76a66253 | j_mayer | spr_register(env, SPR_440_DBDR, "DBDR",
|
1747 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1748 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1749 | 76a66253 | j_mayer | 0x00000000);
|
1750 | 76a66253 | j_mayer | /* Processor control */
|
1751 | 76a66253 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1752 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1753 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1754 | 76a66253 | j_mayer | 0x00000000);
|
1755 | 76a66253 | j_mayer | spr_register(env, SPR_440_RSTCFG, "RSTCFG",
|
1756 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1757 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1758 | 76a66253 | j_mayer | 0x00000000);
|
1759 | 76a66253 | j_mayer | /* Storage control */
|
1760 | 76a66253 | j_mayer | spr_register(env, SPR_440_MMUCR, "MMUCR",
|
1761 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1762 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1763 | 76a66253 | j_mayer | 0x00000000);
|
1764 | 76a66253 | j_mayer | } |
1765 | 76a66253 | j_mayer | |
1766 | 76a66253 | j_mayer | /* SPR shared between PowerPC 40x implementations */
|
1767 | 76a66253 | j_mayer | static void gen_spr_40x (CPUPPCState *env) |
1768 | 76a66253 | j_mayer | { |
1769 | 76a66253 | j_mayer | /* Cache */
|
1770 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1771 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DCCR, "DCCR",
|
1772 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1773 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1774 | 76a66253 | j_mayer | 0x00000000);
|
1775 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1776 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ICCR, "ICCR",
|
1777 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1778 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1779 | 76a66253 | j_mayer | 0x00000000);
|
1780 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1781 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1782 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1783 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1784 | 76a66253 | j_mayer | 0x00000000);
|
1785 | 76a66253 | j_mayer | /* Exception */
|
1786 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DEAR, "DEAR",
|
1787 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1788 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1789 | 76a66253 | j_mayer | 0x00000000);
|
1790 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ESR, "ESR",
|
1791 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1792 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1793 | 76a66253 | j_mayer | 0x00000000);
|
1794 | 76a66253 | j_mayer | spr_register(env, SPR_40x_EVPR, "EVPR",
|
1795 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1796 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1797 | 76a66253 | j_mayer | 0x00000000);
|
1798 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR2, "SRR2",
|
1799 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1800 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1801 | 76a66253 | j_mayer | 0x00000000);
|
1802 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR3, "SRR3",
|
1803 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1804 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1805 | 76a66253 | j_mayer | 0x00000000);
|
1806 | 76a66253 | j_mayer | /* Timers */
|
1807 | 76a66253 | j_mayer | spr_register(env, SPR_40x_PIT, "PIT",
|
1808 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1809 | 76a66253 | j_mayer | &spr_read_40x_pit, &spr_write_40x_pit, |
1810 | 76a66253 | j_mayer | 0x00000000);
|
1811 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TCR, "TCR",
|
1812 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1813 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1814 | 76a66253 | j_mayer | 0x00000000);
|
1815 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TSR, "TSR",
|
1816 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1817 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1818 | 76a66253 | j_mayer | 0x00000000);
|
1819 | 2662a059 | j_mayer | } |
1820 | 2662a059 | j_mayer | |
1821 | 2662a059 | j_mayer | /* SPR specific to PowerPC 405 implementation */
|
1822 | 2662a059 | j_mayer | static void gen_spr_405 (CPUPPCState *env) |
1823 | 2662a059 | j_mayer | { |
1824 | 2662a059 | j_mayer | /* MMU */
|
1825 | 2662a059 | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1826 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1827 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1828 | 76a66253 | j_mayer | 0x00000000);
|
1829 | 2662a059 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1830 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1831 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1832 | 2662a059 | j_mayer | 0x00700000);
|
1833 | 2662a059 | j_mayer | /* Debug interface */
|
1834 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1835 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1836 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1837 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1838 | 76a66253 | j_mayer | 0x00000000);
|
1839 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1840 | 2662a059 | j_mayer | spr_register(env, SPR_405_DBCR1, "DBCR1",
|
1841 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1842 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1843 | 2662a059 | j_mayer | 0x00000000);
|
1844 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1845 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1846 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1847 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1848 | 8ecc7913 | j_mayer | /* Last reset was system reset */
|
1849 | 76a66253 | j_mayer | 0x00000300);
|
1850 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1851 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1852 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1853 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1854 | 76a66253 | j_mayer | 0x00000000);
|
1855 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1856 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1857 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1858 | 76a66253 | j_mayer | 0x00000000);
|
1859 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1860 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC1, "DVC1",
|
1861 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1862 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1863 | 2662a059 | j_mayer | 0x00000000);
|
1864 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1865 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC2, "DVC2",
|
1866 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1867 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1868 | 76a66253 | j_mayer | 0x00000000);
|
1869 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1870 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1871 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1872 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1873 | 76a66253 | j_mayer | 0x00000000);
|
1874 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1875 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1876 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1877 | 76a66253 | j_mayer | 0x00000000);
|
1878 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1879 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC3, "IAC3",
|
1880 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1881 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1882 | 76a66253 | j_mayer | 0x00000000);
|
1883 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1884 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC4, "IAC4",
|
1885 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1886 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1887 | 76a66253 | j_mayer | 0x00000000);
|
1888 | 76a66253 | j_mayer | /* Storage control */
|
1889 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1890 | 76a66253 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1891 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1892 | c294fc58 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1893 | 76a66253 | j_mayer | 0x00000000);
|
1894 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1895 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1896 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1897 | 2662a059 | j_mayer | 0x00000000);
|
1898 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1899 | 76a66253 | j_mayer | spr_register(env, SPR_405_SU0R, "SU0R",
|
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 | /* SPRG */
|
1904 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1905 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1906 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1907 | 76a66253 | j_mayer | 0x00000000);
|
1908 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1909 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1910 | 04f20795 | j_mayer | &spr_read_generic, &spr_write_generic, |
1911 | 76a66253 | j_mayer | 0x00000000);
|
1912 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1913 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1914 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1915 | 76a66253 | j_mayer | 0x00000000);
|
1916 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1917 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1918 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1919 | 76a66253 | j_mayer | 0x00000000);
|
1920 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1921 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1922 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1923 | 76a66253 | j_mayer | 0x00000000);
|
1924 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
1925 | 76a66253 | j_mayer | } |
1926 | 76a66253 | j_mayer | |
1927 | 76a66253 | j_mayer | /* SPR shared between PowerPC 401 & 403 implementations */
|
1928 | 76a66253 | j_mayer | static void gen_spr_401_403 (CPUPPCState *env) |
1929 | 76a66253 | j_mayer | { |
1930 | 76a66253 | j_mayer | /* Time base */
|
1931 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBL, "TBL",
|
1932 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1933 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1934 | 76a66253 | j_mayer | 0x00000000);
|
1935 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBL, "TBL",
|
1936 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1937 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbl, |
1938 | 76a66253 | j_mayer | 0x00000000);
|
1939 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBU, "TBU",
|
1940 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1941 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1942 | 76a66253 | j_mayer | 0x00000000);
|
1943 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBU, "TBU",
|
1944 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1945 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbu, |
1946 | 76a66253 | j_mayer | 0x00000000);
|
1947 | 76a66253 | j_mayer | /* Debug */
|
1948 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1949 | 76a66253 | j_mayer | spr_register(env, SPR_403_CDBCR, "CDBCR",
|
1950 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1951 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1952 | 76a66253 | j_mayer | 0x00000000);
|
1953 | 76a66253 | j_mayer | } |
1954 | 76a66253 | j_mayer | |
1955 | 2662a059 | j_mayer | /* SPR specific to PowerPC 401 implementation */
|
1956 | 2662a059 | j_mayer | static void gen_spr_401 (CPUPPCState *env) |
1957 | 2662a059 | j_mayer | { |
1958 | 2662a059 | j_mayer | /* Debug interface */
|
1959 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1960 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR",
|
1961 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1962 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1963 | 2662a059 | j_mayer | 0x00000000);
|
1964 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1965 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1966 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1967 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1968 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1969 | 2662a059 | j_mayer | 0x00000300);
|
1970 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1971 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC",
|
1972 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1973 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1974 | 2662a059 | j_mayer | 0x00000000);
|
1975 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1976 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC",
|
1977 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1978 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1979 | 2662a059 | j_mayer | 0x00000000);
|
1980 | 2662a059 | j_mayer | /* Storage control */
|
1981 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1982 | 2662a059 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1983 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1984 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1985 | 2662a059 | j_mayer | 0x00000000);
|
1986 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
1987 | 035feb88 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
1988 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1989 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1990 | 035feb88 | j_mayer | 0xFFFFFFFF);
|
1991 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1992 | 035feb88 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
1993 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1994 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1995 | 035feb88 | j_mayer | 0x00000000);
|
1996 | 2662a059 | j_mayer | } |
1997 | 2662a059 | j_mayer | |
1998 | a750fc0b | j_mayer | static void gen_spr_401x2 (CPUPPCState *env) |
1999 | a750fc0b | j_mayer | { |
2000 | a750fc0b | j_mayer | gen_spr_401(env); |
2001 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
2002 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2003 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2004 | a750fc0b | j_mayer | 0x00000000);
|
2005 | a750fc0b | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
2006 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2007 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2008 | a750fc0b | j_mayer | 0x00000000);
|
2009 | a750fc0b | j_mayer | } |
2010 | a750fc0b | j_mayer | |
2011 | 76a66253 | j_mayer | /* SPR specific to PowerPC 403 implementation */
|
2012 | 76a66253 | j_mayer | static void gen_spr_403 (CPUPPCState *env) |
2013 | 76a66253 | j_mayer | { |
2014 | 2662a059 | j_mayer | /* Debug interface */
|
2015 | 2662a059 | j_mayer | /* XXX : not implemented */
|
2016 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
2017 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2018 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
2019 | 2662a059 | j_mayer | 0x00000000);
|
2020 | 2662a059 | j_mayer | /* XXX : not implemented */
|
2021 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
2022 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2023 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
2024 | 2662a059 | j_mayer | /* Last reset was system reset */
|
2025 | 2662a059 | j_mayer | 0x00000300);
|
2026 | 2662a059 | j_mayer | /* XXX : not implemented */
|
2027 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
2028 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2029 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
2030 | 2662a059 | j_mayer | 0x00000000);
|
2031 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2032 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
2033 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2034 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
2035 | 2662a059 | j_mayer | 0x00000000);
|
2036 | 2662a059 | j_mayer | /* XXX : not implemented */
|
2037 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
2038 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2039 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
2040 | 2662a059 | j_mayer | 0x00000000);
|
2041 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2042 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
2043 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2044 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
2045 | 2662a059 | j_mayer | 0x00000000);
|
2046 | a750fc0b | j_mayer | } |
2047 | a750fc0b | j_mayer | |
2048 | a750fc0b | j_mayer | static void gen_spr_403_real (CPUPPCState *env) |
2049 | a750fc0b | j_mayer | { |
2050 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL1, "PBL1",
|
2051 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2052 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2053 | 76a66253 | j_mayer | 0x00000000);
|
2054 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU1, "PBU1",
|
2055 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2056 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2057 | 76a66253 | j_mayer | 0x00000000);
|
2058 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL2, "PBL2",
|
2059 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2060 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2061 | 76a66253 | j_mayer | 0x00000000);
|
2062 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU2, "PBU2",
|
2063 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2064 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
2065 | 76a66253 | j_mayer | 0x00000000);
|
2066 | a750fc0b | j_mayer | } |
2067 | a750fc0b | j_mayer | |
2068 | a750fc0b | j_mayer | static void gen_spr_403_mmu (CPUPPCState *env) |
2069 | a750fc0b | j_mayer | { |
2070 | a750fc0b | j_mayer | /* MMU */
|
2071 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
2072 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2073 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2074 | a750fc0b | j_mayer | 0x00000000);
|
2075 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
2076 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2077 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
2078 | 76a66253 | j_mayer | 0x00000000);
|
2079 | 76a66253 | j_mayer | } |
2080 | 76a66253 | j_mayer | |
2081 | 76a66253 | j_mayer | /* SPR specific to PowerPC compression coprocessor extension */
|
2082 | 76a66253 | j_mayer | static void gen_spr_compress (CPUPPCState *env) |
2083 | 76a66253 | j_mayer | { |
2084 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2085 | 76a66253 | j_mayer | spr_register(env, SPR_401_SKR, "SKR",
|
2086 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2087 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
2088 | 76a66253 | j_mayer | 0x00000000);
|
2089 | 76a66253 | j_mayer | } |
2090 | a750fc0b | j_mayer | |
2091 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
2092 | a750fc0b | j_mayer | /* SPR specific to PowerPC 620 */
|
2093 | a750fc0b | j_mayer | static void gen_spr_620 (CPUPPCState *env) |
2094 | a750fc0b | j_mayer | { |
2095 | 082c6681 | j_mayer | /* Processor identification */
|
2096 | 082c6681 | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
2097 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2098 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_pir, |
2099 | 082c6681 | j_mayer | 0x00000000);
|
2100 | 082c6681 | j_mayer | spr_register(env, SPR_ASR, "ASR",
|
2101 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2102 | 082c6681 | j_mayer | &spr_read_asr, &spr_write_asr, |
2103 | 082c6681 | j_mayer | 0x00000000);
|
2104 | 082c6681 | j_mayer | /* Breakpoints */
|
2105 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2106 | 082c6681 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
2107 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2108 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2109 | 082c6681 | j_mayer | 0x00000000);
|
2110 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2111 | 082c6681 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
2112 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2113 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2114 | 082c6681 | j_mayer | 0x00000000);
|
2115 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2116 | 082c6681 | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
2117 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2118 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2119 | 082c6681 | j_mayer | 0x00000000);
|
2120 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2121 | 082c6681 | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
2122 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2123 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2124 | 082c6681 | j_mayer | 0x00000000);
|
2125 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2126 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1R, "PMC1",
|
2127 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2128 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2129 | 082c6681 | j_mayer | 0x00000000);
|
2130 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1W, "PMC1",
|
2131 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2132 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2133 | 082c6681 | j_mayer | 0x00000000);
|
2134 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2135 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2R, "PMC2",
|
2136 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2137 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2138 | 082c6681 | j_mayer | 0x00000000);
|
2139 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2W, "PMC2",
|
2140 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2141 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2142 | 082c6681 | j_mayer | 0x00000000);
|
2143 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2144 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0R, "MMCR0",
|
2145 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2146 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2147 | 082c6681 | j_mayer | 0x00000000);
|
2148 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0W, "MMCR0",
|
2149 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2150 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2151 | 082c6681 | j_mayer | 0x00000000);
|
2152 | 082c6681 | j_mayer | /* External access control */
|
2153 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2154 | 082c6681 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
2155 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2156 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2157 | 082c6681 | j_mayer | 0x00000000);
|
2158 | 082c6681 | j_mayer | #if 0 // XXX: check this
|
2159 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2160 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR0, "PMR0",
|
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_PMR1, "PMR1",
|
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_PMR2, "PMR2",
|
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_PMR3, "PMR3",
|
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_PMR4, "PMR4",
|
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_PMR5, "PMR5",
|
2186 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2187 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2188 | a750fc0b | j_mayer | 0x00000000);
|
2189 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2190 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR6, "PMR6",
|
2191 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2192 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2193 | a750fc0b | j_mayer | 0x00000000);
|
2194 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2195 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR7, "PMR7",
|
2196 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2197 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2198 | a750fc0b | j_mayer | 0x00000000);
|
2199 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2200 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR8, "PMR8",
|
2201 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2202 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2203 | a750fc0b | j_mayer | 0x00000000);
|
2204 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2205 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR9, "PMR9",
|
2206 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2207 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2208 | a750fc0b | j_mayer | 0x00000000);
|
2209 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2210 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRA, "PMR10",
|
2211 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2212 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2213 | a750fc0b | j_mayer | 0x00000000);
|
2214 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2215 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRB, "PMR11",
|
2216 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2217 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2218 | a750fc0b | j_mayer | 0x00000000);
|
2219 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2220 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRC, "PMR12",
|
2221 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2222 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2223 | a750fc0b | j_mayer | 0x00000000);
|
2224 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2225 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRD, "PMR13",
|
2226 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2227 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2228 | a750fc0b | j_mayer | 0x00000000);
|
2229 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2230 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRE, "PMR14",
|
2231 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2232 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2233 | a750fc0b | j_mayer | 0x00000000);
|
2234 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2235 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRF, "PMR15",
|
2236 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2237 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2238 | a750fc0b | j_mayer | 0x00000000);
|
2239 | 082c6681 | j_mayer | #endif
|
2240 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2241 | 082c6681 | j_mayer | spr_register(env, SPR_620_BUSCSR, "BUSCSR",
|
2242 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2243 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2244 | a750fc0b | j_mayer | 0x00000000);
|
2245 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2246 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2CR, "L2CR",
|
2247 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2248 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2249 | 082c6681 | j_mayer | 0x00000000);
|
2250 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2251 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2SR, "L2SR",
|
2252 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2253 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2254 | a750fc0b | j_mayer | 0x00000000);
|
2255 | a750fc0b | j_mayer | } |
2256 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
2257 | 76a66253 | j_mayer | |
2258 | 80d11f44 | j_mayer | static void gen_spr_5xx_8xx (CPUPPCState *env) |
2259 | e1833e1f | j_mayer | { |
2260 | 80d11f44 | j_mayer | /* Exception processing */
|
2261 | 80d11f44 | j_mayer | spr_register(env, SPR_DSISR, "DSISR",
|
2262 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2263 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2264 | 80d11f44 | j_mayer | 0x00000000);
|
2265 | 80d11f44 | j_mayer | spr_register(env, SPR_DAR, "DAR",
|
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 | /* Timer */
|
2270 | 80d11f44 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
2271 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2272 | 80d11f44 | j_mayer | &spr_read_decr, &spr_write_decr, |
2273 | 80d11f44 | j_mayer | 0x00000000);
|
2274 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2275 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EIE, "EIE",
|
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_EID, "EID",
|
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_NRI, "NRI",
|
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_CMPA, "CMPA",
|
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_CMPB, "CMPB",
|
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_CMPC, "CMPC",
|
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_CMPD, "CMPD",
|
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_ECR, "ECR",
|
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_DER, "DER",
|
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_COUNTA, "COUNTA",
|
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 | /* XXX : not implemented */
|
2325 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTB, "COUNTB",
|
2326 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2327 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2328 | 80d11f44 | j_mayer | 0x00000000);
|
2329 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2330 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPE, "CMPE",
|
2331 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2332 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2333 | 80d11f44 | j_mayer | 0x00000000);
|
2334 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2335 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPF, "CMPF",
|
2336 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2337 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2338 | 80d11f44 | j_mayer | 0x00000000);
|
2339 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2340 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPG, "CMPG",
|
2341 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2342 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2343 | 80d11f44 | j_mayer | 0x00000000);
|
2344 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2345 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPH, "CMPH",
|
2346 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2347 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2348 | 80d11f44 | j_mayer | 0x00000000);
|
2349 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2350 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL1, "LCTRL1",
|
2351 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2352 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2353 | 80d11f44 | j_mayer | 0x00000000);
|
2354 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2355 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL2, "LCTRL2",
|
2356 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2357 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2358 | 80d11f44 | j_mayer | 0x00000000);
|
2359 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2360 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_BAR, "BAR",
|
2361 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2362 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2363 | 80d11f44 | j_mayer | 0x00000000);
|
2364 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2365 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DPDR, "DPDR",
|
2366 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2367 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2368 | 80d11f44 | j_mayer | 0x00000000);
|
2369 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2370 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IMMR, "IMMR",
|
2371 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2372 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2373 | 80d11f44 | j_mayer | 0x00000000);
|
2374 | 80d11f44 | j_mayer | } |
2375 | 80d11f44 | j_mayer | |
2376 | 80d11f44 | j_mayer | static void gen_spr_5xx (CPUPPCState *env) |
2377 | 80d11f44 | j_mayer | { |
2378 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2379 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_GRA, "MI_GRA",
|
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_GRA, "L2U_GRA",
|
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_RPCU_BBCMCR, "L2U_BBCMCR",
|
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_L2U_MCR, "L2U_MCR",
|
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_RBA0, "MI_RBA0",
|
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_RBA1, "MI_RBA1",
|
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_MI_RBA2, "MI_RBA2",
|
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_MI_RBA3, "MI_RBA3",
|
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_RBA0, "L2U_RBA0",
|
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_RBA1, "L2U_RBA1",
|
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_L2U_RBA2, "L2U_RBA2",
|
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 | /* XXX : not implemented */
|
2434 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA3, "L2U_RBA3",
|
2435 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2436 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2437 | 80d11f44 | j_mayer | 0x00000000);
|
2438 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2439 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA0, "MI_RA0",
|
2440 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2441 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2442 | 80d11f44 | j_mayer | 0x00000000);
|
2443 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2444 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA1, "MI_RA1",
|
2445 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2446 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2447 | 80d11f44 | j_mayer | 0x00000000);
|
2448 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2449 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA2, "MI_RA2",
|
2450 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2451 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2452 | 80d11f44 | j_mayer | 0x00000000);
|
2453 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2454 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA3, "MI_RA3",
|
2455 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2456 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2457 | 80d11f44 | j_mayer | 0x00000000);
|
2458 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2459 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA0, "L2U_RA0",
|
2460 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2461 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2462 | 80d11f44 | j_mayer | 0x00000000);
|
2463 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2464 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA1, "L2U_RA1",
|
2465 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2466 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2467 | 80d11f44 | j_mayer | 0x00000000);
|
2468 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2469 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA2, "L2U_RA2",
|
2470 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2471 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2472 | 80d11f44 | j_mayer | 0x00000000);
|
2473 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2474 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA3, "L2U_RA3",
|
2475 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2476 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2477 | 80d11f44 | j_mayer | 0x00000000);
|
2478 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2479 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_FPECR, "FPECR",
|
2480 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2481 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2482 | 80d11f44 | j_mayer | 0x00000000);
|
2483 | 80d11f44 | j_mayer | } |
2484 | 80d11f44 | j_mayer | |
2485 | 80d11f44 | j_mayer | static void gen_spr_8xx (CPUPPCState *env) |
2486 | 80d11f44 | j_mayer | { |
2487 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2488 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_CST, "IC_CST",
|
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_IC_ADR, "IC_ADR",
|
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_IC_DAT, "IC_DAT",
|
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_DC_CST, "DC_CST",
|
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_DC_ADR, "DC_ADR",
|
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_DC_DAT, "DC_DAT",
|
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_MI_CTR, "MI_CTR",
|
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_MI_AP, "MI_AP",
|
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_MI_EPN, "MI_EPN",
|
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_MI_TWC, "MI_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_MI_RPN, "MI_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_MI_DBCAM, "MI_DBCAM",
|
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_MI_DBRAM0, "MI_DBRAM0",
|
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_MI_DBRAM1, "MI_DBRAM1",
|
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_CTR, "MD_CTR",
|
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 | /* XXX : not implemented */
|
2563 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CASID, "MD_CASID",
|
2564 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2565 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2566 | 80d11f44 | j_mayer | 0x00000000);
|
2567 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2568 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_AP, "MD_AP",
|
2569 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2570 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2571 | 80d11f44 | j_mayer | 0x00000000);
|
2572 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2573 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_EPN, "MD_EPN",
|
2574 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2575 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2576 | 80d11f44 | j_mayer | 0x00000000);
|
2577 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2578 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWB, "MD_TWB",
|
2579 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2580 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2581 | 80d11f44 | j_mayer | 0x00000000);
|
2582 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2583 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWC, "MD_TWC",
|
2584 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2585 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2586 | 80d11f44 | j_mayer | 0x00000000);
|
2587 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2588 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_RPN, "MD_RPN",
|
2589 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2590 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2591 | 80d11f44 | j_mayer | 0x00000000);
|
2592 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2593 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TW, "MD_TW",
|
2594 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2595 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2596 | 80d11f44 | j_mayer | 0x00000000);
|
2597 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2598 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBCAM, "MD_DBCAM",
|
2599 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2600 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2601 | 80d11f44 | j_mayer | 0x00000000);
|
2602 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2603 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM0, "MD_DBRAM0",
|
2604 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2605 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2606 | 80d11f44 | j_mayer | 0x00000000);
|
2607 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2608 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM1, "MD_DBRAM1",
|
2609 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2610 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2611 | 80d11f44 | j_mayer | 0x00000000);
|
2612 | 80d11f44 | j_mayer | } |
2613 | 80d11f44 | j_mayer | |
2614 | 80d11f44 | j_mayer | // XXX: TODO
|
2615 | 80d11f44 | j_mayer | /*
|
2616 | 80d11f44 | j_mayer | * AMR => SPR 29 (Power 2.04)
|
2617 | 80d11f44 | j_mayer | * CTRL => SPR 136 (Power 2.04)
|
2618 | 80d11f44 | j_mayer | * CTRL => SPR 152 (Power 2.04)
|
2619 | 80d11f44 | j_mayer | * SCOMC => SPR 276 (64 bits ?)
|
2620 | 80d11f44 | j_mayer | * SCOMD => SPR 277 (64 bits ?)
|
2621 | 80d11f44 | j_mayer | * TBU40 => SPR 286 (Power 2.04 hypv)
|
2622 | 80d11f44 | j_mayer | * HSPRG0 => SPR 304 (Power 2.04 hypv)
|
2623 | 80d11f44 | j_mayer | * HSPRG1 => SPR 305 (Power 2.04 hypv)
|
2624 | 80d11f44 | j_mayer | * HDSISR => SPR 306 (Power 2.04 hypv)
|
2625 | 80d11f44 | j_mayer | * HDAR => SPR 307 (Power 2.04 hypv)
|
2626 | 80d11f44 | j_mayer | * PURR => SPR 309 (Power 2.04 hypv)
|
2627 | 80d11f44 | j_mayer | * HDEC => SPR 310 (Power 2.04 hypv)
|
2628 | 80d11f44 | j_mayer | * HIOR => SPR 311 (hypv)
|
2629 | 80d11f44 | j_mayer | * RMOR => SPR 312 (970)
|
2630 | 80d11f44 | j_mayer | * HRMOR => SPR 313 (Power 2.04 hypv)
|
2631 | 80d11f44 | j_mayer | * HSRR0 => SPR 314 (Power 2.04 hypv)
|
2632 | 80d11f44 | j_mayer | * HSRR1 => SPR 315 (Power 2.04 hypv)
|
2633 | 80d11f44 | j_mayer | * LPCR => SPR 316 (970)
|
2634 | 80d11f44 | j_mayer | * LPIDR => SPR 317 (970)
|
2635 | 80d11f44 | j_mayer | * EPR => SPR 702 (Power 2.04 emb)
|
2636 | 80d11f44 | j_mayer | * perf => 768-783 (Power 2.04)
|
2637 | 80d11f44 | j_mayer | * perf => 784-799 (Power 2.04)
|
2638 | 80d11f44 | j_mayer | * PPR => SPR 896 (Power 2.04)
|
2639 | 80d11f44 | j_mayer | * EPLC => SPR 947 (Power 2.04 emb)
|
2640 | 80d11f44 | j_mayer | * EPSC => SPR 948 (Power 2.04 emb)
|
2641 | 80d11f44 | j_mayer | * DABRX => 1015 (Power 2.04 hypv)
|
2642 | 80d11f44 | j_mayer | * FPECR => SPR 1022 (?)
|
2643 | 80d11f44 | j_mayer | * ... and more (thermal management, performance counters, ...)
|
2644 | 80d11f44 | j_mayer | */
|
2645 | 80d11f44 | j_mayer | |
2646 | 80d11f44 | j_mayer | /*****************************************************************************/
|
2647 | 80d11f44 | j_mayer | /* Exception vectors models */
|
2648 | 80d11f44 | j_mayer | static void init_excp_4xx_real (CPUPPCState *env) |
2649 | 80d11f44 | j_mayer | { |
2650 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2651 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2652 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2653 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2654 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2655 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2656 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2657 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2658 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2659 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2660 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2661 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2662 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2663 | faadf50e | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2664 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2665 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2666 | e1833e1f | j_mayer | #endif
|
2667 | e1833e1f | j_mayer | } |
2668 | e1833e1f | j_mayer | |
2669 | 80d11f44 | j_mayer | static void init_excp_4xx_softmmu (CPUPPCState *env) |
2670 | 80d11f44 | j_mayer | { |
2671 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2672 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2673 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2674 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2675 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2676 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2677 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2678 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2679 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2680 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2681 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2682 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2683 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001100;
|
2684 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001200;
|
2685 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2686 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2687 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2688 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2689 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2690 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2691 | 80d11f44 | j_mayer | #endif
|
2692 | 80d11f44 | j_mayer | } |
2693 | 80d11f44 | j_mayer | |
2694 | 80d11f44 | j_mayer | static void init_excp_MPC5xx (CPUPPCState *env) |
2695 | 80d11f44 | j_mayer | { |
2696 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2697 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2698 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2699 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2700 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2701 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2702 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2703 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2704 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2705 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2706 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2707 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2708 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2709 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2710 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2711 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2712 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2713 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2714 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2715 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2716 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2717 | 80d11f44 | j_mayer | #endif
|
2718 | 80d11f44 | j_mayer | } |
2719 | 80d11f44 | j_mayer | |
2720 | 80d11f44 | j_mayer | static void init_excp_MPC8xx (CPUPPCState *env) |
2721 | e1833e1f | j_mayer | { |
2722 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2723 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2724 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2725 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2726 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2727 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2728 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2729 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2730 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2731 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2732 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2733 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2734 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2735 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2736 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001100;
|
2737 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001200;
|
2738 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLBE] = 0x00001300;
|
2739 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLBE] = 0x00001400;
|
2740 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2741 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2742 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2743 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2744 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2745 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2746 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2747 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2748 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2749 | e1833e1f | j_mayer | #endif
|
2750 | e1833e1f | j_mayer | } |
2751 | e1833e1f | j_mayer | |
2752 | 80d11f44 | j_mayer | static void init_excp_G2 (CPUPPCState *env) |
2753 | e1833e1f | j_mayer | { |
2754 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2755 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2756 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2757 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2758 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2759 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2760 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2761 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2762 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2763 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2764 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000A00;
|
2765 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2766 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2767 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2768 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2769 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2770 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2771 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2772 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2773 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2774 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2775 | 80d11f44 | j_mayer | #endif
|
2776 | 80d11f44 | j_mayer | } |
2777 | 80d11f44 | j_mayer | |
2778 | 80d11f44 | j_mayer | static void init_excp_e200 (CPUPPCState *env) |
2779 | 80d11f44 | j_mayer | { |
2780 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2781 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000FFC;
|
2782 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2783 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2784 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2785 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2786 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2787 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2788 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2789 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2790 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2791 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2792 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2793 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2794 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2795 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2796 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2797 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2798 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SPEU] = 0x00000000;
|
2799 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPDI] = 0x00000000;
|
2800 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPRI] = 0x00000000;
|
2801 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2802 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF7UL;
|
2803 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2804 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2805 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2806 | 80d11f44 | j_mayer | #endif
|
2807 | 80d11f44 | j_mayer | } |
2808 | 80d11f44 | j_mayer | |
2809 | 80d11f44 | j_mayer | static void init_excp_BookE (CPUPPCState *env) |
2810 | 80d11f44 | j_mayer | { |
2811 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2812 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2813 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2814 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2815 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2816 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2817 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2818 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2819 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2820 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2821 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2822 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2823 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2824 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2825 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2826 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2827 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2828 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2829 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFE0UL;
|
2830 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2831 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2832 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2833 | 80d11f44 | j_mayer | #endif
|
2834 | 80d11f44 | j_mayer | } |
2835 | 80d11f44 | j_mayer | |
2836 | 80d11f44 | j_mayer | static void init_excp_601 (CPUPPCState *env) |
2837 | 80d11f44 | j_mayer | { |
2838 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2839 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2840 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2841 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2842 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2843 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2844 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2845 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2846 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2847 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2848 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IO] = 0x00000A00;
|
2849 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2850 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RUNM] = 0x00002000;
|
2851 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2852 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2853 | 80d11f44 | j_mayer | env->hreset_vector = 0x00000100UL;
|
2854 | e1833e1f | j_mayer | #endif
|
2855 | e1833e1f | j_mayer | } |
2856 | e1833e1f | j_mayer | |
2857 | 80d11f44 | j_mayer | static void init_excp_602 (CPUPPCState *env) |
2858 | e1833e1f | j_mayer | { |
2859 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2860 | 082c6681 | j_mayer | /* XXX: exception prefix has a special behavior on 602 */
|
2861 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2862 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2863 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2864 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2865 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2866 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2867 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2868 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2869 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2870 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2871 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2872 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2873 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2874 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2875 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2876 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2877 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001500;
|
2878 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001600;
|
2879 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2880 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2881 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2882 | e1833e1f | j_mayer | #endif
|
2883 | e1833e1f | j_mayer | } |
2884 | e1833e1f | j_mayer | |
2885 | 80d11f44 | j_mayer | static void init_excp_603 (CPUPPCState *env) |
2886 | e1833e1f | j_mayer | { |
2887 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2888 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2889 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2890 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2891 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2892 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2893 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2894 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2895 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2896 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2897 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2898 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2899 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2900 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2901 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2902 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2903 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2904 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2905 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2906 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2907 | e1833e1f | j_mayer | #endif
|
2908 | e1833e1f | j_mayer | } |
2909 | e1833e1f | j_mayer | |
2910 | e1833e1f | j_mayer | static void init_excp_604 (CPUPPCState *env) |
2911 | e1833e1f | j_mayer | { |
2912 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2913 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2914 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2915 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2916 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2917 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2918 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2919 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2920 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2921 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2922 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2923 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2924 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2925 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2926 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2927 | 2d3eb7bf | Tristan Gingold | env->hreset_excp_prefix = 0xFFF00000UL;
|
2928 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2929 | 2d3eb7bf | Tristan Gingold | env->hreset_vector = 0x00000100UL;
|
2930 | e1833e1f | j_mayer | #endif
|
2931 | e1833e1f | j_mayer | } |
2932 | e1833e1f | j_mayer | |
2933 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
2934 | e1833e1f | j_mayer | static void init_excp_620 (CPUPPCState *env) |
2935 | e1833e1f | j_mayer | { |
2936 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2937 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2938 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2939 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2940 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2941 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2942 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2943 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2944 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2945 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2946 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2947 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2948 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2949 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2950 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2951 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0xFFF00000UL;
|
2952 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2953 | faadf50e | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
2954 | e1833e1f | j_mayer | #endif
|
2955 | e1833e1f | j_mayer | } |
2956 | 578bb252 | j_mayer | #endif /* defined(TARGET_PPC64) */ |
2957 | e1833e1f | j_mayer | |
2958 | e1833e1f | j_mayer | static void init_excp_7x0 (CPUPPCState *env) |
2959 | e1833e1f | j_mayer | { |
2960 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2961 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2962 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2963 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2964 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2965 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2966 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2967 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2968 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2969 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2970 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2971 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2972 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2973 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2974 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2975 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2976 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
2977 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2978 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2979 | e1833e1f | j_mayer | #endif
|
2980 | e1833e1f | j_mayer | } |
2981 | e1833e1f | j_mayer | |
2982 | bd928eba | j_mayer | static void init_excp_750cl (CPUPPCState *env) |
2983 | e1833e1f | j_mayer | { |
2984 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2985 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2986 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2987 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2988 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2989 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2990 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2991 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2992 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2993 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2994 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2995 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2996 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2997 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2998 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2999 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3000 | bd928eba | j_mayer | /* Hardware reset vector */
|
3001 | bd928eba | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3002 | bd928eba | j_mayer | #endif
|
3003 | bd928eba | j_mayer | } |
3004 | bd928eba | j_mayer | |
3005 | bd928eba | j_mayer | static void init_excp_750cx (CPUPPCState *env) |
3006 | bd928eba | j_mayer | { |
3007 | bd928eba | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3008 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3009 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3010 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3011 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3012 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3013 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3014 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3015 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3016 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3017 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3018 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3019 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3020 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3021 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
3022 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3023 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3024 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3025 | e1833e1f | j_mayer | #endif
|
3026 | e1833e1f | j_mayer | } |
3027 | e1833e1f | j_mayer | |
3028 | 7a3a6927 | j_mayer | /* XXX: Check if this is correct */
|
3029 | 7a3a6927 | j_mayer | static void init_excp_7x5 (CPUPPCState *env) |
3030 | 7a3a6927 | j_mayer | { |
3031 | 7a3a6927 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3032 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3033 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3034 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3035 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3036 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3037 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3038 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3039 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3040 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3041 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3042 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3043 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3044 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
3045 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
3046 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
3047 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3048 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3049 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
3050 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3051 | 7a3a6927 | j_mayer | /* Hardware reset vector */
|
3052 | 7a3a6927 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3053 | 7a3a6927 | j_mayer | #endif
|
3054 | 7a3a6927 | j_mayer | } |
3055 | 7a3a6927 | j_mayer | |
3056 | e1833e1f | j_mayer | static void init_excp_7400 (CPUPPCState *env) |
3057 | e1833e1f | j_mayer | { |
3058 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3059 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3060 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3061 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3062 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3063 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3064 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3065 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3066 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3067 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3068 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3069 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3070 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3071 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3072 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3073 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3074 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
3075 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
3076 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3077 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3078 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3079 | e1833e1f | j_mayer | #endif
|
3080 | e1833e1f | j_mayer | } |
3081 | e1833e1f | j_mayer | |
3082 | e1833e1f | j_mayer | static void init_excp_7450 (CPUPPCState *env) |
3083 | e1833e1f | j_mayer | { |
3084 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3085 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3086 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3087 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3088 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3089 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3090 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3091 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3092 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3093 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3094 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3095 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3096 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3097 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3098 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
3099 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
3100 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
3101 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3102 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
3103 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
3104 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000UL;
|
3105 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3106 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
3107 | e1833e1f | j_mayer | #endif
|
3108 | e1833e1f | j_mayer | } |
3109 | e1833e1f | j_mayer | |
3110 | e1833e1f | j_mayer | #if defined (TARGET_PPC64)
|
3111 | e1833e1f | j_mayer | static void init_excp_970 (CPUPPCState *env) |
3112 | e1833e1f | j_mayer | { |
3113 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3114 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
3115 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
3116 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
3117 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSEG] = 0x00000380;
|
3118 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
3119 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISEG] = 0x00000480;
|
3120 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
3121 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
3122 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
3123 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
3124 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
3125 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_HDECR] = 0x00000980;
|
3126 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
3127 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
3128 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
3129 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
3130 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
3131 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MAINT] = 0x00001600;
|
3132 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001700;
|
3133 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001800;
|
3134 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000FFF00000ULL;
|
3135 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3136 | 1c27f8fb | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
3137 | e1833e1f | j_mayer | #endif
|
3138 | e1833e1f | j_mayer | } |
3139 | e1833e1f | j_mayer | #endif
|
3140 | e1833e1f | j_mayer | |
3141 | e1833e1f | j_mayer | /*****************************************************************************/
|
3142 | 2f462816 | j_mayer | /* Power management enable checks */
|
3143 | 2f462816 | j_mayer | static int check_pow_none (CPUPPCState *env) |
3144 | 2f462816 | j_mayer | { |
3145 | 2f462816 | j_mayer | return 0; |
3146 | 2f462816 | j_mayer | } |
3147 | 2f462816 | j_mayer | |
3148 | 2f462816 | j_mayer | static int check_pow_nocheck (CPUPPCState *env) |
3149 | 2f462816 | j_mayer | { |
3150 | 2f462816 | j_mayer | return 1; |
3151 | 2f462816 | j_mayer | } |
3152 | 2f462816 | j_mayer | |
3153 | 2f462816 | j_mayer | static int check_pow_hid0 (CPUPPCState *env) |
3154 | 2f462816 | j_mayer | { |
3155 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00E00000) |
3156 | 2f462816 | j_mayer | return 1; |
3157 | 2f462816 | j_mayer | |
3158 | 2f462816 | j_mayer | return 0; |
3159 | 2f462816 | j_mayer | } |
3160 | 2f462816 | j_mayer | |
3161 | 4e777442 | j_mayer | static int check_pow_hid0_74xx (CPUPPCState *env) |
3162 | 4e777442 | j_mayer | { |
3163 | 4e777442 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
3164 | 4e777442 | j_mayer | return 1; |
3165 | 4e777442 | j_mayer | |
3166 | 4e777442 | j_mayer | return 0; |
3167 | 4e777442 | j_mayer | } |
3168 | 4e777442 | j_mayer | |
3169 | 2f462816 | j_mayer | /*****************************************************************************/
|
3170 | a750fc0b | j_mayer | /* PowerPC implementations definitions */
|
3171 | 76a66253 | j_mayer | |
3172 | a750fc0b | j_mayer | /* PowerPC 401 */
|
3173 | 082c6681 | j_mayer | #define POWERPC_INSNS_401 (PPC_INSNS_BASE | PPC_STRING | \
|
3174 | 082c6681 | j_mayer | PPC_WRTEE | PPC_DCR | \ |
3175 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3176 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3177 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3178 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3179 | a750fc0b | j_mayer | #define POWERPC_MSRM_401 (0x00000000000FD201ULL) |
3180 | b4095fed | j_mayer | #define POWERPC_MMU_401 (POWERPC_MMU_REAL)
|
3181 | a750fc0b | j_mayer | #define POWERPC_EXCP_401 (POWERPC_EXCP_40x)
|
3182 | a750fc0b | j_mayer | #define POWERPC_INPUT_401 (PPC_FLAGS_INPUT_401)
|
3183 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401 (bfd_mach_ppc_403)
|
3184 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3185 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3186 | 2f462816 | j_mayer | #define check_pow_401 check_pow_nocheck
|
3187 | 76a66253 | j_mayer | |
3188 | a750fc0b | j_mayer | static void init_proc_401 (CPUPPCState *env) |
3189 | a750fc0b | j_mayer | { |
3190 | a750fc0b | j_mayer | gen_spr_40x(env); |
3191 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3192 | a750fc0b | j_mayer | gen_spr_401(env); |
3193 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3194 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3195 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3196 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3197 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3198 | a750fc0b | j_mayer | } |
3199 | 76a66253 | j_mayer | |
3200 | a750fc0b | j_mayer | /* PowerPC 401x2 */
|
3201 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3202 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3203 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3204 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3205 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3206 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3207 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3208 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x2 (0x00000000001FD231ULL) |
3209 | a750fc0b | j_mayer | #define POWERPC_MMU_401x2 (POWERPC_MMU_SOFT_4xx_Z)
|
3210 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x2 (POWERPC_EXCP_40x)
|
3211 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x2 (PPC_FLAGS_INPUT_401)
|
3212 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x2 (bfd_mach_ppc_403)
|
3213 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x2 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3214 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3215 | 2f462816 | j_mayer | #define check_pow_401x2 check_pow_nocheck
|
3216 | a750fc0b | j_mayer | |
3217 | a750fc0b | j_mayer | static void init_proc_401x2 (CPUPPCState *env) |
3218 | a750fc0b | j_mayer | { |
3219 | a750fc0b | j_mayer | gen_spr_40x(env); |
3220 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3221 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3222 | a750fc0b | j_mayer | gen_spr_compress(env); |
3223 | a750fc0b | j_mayer | /* Memory management */
|
3224 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3225 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3226 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3227 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3228 | f2e63a42 | j_mayer | #endif
|
3229 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3230 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3231 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3232 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3233 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3234 | 76a66253 | j_mayer | } |
3235 | 76a66253 | j_mayer | |
3236 | a750fc0b | j_mayer | /* PowerPC 401x3 */
|
3237 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x3 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3238 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3239 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3240 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3241 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3242 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3243 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3244 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x3 (0x00000000001FD631ULL) |
3245 | a750fc0b | j_mayer | #define POWERPC_MMU_401x3 (POWERPC_MMU_SOFT_4xx_Z)
|
3246 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x3 (POWERPC_EXCP_40x)
|
3247 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x3 (PPC_FLAGS_INPUT_401)
|
3248 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x3 (bfd_mach_ppc_403)
|
3249 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x3 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3250 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3251 | 2f462816 | j_mayer | #define check_pow_401x3 check_pow_nocheck
|
3252 | a750fc0b | j_mayer | |
3253 | 578bb252 | j_mayer | __attribute__ (( unused )) |
3254 | e1833e1f | j_mayer | static void init_proc_401x3 (CPUPPCState *env) |
3255 | 76a66253 | j_mayer | { |
3256 | 4e290a0b | j_mayer | gen_spr_40x(env); |
3257 | 4e290a0b | j_mayer | gen_spr_401_403(env); |
3258 | 4e290a0b | j_mayer | gen_spr_401(env); |
3259 | 4e290a0b | j_mayer | gen_spr_401x2(env); |
3260 | 4e290a0b | j_mayer | gen_spr_compress(env); |
3261 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3262 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3263 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3264 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3265 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3266 | 3fc6c082 | bellard | } |
3267 | a750fc0b | j_mayer | |
3268 | a750fc0b | j_mayer | /* IOP480 */
|
3269 | 082c6681 | j_mayer | #define POWERPC_INSNS_IOP480 (PPC_INSNS_BASE | PPC_STRING | \
|
3270 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3271 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3272 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3273 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3274 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3275 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3276 | a750fc0b | j_mayer | #define POWERPC_MSRM_IOP480 (0x00000000001FD231ULL) |
3277 | a750fc0b | j_mayer | #define POWERPC_MMU_IOP480 (POWERPC_MMU_SOFT_4xx_Z)
|
3278 | a750fc0b | j_mayer | #define POWERPC_EXCP_IOP480 (POWERPC_EXCP_40x)
|
3279 | a750fc0b | j_mayer | #define POWERPC_INPUT_IOP480 (PPC_FLAGS_INPUT_401)
|
3280 | 237c0af0 | j_mayer | #define POWERPC_BFDM_IOP480 (bfd_mach_ppc_403)
|
3281 | 4018bae9 | j_mayer | #define POWERPC_FLAG_IOP480 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3282 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3283 | 2f462816 | j_mayer | #define check_pow_IOP480 check_pow_nocheck
|
3284 | a750fc0b | j_mayer | |
3285 | a750fc0b | j_mayer | static void init_proc_IOP480 (CPUPPCState *env) |
3286 | 3fc6c082 | bellard | { |
3287 | a750fc0b | j_mayer | gen_spr_40x(env); |
3288 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3289 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3290 | a750fc0b | j_mayer | gen_spr_compress(env); |
3291 | a750fc0b | j_mayer | /* Memory management */
|
3292 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3293 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3294 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3295 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3296 | f2e63a42 | j_mayer | #endif
|
3297 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3298 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3299 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3300 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3301 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3302 | 3fc6c082 | bellard | } |
3303 | 3fc6c082 | bellard | |
3304 | a750fc0b | j_mayer | /* PowerPC 403 */
|
3305 | 082c6681 | j_mayer | #define POWERPC_INSNS_403 (PPC_INSNS_BASE | PPC_STRING | \
|
3306 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3307 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3308 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3309 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3310 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3311 | a750fc0b | j_mayer | #define POWERPC_MSRM_403 (0x000000000007D00DULL) |
3312 | b4095fed | j_mayer | #define POWERPC_MMU_403 (POWERPC_MMU_REAL)
|
3313 | a750fc0b | j_mayer | #define POWERPC_EXCP_403 (POWERPC_EXCP_40x)
|
3314 | a750fc0b | j_mayer | #define POWERPC_INPUT_403 (PPC_FLAGS_INPUT_401)
|
3315 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403 (bfd_mach_ppc_403)
|
3316 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403 (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3317 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3318 | 2f462816 | j_mayer | #define check_pow_403 check_pow_nocheck
|
3319 | a750fc0b | j_mayer | |
3320 | a750fc0b | j_mayer | static void init_proc_403 (CPUPPCState *env) |
3321 | 3fc6c082 | bellard | { |
3322 | a750fc0b | j_mayer | gen_spr_40x(env); |
3323 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3324 | a750fc0b | j_mayer | gen_spr_403(env); |
3325 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3326 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3327 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3328 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3329 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3330 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3331 | 3fc6c082 | bellard | } |
3332 | 3fc6c082 | bellard | |
3333 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
3334 | 082c6681 | j_mayer | #define POWERPC_INSNS_403GCX (PPC_INSNS_BASE | PPC_STRING | \
|
3335 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3336 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3337 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3338 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3339 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3340 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3341 | a750fc0b | j_mayer | #define POWERPC_MSRM_403GCX (0x000000000007D00DULL) |
3342 | a750fc0b | j_mayer | #define POWERPC_MMU_403GCX (POWERPC_MMU_SOFT_4xx_Z)
|
3343 | a750fc0b | j_mayer | #define POWERPC_EXCP_403GCX (POWERPC_EXCP_40x)
|
3344 | a750fc0b | j_mayer | #define POWERPC_INPUT_403GCX (PPC_FLAGS_INPUT_401)
|
3345 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403GCX (bfd_mach_ppc_403)
|
3346 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403GCX (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3347 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3348 | 2f462816 | j_mayer | #define check_pow_403GCX check_pow_nocheck
|
3349 | a750fc0b | j_mayer | |
3350 | a750fc0b | j_mayer | static void init_proc_403GCX (CPUPPCState *env) |
3351 | 3fc6c082 | bellard | { |
3352 | a750fc0b | j_mayer | gen_spr_40x(env); |
3353 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3354 | a750fc0b | j_mayer | gen_spr_403(env); |
3355 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3356 | a750fc0b | j_mayer | gen_spr_403_mmu(env); |
3357 | a750fc0b | j_mayer | /* Bus access control */
|
3358 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3359 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3360 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3361 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3362 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
3363 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3364 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3365 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3366 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3367 | a750fc0b | j_mayer | 0x00000000);
|
3368 | a750fc0b | j_mayer | /* Memory management */
|
3369 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3370 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3371 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3372 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3373 | f2e63a42 | j_mayer | #endif
|
3374 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3375 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3376 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3377 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3378 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3379 | 80d11f44 | j_mayer | } |
3380 | 80d11f44 | j_mayer | |
3381 | 80d11f44 | j_mayer | /* PowerPC 405 */
|
3382 | 082c6681 | j_mayer | #define POWERPC_INSNS_405 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3383 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3384 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3385 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3386 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3387 | 80d11f44 | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3388 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_405_MAC | PPC_40x_EXCP) |
3389 | 80d11f44 | j_mayer | #define POWERPC_MSRM_405 (0x000000000006E630ULL) |
3390 | 80d11f44 | j_mayer | #define POWERPC_MMU_405 (POWERPC_MMU_SOFT_4xx)
|
3391 | 80d11f44 | j_mayer | #define POWERPC_EXCP_405 (POWERPC_EXCP_40x)
|
3392 | 80d11f44 | j_mayer | #define POWERPC_INPUT_405 (PPC_FLAGS_INPUT_405)
|
3393 | 80d11f44 | j_mayer | #define POWERPC_BFDM_405 (bfd_mach_ppc_403)
|
3394 | 80d11f44 | j_mayer | #define POWERPC_FLAG_405 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3395 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3396 | 80d11f44 | j_mayer | #define check_pow_405 check_pow_nocheck
|
3397 | 80d11f44 | j_mayer | |
3398 | 80d11f44 | j_mayer | static void init_proc_405 (CPUPPCState *env) |
3399 | 80d11f44 | j_mayer | { |
3400 | 80d11f44 | j_mayer | /* Time base */
|
3401 | 80d11f44 | j_mayer | gen_tbl(env); |
3402 | 80d11f44 | j_mayer | gen_spr_40x(env); |
3403 | 80d11f44 | j_mayer | gen_spr_405(env); |
3404 | 80d11f44 | j_mayer | /* Bus access control */
|
3405 | 80d11f44 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3406 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3407 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3408 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3409 | 80d11f44 | j_mayer | 0xFFFFFFFF);
|
3410 | 80d11f44 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3411 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3412 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3413 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3414 | 80d11f44 | j_mayer | 0x00000000);
|
3415 | 80d11f44 | j_mayer | /* Memory management */
|
3416 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3417 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3418 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3419 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3420 | 80d11f44 | j_mayer | #endif
|
3421 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3422 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3423 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3424 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3425 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3426 | 80d11f44 | j_mayer | } |
3427 | 80d11f44 | j_mayer | |
3428 | 80d11f44 | j_mayer | /* PowerPC 440 EP */
|
3429 | 082c6681 | j_mayer | #define POWERPC_INSNS_440EP (PPC_INSNS_BASE | PPC_STRING | \
|
3430 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3431 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3432 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3433 | f4078236 | Baojun Wang | PPC_MEM_TLBSYNC | PPC_MFTB | \ |
3434 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3435 | 082c6681 | j_mayer | PPC_440_SPEC) |
3436 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440EP (0x000000000006D630ULL) |
3437 | 80d11f44 | j_mayer | #define POWERPC_MMU_440EP (POWERPC_MMU_BOOKE)
|
3438 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440EP (POWERPC_EXCP_BOOKE)
|
3439 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440EP (PPC_FLAGS_INPUT_BookE)
|
3440 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440EP (bfd_mach_ppc_403)
|
3441 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440EP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3442 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3443 | 80d11f44 | j_mayer | #define check_pow_440EP check_pow_nocheck
|
3444 | 80d11f44 | j_mayer | |
3445 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3446 | 80d11f44 | j_mayer | static void init_proc_440EP (CPUPPCState *env) |
3447 | 80d11f44 | j_mayer | { |
3448 | 80d11f44 | j_mayer | /* Time base */
|
3449 | 80d11f44 | j_mayer | gen_tbl(env); |
3450 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3451 | 80d11f44 | j_mayer | gen_spr_440(env); |
3452 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3453 | 80d11f44 | j_mayer | /* Processor identification */
|
3454 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3455 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3456 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3457 | 80d11f44 | j_mayer | 0x00000000);
|
3458 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3459 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3460 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3461 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3462 | 80d11f44 | j_mayer | 0x00000000);
|
3463 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3464 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3465 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3466 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3467 | 80d11f44 | j_mayer | 0x00000000);
|
3468 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3469 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3470 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3471 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3472 | 80d11f44 | j_mayer | 0x00000000);
|
3473 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3474 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3475 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3476 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3477 | 80d11f44 | j_mayer | 0x00000000);
|
3478 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3479 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3480 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3481 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3482 | 80d11f44 | j_mayer | 0x00000000);
|
3483 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3484 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3485 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3486 | 80d11f44 | j_mayer | 0x00000000);
|
3487 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3488 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3489 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3490 | 80d11f44 | j_mayer | 0x00000000);
|
3491 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3492 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3493 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3494 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3495 | 80d11f44 | j_mayer | 0x00000000);
|
3496 | 80d11f44 | j_mayer | /* Memory management */
|
3497 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3498 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3499 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3500 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3501 | 80d11f44 | j_mayer | #endif
|
3502 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3503 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3504 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3505 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3506 | 80d11f44 | j_mayer | } |
3507 | 80d11f44 | j_mayer | |
3508 | 80d11f44 | j_mayer | /* PowerPC 440 GP */
|
3509 | 082c6681 | j_mayer | #define POWERPC_INSNS_440GP (PPC_INSNS_BASE | PPC_STRING | \
|
3510 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_WRTEE | PPC_MFAPIDI | \ |
3511 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3512 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3513 | f4078236 | Baojun Wang | PPC_MEM_TLBSYNC | PPC_TLBIVA | PPC_MFTB | \ |
3514 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3515 | 082c6681 | j_mayer | PPC_440_SPEC) |
3516 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440GP (0x000000000006FF30ULL) |
3517 | 80d11f44 | j_mayer | #define POWERPC_MMU_440GP (POWERPC_MMU_BOOKE)
|
3518 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440GP (POWERPC_EXCP_BOOKE)
|
3519 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440GP (PPC_FLAGS_INPUT_BookE)
|
3520 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440GP (bfd_mach_ppc_403)
|
3521 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440GP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3522 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3523 | 80d11f44 | j_mayer | #define check_pow_440GP check_pow_nocheck
|
3524 | 80d11f44 | j_mayer | |
3525 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3526 | 80d11f44 | j_mayer | static void init_proc_440GP (CPUPPCState *env) |
3527 | 80d11f44 | j_mayer | { |
3528 | 80d11f44 | j_mayer | /* Time base */
|
3529 | 80d11f44 | j_mayer | gen_tbl(env); |
3530 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3531 | 80d11f44 | j_mayer | gen_spr_440(env); |
3532 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3533 | 80d11f44 | j_mayer | /* Processor identification */
|
3534 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3535 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3536 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3537 | 80d11f44 | j_mayer | 0x00000000);
|
3538 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3539 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3540 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3541 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3542 | 80d11f44 | j_mayer | 0x00000000);
|
3543 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3544 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3545 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3546 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3547 | 80d11f44 | j_mayer | 0x00000000);
|
3548 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3549 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3550 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3551 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3552 | 80d11f44 | j_mayer | 0x00000000);
|
3553 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3554 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3555 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3556 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3557 | 80d11f44 | j_mayer | 0x00000000);
|
3558 | 80d11f44 | j_mayer | /* Memory management */
|
3559 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3560 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3561 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3562 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3563 | 80d11f44 | j_mayer | #endif
|
3564 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3565 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3566 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3567 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3568 | 80d11f44 | j_mayer | } |
3569 | 80d11f44 | j_mayer | |
3570 | 80d11f44 | j_mayer | /* PowerPC 440x4 */
|
3571 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x4 (PPC_INSNS_BASE | PPC_STRING | \
|
3572 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3573 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3574 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3575 | f4078236 | Baojun Wang | PPC_MEM_TLBSYNC | PPC_MFTB | \ |
3576 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3577 | 80d11f44 | j_mayer | PPC_440_SPEC) |
3578 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x4 (0x000000000006FF30ULL) |
3579 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x4 (POWERPC_MMU_BOOKE)
|
3580 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x4 (POWERPC_EXCP_BOOKE)
|
3581 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x4 (PPC_FLAGS_INPUT_BookE)
|
3582 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x4 (bfd_mach_ppc_403)
|
3583 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x4 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3584 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3585 | 80d11f44 | j_mayer | #define check_pow_440x4 check_pow_nocheck
|
3586 | 80d11f44 | j_mayer | |
3587 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3588 | 80d11f44 | j_mayer | static void init_proc_440x4 (CPUPPCState *env) |
3589 | 80d11f44 | j_mayer | { |
3590 | 80d11f44 | j_mayer | /* Time base */
|
3591 | 80d11f44 | j_mayer | gen_tbl(env); |
3592 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3593 | 80d11f44 | j_mayer | gen_spr_440(env); |
3594 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3595 | 80d11f44 | j_mayer | /* Processor identification */
|
3596 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3597 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3598 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3599 | 80d11f44 | j_mayer | 0x00000000);
|
3600 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3601 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3602 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3603 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3604 | 80d11f44 | j_mayer | 0x00000000);
|
3605 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3606 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3607 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3608 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3609 | 80d11f44 | j_mayer | 0x00000000);
|
3610 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3611 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3612 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3613 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3614 | 80d11f44 | j_mayer | 0x00000000);
|
3615 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3616 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3617 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3618 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3619 | 80d11f44 | j_mayer | 0x00000000);
|
3620 | 80d11f44 | j_mayer | /* Memory management */
|
3621 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3622 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3623 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3624 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3625 | 80d11f44 | j_mayer | #endif
|
3626 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3627 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3628 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3629 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3630 | 3fc6c082 | bellard | } |
3631 | 3fc6c082 | bellard | |
3632 | 80d11f44 | j_mayer | /* PowerPC 440x5 */
|
3633 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x5 (PPC_INSNS_BASE | PPC_STRING | \
|
3634 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3635 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3636 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3637 | f4078236 | Baojun Wang | PPC_MEM_TLBSYNC | PPC_MFTB | \ |
3638 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3639 | 082c6681 | j_mayer | PPC_440_SPEC) |
3640 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x5 (0x000000000006FF30ULL) |
3641 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x5 (POWERPC_MMU_BOOKE)
|
3642 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x5 (POWERPC_EXCP_BOOKE)
|
3643 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x5 (PPC_FLAGS_INPUT_BookE)
|
3644 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x5 (bfd_mach_ppc_403)
|
3645 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x5 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3646 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3647 | 80d11f44 | j_mayer | #define check_pow_440x5 check_pow_nocheck
|
3648 | a750fc0b | j_mayer | |
3649 | 80d11f44 | j_mayer | static void init_proc_440x5 (CPUPPCState *env) |
3650 | 3fc6c082 | bellard | { |
3651 | a750fc0b | j_mayer | /* Time base */
|
3652 | a750fc0b | j_mayer | gen_tbl(env); |
3653 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3654 | 80d11f44 | j_mayer | gen_spr_440(env); |
3655 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3656 | 80d11f44 | j_mayer | /* Processor identification */
|
3657 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3658 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3659 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3660 | 80d11f44 | j_mayer | 0x00000000);
|
3661 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3662 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3663 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3664 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3665 | 80d11f44 | j_mayer | 0x00000000);
|
3666 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3667 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3668 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3669 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3670 | 80d11f44 | j_mayer | 0x00000000);
|
3671 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3672 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3673 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3674 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3675 | 80d11f44 | j_mayer | 0x00000000);
|
3676 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3677 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3678 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3679 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3680 | 80d11f44 | j_mayer | 0x00000000);
|
3681 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3682 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3683 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3684 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3685 | 80d11f44 | j_mayer | 0x00000000);
|
3686 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3687 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3688 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3689 | 80d11f44 | j_mayer | 0x00000000);
|
3690 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3691 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3692 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3693 | 80d11f44 | j_mayer | 0x00000000);
|
3694 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3695 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3696 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3697 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3698 | a750fc0b | j_mayer | 0x00000000);
|
3699 | a750fc0b | j_mayer | /* Memory management */
|
3700 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3701 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3702 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3703 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3704 | f2e63a42 | j_mayer | #endif
|
3705 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3706 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3707 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3708 | 95070372 | Edgar E. Iglesias | ppc40x_irq_init(env); |
3709 | 3fc6c082 | bellard | } |
3710 | 3fc6c082 | bellard | |
3711 | 80d11f44 | j_mayer | /* PowerPC 460 (guessed) */
|
3712 | 082c6681 | j_mayer | #define POWERPC_INSNS_460 (PPC_INSNS_BASE | PPC_STRING | \
|
3713 | 80d11f44 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3714 | f4078236 | Baojun Wang | PPC_WRTEE | PPC_MFAPIDI | PPC_MFTB | \ |
3715 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3716 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3717 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3718 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3719 | 082c6681 | j_mayer | PPC_440_SPEC) |
3720 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3721 | 80d11f44 | j_mayer | #define POWERPC_MMU_460 (POWERPC_MMU_BOOKE)
|
3722 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460 (POWERPC_EXCP_BOOKE)
|
3723 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460 (PPC_FLAGS_INPUT_BookE)
|
3724 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460 (bfd_mach_ppc_403)
|
3725 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3726 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3727 | 80d11f44 | j_mayer | #define check_pow_460 check_pow_nocheck
|
3728 | a750fc0b | j_mayer | |
3729 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3730 | 80d11f44 | j_mayer | static void init_proc_460 (CPUPPCState *env) |
3731 | 3fc6c082 | bellard | { |
3732 | a750fc0b | j_mayer | /* Time base */
|
3733 | a750fc0b | j_mayer | gen_tbl(env); |
3734 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3735 | a750fc0b | j_mayer | gen_spr_440(env); |
3736 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3737 | 80d11f44 | j_mayer | /* Processor identification */
|
3738 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3739 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3740 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3741 | 80d11f44 | j_mayer | 0x00000000);
|
3742 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3743 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3744 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3745 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3746 | 80d11f44 | j_mayer | 0x00000000);
|
3747 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3748 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3749 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3750 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3751 | 80d11f44 | j_mayer | 0x00000000);
|
3752 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3753 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3754 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3755 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3756 | 80d11f44 | j_mayer | 0x00000000);
|
3757 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3758 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3759 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3760 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3761 | 80d11f44 | j_mayer | 0x00000000);
|
3762 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3763 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3764 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3765 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3766 | a750fc0b | j_mayer | 0x00000000);
|
3767 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3768 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3769 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3770 | a750fc0b | j_mayer | 0x00000000);
|
3771 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3772 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3773 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3774 | a750fc0b | j_mayer | 0x00000000);
|
3775 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3776 | a750fc0b | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3777 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3778 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3779 | a750fc0b | j_mayer | 0x00000000);
|
3780 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3781 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3782 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3783 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3784 | 80d11f44 | j_mayer | 0x00000000);
|
3785 | a750fc0b | j_mayer | /* Memory management */
|
3786 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3787 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3788 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3789 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3790 | f2e63a42 | j_mayer | #endif
|
3791 | e1833e1f | j_mayer | init_excp_BookE(env); |
3792 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3793 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3794 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3795 | 3fc6c082 | bellard | } |
3796 | 3fc6c082 | bellard | |
3797 | 80d11f44 | j_mayer | /* PowerPC 460F (guessed) */
|
3798 | 082c6681 | j_mayer | #define POWERPC_INSNS_460F (PPC_INSNS_BASE | PPC_STRING | \
|
3799 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FRES | PPC_FLOAT_FSEL | \ |
3800 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
3801 | f4078236 | Baojun Wang | PPC_FLOAT_STFIWX | PPC_MFTB | \ |
3802 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3803 | 082c6681 | j_mayer | PPC_WRTEE | PPC_MFAPIDI | \ |
3804 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3805 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3806 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3807 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3808 | 082c6681 | j_mayer | PPC_440_SPEC) |
3809 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3810 | 80d11f44 | j_mayer | #define POWERPC_MMU_460F (POWERPC_MMU_BOOKE)
|
3811 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460F (POWERPC_EXCP_BOOKE)
|
3812 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460F (PPC_FLAGS_INPUT_BookE)
|
3813 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460F (bfd_mach_ppc_403)
|
3814 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460F (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3815 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3816 | 80d11f44 | j_mayer | #define check_pow_460F check_pow_nocheck
|
3817 | a750fc0b | j_mayer | |
3818 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3819 | 80d11f44 | j_mayer | static void init_proc_460F (CPUPPCState *env) |
3820 | 3fc6c082 | bellard | { |
3821 | a750fc0b | j_mayer | /* Time base */
|
3822 | a750fc0b | j_mayer | gen_tbl(env); |
3823 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3824 | a750fc0b | j_mayer | gen_spr_440(env); |
3825 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3826 | 80d11f44 | j_mayer | /* Processor identification */
|
3827 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3828 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3829 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3830 | 80d11f44 | j_mayer | 0x00000000);
|
3831 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3832 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3833 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3834 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3835 | 80d11f44 | j_mayer | 0x00000000);
|
3836 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3837 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3838 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3839 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3840 | 80d11f44 | j_mayer | 0x00000000);
|
3841 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3842 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3843 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3844 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3845 | 80d11f44 | j_mayer | 0x00000000);
|
3846 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3847 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3848 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3849 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3850 | 80d11f44 | j_mayer | 0x00000000);
|
3851 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3852 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3853 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3854 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3855 | 80d11f44 | j_mayer | 0x00000000);
|
3856 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3857 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3858 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3859 | 80d11f44 | j_mayer | 0x00000000);
|
3860 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3861 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3862 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3863 | 80d11f44 | j_mayer | 0x00000000);
|
3864 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3865 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3866 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3867 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3868 | 80d11f44 | j_mayer | 0x00000000);
|
3869 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3870 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3871 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3872 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3873 | 80d11f44 | j_mayer | 0x00000000);
|
3874 | a750fc0b | j_mayer | /* Memory management */
|
3875 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3876 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3877 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3878 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3879 | f2e63a42 | j_mayer | #endif
|
3880 | e1833e1f | j_mayer | init_excp_BookE(env); |
3881 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3882 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3883 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3884 | 3fc6c082 | bellard | } |
3885 | 3fc6c082 | bellard | |
3886 | 80d11f44 | j_mayer | /* Freescale 5xx cores (aka RCPU) */
|
3887 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC5xx (PPC_INSNS_BASE | PPC_STRING | \
|
3888 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3889 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_FLOAT | PPC_FLOAT_STFIWX | \ |
3890 | 80d11f44 | j_mayer | PPC_MFTB) |
3891 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC5xx (0x000000000001FF43ULL) |
3892 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC5xx (POWERPC_MMU_REAL)
|
3893 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC5xx (POWERPC_EXCP_603)
|
3894 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC5xx (PPC_FLAGS_INPUT_RCPU)
|
3895 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC5xx (bfd_mach_ppc_505)
|
3896 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC5xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3897 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3898 | 80d11f44 | j_mayer | #define check_pow_MPC5xx check_pow_none
|
3899 | 80d11f44 | j_mayer | |
3900 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3901 | 80d11f44 | j_mayer | static void init_proc_MPC5xx (CPUPPCState *env) |
3902 | 80d11f44 | j_mayer | { |
3903 | 80d11f44 | j_mayer | /* Time base */
|
3904 | 80d11f44 | j_mayer | gen_tbl(env); |
3905 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3906 | 80d11f44 | j_mayer | gen_spr_5xx(env); |
3907 | 80d11f44 | j_mayer | init_excp_MPC5xx(env); |
3908 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3909 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3910 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3911 | 80d11f44 | j_mayer | } |
3912 | 80d11f44 | j_mayer | |
3913 | 80d11f44 | j_mayer | /* Freescale 8xx cores (aka PowerQUICC) */
|
3914 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC8xx (PPC_INSNS_BASE | PPC_STRING | \
|
3915 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3916 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_MFTB) |
3917 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC8xx (0x000000000001F673ULL) |
3918 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC8xx (POWERPC_MMU_MPC8xx)
|
3919 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC8xx (POWERPC_EXCP_603)
|
3920 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC8xx (PPC_FLAGS_INPUT_RCPU)
|
3921 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC8xx (bfd_mach_ppc_860)
|
3922 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC8xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3923 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3924 | 80d11f44 | j_mayer | #define check_pow_MPC8xx check_pow_none
|
3925 | 80d11f44 | j_mayer | |
3926 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3927 | 80d11f44 | j_mayer | static void init_proc_MPC8xx (CPUPPCState *env) |
3928 | 80d11f44 | j_mayer | { |
3929 | 80d11f44 | j_mayer | /* Time base */
|
3930 | 80d11f44 | j_mayer | gen_tbl(env); |
3931 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3932 | 80d11f44 | j_mayer | gen_spr_8xx(env); |
3933 | 80d11f44 | j_mayer | init_excp_MPC8xx(env); |
3934 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3935 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3936 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3937 | 80d11f44 | j_mayer | } |
3938 | 80d11f44 | j_mayer | |
3939 | 80d11f44 | j_mayer | /* Freescale 82xx cores (aka PowerQUICC-II) */
|
3940 | 80d11f44 | j_mayer | /* PowerPC G2 */
|
3941 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3942 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3943 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3944 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3945 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3946 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3947 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3948 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2 (0x000000000006FFF2ULL) |
3949 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2 (POWERPC_MMU_SOFT_6xx)
|
3950 | 80d11f44 | j_mayer | //#define POWERPC_EXCP_G2 (POWERPC_EXCP_G2)
|
3951 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2 (PPC_FLAGS_INPUT_6xx)
|
3952 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2 (bfd_mach_ppc_ec603e)
|
3953 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3954 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3955 | 80d11f44 | j_mayer | #define check_pow_G2 check_pow_hid0
|
3956 | a750fc0b | j_mayer | |
3957 | 80d11f44 | j_mayer | static void init_proc_G2 (CPUPPCState *env) |
3958 | 3fc6c082 | bellard | { |
3959 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3960 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3961 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3962 | a750fc0b | j_mayer | /* Time base */
|
3963 | a750fc0b | j_mayer | gen_tbl(env); |
3964 | bd928eba | j_mayer | /* External access control */
|
3965 | bd928eba | j_mayer | /* XXX : not implemented */
|
3966 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3967 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3968 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3969 | bd928eba | j_mayer | 0x00000000);
|
3970 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3971 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3972 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3973 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3974 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3975 | 80d11f44 | j_mayer | 0x00000000);
|
3976 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3977 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3978 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3979 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3980 | 80d11f44 | j_mayer | 0x00000000);
|
3981 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3982 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3983 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3984 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3985 | 80d11f44 | j_mayer | 0x00000000);
|
3986 | a750fc0b | j_mayer | /* Memory management */
|
3987 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3988 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3989 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3990 | 80d11f44 | j_mayer | init_excp_G2(env); |
3991 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3992 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3993 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3994 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
3995 | 3fc6c082 | bellard | } |
3996 | a750fc0b | j_mayer | |
3997 | 80d11f44 | j_mayer | /* PowerPC G2LE */
|
3998 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2LE (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3999 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4000 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
4001 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4002 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4003 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4004 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4005 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2LE (0x000000000007FFF3ULL) |
4006 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2LE (POWERPC_MMU_SOFT_6xx)
|
4007 | 80d11f44 | j_mayer | #define POWERPC_EXCP_G2LE (POWERPC_EXCP_G2)
|
4008 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2LE (PPC_FLAGS_INPUT_6xx)
|
4009 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2LE (bfd_mach_ppc_ec603e)
|
4010 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2LE (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4011 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4012 | 80d11f44 | j_mayer | #define check_pow_G2LE check_pow_hid0
|
4013 | a750fc0b | j_mayer | |
4014 | 80d11f44 | j_mayer | static void init_proc_G2LE (CPUPPCState *env) |
4015 | 3fc6c082 | bellard | { |
4016 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
4017 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
4018 | 80d11f44 | j_mayer | gen_spr_G2(env); |
4019 | a750fc0b | j_mayer | /* Time base */
|
4020 | a750fc0b | j_mayer | gen_tbl(env); |
4021 | bd928eba | j_mayer | /* External access control */
|
4022 | bd928eba | j_mayer | /* XXX : not implemented */
|
4023 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
4024 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4025 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4026 | bd928eba | j_mayer | 0x00000000);
|
4027 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
4028 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4029 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4030 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4031 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4032 | a750fc0b | j_mayer | 0x00000000);
|
4033 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4034 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4035 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4036 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4037 | a750fc0b | j_mayer | 0x00000000);
|
4038 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4039 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
4040 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4041 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4042 | a750fc0b | j_mayer | 0x00000000);
|
4043 | a750fc0b | j_mayer | /* Memory management */
|
4044 | 80d11f44 | j_mayer | gen_low_BATs(env); |
4045 | 80d11f44 | j_mayer | gen_high_BATs(env); |
4046 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4047 | 80d11f44 | j_mayer | init_excp_G2(env); |
4048 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4049 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4050 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
4051 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
4052 | 3fc6c082 | bellard | } |
4053 | 3fc6c082 | bellard | |
4054 | 80d11f44 | j_mayer | /* e200 core */
|
4055 | 80d11f44 | j_mayer | /* XXX: unimplemented instructions:
|
4056 | 80d11f44 | j_mayer | * dcblc
|
4057 | 80d11f44 | j_mayer | * dcbtlst
|
4058 | 80d11f44 | j_mayer | * dcbtstls
|
4059 | 80d11f44 | j_mayer | * icblc
|
4060 | 80d11f44 | j_mayer | * icbtls
|
4061 | 80d11f44 | j_mayer | * tlbivax
|
4062 | 80d11f44 | j_mayer | * all SPE multiply-accumulate instructions
|
4063 | 80d11f44 | j_mayer | */
|
4064 | 082c6681 | j_mayer | #define POWERPC_INSNS_e200 (PPC_INSNS_BASE | PPC_ISEL | \
|
4065 | 40569b7e | aurel32 | PPC_SPE | PPC_SPE_SINGLE | \ |
4066 | 082c6681 | j_mayer | PPC_WRTEE | PPC_RFDI | \ |
4067 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4068 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4069 | 80d11f44 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4070 | 082c6681 | j_mayer | PPC_BOOKE) |
4071 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e200 (0x000000000606FF30ULL) |
4072 | 80d11f44 | j_mayer | #define POWERPC_MMU_e200 (POWERPC_MMU_BOOKE_FSL)
|
4073 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e200 (POWERPC_EXCP_BOOKE)
|
4074 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e200 (PPC_FLAGS_INPUT_BookE)
|
4075 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e200 (bfd_mach_ppc_860)
|
4076 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e200 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4077 | 4018bae9 | j_mayer | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4078 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
4079 | 80d11f44 | j_mayer | #define check_pow_e200 check_pow_hid0
|
4080 | 80d11f44 | j_mayer | |
4081 | 578bb252 | j_mayer | __attribute__ (( unused )) |
4082 | 80d11f44 | j_mayer | static void init_proc_e200 (CPUPPCState *env) |
4083 | 3fc6c082 | bellard | { |
4084 | e1833e1f | j_mayer | /* Time base */
|
4085 | e1833e1f | j_mayer | gen_tbl(env); |
4086 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000070000FFFFULL);
|
4087 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4088 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4089 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4090 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4091 | e1833e1f | j_mayer | 0x00000000);
|
4092 | 80d11f44 | j_mayer | /* Memory management */
|
4093 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005D);
|
4094 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4095 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4096 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4097 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4098 | e1833e1f | j_mayer | 0x00000000);
|
4099 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4100 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4101 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4102 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4103 | e1833e1f | j_mayer | 0x00000000);
|
4104 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4105 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_ALTCTXCR, "ALTCTXCR",
|
4106 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4107 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4108 | e1833e1f | j_mayer | 0x00000000);
|
4109 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4110 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
4111 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4112 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4113 | 80d11f44 | j_mayer | 0x00000000);
|
4114 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4115 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_CTXCR, "CTXCR",
|
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 | /* XXX : not implemented */
|
4120 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCNT, "DBCNT",
|
4121 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4122 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4123 | 80d11f44 | j_mayer | 0x00000000);
|
4124 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4125 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCR3, "DBCR3",
|
4126 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4127 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4128 | 80d11f44 | j_mayer | 0x00000000);
|
4129 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4130 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
4131 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4132 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4133 | 80d11f44 | j_mayer | 0x00000000);
|
4134 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4135 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4136 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4137 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4138 | 80d11f44 | j_mayer | 0x00000000);
|
4139 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4140 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1FINV0, "L1FINV0",
|
4141 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4142 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4143 | 80d11f44 | j_mayer | 0x00000000);
|
4144 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4145 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4146 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4147 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4148 | 80d11f44 | j_mayer | 0x00000000);
|
4149 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4150 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4151 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4152 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4153 | 80d11f44 | j_mayer | 0x00000000);
|
4154 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4155 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
4156 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4157 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4158 | 80d11f44 | j_mayer | 0x00000000);
|
4159 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4160 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
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 | spr_register(env, SPR_BOOKE_DSRR0, "DSRR0",
|
4165 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4166 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4167 | 80d11f44 | j_mayer | 0x00000000);
|
4168 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR1, "DSRR1",
|
4169 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4170 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4171 | e1833e1f | j_mayer | 0x00000000);
|
4172 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4173 | e1833e1f | j_mayer | env->nb_tlb = 64;
|
4174 | e1833e1f | j_mayer | env->nb_ways = 1;
|
4175 | e1833e1f | j_mayer | env->id_tlbs = 0;
|
4176 | f2e63a42 | j_mayer | #endif
|
4177 | 80d11f44 | j_mayer | init_excp_e200(env); |
4178 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4179 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4180 | e1833e1f | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
4181 | 3fc6c082 | bellard | } |
4182 | a750fc0b | j_mayer | |
4183 | 80d11f44 | j_mayer | /* e300 core */
|
4184 | 082c6681 | j_mayer | #define POWERPC_INSNS_e300 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4185 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4186 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
4187 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4188 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4189 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4190 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4191 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e300 (0x000000000007FFF3ULL) |
4192 | 80d11f44 | j_mayer | #define POWERPC_MMU_e300 (POWERPC_MMU_SOFT_6xx)
|
4193 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e300 (POWERPC_EXCP_603)
|
4194 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e300 (PPC_FLAGS_INPUT_6xx)
|
4195 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e300 (bfd_mach_ppc_603)
|
4196 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e300 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4197 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4198 | 80d11f44 | j_mayer | #define check_pow_e300 check_pow_hid0
|
4199 | a750fc0b | j_mayer | |
4200 | 578bb252 | j_mayer | __attribute__ (( unused )) |
4201 | 80d11f44 | j_mayer | static void init_proc_e300 (CPUPPCState *env) |
4202 | 3fc6c082 | bellard | { |
4203 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
4204 | 80d11f44 | j_mayer | gen_spr_603(env); |
4205 | a750fc0b | j_mayer | /* Time base */
|
4206 | a750fc0b | j_mayer | gen_tbl(env); |
4207 | 80d11f44 | j_mayer | /* hardware implementation registers */
|
4208 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4209 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4210 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4211 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4212 | 80d11f44 | j_mayer | 0x00000000);
|
4213 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4214 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4215 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4216 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4217 | 80d11f44 | j_mayer | 0x00000000);
|
4218 | 8daf1781 | Thomas Monjalon | /* XXX : not implemented */
|
4219 | 8daf1781 | Thomas Monjalon | spr_register(env, SPR_HID2, "HID2",
|
4220 | 8daf1781 | Thomas Monjalon | SPR_NOACCESS, SPR_NOACCESS, |
4221 | 8daf1781 | Thomas Monjalon | &spr_read_generic, &spr_write_generic, |
4222 | 8daf1781 | Thomas Monjalon | 0x00000000);
|
4223 | 80d11f44 | j_mayer | /* Memory management */
|
4224 | 80d11f44 | j_mayer | gen_low_BATs(env); |
4225 | 8daf1781 | Thomas Monjalon | gen_high_BATs(env); |
4226 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4227 | 80d11f44 | j_mayer | init_excp_603(env); |
4228 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
4229 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
4230 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
4231 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
4232 | 80d11f44 | j_mayer | } |
4233 | 80d11f44 | j_mayer | |
4234 | bd5ea513 | aurel32 | /* e500v1 core */
|
4235 | bd5ea513 | aurel32 | #define POWERPC_INSNS_e500v1 (PPC_INSNS_BASE | PPC_ISEL | \
|
4236 | bd5ea513 | aurel32 | PPC_SPE | PPC_SPE_SINGLE | \ |
4237 | bd5ea513 | aurel32 | PPC_WRTEE | PPC_RFDI | \ |
4238 | bd5ea513 | aurel32 | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4239 | bd5ea513 | aurel32 | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4240 | bd5ea513 | aurel32 | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4241 | bd5ea513 | aurel32 | PPC_BOOKE) |
4242 | bd5ea513 | aurel32 | #define POWERPC_MSRM_e500v1 (0x000000000606FF30ULL) |
4243 | bd5ea513 | aurel32 | #define POWERPC_MMU_e500v1 (POWERPC_MMU_BOOKE_FSL)
|
4244 | bd5ea513 | aurel32 | #define POWERPC_EXCP_e500v1 (POWERPC_EXCP_BOOKE)
|
4245 | bd5ea513 | aurel32 | #define POWERPC_INPUT_e500v1 (PPC_FLAGS_INPUT_BookE)
|
4246 | bd5ea513 | aurel32 | #define POWERPC_BFDM_e500v1 (bfd_mach_ppc_860)
|
4247 | bd5ea513 | aurel32 | #define POWERPC_FLAG_e500v1 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4248 | bd5ea513 | aurel32 | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4249 | bd5ea513 | aurel32 | POWERPC_FLAG_BUS_CLK) |
4250 | bd5ea513 | aurel32 | #define check_pow_e500v1 check_pow_hid0
|
4251 | bd5ea513 | aurel32 | #define init_proc_e500v1 init_proc_e500
|
4252 | bd5ea513 | aurel32 | |
4253 | bd5ea513 | aurel32 | /* e500v2 core */
|
4254 | bd5ea513 | aurel32 | #define POWERPC_INSNS_e500v2 (PPC_INSNS_BASE | PPC_ISEL | \
|
4255 | bd5ea513 | aurel32 | PPC_SPE | PPC_SPE_SINGLE | PPC_SPE_DOUBLE | \ |
4256 | bd5ea513 | aurel32 | PPC_WRTEE | PPC_RFDI | \ |
4257 | bd5ea513 | aurel32 | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4258 | bd5ea513 | aurel32 | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4259 | bd5ea513 | aurel32 | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4260 | bd5ea513 | aurel32 | PPC_BOOKE) |
4261 | bd5ea513 | aurel32 | #define POWERPC_MSRM_e500v2 (0x000000000606FF30ULL) |
4262 | bd5ea513 | aurel32 | #define POWERPC_MMU_e500v2 (POWERPC_MMU_BOOKE_FSL)
|
4263 | bd5ea513 | aurel32 | #define POWERPC_EXCP_e500v2 (POWERPC_EXCP_BOOKE)
|
4264 | bd5ea513 | aurel32 | #define POWERPC_INPUT_e500v2 (PPC_FLAGS_INPUT_BookE)
|
4265 | bd5ea513 | aurel32 | #define POWERPC_BFDM_e500v2 (bfd_mach_ppc_860)
|
4266 | bd5ea513 | aurel32 | #define POWERPC_FLAG_e500v2 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4267 | bd5ea513 | aurel32 | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4268 | bd5ea513 | aurel32 | POWERPC_FLAG_BUS_CLK) |
4269 | bd5ea513 | aurel32 | #define check_pow_e500v2 check_pow_hid0
|
4270 | bd5ea513 | aurel32 | #define init_proc_e500v2 init_proc_e500
|
4271 | 80d11f44 | j_mayer | |
4272 | 80d11f44 | j_mayer | static void init_proc_e500 (CPUPPCState *env) |
4273 | 80d11f44 | j_mayer | { |
4274 | 80d11f44 | j_mayer | /* Time base */
|
4275 | 80d11f44 | j_mayer | gen_tbl(env); |
4276 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x0000000F0000FD7FULL);
|
4277 | 80d11f44 | j_mayer | /* Processor identification */
|
4278 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
4279 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4280 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
4281 | 80d11f44 | j_mayer | 0x00000000);
|
4282 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4283 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4284 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4285 | d34defbc | aurel32 | &spr_read_spefscr, &spr_write_spefscr, |
4286 | 80d11f44 | j_mayer | 0x00000000);
|
4287 | 80d11f44 | j_mayer | /* Memory management */
|
4288 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4289 | 80d11f44 | j_mayer | env->nb_pids = 3;
|
4290 | 80d11f44 | j_mayer | #endif
|
4291 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005F);
|
4292 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4293 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4294 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4295 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4296 | 80d11f44 | j_mayer | 0x00000000);
|
4297 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4298 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4299 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4300 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4301 | 80d11f44 | j_mayer | 0x00000000);
|
4302 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4303 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BBEAR, "BBEAR",
|
4304 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4305 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4306 | 80d11f44 | j_mayer | 0x00000000);
|
4307 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4308 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BBTAR, "BBTAR",
|
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 | /* XXX : not implemented */
|
4313 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_MCAR, "MCAR",
|
4314 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4315 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4316 | 80d11f44 | j_mayer | 0x00000000);
|
4317 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4318 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
4319 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4320 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4321 | a750fc0b | j_mayer | 0x00000000);
|
4322 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4323 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_NPIDR, "NPIDR",
|
4324 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4325 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4326 | a750fc0b | j_mayer | 0x00000000);
|
4327 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4328 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
4329 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4330 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4331 | a750fc0b | j_mayer | 0x00000000);
|
4332 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4333 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
4334 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4335 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4336 | a750fc0b | j_mayer | 0x00000000);
|
4337 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4338 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4339 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4340 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4341 | 80d11f44 | j_mayer | 0x00000000);
|
4342 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4343 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR1, "L1CSR1",
|
4344 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4345 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4346 | 80d11f44 | j_mayer | 0x00000000);
|
4347 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4348 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4349 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4350 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4351 | 80d11f44 | j_mayer | 0x00000000);
|
4352 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4353 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4354 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4355 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4356 | 80d11f44 | j_mayer | 0x00000000);
|
4357 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
4358 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4359 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4360 | 80d11f44 | j_mayer | 0x00000000);
|
4361 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
4362 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4363 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4364 | a750fc0b | j_mayer | 0x00000000);
|
4365 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4366 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
4367 | a750fc0b | j_mayer | env->nb_ways = 1;
|
4368 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
4369 | f2e63a42 | j_mayer | #endif
|
4370 | 80d11f44 | j_mayer | init_excp_e200(env); |
4371 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4372 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4373 | 9fdc60bf | aurel32 | /* Allocate hardware IRQ controller */
|
4374 | 9fdc60bf | aurel32 | ppce500_irq_init(env); |
4375 | 3fc6c082 | bellard | } |
4376 | a750fc0b | j_mayer | |
4377 | a750fc0b | j_mayer | /* Non-embedded PowerPC */
|
4378 | a750fc0b | j_mayer | |
4379 | a750fc0b | j_mayer | /* POWER : same as 601, without mfmsr, mfsr */
|
4380 | a750fc0b | j_mayer | #if defined(TODO)
|
4381 | a750fc0b | j_mayer | #define POWERPC_INSNS_POWER (XXX_TODO)
|
4382 | a750fc0b | j_mayer | /* POWER RSC (from RAD6000) */
|
4383 | a750fc0b | j_mayer | #define POWERPC_MSRM_POWER (0x00000000FEF0ULL) |
4384 | a750fc0b | j_mayer | #endif /* TODO */ |
4385 | a750fc0b | j_mayer | |
4386 | a750fc0b | j_mayer | /* PowerPC 601 */
|
4387 | 082c6681 | j_mayer | #define POWERPC_INSNS_601 (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4388 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4389 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4390 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4391 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4392 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_601 (0x000000000000FD70ULL) |
4393 | 082c6681 | j_mayer | #define POWERPC_MSRR_601 (0x0000000000001040ULL) |
4394 | faadf50e | j_mayer | //#define POWERPC_MMU_601 (POWERPC_MMU_601)
|
4395 | a750fc0b | j_mayer | //#define POWERPC_EXCP_601 (POWERPC_EXCP_601)
|
4396 | a750fc0b | j_mayer | #define POWERPC_INPUT_601 (PPC_FLAGS_INPUT_6xx)
|
4397 | 237c0af0 | j_mayer | #define POWERPC_BFDM_601 (bfd_mach_ppc_601)
|
4398 | 4018bae9 | j_mayer | #define POWERPC_FLAG_601 (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4399 | 2f462816 | j_mayer | #define check_pow_601 check_pow_none
|
4400 | a750fc0b | j_mayer | |
4401 | a750fc0b | j_mayer | static void init_proc_601 (CPUPPCState *env) |
4402 | 3fc6c082 | bellard | { |
4403 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4404 | a750fc0b | j_mayer | gen_spr_601(env); |
4405 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4406 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4407 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4408 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4409 | 056401ea | j_mayer | &spr_read_generic, &spr_write_hid0_601, |
4410 | faadf50e | j_mayer | 0x80010080);
|
4411 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4412 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4413 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4414 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4415 | a750fc0b | j_mayer | 0x00000000);
|
4416 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4417 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID2, "HID2",
|
4418 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4419 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4420 | a750fc0b | j_mayer | 0x00000000);
|
4421 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4422 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID5, "HID5",
|
4423 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4424 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4425 | a750fc0b | j_mayer | 0x00000000);
|
4426 | a750fc0b | j_mayer | /* Memory management */
|
4427 | e1833e1f | j_mayer | init_excp_601(env); |
4428 | 082c6681 | j_mayer | /* XXX: beware that dcache line size is 64
|
4429 | 082c6681 | j_mayer | * but dcbz uses 32 bytes "sectors"
|
4430 | 082c6681 | j_mayer | * XXX: this breaks clcs instruction !
|
4431 | 082c6681 | j_mayer | */
|
4432 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4433 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
4434 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
4435 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
4436 | 3fc6c082 | bellard | } |
4437 | 3fc6c082 | bellard | |
4438 | 082c6681 | j_mayer | /* PowerPC 601v */
|
4439 | 082c6681 | j_mayer | #define POWERPC_INSNS_601v (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4440 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4441 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4442 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4443 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4444 | 082c6681 | j_mayer | #define POWERPC_MSRM_601v (0x000000000000FD70ULL) |
4445 | 082c6681 | j_mayer | #define POWERPC_MSRR_601v (0x0000000000001040ULL) |
4446 | 082c6681 | j_mayer | #define POWERPC_MMU_601v (POWERPC_MMU_601)
|
4447 | 082c6681 | j_mayer | #define POWERPC_EXCP_601v (POWERPC_EXCP_601)
|
4448 | 082c6681 | j_mayer | #define POWERPC_INPUT_601v (PPC_FLAGS_INPUT_6xx)
|
4449 | 082c6681 | j_mayer | #define POWERPC_BFDM_601v (bfd_mach_ppc_601)
|
4450 | 082c6681 | j_mayer | #define POWERPC_FLAG_601v (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4451 | 082c6681 | j_mayer | #define check_pow_601v check_pow_none
|
4452 | 082c6681 | j_mayer | |
4453 | 082c6681 | j_mayer | static void init_proc_601v (CPUPPCState *env) |
4454 | 082c6681 | j_mayer | { |
4455 | 082c6681 | j_mayer | init_proc_601(env); |
4456 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4457 | 082c6681 | j_mayer | spr_register(env, SPR_601_HID15, "HID15",
|
4458 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4459 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4460 | 082c6681 | j_mayer | 0x00000000);
|
4461 | 082c6681 | j_mayer | } |
4462 | 082c6681 | j_mayer | |
4463 | a750fc0b | j_mayer | /* PowerPC 602 */
|
4464 | 082c6681 | j_mayer | #define POWERPC_INSNS_602 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4465 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4466 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4467 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4468 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4469 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_6xx_TLB | PPC_MEM_TLBSYNC | \ |
4470 | 12de9a39 | j_mayer | PPC_SEGMENT | PPC_602_SPEC) |
4471 | 082c6681 | j_mayer | #define POWERPC_MSRM_602 (0x0000000000C7FF73ULL) |
4472 | 082c6681 | j_mayer | /* XXX: 602 MMU is quite specific. Should add a special case */
|
4473 | a750fc0b | j_mayer | #define POWERPC_MMU_602 (POWERPC_MMU_SOFT_6xx)
|
4474 | a750fc0b | j_mayer | //#define POWERPC_EXCP_602 (POWERPC_EXCP_602)
|
4475 | a750fc0b | j_mayer | #define POWERPC_INPUT_602 (PPC_FLAGS_INPUT_6xx)
|
4476 | 237c0af0 | j_mayer | #define POWERPC_BFDM_602 (bfd_mach_ppc_602)
|
4477 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_602 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4478 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4479 | 2f462816 | j_mayer | #define check_pow_602 check_pow_hid0
|
4480 | a750fc0b | j_mayer | |
4481 | a750fc0b | j_mayer | static void init_proc_602 (CPUPPCState *env) |
4482 | 3fc6c082 | bellard | { |
4483 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4484 | a750fc0b | j_mayer | gen_spr_602(env); |
4485 | a750fc0b | j_mayer | /* Time base */
|
4486 | a750fc0b | j_mayer | gen_tbl(env); |
4487 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4488 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4489 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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 | /* XXX : not implemented */
|
4494 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4495 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4496 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4497 | a750fc0b | j_mayer | 0x00000000);
|
4498 | a750fc0b | j_mayer | /* Memory management */
|
4499 | a750fc0b | j_mayer | gen_low_BATs(env); |
4500 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4501 | e1833e1f | j_mayer | init_excp_602(env); |
4502 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4503 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4504 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4505 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4506 | a750fc0b | j_mayer | } |
4507 | 3fc6c082 | bellard | |
4508 | a750fc0b | j_mayer | /* PowerPC 603 */
|
4509 | 082c6681 | j_mayer | #define POWERPC_INSNS_603 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4510 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4511 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4512 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4513 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4514 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4515 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4516 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_603 (0x000000000007FF73ULL) |
4517 | a750fc0b | j_mayer | #define POWERPC_MMU_603 (POWERPC_MMU_SOFT_6xx)
|
4518 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603 (POWERPC_EXCP_603)
|
4519 | a750fc0b | j_mayer | #define POWERPC_INPUT_603 (PPC_FLAGS_INPUT_6xx)
|
4520 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603 (bfd_mach_ppc_603)
|
4521 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4522 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4523 | 2f462816 | j_mayer | #define check_pow_603 check_pow_hid0
|
4524 | a750fc0b | j_mayer | |
4525 | a750fc0b | j_mayer | static void init_proc_603 (CPUPPCState *env) |
4526 | a750fc0b | j_mayer | { |
4527 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4528 | a750fc0b | j_mayer | gen_spr_603(env); |
4529 | a750fc0b | j_mayer | /* Time base */
|
4530 | a750fc0b | j_mayer | gen_tbl(env); |
4531 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4532 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4533 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
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_HID1, "HID1",
|
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 | 3fc6c082 | bellard | } |
4551 | 3fc6c082 | bellard | |
4552 | a750fc0b | j_mayer | /* PowerPC 603e */
|
4553 | 082c6681 | j_mayer | #define POWERPC_INSNS_603E (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 | PPC_6xx_TLB | \ |
4559 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4560 | a750fc0b | j_mayer | #define POWERPC_MSRM_603E (0x000000000007FF73ULL) |
4561 | a750fc0b | j_mayer | #define POWERPC_MMU_603E (POWERPC_MMU_SOFT_6xx)
|
4562 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603E (POWERPC_EXCP_603E)
|
4563 | a750fc0b | j_mayer | #define POWERPC_INPUT_603E (PPC_FLAGS_INPUT_6xx)
|
4564 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603E (bfd_mach_ppc_ec603e)
|
4565 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603E (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4566 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4567 | 2f462816 | j_mayer | #define check_pow_603E check_pow_hid0
|
4568 | a750fc0b | j_mayer | |
4569 | a750fc0b | j_mayer | static void init_proc_603E (CPUPPCState *env) |
4570 | a750fc0b | j_mayer | { |
4571 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4572 | a750fc0b | j_mayer | gen_spr_603(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 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4582 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4583 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4584 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4585 | a750fc0b | j_mayer | 0x00000000);
|
4586 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4587 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
4588 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4589 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4590 | a750fc0b | j_mayer | 0x00000000);
|
4591 | a750fc0b | j_mayer | /* Memory management */
|
4592 | a750fc0b | j_mayer | gen_low_BATs(env); |
4593 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4594 | e1833e1f | j_mayer | init_excp_603(env); |
4595 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4596 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4597 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4598 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4599 | a750fc0b | j_mayer | } |
4600 | a750fc0b | j_mayer | |
4601 | a750fc0b | j_mayer | /* PowerPC 604 */
|
4602 | 082c6681 | j_mayer | #define POWERPC_INSNS_604 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4603 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4604 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4605 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4606 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4607 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4608 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4609 | a750fc0b | j_mayer | #define POWERPC_MSRM_604 (0x000000000005FF77ULL) |
4610 | a750fc0b | j_mayer | #define POWERPC_MMU_604 (POWERPC_MMU_32B)
|
4611 | a750fc0b | j_mayer | //#define POWERPC_EXCP_604 (POWERPC_EXCP_604)
|
4612 | a750fc0b | j_mayer | #define POWERPC_INPUT_604 (PPC_FLAGS_INPUT_6xx)
|
4613 | 237c0af0 | j_mayer | #define POWERPC_BFDM_604 (bfd_mach_ppc_604)
|
4614 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_604 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4615 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4616 | 2f462816 | j_mayer | #define check_pow_604 check_pow_nocheck
|
4617 | a750fc0b | j_mayer | |
4618 | a750fc0b | j_mayer | static void init_proc_604 (CPUPPCState *env) |
4619 | a750fc0b | j_mayer | { |
4620 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4621 | a750fc0b | j_mayer | gen_spr_604(env); |
4622 | a750fc0b | j_mayer | /* Time base */
|
4623 | a750fc0b | j_mayer | gen_tbl(env); |
4624 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4625 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4626 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4627 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4628 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4629 | a750fc0b | j_mayer | 0x00000000);
|
4630 | 082c6681 | j_mayer | /* Memory management */
|
4631 | 082c6681 | j_mayer | gen_low_BATs(env); |
4632 | 082c6681 | j_mayer | init_excp_604(env); |
4633 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4634 | 082c6681 | j_mayer | env->icache_line_size = 32;
|
4635 | 082c6681 | j_mayer | /* Allocate hardware IRQ controller */
|
4636 | 082c6681 | j_mayer | ppc6xx_irq_init(env); |
4637 | 082c6681 | j_mayer | } |
4638 | 082c6681 | j_mayer | |
4639 | 082c6681 | j_mayer | /* PowerPC 604E */
|
4640 | 082c6681 | j_mayer | #define POWERPC_INSNS_604E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4641 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4642 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4643 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4644 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4645 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4646 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4647 | 082c6681 | j_mayer | #define POWERPC_MSRM_604E (0x000000000005FF77ULL) |
4648 | 082c6681 | j_mayer | #define POWERPC_MMU_604E (POWERPC_MMU_32B)
|
4649 | 082c6681 | j_mayer | #define POWERPC_EXCP_604E (POWERPC_EXCP_604)
|
4650 | 082c6681 | j_mayer | #define POWERPC_INPUT_604E (PPC_FLAGS_INPUT_6xx)
|
4651 | 082c6681 | j_mayer | #define POWERPC_BFDM_604E (bfd_mach_ppc_604)
|
4652 | 082c6681 | j_mayer | #define POWERPC_FLAG_604E (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4653 | 082c6681 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4654 | 082c6681 | j_mayer | #define check_pow_604E check_pow_nocheck
|
4655 | 082c6681 | j_mayer | |
4656 | 082c6681 | j_mayer | static void init_proc_604E (CPUPPCState *env) |
4657 | 082c6681 | j_mayer | { |
4658 | 082c6681 | j_mayer | gen_spr_ne_601(env); |
4659 | 082c6681 | j_mayer | gen_spr_604(env); |
4660 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4661 | 082c6681 | j_mayer | spr_register(env, SPR_MMCR1, "MMCR1",
|
4662 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4663 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4664 | 082c6681 | j_mayer | 0x00000000);
|
4665 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4666 | 082c6681 | j_mayer | spr_register(env, SPR_PMC3, "PMC3",
|
4667 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4668 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4669 | 082c6681 | j_mayer | 0x00000000);
|
4670 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4671 | 082c6681 | j_mayer | spr_register(env, SPR_PMC4, "PMC4",
|
4672 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4673 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4674 | 082c6681 | j_mayer | 0x00000000);
|
4675 | 082c6681 | j_mayer | /* Time base */
|
4676 | 082c6681 | j_mayer | gen_tbl(env); |
4677 | 082c6681 | j_mayer | /* Hardware implementation registers */
|
4678 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4679 | 082c6681 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4680 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4681 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4682 | 082c6681 | j_mayer | 0x00000000);
|
4683 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4684 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4685 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4686 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4687 | a750fc0b | j_mayer | 0x00000000);
|
4688 | a750fc0b | j_mayer | /* Memory management */
|
4689 | a750fc0b | j_mayer | gen_low_BATs(env); |
4690 | e1833e1f | j_mayer | init_excp_604(env); |
4691 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4692 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4693 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4694 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4695 | a750fc0b | j_mayer | } |
4696 | a750fc0b | j_mayer | |
4697 | bd928eba | j_mayer | /* PowerPC 740 */
|
4698 | bd928eba | j_mayer | #define POWERPC_INSNS_740 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4699 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4700 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4701 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4702 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4703 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4704 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4705 | bd928eba | j_mayer | #define POWERPC_MSRM_740 (0x000000000005FF77ULL) |
4706 | bd928eba | j_mayer | #define POWERPC_MMU_740 (POWERPC_MMU_32B)
|
4707 | bd928eba | j_mayer | #define POWERPC_EXCP_740 (POWERPC_EXCP_7x0)
|
4708 | bd928eba | j_mayer | #define POWERPC_INPUT_740 (PPC_FLAGS_INPUT_6xx)
|
4709 | bd928eba | j_mayer | #define POWERPC_BFDM_740 (bfd_mach_ppc_750)
|
4710 | bd928eba | j_mayer | #define POWERPC_FLAG_740 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4711 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4712 | bd928eba | j_mayer | #define check_pow_740 check_pow_hid0
|
4713 | a750fc0b | j_mayer | |
4714 | bd928eba | j_mayer | static void init_proc_740 (CPUPPCState *env) |
4715 | a750fc0b | j_mayer | { |
4716 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4717 | a750fc0b | j_mayer | gen_spr_7xx(env); |
4718 | a750fc0b | j_mayer | /* Time base */
|
4719 | a750fc0b | j_mayer | gen_tbl(env); |
4720 | a750fc0b | j_mayer | /* Thermal management */
|
4721 | a750fc0b | j_mayer | gen_spr_thrm(env); |
4722 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4723 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4724 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4725 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4726 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4727 | a750fc0b | j_mayer | 0x00000000);
|
4728 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4729 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4730 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4731 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4732 | a750fc0b | j_mayer | 0x00000000);
|
4733 | a750fc0b | j_mayer | /* Memory management */
|
4734 | a750fc0b | j_mayer | gen_low_BATs(env); |
4735 | e1833e1f | j_mayer | init_excp_7x0(env); |
4736 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4737 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4738 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4739 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4740 | a750fc0b | j_mayer | } |
4741 | a750fc0b | j_mayer | |
4742 | bd928eba | j_mayer | /* PowerPC 750 */
|
4743 | bd928eba | j_mayer | #define POWERPC_INSNS_750 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4744 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4745 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4746 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4747 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4748 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4749 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4750 | bd928eba | j_mayer | #define POWERPC_MSRM_750 (0x000000000005FF77ULL) |
4751 | bd928eba | j_mayer | #define POWERPC_MMU_750 (POWERPC_MMU_32B)
|
4752 | bd928eba | j_mayer | #define POWERPC_EXCP_750 (POWERPC_EXCP_7x0)
|
4753 | bd928eba | j_mayer | #define POWERPC_INPUT_750 (PPC_FLAGS_INPUT_6xx)
|
4754 | bd928eba | j_mayer | #define POWERPC_BFDM_750 (bfd_mach_ppc_750)
|
4755 | bd928eba | j_mayer | #define POWERPC_FLAG_750 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4756 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4757 | bd928eba | j_mayer | #define check_pow_750 check_pow_hid0
|
4758 | bd928eba | j_mayer | |
4759 | bd928eba | j_mayer | static void init_proc_750 (CPUPPCState *env) |
4760 | bd928eba | j_mayer | { |
4761 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4762 | bd928eba | j_mayer | gen_spr_7xx(env); |
4763 | bd928eba | j_mayer | /* XXX : not implemented */
|
4764 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4765 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4766 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4767 | bd928eba | j_mayer | 0x00000000);
|
4768 | bd928eba | j_mayer | /* Time base */
|
4769 | bd928eba | j_mayer | gen_tbl(env); |
4770 | bd928eba | j_mayer | /* Thermal management */
|
4771 | bd928eba | j_mayer | gen_spr_thrm(env); |
4772 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4773 | bd928eba | j_mayer | /* XXX : not implemented */
|
4774 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4775 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4776 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4777 | bd928eba | j_mayer | 0x00000000);
|
4778 | bd928eba | j_mayer | /* XXX : not implemented */
|
4779 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4780 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4781 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4782 | bd928eba | j_mayer | 0x00000000);
|
4783 | bd928eba | j_mayer | /* Memory management */
|
4784 | bd928eba | j_mayer | gen_low_BATs(env); |
4785 | bd928eba | j_mayer | /* XXX: high BATs are also present but are known to be bugged on
|
4786 | bd928eba | j_mayer | * die version 1.x
|
4787 | bd928eba | j_mayer | */
|
4788 | bd928eba | j_mayer | init_excp_7x0(env); |
4789 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4790 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4791 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4792 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4793 | bd928eba | j_mayer | } |
4794 | bd928eba | j_mayer | |
4795 | bd928eba | j_mayer | /* PowerPC 750 CL */
|
4796 | bd928eba | j_mayer | /* XXX: not implemented:
|
4797 | bd928eba | j_mayer | * cache lock instructions:
|
4798 | bd928eba | j_mayer | * dcbz_l
|
4799 | bd928eba | j_mayer | * floating point paired instructions
|
4800 | bd928eba | j_mayer | * psq_lux
|
4801 | bd928eba | j_mayer | * psq_lx
|
4802 | bd928eba | j_mayer | * psq_stux
|
4803 | bd928eba | j_mayer | * psq_stx
|
4804 | bd928eba | j_mayer | * ps_abs
|
4805 | bd928eba | j_mayer | * ps_add
|
4806 | bd928eba | j_mayer | * ps_cmpo0
|
4807 | bd928eba | j_mayer | * ps_cmpo1
|
4808 | bd928eba | j_mayer | * ps_cmpu0
|
4809 | bd928eba | j_mayer | * ps_cmpu1
|
4810 | bd928eba | j_mayer | * ps_div
|
4811 | bd928eba | j_mayer | * ps_madd
|
4812 | bd928eba | j_mayer | * ps_madds0
|
4813 | bd928eba | j_mayer | * ps_madds1
|
4814 | bd928eba | j_mayer | * ps_merge00
|
4815 | bd928eba | j_mayer | * ps_merge01
|
4816 | bd928eba | j_mayer | * ps_merge10
|
4817 | bd928eba | j_mayer | * ps_merge11
|
4818 | bd928eba | j_mayer | * ps_mr
|
4819 | bd928eba | j_mayer | * ps_msub
|
4820 | bd928eba | j_mayer | * ps_mul
|
4821 | bd928eba | j_mayer | * ps_muls0
|
4822 | bd928eba | j_mayer | * ps_muls1
|
4823 | bd928eba | j_mayer | * ps_nabs
|
4824 | bd928eba | j_mayer | * ps_neg
|
4825 | bd928eba | j_mayer | * ps_nmadd
|
4826 | bd928eba | j_mayer | * ps_nmsub
|
4827 | bd928eba | j_mayer | * ps_res
|
4828 | bd928eba | j_mayer | * ps_rsqrte
|
4829 | bd928eba | j_mayer | * ps_sel
|
4830 | bd928eba | j_mayer | * ps_sub
|
4831 | bd928eba | j_mayer | * ps_sum0
|
4832 | bd928eba | j_mayer | * ps_sum1
|
4833 | bd928eba | j_mayer | */
|
4834 | bd928eba | j_mayer | #define POWERPC_INSNS_750cl (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4835 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4836 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4837 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4838 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4839 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4840 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4841 | bd928eba | j_mayer | #define POWERPC_MSRM_750cl (0x000000000005FF77ULL) |
4842 | bd928eba | j_mayer | #define POWERPC_MMU_750cl (POWERPC_MMU_32B)
|
4843 | bd928eba | j_mayer | #define POWERPC_EXCP_750cl (POWERPC_EXCP_7x0)
|
4844 | bd928eba | j_mayer | #define POWERPC_INPUT_750cl (PPC_FLAGS_INPUT_6xx)
|
4845 | bd928eba | j_mayer | #define POWERPC_BFDM_750cl (bfd_mach_ppc_750)
|
4846 | bd928eba | j_mayer | #define POWERPC_FLAG_750cl (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4847 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4848 | bd928eba | j_mayer | #define check_pow_750cl check_pow_hid0
|
4849 | bd928eba | j_mayer | |
4850 | bd928eba | j_mayer | static void init_proc_750cl (CPUPPCState *env) |
4851 | bd928eba | j_mayer | { |
4852 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4853 | bd928eba | j_mayer | gen_spr_7xx(env); |
4854 | bd928eba | j_mayer | /* XXX : not implemented */
|
4855 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4856 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4857 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4858 | bd928eba | j_mayer | 0x00000000);
|
4859 | bd928eba | j_mayer | /* Time base */
|
4860 | bd928eba | j_mayer | gen_tbl(env); |
4861 | bd928eba | j_mayer | /* Thermal management */
|
4862 | bd928eba | j_mayer | /* Those registers are fake on 750CL */
|
4863 | bd928eba | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
4864 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4865 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4866 | bd928eba | j_mayer | 0x00000000);
|
4867 | bd928eba | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
4868 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4869 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4870 | bd928eba | j_mayer | 0x00000000);
|
4871 | bd928eba | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
4872 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4873 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4874 | bd928eba | j_mayer | 0x00000000);
|
4875 | bd928eba | j_mayer | /* XXX: not implemented */
|
4876 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCL, "TDCL",
|
4877 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4878 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4879 | bd928eba | j_mayer | 0x00000000);
|
4880 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCH, "TDCH",
|
4881 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4882 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4883 | bd928eba | j_mayer | 0x00000000);
|
4884 | bd928eba | j_mayer | /* DMA */
|
4885 | bd928eba | j_mayer | /* XXX : not implemented */
|
4886 | bd928eba | j_mayer | spr_register(env, SPR_750_WPAR, "WPAR",
|
4887 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4888 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4889 | bd928eba | j_mayer | 0x00000000);
|
4890 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAL, "DMAL",
|
4891 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4892 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4893 | bd928eba | j_mayer | 0x00000000);
|
4894 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAU, "DMAU",
|
4895 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4896 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4897 | bd928eba | j_mayer | 0x00000000);
|
4898 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4899 | bd928eba | j_mayer | /* XXX : not implemented */
|
4900 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4901 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4902 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4903 | bd928eba | j_mayer | 0x00000000);
|
4904 | bd928eba | j_mayer | /* XXX : not implemented */
|
4905 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4906 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4907 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4908 | bd928eba | j_mayer | 0x00000000);
|
4909 | bd928eba | j_mayer | /* XXX : not implemented */
|
4910 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID2, "HID2",
|
4911 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4912 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4913 | bd928eba | j_mayer | 0x00000000);
|
4914 | bd928eba | j_mayer | /* XXX : not implemented */
|
4915 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID4, "HID4",
|
4916 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4917 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4918 | bd928eba | j_mayer | 0x00000000);
|
4919 | bd928eba | j_mayer | /* Quantization registers */
|
4920 | bd928eba | j_mayer | /* XXX : not implemented */
|
4921 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR0, "GQR0",
|
4922 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4923 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4924 | bd928eba | j_mayer | 0x00000000);
|
4925 | bd928eba | j_mayer | /* XXX : not implemented */
|
4926 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR1, "GQR1",
|
4927 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4928 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4929 | bd928eba | j_mayer | 0x00000000);
|
4930 | bd928eba | j_mayer | /* XXX : not implemented */
|
4931 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR2, "GQR2",
|
4932 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4933 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4934 | bd928eba | j_mayer | 0x00000000);
|
4935 | bd928eba | j_mayer | /* XXX : not implemented */
|
4936 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR3, "GQR3",
|
4937 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4938 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4939 | bd928eba | j_mayer | 0x00000000);
|
4940 | bd928eba | j_mayer | /* XXX : not implemented */
|
4941 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR4, "GQR4",
|
4942 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4943 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4944 | bd928eba | j_mayer | 0x00000000);
|
4945 | bd928eba | j_mayer | /* XXX : not implemented */
|
4946 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR5, "GQR5",
|
4947 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4948 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4949 | bd928eba | j_mayer | 0x00000000);
|
4950 | bd928eba | j_mayer | /* XXX : not implemented */
|
4951 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR6, "GQR6",
|
4952 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4953 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4954 | bd928eba | j_mayer | 0x00000000);
|
4955 | bd928eba | j_mayer | /* XXX : not implemented */
|
4956 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR7, "GQR7",
|
4957 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4958 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4959 | bd928eba | j_mayer | 0x00000000);
|
4960 | bd928eba | j_mayer | /* Memory management */
|
4961 | bd928eba | j_mayer | gen_low_BATs(env); |
4962 | bd928eba | j_mayer | /* PowerPC 750cl has 8 DBATs and 8 IBATs */
|
4963 | bd928eba | j_mayer | gen_high_BATs(env); |
4964 | bd928eba | j_mayer | init_excp_750cl(env); |
4965 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4966 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4967 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4968 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4969 | bd928eba | j_mayer | } |
4970 | bd928eba | j_mayer | |
4971 | 4e777442 | j_mayer | /* PowerPC 750CX */
|
4972 | bd928eba | j_mayer | #define POWERPC_INSNS_750cx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4973 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4974 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4975 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4976 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4977 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4978 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4979 | bd928eba | j_mayer | #define POWERPC_MSRM_750cx (0x000000000005FF77ULL) |
4980 | bd928eba | j_mayer | #define POWERPC_MMU_750cx (POWERPC_MMU_32B)
|
4981 | bd928eba | j_mayer | #define POWERPC_EXCP_750cx (POWERPC_EXCP_7x0)
|
4982 | bd928eba | j_mayer | #define POWERPC_INPUT_750cx (PPC_FLAGS_INPUT_6xx)
|
4983 | bd928eba | j_mayer | #define POWERPC_BFDM_750cx (bfd_mach_ppc_750)
|
4984 | bd928eba | j_mayer | #define POWERPC_FLAG_750cx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4985 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4986 | bd928eba | j_mayer | #define check_pow_750cx check_pow_hid0
|
4987 | bd928eba | j_mayer | |
4988 | bd928eba | j_mayer | static void init_proc_750cx (CPUPPCState *env) |
4989 | bd928eba | j_mayer | { |
4990 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4991 | bd928eba | j_mayer | gen_spr_7xx(env); |
4992 | bd928eba | j_mayer | /* XXX : not implemented */
|
4993 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4994 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4995 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4996 | bd928eba | j_mayer | 0x00000000);
|
4997 | bd928eba | j_mayer | /* Time base */
|
4998 | bd928eba | j_mayer | gen_tbl(env); |
4999 | bd928eba | j_mayer | /* Thermal management */
|
5000 | bd928eba | j_mayer | gen_spr_thrm(env); |
5001 | bd928eba | j_mayer | /* This register is not implemented but is present for compatibility */
|
5002 | bd928eba | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
5003 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5004 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5005 | bd928eba | j_mayer | 0x00000000);
|
5006 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5007 | bd928eba | j_mayer | /* XXX : not implemented */
|
5008 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5009 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5010 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5011 | bd928eba | j_mayer | 0x00000000);
|
5012 | bd928eba | j_mayer | /* XXX : not implemented */
|
5013 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5014 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5015 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5016 | bd928eba | j_mayer | 0x00000000);
|
5017 | bd928eba | j_mayer | /* Memory management */
|
5018 | bd928eba | j_mayer | gen_low_BATs(env); |
5019 | 4e777442 | j_mayer | /* PowerPC 750cx has 8 DBATs and 8 IBATs */
|
5020 | 4e777442 | j_mayer | gen_high_BATs(env); |
5021 | bd928eba | j_mayer | init_excp_750cx(env); |
5022 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5023 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5024 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5025 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5026 | bd928eba | j_mayer | } |
5027 | bd928eba | j_mayer | |
5028 | bd928eba | j_mayer | /* PowerPC 750FX */
|
5029 | 082c6681 | j_mayer | #define POWERPC_INSNS_750fx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5030 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5031 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5032 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5033 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5034 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5035 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5036 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_750fx (0x000000000005FF77ULL) |
5037 | a750fc0b | j_mayer | #define POWERPC_MMU_750fx (POWERPC_MMU_32B)
|
5038 | a750fc0b | j_mayer | #define POWERPC_EXCP_750fx (POWERPC_EXCP_7x0)
|
5039 | a750fc0b | j_mayer | #define POWERPC_INPUT_750fx (PPC_FLAGS_INPUT_6xx)
|
5040 | 237c0af0 | j_mayer | #define POWERPC_BFDM_750fx (bfd_mach_ppc_750)
|
5041 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_750fx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5042 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5043 | 2f462816 | j_mayer | #define check_pow_750fx check_pow_hid0
|
5044 | a750fc0b | j_mayer | |
5045 | a750fc0b | j_mayer | static void init_proc_750fx (CPUPPCState *env) |
5046 | a750fc0b | j_mayer | { |
5047 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5048 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5049 | bd928eba | j_mayer | /* XXX : not implemented */
|
5050 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5051 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5052 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5053 | bd928eba | j_mayer | 0x00000000);
|
5054 | a750fc0b | j_mayer | /* Time base */
|
5055 | a750fc0b | j_mayer | gen_tbl(env); |
5056 | a750fc0b | j_mayer | /* Thermal management */
|
5057 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5058 | bd928eba | j_mayer | /* XXX : not implemented */
|
5059 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
5060 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5061 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5062 | bd928eba | j_mayer | 0x00000000);
|
5063 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5064 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5065 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5066 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5067 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5068 | a750fc0b | j_mayer | 0x00000000);
|
5069 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5070 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5071 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5072 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5073 | a750fc0b | j_mayer | 0x00000000);
|
5074 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5075 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5076 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5077 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5078 | a750fc0b | j_mayer | 0x00000000);
|
5079 | a750fc0b | j_mayer | /* Memory management */
|
5080 | a750fc0b | j_mayer | gen_low_BATs(env); |
5081 | a750fc0b | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
5082 | a750fc0b | j_mayer | gen_high_BATs(env); |
5083 | bd928eba | j_mayer | init_excp_7x0(env); |
5084 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5085 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5086 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5087 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5088 | a750fc0b | j_mayer | } |
5089 | a750fc0b | j_mayer | |
5090 | bd928eba | j_mayer | /* PowerPC 750GX */
|
5091 | bd928eba | j_mayer | #define POWERPC_INSNS_750gx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5092 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5093 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5094 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5095 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5096 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5097 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5098 | bd928eba | j_mayer | #define POWERPC_MSRM_750gx (0x000000000005FF77ULL) |
5099 | bd928eba | j_mayer | #define POWERPC_MMU_750gx (POWERPC_MMU_32B)
|
5100 | bd928eba | j_mayer | #define POWERPC_EXCP_750gx (POWERPC_EXCP_7x0)
|
5101 | bd928eba | j_mayer | #define POWERPC_INPUT_750gx (PPC_FLAGS_INPUT_6xx)
|
5102 | bd928eba | j_mayer | #define POWERPC_BFDM_750gx (bfd_mach_ppc_750)
|
5103 | bd928eba | j_mayer | #define POWERPC_FLAG_750gx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5104 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5105 | bd928eba | j_mayer | #define check_pow_750gx check_pow_hid0
|
5106 | bd928eba | j_mayer | |
5107 | bd928eba | j_mayer | static void init_proc_750gx (CPUPPCState *env) |
5108 | bd928eba | j_mayer | { |
5109 | bd928eba | j_mayer | gen_spr_ne_601(env); |
5110 | bd928eba | j_mayer | gen_spr_7xx(env); |
5111 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5112 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5113 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5114 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5115 | bd928eba | j_mayer | 0x00000000);
|
5116 | bd928eba | j_mayer | /* Time base */
|
5117 | bd928eba | j_mayer | gen_tbl(env); |
5118 | bd928eba | j_mayer | /* Thermal management */
|
5119 | bd928eba | j_mayer | gen_spr_thrm(env); |
5120 | bd928eba | j_mayer | /* XXX : not implemented */
|
5121 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
5122 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5123 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5124 | bd928eba | j_mayer | 0x00000000);
|
5125 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5126 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5127 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5128 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5129 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5130 | bd928eba | j_mayer | 0x00000000);
|
5131 | bd928eba | j_mayer | /* XXX : not implemented */
|
5132 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5133 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5134 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5135 | bd928eba | j_mayer | 0x00000000);
|
5136 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
5137 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5138 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5139 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5140 | bd928eba | j_mayer | 0x00000000);
|
5141 | bd928eba | j_mayer | /* Memory management */
|
5142 | bd928eba | j_mayer | gen_low_BATs(env); |
5143 | bd928eba | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
5144 | bd928eba | j_mayer | gen_high_BATs(env); |
5145 | bd928eba | j_mayer | init_excp_7x0(env); |
5146 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5147 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5148 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5149 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5150 | bd928eba | j_mayer | } |
5151 | bd928eba | j_mayer | |
5152 | bd928eba | j_mayer | /* PowerPC 745 */
|
5153 | bd928eba | j_mayer | #define POWERPC_INSNS_745 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5154 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5155 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5156 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5157 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5158 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5159 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5160 | bd928eba | j_mayer | #define POWERPC_MSRM_745 (0x000000000005FF77ULL) |
5161 | bd928eba | j_mayer | #define POWERPC_MMU_745 (POWERPC_MMU_SOFT_6xx)
|
5162 | bd928eba | j_mayer | #define POWERPC_EXCP_745 (POWERPC_EXCP_7x5)
|
5163 | bd928eba | j_mayer | #define POWERPC_INPUT_745 (PPC_FLAGS_INPUT_6xx)
|
5164 | bd928eba | j_mayer | #define POWERPC_BFDM_745 (bfd_mach_ppc_750)
|
5165 | bd928eba | j_mayer | #define POWERPC_FLAG_745 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5166 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5167 | bd928eba | j_mayer | #define check_pow_745 check_pow_hid0
|
5168 | bd928eba | j_mayer | |
5169 | bd928eba | j_mayer | static void init_proc_745 (CPUPPCState *env) |
5170 | bd928eba | j_mayer | { |
5171 | bd928eba | j_mayer | gen_spr_ne_601(env); |
5172 | bd928eba | j_mayer | gen_spr_7xx(env); |
5173 | bd928eba | j_mayer | gen_spr_G2_755(env); |
5174 | bd928eba | j_mayer | /* Time base */
|
5175 | bd928eba | j_mayer | gen_tbl(env); |
5176 | bd928eba | j_mayer | /* Thermal management */
|
5177 | bd928eba | j_mayer | gen_spr_thrm(env); |
5178 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5179 | bd928eba | j_mayer | /* XXX : not implemented */
|
5180 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5181 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5182 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5183 | bd928eba | j_mayer | 0x00000000);
|
5184 | bd928eba | j_mayer | /* XXX : not implemented */
|
5185 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5186 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5187 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5188 | bd928eba | j_mayer | 0x00000000);
|
5189 | bd928eba | j_mayer | /* XXX : not implemented */
|
5190 | bd928eba | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5191 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5192 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5193 | bd928eba | j_mayer | 0x00000000);
|
5194 | bd928eba | j_mayer | /* Memory management */
|
5195 | bd928eba | j_mayer | gen_low_BATs(env); |
5196 | bd928eba | j_mayer | gen_high_BATs(env); |
5197 | bd928eba | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5198 | bd928eba | j_mayer | init_excp_7x5(env); |
5199 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5200 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5201 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5202 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5203 | bd928eba | j_mayer | } |
5204 | bd928eba | j_mayer | |
5205 | bd928eba | j_mayer | /* PowerPC 755 */
|
5206 | bd928eba | j_mayer | #define POWERPC_INSNS_755 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5207 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5208 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5209 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5210 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5211 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5212 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5213 | bd928eba | j_mayer | #define POWERPC_MSRM_755 (0x000000000005FF77ULL) |
5214 | bd928eba | j_mayer | #define POWERPC_MMU_755 (POWERPC_MMU_SOFT_6xx)
|
5215 | bd928eba | j_mayer | #define POWERPC_EXCP_755 (POWERPC_EXCP_7x5)
|
5216 | bd928eba | j_mayer | #define POWERPC_INPUT_755 (PPC_FLAGS_INPUT_6xx)
|
5217 | bd928eba | j_mayer | #define POWERPC_BFDM_755 (bfd_mach_ppc_750)
|
5218 | bd928eba | j_mayer | #define POWERPC_FLAG_755 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5219 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5220 | bd928eba | j_mayer | #define check_pow_755 check_pow_hid0
|
5221 | a750fc0b | j_mayer | |
5222 | bd928eba | j_mayer | static void init_proc_755 (CPUPPCState *env) |
5223 | a750fc0b | j_mayer | { |
5224 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5225 | bd928eba | j_mayer | gen_spr_7xx(env); |
5226 | a750fc0b | j_mayer | gen_spr_G2_755(env); |
5227 | a750fc0b | j_mayer | /* Time base */
|
5228 | a750fc0b | j_mayer | gen_tbl(env); |
5229 | a750fc0b | j_mayer | /* L2 cache control */
|
5230 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5231 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5232 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5233 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5234 | a750fc0b | j_mayer | 0x00000000);
|
5235 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5236 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5237 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5238 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5239 | a750fc0b | j_mayer | 0x00000000);
|
5240 | bd928eba | j_mayer | /* Thermal management */
|
5241 | bd928eba | j_mayer | gen_spr_thrm(env); |
5242 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5243 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5244 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5245 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5246 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5247 | a750fc0b | j_mayer | 0x00000000);
|
5248 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5249 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5250 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5251 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5252 | a750fc0b | j_mayer | 0x00000000);
|
5253 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5254 | a750fc0b | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5255 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5256 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5257 | a750fc0b | j_mayer | 0x00000000);
|
5258 | a750fc0b | j_mayer | /* Memory management */
|
5259 | a750fc0b | j_mayer | gen_low_BATs(env); |
5260 | a750fc0b | j_mayer | gen_high_BATs(env); |
5261 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5262 | 7a3a6927 | j_mayer | init_excp_7x5(env); |
5263 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5264 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5265 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5266 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5267 | a750fc0b | j_mayer | } |
5268 | a750fc0b | j_mayer | |
5269 | a750fc0b | j_mayer | /* PowerPC 7400 (aka G4) */
|
5270 | 082c6681 | j_mayer | #define POWERPC_INSNS_7400 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5271 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5272 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5273 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5274 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5275 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5276 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5277 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5278 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5279 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5280 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5281 | a750fc0b | j_mayer | #define POWERPC_MSRM_7400 (0x000000000205FF77ULL) |
5282 | a750fc0b | j_mayer | #define POWERPC_MMU_7400 (POWERPC_MMU_32B)
|
5283 | a750fc0b | j_mayer | #define POWERPC_EXCP_7400 (POWERPC_EXCP_74xx)
|
5284 | a750fc0b | j_mayer | #define POWERPC_INPUT_7400 (PPC_FLAGS_INPUT_6xx)
|
5285 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7400 (bfd_mach_ppc_7400)
|
5286 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7400 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5287 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5288 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5289 | 488243b0 | Aurelien Jarno | #define check_pow_7400 check_pow_hid0
|
5290 | a750fc0b | j_mayer | |
5291 | a750fc0b | j_mayer | static void init_proc_7400 (CPUPPCState *env) |
5292 | a750fc0b | j_mayer | { |
5293 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5294 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5295 | a750fc0b | j_mayer | /* Time base */
|
5296 | a750fc0b | j_mayer | gen_tbl(env); |
5297 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5298 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5299 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5300 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5301 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5302 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5303 | 4e777442 | j_mayer | 0x00000000);
|
5304 | 4e777442 | j_mayer | /* XXX: this seems not implemented on all revisions. */
|
5305 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5306 | 4e777442 | j_mayer | spr_register(env, SPR_MSSCR1, "MSSCR1",
|
5307 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5308 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5309 | 4e777442 | j_mayer | 0x00000000);
|
5310 | a750fc0b | j_mayer | /* Thermal management */
|
5311 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5312 | a750fc0b | j_mayer | /* Memory management */
|
5313 | a750fc0b | j_mayer | gen_low_BATs(env); |
5314 | e1833e1f | j_mayer | init_excp_7400(env); |
5315 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5316 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5317 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5318 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5319 | a750fc0b | j_mayer | } |
5320 | a750fc0b | j_mayer | |
5321 | a750fc0b | j_mayer | /* PowerPC 7410 (aka G4) */
|
5322 | 082c6681 | j_mayer | #define POWERPC_INSNS_7410 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5323 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5324 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5325 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5326 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5327 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5328 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5329 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5330 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5331 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5332 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5333 | a750fc0b | j_mayer | #define POWERPC_MSRM_7410 (0x000000000205FF77ULL) |
5334 | a750fc0b | j_mayer | #define POWERPC_MMU_7410 (POWERPC_MMU_32B)
|
5335 | a750fc0b | j_mayer | #define POWERPC_EXCP_7410 (POWERPC_EXCP_74xx)
|
5336 | a750fc0b | j_mayer | #define POWERPC_INPUT_7410 (PPC_FLAGS_INPUT_6xx)
|
5337 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7410 (bfd_mach_ppc_7400)
|
5338 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7410 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5339 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5340 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5341 | 488243b0 | Aurelien Jarno | #define check_pow_7410 check_pow_hid0
|
5342 | a750fc0b | j_mayer | |
5343 | a750fc0b | j_mayer | static void init_proc_7410 (CPUPPCState *env) |
5344 | a750fc0b | j_mayer | { |
5345 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5346 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5347 | a750fc0b | j_mayer | /* Time base */
|
5348 | a750fc0b | j_mayer | gen_tbl(env); |
5349 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5350 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5351 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5352 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5353 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5354 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5355 | 4e777442 | j_mayer | 0x00000000);
|
5356 | a750fc0b | j_mayer | /* Thermal management */
|
5357 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5358 | a750fc0b | j_mayer | /* L2PMCR */
|
5359 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5360 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5361 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5362 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5363 | a750fc0b | j_mayer | 0x00000000);
|
5364 | a750fc0b | j_mayer | /* LDSTDB */
|
5365 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5366 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTDB, "LDSTDB",
|
5367 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5368 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5369 | a750fc0b | j_mayer | 0x00000000);
|
5370 | a750fc0b | j_mayer | /* Memory management */
|
5371 | a750fc0b | j_mayer | gen_low_BATs(env); |
5372 | e1833e1f | j_mayer | init_excp_7400(env); |
5373 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5374 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5375 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5376 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5377 | a750fc0b | j_mayer | } |
5378 | a750fc0b | j_mayer | |
5379 | a750fc0b | j_mayer | /* PowerPC 7440 (aka G4) */
|
5380 | 082c6681 | j_mayer | #define POWERPC_INSNS_7440 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5381 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5382 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5383 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5384 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5385 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5386 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5387 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5388 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5389 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5390 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5391 | a750fc0b | j_mayer | #define POWERPC_MSRM_7440 (0x000000000205FF77ULL) |
5392 | a750fc0b | j_mayer | #define POWERPC_MMU_7440 (POWERPC_MMU_SOFT_74xx)
|
5393 | a750fc0b | j_mayer | #define POWERPC_EXCP_7440 (POWERPC_EXCP_74xx)
|
5394 | a750fc0b | j_mayer | #define POWERPC_INPUT_7440 (PPC_FLAGS_INPUT_6xx)
|
5395 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7440 (bfd_mach_ppc_7400)
|
5396 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7440 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5397 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5398 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5399 | 4e777442 | j_mayer | #define check_pow_7440 check_pow_hid0_74xx
|
5400 | a750fc0b | j_mayer | |
5401 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5402 | a750fc0b | j_mayer | static void init_proc_7440 (CPUPPCState *env) |
5403 | a750fc0b | j_mayer | { |
5404 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5405 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5406 | a750fc0b | j_mayer | /* Time base */
|
5407 | a750fc0b | j_mayer | gen_tbl(env); |
5408 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5409 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5410 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5411 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5412 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5413 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5414 | 4e777442 | j_mayer | 0x00000000);
|
5415 | a750fc0b | j_mayer | /* LDSTCR */
|
5416 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5417 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5418 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5419 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5420 | a750fc0b | j_mayer | 0x00000000);
|
5421 | a750fc0b | j_mayer | /* ICTRL */
|
5422 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5423 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5424 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5425 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5426 | a750fc0b | j_mayer | 0x00000000);
|
5427 | a750fc0b | j_mayer | /* MSSSR0 */
|
5428 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5429 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5430 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5431 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5432 | a750fc0b | j_mayer | 0x00000000);
|
5433 | a750fc0b | j_mayer | /* PMC */
|
5434 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5435 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5436 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5437 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5438 | a750fc0b | j_mayer | 0x00000000);
|
5439 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5440 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5441 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5442 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5443 | a750fc0b | j_mayer | 0x00000000);
|
5444 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5445 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5446 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5447 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5448 | a750fc0b | j_mayer | 0x00000000);
|
5449 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5450 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5451 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5452 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5453 | a750fc0b | j_mayer | 0x00000000);
|
5454 | a750fc0b | j_mayer | /* Memory management */
|
5455 | a750fc0b | j_mayer | gen_low_BATs(env); |
5456 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5457 | 1c27f8fb | j_mayer | init_excp_7450(env); |
5458 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5459 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5460 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5461 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5462 | a750fc0b | j_mayer | } |
5463 | a750fc0b | j_mayer | |
5464 | a750fc0b | j_mayer | /* PowerPC 7450 (aka G4) */
|
5465 | 082c6681 | j_mayer | #define POWERPC_INSNS_7450 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5466 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5467 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5468 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5469 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5470 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5471 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5472 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5473 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5474 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5475 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5476 | a750fc0b | j_mayer | #define POWERPC_MSRM_7450 (0x000000000205FF77ULL) |
5477 | a750fc0b | j_mayer | #define POWERPC_MMU_7450 (POWERPC_MMU_SOFT_74xx)
|
5478 | a750fc0b | j_mayer | #define POWERPC_EXCP_7450 (POWERPC_EXCP_74xx)
|
5479 | a750fc0b | j_mayer | #define POWERPC_INPUT_7450 (PPC_FLAGS_INPUT_6xx)
|
5480 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7450 (bfd_mach_ppc_7400)
|
5481 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7450 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5482 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5483 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5484 | 4e777442 | j_mayer | #define check_pow_7450 check_pow_hid0_74xx
|
5485 | a750fc0b | j_mayer | |
5486 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5487 | a750fc0b | j_mayer | static void init_proc_7450 (CPUPPCState *env) |
5488 | a750fc0b | j_mayer | { |
5489 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5490 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5491 | a750fc0b | j_mayer | /* Time base */
|
5492 | a750fc0b | j_mayer | gen_tbl(env); |
5493 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5494 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5495 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5496 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5497 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5498 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5499 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5500 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5501 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5502 | 4e777442 | j_mayer | 0x00000000);
|
5503 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5504 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5505 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5506 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5507 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5508 | 4e777442 | j_mayer | 0x00000000);
|
5509 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5510 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5511 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5512 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5513 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5514 | 4e777442 | j_mayer | 0x00000000);
|
5515 | 4e777442 | j_mayer | /* L3OHCR */
|
5516 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5517 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5518 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5519 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5520 | 4e777442 | j_mayer | 0x00000000);
|
5521 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5522 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5523 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5524 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5525 | 4e777442 | j_mayer | 0x00000000);
|
5526 | a750fc0b | j_mayer | /* LDSTCR */
|
5527 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5528 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5529 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5530 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5531 | a750fc0b | j_mayer | 0x00000000);
|
5532 | a750fc0b | j_mayer | /* ICTRL */
|
5533 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5534 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5535 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5536 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5537 | a750fc0b | j_mayer | 0x00000000);
|
5538 | a750fc0b | j_mayer | /* MSSSR0 */
|
5539 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5540 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5541 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5542 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5543 | a750fc0b | j_mayer | 0x00000000);
|
5544 | a750fc0b | j_mayer | /* PMC */
|
5545 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5546 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5547 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5548 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5549 | a750fc0b | j_mayer | 0x00000000);
|
5550 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5551 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5552 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5553 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5554 | a750fc0b | j_mayer | 0x00000000);
|
5555 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5556 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5557 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5558 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5559 | a750fc0b | j_mayer | 0x00000000);
|
5560 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5561 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5562 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5563 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5564 | a750fc0b | j_mayer | 0x00000000);
|
5565 | a750fc0b | j_mayer | /* Memory management */
|
5566 | a750fc0b | j_mayer | gen_low_BATs(env); |
5567 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5568 | e1833e1f | j_mayer | init_excp_7450(env); |
5569 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5570 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5571 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5572 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5573 | a750fc0b | j_mayer | } |
5574 | a750fc0b | j_mayer | |
5575 | a750fc0b | j_mayer | /* PowerPC 7445 (aka G4) */
|
5576 | 082c6681 | j_mayer | #define POWERPC_INSNS_7445 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5577 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5578 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5579 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5580 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5581 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5582 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5583 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5584 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5585 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5586 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5587 | a750fc0b | j_mayer | #define POWERPC_MSRM_7445 (0x000000000205FF77ULL) |
5588 | a750fc0b | j_mayer | #define POWERPC_MMU_7445 (POWERPC_MMU_SOFT_74xx)
|
5589 | a750fc0b | j_mayer | #define POWERPC_EXCP_7445 (POWERPC_EXCP_74xx)
|
5590 | a750fc0b | j_mayer | #define POWERPC_INPUT_7445 (PPC_FLAGS_INPUT_6xx)
|
5591 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7445 (bfd_mach_ppc_7400)
|
5592 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7445 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5593 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5594 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5595 | 4e777442 | j_mayer | #define check_pow_7445 check_pow_hid0_74xx
|
5596 | a750fc0b | j_mayer | |
5597 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5598 | a750fc0b | j_mayer | static void init_proc_7445 (CPUPPCState *env) |
5599 | a750fc0b | j_mayer | { |
5600 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5601 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5602 | a750fc0b | j_mayer | /* Time base */
|
5603 | a750fc0b | j_mayer | gen_tbl(env); |
5604 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5605 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5606 | a750fc0b | j_mayer | /* LDSTCR */
|
5607 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5608 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5609 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5610 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5611 | a750fc0b | j_mayer | 0x00000000);
|
5612 | a750fc0b | j_mayer | /* ICTRL */
|
5613 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5614 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5615 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5616 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5617 | a750fc0b | j_mayer | 0x00000000);
|
5618 | a750fc0b | j_mayer | /* MSSSR0 */
|
5619 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5620 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5621 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5622 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5623 | a750fc0b | j_mayer | 0x00000000);
|
5624 | a750fc0b | j_mayer | /* PMC */
|
5625 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5626 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5627 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5628 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5629 | a750fc0b | j_mayer | 0x00000000);
|
5630 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5631 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5632 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5633 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5634 | a750fc0b | j_mayer | 0x00000000);
|
5635 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5636 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5637 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5638 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5639 | a750fc0b | j_mayer | 0x00000000);
|
5640 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5641 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5642 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5643 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5644 | a750fc0b | j_mayer | 0x00000000);
|
5645 | a750fc0b | j_mayer | /* SPRGs */
|
5646 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5647 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5648 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5649 | a750fc0b | j_mayer | 0x00000000);
|
5650 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5651 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5652 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5653 | a750fc0b | j_mayer | 0x00000000);
|
5654 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5655 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5656 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5657 | a750fc0b | j_mayer | 0x00000000);
|
5658 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5659 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5660 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5661 | a750fc0b | j_mayer | 0x00000000);
|
5662 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5663 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5664 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5665 | a750fc0b | j_mayer | 0x00000000);
|
5666 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5667 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5668 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5669 | a750fc0b | j_mayer | 0x00000000);
|
5670 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5671 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5672 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5673 | a750fc0b | j_mayer | 0x00000000);
|
5674 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5675 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5676 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5677 | a750fc0b | j_mayer | 0x00000000);
|
5678 | a750fc0b | j_mayer | /* Memory management */
|
5679 | a750fc0b | j_mayer | gen_low_BATs(env); |
5680 | a750fc0b | j_mayer | gen_high_BATs(env); |
5681 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5682 | e1833e1f | j_mayer | init_excp_7450(env); |
5683 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5684 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5685 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5686 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5687 | a750fc0b | j_mayer | } |
5688 | a750fc0b | j_mayer | |
5689 | a750fc0b | j_mayer | /* PowerPC 7455 (aka G4) */
|
5690 | 082c6681 | j_mayer | #define POWERPC_INSNS_7455 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5691 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5692 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5693 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5694 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5695 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5696 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5697 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5698 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5699 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5700 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5701 | a750fc0b | j_mayer | #define POWERPC_MSRM_7455 (0x000000000205FF77ULL) |
5702 | a750fc0b | j_mayer | #define POWERPC_MMU_7455 (POWERPC_MMU_SOFT_74xx)
|
5703 | a750fc0b | j_mayer | #define POWERPC_EXCP_7455 (POWERPC_EXCP_74xx)
|
5704 | a750fc0b | j_mayer | #define POWERPC_INPUT_7455 (PPC_FLAGS_INPUT_6xx)
|
5705 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7455 (bfd_mach_ppc_7400)
|
5706 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7455 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5707 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5708 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5709 | 4e777442 | j_mayer | #define check_pow_7455 check_pow_hid0_74xx
|
5710 | a750fc0b | j_mayer | |
5711 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5712 | a750fc0b | j_mayer | static void init_proc_7455 (CPUPPCState *env) |
5713 | a750fc0b | j_mayer | { |
5714 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5715 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5716 | a750fc0b | j_mayer | /* Time base */
|
5717 | a750fc0b | j_mayer | gen_tbl(env); |
5718 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5719 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5720 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5721 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5722 | a750fc0b | j_mayer | /* LDSTCR */
|
5723 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5724 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5725 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5726 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5727 | a750fc0b | j_mayer | 0x00000000);
|
5728 | a750fc0b | j_mayer | /* ICTRL */
|
5729 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5730 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5731 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5732 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5733 | a750fc0b | j_mayer | 0x00000000);
|
5734 | a750fc0b | j_mayer | /* MSSSR0 */
|
5735 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5736 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5737 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5738 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5739 | a750fc0b | j_mayer | 0x00000000);
|
5740 | a750fc0b | j_mayer | /* PMC */
|
5741 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5742 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5743 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5744 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5745 | a750fc0b | j_mayer | 0x00000000);
|
5746 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5747 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5748 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5749 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5750 | a750fc0b | j_mayer | 0x00000000);
|
5751 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5752 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5753 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5754 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5755 | a750fc0b | j_mayer | 0x00000000);
|
5756 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5757 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5758 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5759 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5760 | a750fc0b | j_mayer | 0x00000000);
|
5761 | a750fc0b | j_mayer | /* SPRGs */
|
5762 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5763 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5764 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5765 | a750fc0b | j_mayer | 0x00000000);
|
5766 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5767 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5768 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5769 | a750fc0b | j_mayer | 0x00000000);
|
5770 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5771 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5772 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5773 | a750fc0b | j_mayer | 0x00000000);
|
5774 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5775 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5776 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5777 | a750fc0b | j_mayer | 0x00000000);
|
5778 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5779 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5780 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5781 | a750fc0b | j_mayer | 0x00000000);
|
5782 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5783 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5784 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5785 | a750fc0b | j_mayer | 0x00000000);
|
5786 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5787 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5788 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5789 | a750fc0b | j_mayer | 0x00000000);
|
5790 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5791 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5792 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5793 | a750fc0b | j_mayer | 0x00000000);
|
5794 | a750fc0b | j_mayer | /* Memory management */
|
5795 | a750fc0b | j_mayer | gen_low_BATs(env); |
5796 | a750fc0b | j_mayer | gen_high_BATs(env); |
5797 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5798 | e1833e1f | j_mayer | init_excp_7450(env); |
5799 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5800 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5801 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5802 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5803 | a750fc0b | j_mayer | } |
5804 | a750fc0b | j_mayer | |
5805 | 4e777442 | j_mayer | /* PowerPC 7457 (aka G4) */
|
5806 | 4e777442 | j_mayer | #define POWERPC_INSNS_7457 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5807 | 4e777442 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5808 | 4e777442 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5809 | 4e777442 | j_mayer | PPC_FLOAT_STFIWX | \ |
5810 | 4e777442 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5811 | 4e777442 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5812 | 4e777442 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5813 | 4e777442 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5814 | 4e777442 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5815 | 4e777442 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5816 | 4e777442 | j_mayer | PPC_ALTIVEC) |
5817 | 4e777442 | j_mayer | #define POWERPC_MSRM_7457 (0x000000000205FF77ULL) |
5818 | 4e777442 | j_mayer | #define POWERPC_MMU_7457 (POWERPC_MMU_SOFT_74xx)
|
5819 | 4e777442 | j_mayer | #define POWERPC_EXCP_7457 (POWERPC_EXCP_74xx)
|
5820 | 4e777442 | j_mayer | #define POWERPC_INPUT_7457 (PPC_FLAGS_INPUT_6xx)
|
5821 | 4e777442 | j_mayer | #define POWERPC_BFDM_7457 (bfd_mach_ppc_7400)
|
5822 | 4e777442 | j_mayer | #define POWERPC_FLAG_7457 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5823 | 4e777442 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5824 | 4e777442 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5825 | 4e777442 | j_mayer | #define check_pow_7457 check_pow_hid0_74xx
|
5826 | 4e777442 | j_mayer | |
5827 | 4e777442 | j_mayer | __attribute__ (( unused )) |
5828 | 4e777442 | j_mayer | static void init_proc_7457 (CPUPPCState *env) |
5829 | 4e777442 | j_mayer | { |
5830 | 4e777442 | j_mayer | gen_spr_ne_601(env); |
5831 | 4e777442 | j_mayer | gen_spr_7xx(env); |
5832 | 4e777442 | j_mayer | /* Time base */
|
5833 | 4e777442 | j_mayer | gen_tbl(env); |
5834 | 4e777442 | j_mayer | /* 74xx specific SPR */
|
5835 | 4e777442 | j_mayer | gen_spr_74xx(env); |
5836 | 4e777442 | j_mayer | /* Level 3 cache control */
|
5837 | 4e777442 | j_mayer | gen_l3_ctrl(env); |
5838 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5839 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5840 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5841 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5842 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5843 | 4e777442 | j_mayer | 0x00000000);
|
5844 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5845 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5846 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5847 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5848 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5849 | 4e777442 | j_mayer | 0x00000000);
|
5850 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5851 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5852 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5853 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5854 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5855 | 4e777442 | j_mayer | 0x00000000);
|
5856 | 4e777442 | j_mayer | /* L3OHCR */
|
5857 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5858 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5859 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5860 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5861 | 4e777442 | j_mayer | 0x00000000);
|
5862 | 4e777442 | j_mayer | /* LDSTCR */
|
5863 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5864 | 4e777442 | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5865 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5866 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5867 | 4e777442 | j_mayer | 0x00000000);
|
5868 | 4e777442 | j_mayer | /* ICTRL */
|
5869 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5870 | 4e777442 | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5871 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5872 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5873 | 4e777442 | j_mayer | 0x00000000);
|
5874 | 4e777442 | j_mayer | /* MSSSR0 */
|
5875 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5876 | 4e777442 | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5877 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5878 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5879 | 4e777442 | j_mayer | 0x00000000);
|
5880 | 4e777442 | j_mayer | /* PMC */
|
5881 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5882 | 4e777442 | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5883 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5884 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5885 | 4e777442 | j_mayer | 0x00000000);
|
5886 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5887 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5888 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5889 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5890 | 4e777442 | j_mayer | 0x00000000);
|
5891 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5892 | 4e777442 | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5893 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5894 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5895 | 4e777442 | j_mayer | 0x00000000);
|
5896 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5897 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5898 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5899 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5900 | 4e777442 | j_mayer | 0x00000000);
|
5901 | 4e777442 | j_mayer | /* SPRGs */
|
5902 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5903 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5904 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5905 | 4e777442 | j_mayer | 0x00000000);
|
5906 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5907 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5908 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5909 | 4e777442 | j_mayer | 0x00000000);
|
5910 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5911 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5912 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5913 | 4e777442 | j_mayer | 0x00000000);
|
5914 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5915 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5916 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5917 | 4e777442 | j_mayer | 0x00000000);
|
5918 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5919 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5920 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5921 | 4e777442 | j_mayer | 0x00000000);
|
5922 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5923 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5924 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5925 | 4e777442 | j_mayer | 0x00000000);
|
5926 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5927 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5928 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5929 | 4e777442 | j_mayer | 0x00000000);
|
5930 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5931 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5932 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5933 | 4e777442 | j_mayer | 0x00000000);
|
5934 | 4e777442 | j_mayer | /* Memory management */
|
5935 | 4e777442 | j_mayer | gen_low_BATs(env); |
5936 | 4e777442 | j_mayer | gen_high_BATs(env); |
5937 | 4e777442 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5938 | 4e777442 | j_mayer | init_excp_7450(env); |
5939 | 4e777442 | j_mayer | env->dcache_line_size = 32;
|
5940 | 4e777442 | j_mayer | env->icache_line_size = 32;
|
5941 | 4e777442 | j_mayer | /* Allocate hardware IRQ controller */
|
5942 | 4e777442 | j_mayer | ppc6xx_irq_init(env); |
5943 | 4e777442 | j_mayer | } |
5944 | 4e777442 | j_mayer | |
5945 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
5946 | a750fc0b | j_mayer | /* PowerPC 970 */
|
5947 | 082c6681 | j_mayer | #define POWERPC_INSNS_970 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5948 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5949 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5950 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5951 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5952 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5953 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5954 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5955 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5956 | a750fc0b | j_mayer | #define POWERPC_MSRM_970 (0x900000000204FF36ULL) |
5957 | 12de9a39 | j_mayer | #define POWERPC_MMU_970 (POWERPC_MMU_64B)
|
5958 | a750fc0b | j_mayer | //#define POWERPC_EXCP_970 (POWERPC_EXCP_970)
|
5959 | a750fc0b | j_mayer | #define POWERPC_INPUT_970 (PPC_FLAGS_INPUT_970)
|
5960 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970 (bfd_mach_ppc64)
|
5961 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5962 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5963 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5964 | a750fc0b | j_mayer | |
5965 | 417bf010 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
5966 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000080 |
5967 | 417bf010 | j_mayer | #else
|
5968 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000000 |
5969 | 417bf010 | j_mayer | #endif
|
5970 | 417bf010 | j_mayer | |
5971 | 2f462816 | j_mayer | static int check_pow_970 (CPUPPCState *env) |
5972 | 2f462816 | j_mayer | { |
5973 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
5974 | 2f462816 | j_mayer | return 1; |
5975 | 2f462816 | j_mayer | |
5976 | 2f462816 | j_mayer | return 0; |
5977 | 2f462816 | j_mayer | } |
5978 | 2f462816 | j_mayer | |
5979 | a750fc0b | j_mayer | static void init_proc_970 (CPUPPCState *env) |
5980 | a750fc0b | j_mayer | { |
5981 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5982 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5983 | a750fc0b | j_mayer | /* Time base */
|
5984 | a750fc0b | j_mayer | gen_tbl(env); |
5985 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5986 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5987 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5988 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5989 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
5990 | d63001d1 | j_mayer | 0x60000000);
|
5991 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5992 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5993 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5994 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5995 | a750fc0b | j_mayer | 0x00000000);
|
5996 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5997 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5998 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5999 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6000 | a750fc0b | j_mayer | 0x00000000);
|
6001 | e57448f1 | j_mayer | /* XXX : not implemented */
|
6002 | e57448f1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6003 | e57448f1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6004 | e57448f1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6005 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6006 | bd928eba | j_mayer | /* XXX : not implemented */
|
6007 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6008 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6009 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6010 | bd928eba | j_mayer | 0x00000000);
|
6011 | a750fc0b | j_mayer | /* Memory management */
|
6012 | a750fc0b | j_mayer | /* XXX: not correct */
|
6013 | a750fc0b | j_mayer | gen_low_BATs(env); |
6014 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6015 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6016 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6017 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6018 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6019 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6020 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6021 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6022 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6023 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6024 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6025 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6026 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6027 | 2adab7d6 | blueswir1 | 0x00000000);
|
6028 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6029 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
6030 | f2e63a42 | j_mayer | #endif
|
6031 | e1833e1f | j_mayer | init_excp_970(env); |
6032 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6033 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6034 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6035 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6036 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6037 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6038 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6039 | a750fc0b | j_mayer | } |
6040 | a750fc0b | j_mayer | |
6041 | a750fc0b | j_mayer | /* PowerPC 970FX (aka G5) */
|
6042 | 082c6681 | j_mayer | #define POWERPC_INSNS_970FX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6043 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6044 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6045 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6046 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6047 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6048 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6049 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6050 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6051 | a750fc0b | j_mayer | #define POWERPC_MSRM_970FX (0x800000000204FF36ULL) |
6052 | 12de9a39 | j_mayer | #define POWERPC_MMU_970FX (POWERPC_MMU_64B)
|
6053 | a750fc0b | j_mayer | #define POWERPC_EXCP_970FX (POWERPC_EXCP_970)
|
6054 | a750fc0b | j_mayer | #define POWERPC_INPUT_970FX (PPC_FLAGS_INPUT_970)
|
6055 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970FX (bfd_mach_ppc64)
|
6056 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970FX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6057 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6058 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6059 | a750fc0b | j_mayer | |
6060 | 2f462816 | j_mayer | static int check_pow_970FX (CPUPPCState *env) |
6061 | 2f462816 | j_mayer | { |
6062 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
6063 | 2f462816 | j_mayer | return 1; |
6064 | 2f462816 | j_mayer | |
6065 | 2f462816 | j_mayer | return 0; |
6066 | 2f462816 | j_mayer | } |
6067 | 2f462816 | j_mayer | |
6068 | a750fc0b | j_mayer | static void init_proc_970FX (CPUPPCState *env) |
6069 | a750fc0b | j_mayer | { |
6070 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6071 | a750fc0b | j_mayer | gen_spr_7xx(env); |
6072 | a750fc0b | j_mayer | /* Time base */
|
6073 | a750fc0b | j_mayer | gen_tbl(env); |
6074 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6075 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6076 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6077 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6078 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
6079 | d63001d1 | j_mayer | 0x60000000);
|
6080 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6081 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6082 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6083 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6084 | a750fc0b | j_mayer | 0x00000000);
|
6085 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6086 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6087 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6088 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6089 | a750fc0b | j_mayer | 0x00000000);
|
6090 | d63001d1 | j_mayer | /* XXX : not implemented */
|
6091 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6092 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6093 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6094 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6095 | bd928eba | j_mayer | /* XXX : not implemented */
|
6096 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6097 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6098 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6099 | bd928eba | j_mayer | 0x00000000);
|
6100 | a750fc0b | j_mayer | /* Memory management */
|
6101 | a750fc0b | j_mayer | /* XXX: not correct */
|
6102 | a750fc0b | j_mayer | gen_low_BATs(env); |
6103 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6104 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6105 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6106 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6107 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6108 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6109 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6110 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6111 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6112 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6113 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6114 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6115 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6116 | 2adab7d6 | blueswir1 | 0x00000000);
|
6117 | 4e98d8cf | blueswir1 | spr_register(env, SPR_CTRL, "SPR_CTRL",
|
6118 | 4e98d8cf | blueswir1 | SPR_NOACCESS, SPR_NOACCESS, |
6119 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6120 | 4e98d8cf | blueswir1 | 0x00000000);
|
6121 | 4e98d8cf | blueswir1 | spr_register(env, SPR_UCTRL, "SPR_UCTRL",
|
6122 | 4e98d8cf | blueswir1 | SPR_NOACCESS, SPR_NOACCESS, |
6123 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6124 | 4e98d8cf | blueswir1 | 0x00000000);
|
6125 | 4e98d8cf | blueswir1 | spr_register(env, SPR_VRSAVE, "SPR_VRSAVE",
|
6126 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6127 | 4e98d8cf | blueswir1 | &spr_read_generic, &spr_write_generic, |
6128 | 4e98d8cf | blueswir1 | 0x00000000);
|
6129 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6130 | 8eee0af9 | blueswir1 | env->slb_nr = 64;
|
6131 | f2e63a42 | j_mayer | #endif
|
6132 | e1833e1f | j_mayer | init_excp_970(env); |
6133 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6134 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6135 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6136 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6137 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6138 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6139 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6140 | a750fc0b | j_mayer | } |
6141 | a750fc0b | j_mayer | |
6142 | a750fc0b | j_mayer | /* PowerPC 970 GX */
|
6143 | 082c6681 | j_mayer | #define POWERPC_INSNS_970GX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6144 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6145 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6146 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6147 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6148 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6149 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6150 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6151 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6152 | a750fc0b | j_mayer | #define POWERPC_MSRM_970GX (0x800000000204FF36ULL) |
6153 | 12de9a39 | j_mayer | #define POWERPC_MMU_970GX (POWERPC_MMU_64B)
|
6154 | a750fc0b | j_mayer | #define POWERPC_EXCP_970GX (POWERPC_EXCP_970)
|
6155 | a750fc0b | j_mayer | #define POWERPC_INPUT_970GX (PPC_FLAGS_INPUT_970)
|
6156 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970GX (bfd_mach_ppc64)
|
6157 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970GX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6158 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6159 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6160 | a750fc0b | j_mayer | |
6161 | 2f462816 | j_mayer | static int check_pow_970GX (CPUPPCState *env) |
6162 | 2f462816 | j_mayer | { |
6163 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
6164 | 2f462816 | j_mayer | return 1; |
6165 | 2f462816 | j_mayer | |
6166 | 2f462816 | j_mayer | return 0; |
6167 | 2f462816 | j_mayer | } |
6168 | 2f462816 | j_mayer | |
6169 | a750fc0b | j_mayer | static void init_proc_970GX (CPUPPCState *env) |
6170 | a750fc0b | j_mayer | { |
6171 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6172 | a750fc0b | j_mayer | gen_spr_7xx(env); |
6173 | a750fc0b | j_mayer | /* Time base */
|
6174 | a750fc0b | j_mayer | gen_tbl(env); |
6175 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6176 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6177 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6178 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6179 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
6180 | d63001d1 | j_mayer | 0x60000000);
|
6181 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6182 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6183 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6184 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6185 | a750fc0b | j_mayer | 0x00000000);
|
6186 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6187 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6188 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6189 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6190 | a750fc0b | j_mayer | 0x00000000);
|
6191 | d63001d1 | j_mayer | /* XXX : not implemented */
|
6192 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6193 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6194 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6195 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6196 | bd928eba | j_mayer | /* XXX : not implemented */
|
6197 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6198 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6199 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6200 | bd928eba | j_mayer | 0x00000000);
|
6201 | a750fc0b | j_mayer | /* Memory management */
|
6202 | a750fc0b | j_mayer | /* XXX: not correct */
|
6203 | a750fc0b | j_mayer | gen_low_BATs(env); |
6204 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6205 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6206 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6207 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6208 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6209 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6210 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6211 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6212 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6213 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6214 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6215 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6216 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6217 | 2adab7d6 | blueswir1 | 0x00000000);
|
6218 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6219 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
6220 | f2e63a42 | j_mayer | #endif
|
6221 | e1833e1f | j_mayer | init_excp_970(env); |
6222 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6223 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6224 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6225 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6226 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6227 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6228 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6229 | a750fc0b | j_mayer | } |
6230 | a750fc0b | j_mayer | |
6231 | 2f462816 | j_mayer | /* PowerPC 970 MP */
|
6232 | 082c6681 | j_mayer | #define POWERPC_INSNS_970MP (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6233 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6234 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6235 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6236 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6237 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6238 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6239 | 2f462816 | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6240 | 2f462816 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6241 | 2f462816 | j_mayer | #define POWERPC_MSRM_970MP (0x900000000204FF36ULL) |
6242 | 2f462816 | j_mayer | #define POWERPC_MMU_970MP (POWERPC_MMU_64B)
|
6243 | 2f462816 | j_mayer | #define POWERPC_EXCP_970MP (POWERPC_EXCP_970)
|
6244 | 2f462816 | j_mayer | #define POWERPC_INPUT_970MP (PPC_FLAGS_INPUT_970)
|
6245 | 2f462816 | j_mayer | #define POWERPC_BFDM_970MP (bfd_mach_ppc64)
|
6246 | 2f462816 | j_mayer | #define POWERPC_FLAG_970MP (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6247 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6248 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6249 | 2f462816 | j_mayer | |
6250 | 2f462816 | j_mayer | static int check_pow_970MP (CPUPPCState *env) |
6251 | 2f462816 | j_mayer | { |
6252 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x01C00000) |
6253 | 2f462816 | j_mayer | return 1; |
6254 | 2f462816 | j_mayer | |
6255 | 2f462816 | j_mayer | return 0; |
6256 | 2f462816 | j_mayer | } |
6257 | 2f462816 | j_mayer | |
6258 | 2f462816 | j_mayer | static void init_proc_970MP (CPUPPCState *env) |
6259 | 2f462816 | j_mayer | { |
6260 | 2f462816 | j_mayer | gen_spr_ne_601(env); |
6261 | 2f462816 | j_mayer | gen_spr_7xx(env); |
6262 | 2f462816 | j_mayer | /* Time base */
|
6263 | 2f462816 | j_mayer | gen_tbl(env); |
6264 | 2f462816 | j_mayer | /* Hardware implementation registers */
|
6265 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6266 | 2f462816 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6267 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6268 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_clear, |
6269 | 2f462816 | j_mayer | 0x60000000);
|
6270 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6271 | 2f462816 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6272 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6273 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6274 | 2f462816 | j_mayer | 0x00000000);
|
6275 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6276 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6277 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6278 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6279 | 2f462816 | j_mayer | 0x00000000);
|
6280 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6281 | 2f462816 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6282 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6283 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6284 | 2f462816 | j_mayer | POWERPC970_HID5_INIT); |
6285 | bd928eba | j_mayer | /* XXX : not implemented */
|
6286 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6287 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6288 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6289 | bd928eba | j_mayer | 0x00000000);
|
6290 | 2f462816 | j_mayer | /* Memory management */
|
6291 | 2f462816 | j_mayer | /* XXX: not correct */
|
6292 | 2f462816 | j_mayer | gen_low_BATs(env); |
6293 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6294 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6295 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6296 | 2f462816 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6297 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6298 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6299 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6300 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6301 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6302 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6303 | 2f462816 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6304 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6305 | 2adab7d6 | blueswir1 | &spr_read_hior, &spr_write_hior, |
6306 | 2adab7d6 | blueswir1 | 0x00000000);
|
6307 | 2f462816 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6308 | 2f462816 | j_mayer | env->slb_nr = 32;
|
6309 | 2f462816 | j_mayer | #endif
|
6310 | 2f462816 | j_mayer | init_excp_970(env); |
6311 | 2f462816 | j_mayer | env->dcache_line_size = 128;
|
6312 | 2f462816 | j_mayer | env->icache_line_size = 128;
|
6313 | 2f462816 | j_mayer | /* Allocate hardware IRQ controller */
|
6314 | 2f462816 | j_mayer | ppc970_irq_init(env); |
6315 | cf8358c8 | aurel32 | /* Can't find information on what this should be on reset. This
|
6316 | cf8358c8 | aurel32 | * value is the one used by 74xx processors. */
|
6317 | cf8358c8 | aurel32 | vscr_init(env, 0x00010000);
|
6318 | 2f462816 | j_mayer | } |
6319 | 2f462816 | j_mayer | |
6320 | a750fc0b | j_mayer | /* PowerPC 620 */
|
6321 | 082c6681 | j_mayer | #define POWERPC_INSNS_620 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6322 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6323 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6324 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6325 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
6326 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6327 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6328 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
6329 | a750fc0b | j_mayer | PPC_64B | PPC_SLBI) |
6330 | add78955 | j_mayer | #define POWERPC_MSRM_620 (0x800000000005FF77ULL) |
6331 | add78955 | j_mayer | //#define POWERPC_MMU_620 (POWERPC_MMU_620)
|
6332 | a750fc0b | j_mayer | #define POWERPC_EXCP_620 (POWERPC_EXCP_970)
|
6333 | faadf50e | j_mayer | #define POWERPC_INPUT_620 (PPC_FLAGS_INPUT_6xx)
|
6334 | 237c0af0 | j_mayer | #define POWERPC_BFDM_620 (bfd_mach_ppc64)
|
6335 | 4018bae9 | j_mayer | #define POWERPC_FLAG_620 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
6336 | add78955 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
6337 | 2f462816 | j_mayer | #define check_pow_620 check_pow_nocheck /* Check this */ |
6338 | a750fc0b | j_mayer | |
6339 | 578bb252 | j_mayer | __attribute__ (( unused )) |
6340 | a750fc0b | j_mayer | static void init_proc_620 (CPUPPCState *env) |
6341 | a750fc0b | j_mayer | { |
6342 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6343 | a750fc0b | j_mayer | gen_spr_620(env); |
6344 | a750fc0b | j_mayer | /* Time base */
|
6345 | a750fc0b | j_mayer | gen_tbl(env); |
6346 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6347 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6348 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6349 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6350 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6351 | a750fc0b | j_mayer | 0x00000000);
|
6352 | a750fc0b | j_mayer | /* Memory management */
|
6353 | a750fc0b | j_mayer | gen_low_BATs(env); |
6354 | e1833e1f | j_mayer | init_excp_620(env); |
6355 | d63001d1 | j_mayer | env->dcache_line_size = 64;
|
6356 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
6357 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
6358 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
6359 | a750fc0b | j_mayer | } |
6360 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
6361 | a750fc0b | j_mayer | |
6362 | a750fc0b | j_mayer | /* Default 32 bits PowerPC target will be 604 */
|
6363 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC32 CPU_POWERPC_604
|
6364 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC32 POWERPC_INSNS_604
|
6365 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC32 POWERPC_MSRM_604
|
6366 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC32 POWERPC_MMU_604
|
6367 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC32 POWERPC_EXCP_604
|
6368 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC32 POWERPC_INPUT_604
|
6369 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC32 POWERPC_BFDM_604
|
6370 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC32 POWERPC_FLAG_604
|
6371 | 2f462816 | j_mayer | #define check_pow_PPC32 check_pow_604
|
6372 | 2f462816 | j_mayer | #define init_proc_PPC32 init_proc_604
|
6373 | a750fc0b | j_mayer | |
6374 | a750fc0b | j_mayer | /* Default 64 bits PowerPC target will be 970 FX */
|
6375 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC64 CPU_POWERPC_970FX
|
6376 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC64 POWERPC_INSNS_970FX
|
6377 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC64 POWERPC_MSRM_970FX
|
6378 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC64 POWERPC_MMU_970FX
|
6379 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC64 POWERPC_EXCP_970FX
|
6380 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC64 POWERPC_INPUT_970FX
|
6381 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC64 POWERPC_BFDM_970FX
|
6382 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC64 POWERPC_FLAG_970FX
|
6383 | 2f462816 | j_mayer | #define check_pow_PPC64 check_pow_970FX
|
6384 | 2f462816 | j_mayer | #define init_proc_PPC64 init_proc_970FX
|
6385 | a750fc0b | j_mayer | |
6386 | a750fc0b | j_mayer | /* Default PowerPC target will be PowerPC 32 */
|
6387 | a750fc0b | j_mayer | #if defined (TARGET_PPC64) && 0 // XXX: TODO |
6388 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64
|
6389 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64
|
6390 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64
|
6391 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64
|
6392 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64
|
6393 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC64
|
6394 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC64
|
6395 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC64
|
6396 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC64
|
6397 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC64
|
6398 | a750fc0b | j_mayer | #else
|
6399 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32
|
6400 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32
|
6401 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32
|
6402 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32
|
6403 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
|
6404 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC32
|
6405 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC32
|
6406 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC32
|
6407 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC32
|
6408 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC32
|
6409 | a750fc0b | j_mayer | #endif
|
6410 | a750fc0b | j_mayer | |
6411 | a750fc0b | j_mayer | /*****************************************************************************/
|
6412 | a750fc0b | j_mayer | /* PVR definitions for most known PowerPC */
|
6413 | a750fc0b | j_mayer | enum {
|
6414 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
6415 | a750fc0b | j_mayer | /* Generic PowerPC 401 */
|
6416 | 80d11f44 | j_mayer | #define CPU_POWERPC_401 CPU_POWERPC_401G2
|
6417 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
6418 | 80d11f44 | j_mayer | CPU_POWERPC_401A1 = 0x00210000,
|
6419 | 80d11f44 | j_mayer | CPU_POWERPC_401B2 = 0x00220000,
|
6420 | a750fc0b | j_mayer | #if 0
|
6421 | 80d11f44 | j_mayer | CPU_POWERPC_401B3 = xxx,
|
6422 | a750fc0b | j_mayer | #endif
|
6423 | 80d11f44 | j_mayer | CPU_POWERPC_401C2 = 0x00230000,
|
6424 | 80d11f44 | j_mayer | CPU_POWERPC_401D2 = 0x00240000,
|
6425 | 80d11f44 | j_mayer | CPU_POWERPC_401E2 = 0x00250000,
|
6426 | 80d11f44 | j_mayer | CPU_POWERPC_401F2 = 0x00260000,
|
6427 | 80d11f44 | j_mayer | CPU_POWERPC_401G2 = 0x00270000,
|
6428 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
6429 | a750fc0b | j_mayer | #if 0
|
6430 | 80d11f44 | j_mayer | CPU_POWERPC_401GF = xxx,
|
6431 | a750fc0b | j_mayer | #endif
|
6432 | 80d11f44 | j_mayer | #define CPU_POWERPC_IOP480 CPU_POWERPC_401B2
|
6433 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
6434 | 80d11f44 | j_mayer | CPU_POWERPC_COBRA = 0x10100000, /* XXX: 405 ? */ |
6435 | a750fc0b | j_mayer | #if 0
|
6436 | 80d11f44 | j_mayer | CPU_POWERPC_XIPCHIP = xxx,
|
6437 | a750fc0b | j_mayer | #endif
|
6438 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
6439 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
6440 | 80d11f44 | j_mayer | #define CPU_POWERPC_403 CPU_POWERPC_403GC
|
6441 | a750fc0b | j_mayer | /* PowerPC 403 microcontrollers */
|
6442 | 80d11f44 | j_mayer | CPU_POWERPC_403GA = 0x00200011,
|
6443 | 80d11f44 | j_mayer | CPU_POWERPC_403GB = 0x00200100,
|
6444 | 80d11f44 | j_mayer | CPU_POWERPC_403GC = 0x00200200,
|
6445 | 80d11f44 | j_mayer | CPU_POWERPC_403GCX = 0x00201400,
|
6446 | a750fc0b | j_mayer | #if 0
|
6447 | 80d11f44 | j_mayer | CPU_POWERPC_403GP = xxx,
|
6448 | a750fc0b | j_mayer | #endif
|
6449 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
6450 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
6451 | 80d11f44 | j_mayer | #define CPU_POWERPC_405 CPU_POWERPC_405D4
|
6452 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
6453 | a750fc0b | j_mayer | #if 0
|
6454 | 80d11f44 | j_mayer | CPU_POWERPC_405A3 = xxx,
|
6455 | a750fc0b | j_mayer | #endif
|
6456 | a750fc0b | j_mayer | #if 0
|
6457 | 80d11f44 | j_mayer | CPU_POWERPC_405A4 = xxx,
|
6458 | a750fc0b | j_mayer | #endif
|
6459 | a750fc0b | j_mayer | #if 0
|
6460 | 80d11f44 | j_mayer | CPU_POWERPC_405B3 = xxx,
|
6461 | a750fc0b | j_mayer | #endif
|
6462 | a750fc0b | j_mayer | #if 0
|
6463 | 80d11f44 | j_mayer | CPU_POWERPC_405B4 = xxx,
|
6464 | a750fc0b | j_mayer | #endif
|
6465 | a750fc0b | j_mayer | #if 0
|
6466 | 80d11f44 | j_mayer | CPU_POWERPC_405C3 = xxx,
|
6467 | a750fc0b | j_mayer | #endif
|
6468 | a750fc0b | j_mayer | #if 0
|
6469 | 80d11f44 | j_mayer | CPU_POWERPC_405C4 = xxx,
|
6470 | a750fc0b | j_mayer | #endif
|
6471 | 80d11f44 | j_mayer | CPU_POWERPC_405D2 = 0x20010000,
|
6472 | a750fc0b | j_mayer | #if 0
|
6473 | 80d11f44 | j_mayer | CPU_POWERPC_405D3 = xxx,
|
6474 | a750fc0b | j_mayer | #endif
|
6475 | 80d11f44 | j_mayer | CPU_POWERPC_405D4 = 0x41810000,
|
6476 | a750fc0b | j_mayer | #if 0
|
6477 | 80d11f44 | j_mayer | CPU_POWERPC_405D5 = xxx,
|
6478 | a750fc0b | j_mayer | #endif
|
6479 | a750fc0b | j_mayer | #if 0
|
6480 | 80d11f44 | j_mayer | CPU_POWERPC_405E4 = xxx,
|
6481 | a750fc0b | j_mayer | #endif
|
6482 | a750fc0b | j_mayer | #if 0
|
6483 | 80d11f44 | j_mayer | CPU_POWERPC_405F4 = xxx,
|
6484 | a750fc0b | j_mayer | #endif
|
6485 | a750fc0b | j_mayer | #if 0
|
6486 | 80d11f44 | j_mayer | CPU_POWERPC_405F5 = xxx,
|
6487 | a750fc0b | j_mayer | #endif
|
6488 | a750fc0b | j_mayer | #if 0
|
6489 | 80d11f44 | j_mayer | CPU_POWERPC_405F6 = xxx,
|
6490 | a750fc0b | j_mayer | #endif
|
6491 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
6492 | a750fc0b | j_mayer | /* XXX: missing 0x200108a0 */
|
6493 | 80d11f44 | j_mayer | #define CPU_POWERPC_405CR CPU_POWERPC_405CRc
|
6494 | 80d11f44 | j_mayer | CPU_POWERPC_405CRa = 0x40110041,
|
6495 | 80d11f44 | j_mayer | CPU_POWERPC_405CRb = 0x401100C5,
|
6496 | 80d11f44 | j_mayer | CPU_POWERPC_405CRc = 0x40110145,
|
6497 | 80d11f44 | j_mayer | CPU_POWERPC_405EP = 0x51210950,
|
6498 | a750fc0b | j_mayer | #if 0
|
6499 | 80d11f44 | j_mayer | CPU_POWERPC_405EXr = xxx,
|
6500 | a750fc0b | j_mayer | #endif
|
6501 | 80d11f44 | j_mayer | CPU_POWERPC_405EZ = 0x41511460, /* 0x51210950 ? */ |
6502 | a750fc0b | j_mayer | #if 0
|
6503 | 80d11f44 | j_mayer | CPU_POWERPC_405FX = xxx,
|
6504 | 80d11f44 | j_mayer | #endif
|
6505 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GP CPU_POWERPC_405GPd
|
6506 | 80d11f44 | j_mayer | CPU_POWERPC_405GPa = 0x40110000,
|
6507 | 80d11f44 | j_mayer | CPU_POWERPC_405GPb = 0x40110040,
|
6508 | 80d11f44 | j_mayer | CPU_POWERPC_405GPc = 0x40110082,
|
6509 | 80d11f44 | j_mayer | CPU_POWERPC_405GPd = 0x401100C4,
|
6510 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GPe CPU_POWERPC_405CRc
|
6511 | 80d11f44 | j_mayer | CPU_POWERPC_405GPR = 0x50910951,
|
6512 | a750fc0b | j_mayer | #if 0
|
6513 | 80d11f44 | j_mayer | CPU_POWERPC_405H = xxx,
|
6514 | a750fc0b | j_mayer | #endif
|
6515 | a750fc0b | j_mayer | #if 0
|
6516 | 80d11f44 | j_mayer | CPU_POWERPC_405L = xxx,
|
6517 | a750fc0b | j_mayer | #endif
|
6518 | 80d11f44 | j_mayer | CPU_POWERPC_405LP = 0x41F10000,
|
6519 | a750fc0b | j_mayer | #if 0
|
6520 | 80d11f44 | j_mayer | CPU_POWERPC_405PM = xxx,
|
6521 | a750fc0b | j_mayer | #endif
|
6522 | a750fc0b | j_mayer | #if 0
|
6523 | 80d11f44 | j_mayer | CPU_POWERPC_405PS = xxx,
|
6524 | a750fc0b | j_mayer | #endif
|
6525 | a750fc0b | j_mayer | #if 0
|
6526 | 80d11f44 | j_mayer | CPU_POWERPC_405S = xxx,
|
6527 | a750fc0b | j_mayer | #endif
|
6528 | a750fc0b | j_mayer | /* IBM network processors */
|
6529 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H = 0x414100C0,
|
6530 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H2 = 0x41410140,
|
6531 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405L = 0x416100C0,
|
6532 | 80d11f44 | j_mayer | CPU_POWERPC_NPE4GS3 = 0x40B10000,
|
6533 | a750fc0b | j_mayer | #if 0
|
6534 | 80d11f44 | j_mayer | CPU_POWERPC_NPCxx1 = xxx,
|
6535 | a750fc0b | j_mayer | #endif
|
6536 | a750fc0b | j_mayer | #if 0
|
6537 | 80d11f44 | j_mayer | CPU_POWERPC_NPR161 = xxx,
|
6538 | a750fc0b | j_mayer | #endif
|
6539 | a750fc0b | j_mayer | #if 0
|
6540 | 80d11f44 | j_mayer | CPU_POWERPC_LC77700 = xxx,
|
6541 | a750fc0b | j_mayer | #endif
|
6542 | a750fc0b | j_mayer | /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
|
6543 | a750fc0b | j_mayer | #if 0
|
6544 | 80d11f44 | j_mayer | CPU_POWERPC_STB01000 = xxx,
|
6545 | a750fc0b | j_mayer | #endif
|
6546 | a750fc0b | j_mayer | #if 0
|
6547 | 80d11f44 | j_mayer | CPU_POWERPC_STB01010 = xxx,
|
6548 | a750fc0b | j_mayer | #endif
|
6549 | a750fc0b | j_mayer | #if 0
|
6550 | 80d11f44 | j_mayer | CPU_POWERPC_STB0210 = xxx, /* 401B3 */
|
6551 | a750fc0b | j_mayer | #endif
|
6552 | 80d11f44 | j_mayer | CPU_POWERPC_STB03 = 0x40310000, /* 0x40130000 ? */ |
6553 | a750fc0b | j_mayer | #if 0
|
6554 | 80d11f44 | j_mayer | CPU_POWERPC_STB043 = xxx,
|
6555 | a750fc0b | j_mayer | #endif
|
6556 | a750fc0b | j_mayer | #if 0
|
6557 | 80d11f44 | j_mayer | CPU_POWERPC_STB045 = xxx,
|
6558 | a750fc0b | j_mayer | #endif
|
6559 | 80d11f44 | j_mayer | CPU_POWERPC_STB04 = 0x41810000,
|
6560 | 80d11f44 | j_mayer | CPU_POWERPC_STB25 = 0x51510950,
|
6561 | a750fc0b | j_mayer | #if 0
|
6562 | 80d11f44 | j_mayer | CPU_POWERPC_STB130 = xxx,
|
6563 | a750fc0b | j_mayer | #endif
|
6564 | a750fc0b | j_mayer | /* Xilinx cores */
|
6565 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP4 = 0x20010820,
|
6566 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP7 CPU_POWERPC_X2VP4
|
6567 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP20 = 0x20010860,
|
6568 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP50 CPU_POWERPC_X2VP20
|
6569 | a750fc0b | j_mayer | #if 0
|
6570 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10310 = xxx,
|
6571 | a750fc0b | j_mayer | #endif
|
6572 | a750fc0b | j_mayer | #if 0
|
6573 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10311 = xxx,
|
6574 | a750fc0b | j_mayer | #endif
|
6575 | a750fc0b | j_mayer | #if 0
|
6576 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10320 = xxx,
|
6577 | a750fc0b | j_mayer | #endif
|
6578 | a750fc0b | j_mayer | #if 0
|
6579 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10321 = xxx,
|
6580 | a750fc0b | j_mayer | #endif
|
6581 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
6582 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
6583 | 80d11f44 | j_mayer | #define CPU_POWERPC_440 CPU_POWERPC_440GXf
|
6584 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
6585 | a750fc0b | j_mayer | #if 0
|
6586 | 80d11f44 | j_mayer | CPU_POWERPC_440A4 = xxx,
|
6587 | a750fc0b | j_mayer | #endif
|
6588 | 95070372 | Edgar E. Iglesias | CPU_POWERPC_440_XILINX = 0x7ff21910,
|
6589 | a750fc0b | j_mayer | #if 0
|
6590 | 80d11f44 | j_mayer | CPU_POWERPC_440A5 = xxx,
|
6591 | a750fc0b | j_mayer | #endif
|
6592 | a750fc0b | j_mayer | #if 0
|
6593 | 80d11f44 | j_mayer | CPU_POWERPC_440B4 = xxx,
|
6594 | a750fc0b | j_mayer | #endif
|
6595 | a750fc0b | j_mayer | #if 0
|
6596 | 80d11f44 | j_mayer | CPU_POWERPC_440F5 = xxx,
|
6597 | a750fc0b | j_mayer | #endif
|
6598 | a750fc0b | j_mayer | #if 0
|
6599 | 80d11f44 | j_mayer | CPU_POWERPC_440G5 = xxx,
|
6600 | a750fc0b | j_mayer | #endif
|
6601 | a750fc0b | j_mayer | #if 0
|
6602 | 80d11f44 | j_mayer | CPU_POWERPC_440H4 = xxx,
|
6603 | a750fc0b | j_mayer | #endif
|
6604 | a750fc0b | j_mayer | #if 0
|
6605 | 80d11f44 | j_mayer | CPU_POWERPC_440H6 = xxx,
|
6606 | a750fc0b | j_mayer | #endif
|
6607 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
6608 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EP CPU_POWERPC_440EPb
|
6609 | 80d11f44 | j_mayer | CPU_POWERPC_440EPa = 0x42221850,
|
6610 | 80d11f44 | j_mayer | CPU_POWERPC_440EPb = 0x422218D3,
|
6611 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GP CPU_POWERPC_440GPc
|
6612 | 80d11f44 | j_mayer | CPU_POWERPC_440GPb = 0x40120440,
|
6613 | 80d11f44 | j_mayer | CPU_POWERPC_440GPc = 0x40120481,
|
6614 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GR CPU_POWERPC_440GRa
|
6615 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GRa CPU_POWERPC_440EPb
|
6616 | 80d11f44 | j_mayer | CPU_POWERPC_440GRX = 0x200008D0,
|
6617 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EPX CPU_POWERPC_440GRX
|
6618 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GX CPU_POWERPC_440GXf
|
6619 | 80d11f44 | j_mayer | CPU_POWERPC_440GXa = 0x51B21850,
|
6620 | 80d11f44 | j_mayer | CPU_POWERPC_440GXb = 0x51B21851,
|
6621 | 80d11f44 | j_mayer | CPU_POWERPC_440GXc = 0x51B21892,
|
6622 | 80d11f44 | j_mayer | CPU_POWERPC_440GXf = 0x51B21894,
|
6623 | a750fc0b | j_mayer | #if 0
|
6624 | 80d11f44 | j_mayer | CPU_POWERPC_440S = xxx,
|
6625 | a750fc0b | j_mayer | #endif
|
6626 | 80d11f44 | j_mayer | CPU_POWERPC_440SP = 0x53221850,
|
6627 | 80d11f44 | j_mayer | CPU_POWERPC_440SP2 = 0x53221891,
|
6628 | 80d11f44 | j_mayer | CPU_POWERPC_440SPE = 0x53421890,
|
6629 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
6630 | a750fc0b | j_mayer | #if 0
|
6631 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
6632 | 80d11f44 | j_mayer | #define CPU_POWERPC_464 CPU_POWERPC_464H90
|
6633 | a750fc0b | j_mayer | #endif
|
6634 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
6635 | a750fc0b | j_mayer | #if 0
|
6636 | 80d11f44 | j_mayer | CPU_POWERPC_464H90 = xxx,
|
6637 | a750fc0b | j_mayer | #endif
|
6638 | a750fc0b | j_mayer | #if 0
|
6639 | 80d11f44 | j_mayer | CPU_POWERPC_464H90FP = xxx,
|
6640 | a750fc0b | j_mayer | #endif
|
6641 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
6642 | c3e36823 | j_mayer | /* PowerPC MPC 5xx cores (aka RCPU) */
|
6643 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5xx = 0x00020020,
|
6644 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT560 CPU_POWERPC_MPC5xx
|
6645 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC509 CPU_POWERPC_MPC5xx
|
6646 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC533 CPU_POWERPC_MPC5xx
|
6647 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC534 CPU_POWERPC_MPC5xx
|
6648 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC555 CPU_POWERPC_MPC5xx
|
6649 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC556 CPU_POWERPC_MPC5xx
|
6650 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC560 CPU_POWERPC_MPC5xx
|
6651 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC561 CPU_POWERPC_MPC5xx
|
6652 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC562 CPU_POWERPC_MPC5xx
|
6653 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC563 CPU_POWERPC_MPC5xx
|
6654 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC564 CPU_POWERPC_MPC5xx
|
6655 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC565 CPU_POWERPC_MPC5xx
|
6656 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC566 CPU_POWERPC_MPC5xx
|
6657 | c3e36823 | j_mayer | /* PowerPC MPC 8xx cores (aka PowerQUICC) */
|
6658 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8xx = 0x00500000,
|
6659 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT823 CPU_POWERPC_MPC8xx
|
6660 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC821 CPU_POWERPC_MPC8xx
|
6661 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC823 CPU_POWERPC_MPC8xx
|
6662 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC850 CPU_POWERPC_MPC8xx
|
6663 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC852T CPU_POWERPC_MPC8xx
|
6664 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC855T CPU_POWERPC_MPC8xx
|
6665 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC857 CPU_POWERPC_MPC8xx
|
6666 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC859 CPU_POWERPC_MPC8xx
|
6667 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC860 CPU_POWERPC_MPC8xx
|
6668 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC862 CPU_POWERPC_MPC8xx
|
6669 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC866 CPU_POWERPC_MPC8xx
|
6670 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC870 CPU_POWERPC_MPC8xx
|
6671 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC875 CPU_POWERPC_MPC8xx
|
6672 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC880 CPU_POWERPC_MPC8xx
|
6673 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC885 CPU_POWERPC_MPC8xx
|
6674 | c3e36823 | j_mayer | /* G2 cores (aka PowerQUICC-II) */
|
6675 | 80d11f44 | j_mayer | CPU_POWERPC_G2 = 0x00810011,
|
6676 | 80d11f44 | j_mayer | CPU_POWERPC_G2H4 = 0x80811010,
|
6677 | 80d11f44 | j_mayer | CPU_POWERPC_G2gp = 0x80821010,
|
6678 | 80d11f44 | j_mayer | CPU_POWERPC_G2ls = 0x90810010,
|
6679 | 80d11f44 | j_mayer | CPU_POWERPC_MPC603 = 0x00810100,
|
6680 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP3 = 0x00810101,
|
6681 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP4 = 0x80811014,
|
6682 | c3e36823 | j_mayer | /* G2_LE core (aka PowerQUICC-II) */
|
6683 | 80d11f44 | j_mayer | CPU_POWERPC_G2LE = 0x80820010,
|
6684 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp = 0x80822010,
|
6685 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEls = 0xA0822010,
|
6686 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp1 = 0x80822011,
|
6687 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp3 = 0x80822013,
|
6688 | 80d11f44 | j_mayer | /* MPC52xx microcontrollers */
|
6689 | c3e36823 | j_mayer | /* XXX: MPC 5121 ? */
|
6690 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC52xx CPU_POWERPC_MPC5200
|
6691 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200 CPU_POWERPC_MPC5200_v12
|
6692 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v10 CPU_POWERPC_G2LEgp1
|
6693 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v11 CPU_POWERPC_G2LEgp1
|
6694 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v12 CPU_POWERPC_G2LEgp1
|
6695 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B CPU_POWERPC_MPC5200B_v21
|
6696 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v20 CPU_POWERPC_G2LEgp1
|
6697 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v21 CPU_POWERPC_G2LEgp1
|
6698 | 80d11f44 | j_mayer | /* MPC82xx microcontrollers */
|
6699 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC82xx CPU_POWERPC_MPC8280
|
6700 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8240 CPU_POWERPC_MPC603
|
6701 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8241 CPU_POWERPC_G2_HIP4
|
6702 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8245 CPU_POWERPC_G2_HIP4
|
6703 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8247 CPU_POWERPC_G2LEgp3
|
6704 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8248 CPU_POWERPC_G2LEgp3
|
6705 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250 CPU_POWERPC_MPC8250_HiP4
|
6706 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP3 CPU_POWERPC_G2_HIP3
|
6707 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP4 CPU_POWERPC_G2_HIP4
|
6708 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255 CPU_POWERPC_MPC8255_HiP4
|
6709 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP3 CPU_POWERPC_G2_HIP3
|
6710 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP4 CPU_POWERPC_G2_HIP4
|
6711 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260 CPU_POWERPC_MPC8260_HiP4
|
6712 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP3 CPU_POWERPC_G2_HIP3
|
6713 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP4 CPU_POWERPC_G2_HIP4
|
6714 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264 CPU_POWERPC_MPC8264_HiP4
|
6715 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP3 CPU_POWERPC_G2_HIP3
|
6716 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP4 CPU_POWERPC_G2_HIP4
|
6717 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265 CPU_POWERPC_MPC8265_HiP4
|
6718 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP3 CPU_POWERPC_G2_HIP3
|
6719 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP4 CPU_POWERPC_G2_HIP4
|
6720 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266 CPU_POWERPC_MPC8266_HiP4
|
6721 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP3 CPU_POWERPC_G2_HIP3
|
6722 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP4 CPU_POWERPC_G2_HIP4
|
6723 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8270 CPU_POWERPC_G2LEgp3
|
6724 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8271 CPU_POWERPC_G2LEgp3
|
6725 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8272 CPU_POWERPC_G2LEgp3
|
6726 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8275 CPU_POWERPC_G2LEgp3
|
6727 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8280 CPU_POWERPC_G2LEgp3
|
6728 | a750fc0b | j_mayer | /* e200 family */
|
6729 | 80d11f44 | j_mayer | /* e200 cores */
|
6730 | 80d11f44 | j_mayer | #define CPU_POWERPC_e200 CPU_POWERPC_e200z6
|
6731 | a750fc0b | j_mayer | #if 0
|
6732 | 80d11f44 | j_mayer | CPU_POWERPC_e200z0 = xxx,
|
6733 | a750fc0b | j_mayer | #endif
|
6734 | a750fc0b | j_mayer | #if 0
|
6735 | 80d11f44 | j_mayer | CPU_POWERPC_e200z1 = xxx,
|
6736 | c3e36823 | j_mayer | #endif
|
6737 | c3e36823 | j_mayer | #if 0 /* ? */
|
6738 | 80d11f44 | j_mayer | CPU_POWERPC_e200z3 = 0x81120000,
|
6739 | 80d11f44 | j_mayer | #endif
|
6740 | 80d11f44 | j_mayer | CPU_POWERPC_e200z5 = 0x81000000,
|
6741 | 80d11f44 | j_mayer | CPU_POWERPC_e200z6 = 0x81120000,
|
6742 | 80d11f44 | j_mayer | /* MPC55xx microcontrollers */
|
6743 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC55xx CPU_POWERPC_MPC5567
|
6744 | 80d11f44 | j_mayer | #if 0
|
6745 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E CPU_POWERPC_MPC5514E_v1
|
6746 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v0 CPU_POWERPC_e200z0
|
6747 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v1 CPU_POWERPC_e200z1
|
6748 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G CPU_POWERPC_MPC5514G_v1
|
6749 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v0 CPU_POWERPC_e200z0
|
6750 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v1 CPU_POWERPC_e200z1
|
6751 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5515S CPU_POWERPC_e200z1
|
6752 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E CPU_POWERPC_MPC5516E_v1
|
6753 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v0 CPU_POWERPC_e200z0
|
6754 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v1 CPU_POWERPC_e200z1
|
6755 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G CPU_POWERPC_MPC5516G_v1
|
6756 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v0 CPU_POWERPC_e200z0
|
6757 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v1 CPU_POWERPC_e200z1
|
6758 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516S CPU_POWERPC_e200z1
|
6759 | 80d11f44 | j_mayer | #endif
|
6760 | 80d11f44 | j_mayer | #if 0
|
6761 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5533 CPU_POWERPC_e200z3
|
6762 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5534 CPU_POWERPC_e200z3
|
6763 | 80d11f44 | j_mayer | #endif
|
6764 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5553 CPU_POWERPC_e200z6
|
6765 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5554 CPU_POWERPC_e200z6
|
6766 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5561 CPU_POWERPC_e200z6
|
6767 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5565 CPU_POWERPC_e200z6
|
6768 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5566 CPU_POWERPC_e200z6
|
6769 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5567 CPU_POWERPC_e200z6
|
6770 | a750fc0b | j_mayer | /* e300 family */
|
6771 | 80d11f44 | j_mayer | /* e300 cores */
|
6772 | 80d11f44 | j_mayer | #define CPU_POWERPC_e300 CPU_POWERPC_e300c3
|
6773 | 80d11f44 | j_mayer | CPU_POWERPC_e300c1 = 0x00830010,
|
6774 | 80d11f44 | j_mayer | CPU_POWERPC_e300c2 = 0x00840010,
|
6775 | 80d11f44 | j_mayer | CPU_POWERPC_e300c3 = 0x00850010,
|
6776 | 80d11f44 | j_mayer | CPU_POWERPC_e300c4 = 0x00860010,
|
6777 | 80d11f44 | j_mayer | /* MPC83xx microcontrollers */
|
6778 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC831x CPU_POWERPC_e300c3
|
6779 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC832x CPU_POWERPC_e300c2
|
6780 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC834x CPU_POWERPC_e300c1
|
6781 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC835x CPU_POWERPC_e300c1
|
6782 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC836x CPU_POWERPC_e300c1
|
6783 | 74d77cae | Thomas Monjalon | #define CPU_POWERPC_MPC837x CPU_POWERPC_e300c4
|
6784 | a750fc0b | j_mayer | /* e500 family */
|
6785 | 80d11f44 | j_mayer | /* e500 cores */
|
6786 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500 CPU_POWERPC_e500v2_v22
|
6787 | bd5ea513 | aurel32 | #define CPU_POWERPC_e500v1 CPU_POWERPC_e500v1_v20
|
6788 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500v2 CPU_POWERPC_e500v2_v22
|
6789 | bd5ea513 | aurel32 | CPU_POWERPC_e500v1_v10 = 0x80200010,
|
6790 | bd5ea513 | aurel32 | CPU_POWERPC_e500v1_v20 = 0x80200020,
|
6791 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v10 = 0x80210010,
|
6792 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v11 = 0x80210011,
|
6793 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v20 = 0x80210020,
|
6794 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v21 = 0x80210021,
|
6795 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v22 = 0x80210022,
|
6796 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v30 = 0x80210030,
|
6797 | 80d11f44 | j_mayer | /* MPC85xx microcontrollers */
|
6798 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533 CPU_POWERPC_MPC8533_v11
|
6799 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v10 CPU_POWERPC_e500v2_v21
|
6800 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v11 CPU_POWERPC_e500v2_v22
|
6801 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E CPU_POWERPC_MPC8533E_v11
|
6802 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v10 CPU_POWERPC_e500v2_v21
|
6803 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v11 CPU_POWERPC_e500v2_v22
|
6804 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540 CPU_POWERPC_MPC8540_v21
|
6805 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v10 CPU_POWERPC_e500v1_v10
|
6806 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v20 CPU_POWERPC_e500v1_v20
|
6807 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8540_v21 CPU_POWERPC_e500v1_v20
|
6808 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541 CPU_POWERPC_MPC8541_v11
|
6809 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541_v10 CPU_POWERPC_e500v1_v20
|
6810 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541_v11 CPU_POWERPC_e500v1_v20
|
6811 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E CPU_POWERPC_MPC8541E_v11
|
6812 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541E_v10 CPU_POWERPC_e500v1_v20
|
6813 | bd5ea513 | aurel32 | #define CPU_POWERPC_MPC8541E_v11 CPU_POWERPC_e500v1_v20
|
6814 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543 CPU_POWERPC_MPC8543_v21
|
6815 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v10 CPU_POWERPC_e500v2_v10
|
6816 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v11 CPU_POWERPC_e500v2_v11
|
6817 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v20 CPU_POWERPC_e500v2_v20
|
6818 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v21 CPU_POWERPC_e500v2_v21
|
6819 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E CPU_POWERPC_MPC8543E_v21
|
6820 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v10 CPU_POWERPC_e500v2_v10
|
6821 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v11 CPU_POWERPC_e500v2_v11
|
6822 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v20 CPU_POWERPC_e500v2_v20
|
6823 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v21 CPU_POWERPC_e500v2_v21
|
6824 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544 CPU_POWERPC_MPC8544_v11
|
6825 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v10 CPU_POWERPC_e500v2_v21
|
6826 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v11 CPU_POWERPC_e500v2_v22
|
6827 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v11 CPU_POWERPC_e500v2_v22
|
6828 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E CPU_POWERPC_MPC8544E_v11
|
6829 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v10 CPU_POWERPC_e500v2_v21
|
6830 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545 CPU_POWERPC_MPC8545_v21
|
6831 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v10 CPU_POWERPC_e500v2_v10
|
6832 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v20 CPU_POWERPC_e500v2_v20
|
6833 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v21 CPU_POWERPC_e500v2_v21
|
6834 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E CPU_POWERPC_MPC8545E_v21
|
6835 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v10 CPU_POWERPC_e500v2_v10
|
6836 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v20 CPU_POWERPC_e500v2_v20
|
6837 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v21 CPU_POWERPC_e500v2_v21
|
6838 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E CPU_POWERPC_MPC8545E_v21
|
6839 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v10 CPU_POWERPC_e500v2_v10
|
6840 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v20 CPU_POWERPC_e500v2_v20
|
6841 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v21 CPU_POWERPC_e500v2_v21
|
6842 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548 CPU_POWERPC_MPC8548_v21
|
6843 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v10 CPU_POWERPC_e500v2_v10
|
6844 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v11 CPU_POWERPC_e500v2_v11
|
6845 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v20 CPU_POWERPC_e500v2_v20
|
6846 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v21 CPU_POWERPC_e500v2_v21
|
6847 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E CPU_POWERPC_MPC8548E_v21
|
6848 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v10 CPU_POWERPC_e500v2_v10
|
6849 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v11 CPU_POWERPC_e500v2_v11
|
6850 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v20 CPU_POWERPC_e500v2_v20
|
6851 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v21 CPU_POWERPC_e500v2_v21
|
6852 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555 CPU_POWERPC_MPC8555_v11
|
6853 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v10 CPU_POWERPC_e500v2_v10
|
6854 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v11 CPU_POWERPC_e500v2_v11
|
6855 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E CPU_POWERPC_MPC8555E_v11
|
6856 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v10 CPU_POWERPC_e500v2_v10
|
6857 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v11 CPU_POWERPC_e500v2_v11
|
6858 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560 CPU_POWERPC_MPC8560_v21
|
6859 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v10 CPU_POWERPC_e500v2_v10
|
6860 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v20 CPU_POWERPC_e500v2_v20
|
6861 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v21 CPU_POWERPC_e500v2_v21
|
6862 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567 CPU_POWERPC_e500v2_v22
|
6863 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567E CPU_POWERPC_e500v2_v22
|
6864 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568 CPU_POWERPC_e500v2_v22
|
6865 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568E CPU_POWERPC_e500v2_v22
|
6866 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572 CPU_POWERPC_e500v2_v30
|
6867 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572E CPU_POWERPC_e500v2_v30
|
6868 | a750fc0b | j_mayer | /* e600 family */
|
6869 | 80d11f44 | j_mayer | /* e600 cores */
|
6870 | 80d11f44 | j_mayer | CPU_POWERPC_e600 = 0x80040010,
|
6871 | 80d11f44 | j_mayer | /* MPC86xx microcontrollers */
|
6872 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8610 CPU_POWERPC_e600
|
6873 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641 CPU_POWERPC_e600
|
6874 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641D CPU_POWERPC_e600
|
6875 | a750fc0b | j_mayer | /* PowerPC 6xx cores */
|
6876 | 80d11f44 | j_mayer | #define CPU_POWERPC_601 CPU_POWERPC_601_v2
|
6877 | 80d11f44 | j_mayer | CPU_POWERPC_601_v0 = 0x00010001,
|
6878 | 80d11f44 | j_mayer | CPU_POWERPC_601_v1 = 0x00010001,
|
6879 | bd928eba | j_mayer | #define CPU_POWERPC_601v CPU_POWERPC_601_v2
|
6880 | 80d11f44 | j_mayer | CPU_POWERPC_601_v2 = 0x00010002,
|
6881 | 80d11f44 | j_mayer | CPU_POWERPC_602 = 0x00050100,
|
6882 | 80d11f44 | j_mayer | CPU_POWERPC_603 = 0x00030100,
|
6883 | 80d11f44 | j_mayer | #define CPU_POWERPC_603E CPU_POWERPC_603E_v41
|
6884 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v11 = 0x00060101,
|
6885 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v12 = 0x00060102,
|
6886 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v13 = 0x00060103,
|
6887 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v14 = 0x00060104,
|
6888 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v22 = 0x00060202,
|
6889 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v3 = 0x00060300,
|
6890 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v4 = 0x00060400,
|
6891 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v41 = 0x00060401,
|
6892 | 80d11f44 | j_mayer | CPU_POWERPC_603E7t = 0x00071201,
|
6893 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v = 0x00070100,
|
6894 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v1 = 0x00070101,
|
6895 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v2 = 0x00070201,
|
6896 | 80d11f44 | j_mayer | CPU_POWERPC_603E7 = 0x00070200,
|
6897 | 80d11f44 | j_mayer | CPU_POWERPC_603P = 0x00070000,
|
6898 | 80d11f44 | j_mayer | #define CPU_POWERPC_603R CPU_POWERPC_603E7t
|
6899 | c3e36823 | j_mayer | /* XXX: missing 0x00040303 (604) */
|
6900 | 80d11f44 | j_mayer | CPU_POWERPC_604 = 0x00040103,
|
6901 | 80d11f44 | j_mayer | #define CPU_POWERPC_604E CPU_POWERPC_604E_v24
|
6902 | c3e36823 | j_mayer | /* XXX: missing 0x00091203 */
|
6903 | c3e36823 | j_mayer | /* XXX: missing 0x00092110 */
|
6904 | c3e36823 | j_mayer | /* XXX: missing 0x00092120 */
|
6905 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v10 = 0x00090100,
|
6906 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v22 = 0x00090202,
|
6907 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v24 = 0x00090204,
|
6908 | c3e36823 | j_mayer | /* XXX: missing 0x000a0100 */
|
6909 | c3e36823 | j_mayer | /* XXX: missing 0x00093102 */
|
6910 | 80d11f44 | j_mayer | CPU_POWERPC_604R = 0x000a0101,
|
6911 | a750fc0b | j_mayer | #if 0
|
6912 | 80d11f44 | j_mayer | CPU_POWERPC_604EV = xxx, /* XXX: same as 604R ? */
|
6913 | a750fc0b | j_mayer | #endif
|
6914 | a750fc0b | j_mayer | /* PowerPC 740/750 cores (aka G3) */
|
6915 | a750fc0b | j_mayer | /* XXX: missing 0x00084202 */
|
6916 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x0 CPU_POWERPC_7x0_v31
|
6917 | bd928eba | j_mayer | CPU_POWERPC_7x0_v10 = 0x00080100,
|
6918 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v20 = 0x00080200,
|
6919 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v21 = 0x00080201,
|
6920 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v22 = 0x00080202,
|
6921 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v30 = 0x00080300,
|
6922 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v31 = 0x00080301,
|
6923 | 80d11f44 | j_mayer | CPU_POWERPC_740E = 0x00080100,
|
6924 | bd928eba | j_mayer | CPU_POWERPC_750E = 0x00080200,
|
6925 | 80d11f44 | j_mayer | CPU_POWERPC_7x0P = 0x10080000,
|
6926 | a750fc0b | j_mayer | /* XXX: missing 0x00087010 (CL ?) */
|
6927 | bd928eba | j_mayer | #define CPU_POWERPC_750CL CPU_POWERPC_750CL_v20
|
6928 | bd928eba | j_mayer | CPU_POWERPC_750CL_v10 = 0x00087200,
|
6929 | bd928eba | j_mayer | CPU_POWERPC_750CL_v20 = 0x00087210, /* aka rev E */ |
6930 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CX CPU_POWERPC_750CX_v22
|
6931 | bd928eba | j_mayer | CPU_POWERPC_750CX_v10 = 0x00082100,
|
6932 | bd928eba | j_mayer | CPU_POWERPC_750CX_v20 = 0x00082200,
|
6933 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v21 = 0x00082201,
|
6934 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v22 = 0x00082202,
|
6935 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CXE CPU_POWERPC_750CXE_v31b
|
6936 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v21 = 0x00082211,
|
6937 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v22 = 0x00082212,
|
6938 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v23 = 0x00082213,
|
6939 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24 = 0x00082214,
|
6940 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24b = 0x00083214,
|
6941 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v30 = 0x00082310,
|
6942 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v31 = 0x00082311,
|
6943 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v31b = 0x00083311,
|
6944 | 80d11f44 | j_mayer | CPU_POWERPC_750CXR = 0x00083410,
|
6945 | bd928eba | j_mayer | CPU_POWERPC_750FL = 0x70000203,
|
6946 | 80d11f44 | j_mayer | #define CPU_POWERPC_750FX CPU_POWERPC_750FX_v23
|
6947 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v10 = 0x70000100,
|
6948 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v20 = 0x70000200,
|
6949 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v21 = 0x70000201,
|
6950 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v22 = 0x70000202,
|
6951 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v23 = 0x70000203,
|
6952 | 80d11f44 | j_mayer | CPU_POWERPC_750GL = 0x70020102,
|
6953 | 80d11f44 | j_mayer | #define CPU_POWERPC_750GX CPU_POWERPC_750GX_v12
|
6954 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v10 = 0x70020100,
|
6955 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v11 = 0x70020101,
|
6956 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v12 = 0x70020102,
|
6957 | 80d11f44 | j_mayer | #define CPU_POWERPC_750L CPU_POWERPC_750L_v32 /* Aka LoneStar */ |
6958 | bd928eba | j_mayer | CPU_POWERPC_750L_v20 = 0x00088200,
|
6959 | bd928eba | j_mayer | CPU_POWERPC_750L_v21 = 0x00088201,
|
6960 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v22 = 0x00088202,
|
6961 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v30 = 0x00088300,
|
6962 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v32 = 0x00088302,
|
6963 | a750fc0b | j_mayer | /* PowerPC 745/755 cores */
|
6964 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x5 CPU_POWERPC_7x5_v28
|
6965 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v10 = 0x00083100,
|
6966 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v11 = 0x00083101,
|
6967 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v20 = 0x00083200,
|
6968 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v21 = 0x00083201,
|
6969 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v22 = 0x00083202, /* aka D */ |
6970 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v23 = 0x00083203, /* aka E */ |
6971 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v24 = 0x00083204,
|
6972 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v25 = 0x00083205,
|
6973 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v26 = 0x00083206,
|
6974 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v27 = 0x00083207,
|
6975 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v28 = 0x00083208,
|
6976 | a750fc0b | j_mayer | #if 0
|
6977 | 80d11f44 | j_mayer | CPU_POWERPC_7x5P = xxx,
|
6978 | a750fc0b | j_mayer | #endif
|
6979 | a750fc0b | j_mayer | /* PowerPC 74xx cores (aka G4) */
|
6980 | a750fc0b | j_mayer | /* XXX: missing 0x000C1101 */
|
6981 | 80d11f44 | j_mayer | #define CPU_POWERPC_7400 CPU_POWERPC_7400_v29
|
6982 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v10 = 0x000C0100,
|
6983 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v11 = 0x000C0101,
|
6984 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v20 = 0x000C0200,
|
6985 | 4e777442 | j_mayer | CPU_POWERPC_7400_v21 = 0x000C0201,
|
6986 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v22 = 0x000C0202,
|
6987 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v26 = 0x000C0206,
|
6988 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v27 = 0x000C0207,
|
6989 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v28 = 0x000C0208,
|
6990 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v29 = 0x000C0209,
|
6991 | 80d11f44 | j_mayer | #define CPU_POWERPC_7410 CPU_POWERPC_7410_v14
|
6992 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v10 = 0x800C1100,
|
6993 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v11 = 0x800C1101,
|
6994 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v12 = 0x800C1102, /* aka C */ |
6995 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v13 = 0x800C1103, /* aka D */ |
6996 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v14 = 0x800C1104, /* aka E */ |
6997 | 80d11f44 | j_mayer | #define CPU_POWERPC_7448 CPU_POWERPC_7448_v21
|
6998 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v10 = 0x80040100,
|
6999 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v11 = 0x80040101,
|
7000 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v20 = 0x80040200,
|
7001 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v21 = 0x80040201,
|
7002 | 80d11f44 | j_mayer | #define CPU_POWERPC_7450 CPU_POWERPC_7450_v21
|
7003 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v10 = 0x80000100,
|
7004 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v11 = 0x80000101,
|
7005 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v12 = 0x80000102,
|
7006 | 4e777442 | j_mayer | CPU_POWERPC_7450_v20 = 0x80000200, /* aka A, B, C, D: 2.04 */ |
7007 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v21 = 0x80000201, /* aka E */ |
7008 | 4e777442 | j_mayer | #define CPU_POWERPC_74x1 CPU_POWERPC_74x1_v23
|
7009 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v23 = 0x80000203, /* aka G: 2.3 */ |
7010 | 4e777442 | j_mayer | /* XXX: this entry might be a bug in some documentation */
|
7011 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v210 = 0x80000210, /* aka G: 2.3 ? */ |
7012 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x5 CPU_POWERPC_74x5_v32
|
7013 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v10 = 0x80010100,
|
7014 | c3e36823 | j_mayer | /* XXX: missing 0x80010200 */
|
7015 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v21 = 0x80010201, /* aka C: 2.1 */ |
7016 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v32 = 0x80010302,
|
7017 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v33 = 0x80010303, /* aka F: 3.3 */ |
7018 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v34 = 0x80010304, /* aka G: 3.4 */ |
7019 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x7 CPU_POWERPC_74x7_v12
|
7020 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v10 = 0x80020100, /* aka A: 1.0 */ |
7021 | 082c6681 | j_mayer | CPU_POWERPC_74x7_v11 = 0x80020101, /* aka B: 1.1 */ |
7022 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v12 = 0x80020102, /* aka C: 1.2 */ |
7023 | 082c6681 | j_mayer | #define CPU_POWERPC_74x7A CPU_POWERPC_74x7A_v12
|
7024 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v10 = 0x80030100, /* aka A: 1.0 */ |
7025 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v11 = 0x80030101, /* aka B: 1.1 */ |
7026 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v12 = 0x80030102, /* aka C: 1.2 */ |
7027 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
7028 | 00af685f | j_mayer | #if defined(TARGET_PPC64)
|
7029 | 80d11f44 | j_mayer | CPU_POWERPC_620 = 0x00140000,
|
7030 | 80d11f44 | j_mayer | CPU_POWERPC_630 = 0x00400000,
|
7031 | 80d11f44 | j_mayer | CPU_POWERPC_631 = 0x00410104,
|
7032 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4 = 0x00350000,
|
7033 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4P = 0x00380000,
|
7034 | c3e36823 | j_mayer | /* XXX: missing 0x003A0201 */
|
7035 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5 = 0x003A0203,
|
7036 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GR CPU_POWERPC_POWER5
|
7037 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5P = 0x003B0000,
|
7038 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GS CPU_POWERPC_POWER5P
|
7039 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6 = 0x003E0000,
|
7040 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6_5 = 0x0F000001, /* POWER6 in POWER5 mode */ |
7041 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6A = 0x0F000002,
|
7042 | 80d11f44 | j_mayer | CPU_POWERPC_970 = 0x00390202,
|
7043 | 80d11f44 | j_mayer | #define CPU_POWERPC_970FX CPU_POWERPC_970FX_v31
|
7044 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v10 = 0x00391100,
|
7045 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v20 = 0x003C0200,
|
7046 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v21 = 0x003C0201,
|
7047 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v30 = 0x003C0300,
|
7048 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v31 = 0x003C0301,
|
7049 | 80d11f44 | j_mayer | CPU_POWERPC_970GX = 0x00450000,
|
7050 | 80d11f44 | j_mayer | #define CPU_POWERPC_970MP CPU_POWERPC_970MP_v11
|
7051 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v10 = 0x00440100,
|
7052 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v11 = 0x00440101,
|
7053 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL CPU_POWERPC_CELL_v32
|
7054 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v10 = 0x00700100,
|
7055 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v20 = 0x00700400,
|
7056 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v30 = 0x00700500,
|
7057 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v31 = 0x00700501,
|
7058 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL_v32 CPU_POWERPC_CELL_v31
|
7059 | 80d11f44 | j_mayer | CPU_POWERPC_RS64 = 0x00330000,
|
7060 | 80d11f44 | j_mayer | CPU_POWERPC_RS64II = 0x00340000,
|
7061 | 80d11f44 | j_mayer | CPU_POWERPC_RS64III = 0x00360000,
|
7062 | 80d11f44 | j_mayer | CPU_POWERPC_RS64IV = 0x00370000,
|
7063 | 00af685f | j_mayer | #endif /* defined(TARGET_PPC64) */ |
7064 | a750fc0b | j_mayer | /* Original POWER */
|
7065 | a750fc0b | j_mayer | /* XXX: should be POWER (RIOS), RSC3308, RSC4608,
|
7066 | a750fc0b | j_mayer | * POWER2 (RIOS2) & RSC2 (P2SC) here
|
7067 | a750fc0b | j_mayer | */
|
7068 | a750fc0b | j_mayer | #if 0
|
7069 | 80d11f44 | j_mayer | CPU_POWER = xxx, /* 0x20000 ? 0x30000 for RSC ? */
|
7070 | a750fc0b | j_mayer | #endif
|
7071 | a750fc0b | j_mayer | #if 0
|
7072 | 80d11f44 | j_mayer | CPU_POWER2 = xxx, /* 0x40000 ? */
|
7073 | a750fc0b | j_mayer | #endif
|
7074 | a750fc0b | j_mayer | /* PA Semi core */
|
7075 | 80d11f44 | j_mayer | CPU_POWERPC_PA6T = 0x00900000,
|
7076 | a750fc0b | j_mayer | }; |
7077 | a750fc0b | j_mayer | |
7078 | a750fc0b | j_mayer | /* System version register (used on MPC 8xxx) */
|
7079 | a750fc0b | j_mayer | enum {
|
7080 | 80d11f44 | j_mayer | POWERPC_SVR_NONE = 0x00000000,
|
7081 | 80d11f44 | j_mayer | #define POWERPC_SVR_52xx POWERPC_SVR_5200
|
7082 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200 POWERPC_SVR_5200_v12
|
7083 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v10 = 0x80110010,
|
7084 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v11 = 0x80110011,
|
7085 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v12 = 0x80110012,
|
7086 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200B POWERPC_SVR_5200B_v21
|
7087 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v20 = 0x80110020,
|
7088 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v21 = 0x80110021,
|
7089 | 80d11f44 | j_mayer | #define POWERPC_SVR_55xx POWERPC_SVR_5567
|
7090 | c3e36823 | j_mayer | #if 0
|
7091 | 80d11f44 | j_mayer | POWERPC_SVR_5533 = xxx,
|
7092 | c3e36823 | j_mayer | #endif
|
7093 | c3e36823 | j_mayer | #if 0
|
7094 | 80d11f44 | j_mayer | POWERPC_SVR_5534 = xxx,
|
7095 | c3e36823 | j_mayer | #endif
|
7096 | c3e36823 | j_mayer | #if 0
|
7097 | 80d11f44 | j_mayer | POWERPC_SVR_5553 = xxx,
|
7098 | c3e36823 | j_mayer | #endif
|
7099 | c3e36823 | j_mayer | #if 0
|
7100 | 80d11f44 | j_mayer | POWERPC_SVR_5554 = xxx,
|
7101 | c3e36823 | j_mayer | #endif
|
7102 | c3e36823 | j_mayer | #if 0
|
7103 | 80d11f44 | j_mayer | POWERPC_SVR_5561 = xxx,
|
7104 | c3e36823 | j_mayer | #endif
|
7105 | c3e36823 | j_mayer | #if 0
|
7106 | 80d11f44 | j_mayer | POWERPC_SVR_5565 = xxx,
|
7107 | c3e36823 | j_mayer | #endif
|
7108 | c3e36823 | j_mayer | #if 0
|
7109 | 80d11f44 | j_mayer | POWERPC_SVR_5566 = xxx,
|
7110 | c3e36823 | j_mayer | #endif
|
7111 | c3e36823 | j_mayer | #if 0
|
7112 | 80d11f44 | j_mayer | POWERPC_SVR_5567 = xxx,
|
7113 | c3e36823 | j_mayer | #endif
|
7114 | c3e36823 | j_mayer | #if 0
|
7115 | 80d11f44 | j_mayer | POWERPC_SVR_8313 = xxx,
|
7116 | c3e36823 | j_mayer | #endif
|
7117 | c3e36823 | j_mayer | #if 0
|
7118 | 80d11f44 | j_mayer | POWERPC_SVR_8313E = xxx,
|
7119 | c3e36823 | j_mayer | #endif
|
7120 | c3e36823 | j_mayer | #if 0
|
7121 | 80d11f44 | j_mayer | POWERPC_SVR_8314 = xxx,
|
7122 | c3e36823 | j_mayer | #endif
|
7123 | c3e36823 | j_mayer | #if 0
|
7124 | 80d11f44 | j_mayer | POWERPC_SVR_8314E = xxx,
|
7125 | c3e36823 | j_mayer | #endif
|
7126 | c3e36823 | j_mayer | #if 0
|
7127 | 80d11f44 | j_mayer | POWERPC_SVR_8315 = xxx,
|
7128 | c3e36823 | j_mayer | #endif
|
7129 | c3e36823 | j_mayer | #if 0
|
7130 | 80d11f44 | j_mayer | POWERPC_SVR_8315E = xxx,
|
7131 | c3e36823 | j_mayer | #endif
|
7132 | c3e36823 | j_mayer | #if 0
|
7133 | 80d11f44 | j_mayer | POWERPC_SVR_8321 = xxx,
|
7134 | c3e36823 | j_mayer | #endif
|
7135 | c3e36823 | j_mayer | #if 0
|
7136 | 80d11f44 | j_mayer | POWERPC_SVR_8321E = xxx,
|
7137 | c3e36823 | j_mayer | #endif
|
7138 | c3e36823 | j_mayer | #if 0
|
7139 | 80d11f44 | j_mayer | POWERPC_SVR_8323 = xxx,
|
7140 | c3e36823 | j_mayer | #endif
|
7141 | c3e36823 | j_mayer | #if 0
|
7142 | 80d11f44 | j_mayer | POWERPC_SVR_8323E = xxx,
|
7143 | 80d11f44 | j_mayer | #endif
|
7144 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8343 = 0x80570010,
|
7145 | 80d11f44 | j_mayer | POWERPC_SVR_8343A = 0x80570030,
|
7146 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8343E = 0x80560010,
|
7147 | 80d11f44 | j_mayer | POWERPC_SVR_8343EA = 0x80560030,
|
7148 | 492d7bf5 | Thomas Monjalon | #define POWERPC_SVR_8347 POWERPC_SVR_8347T
|
7149 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8347P = 0x80550010, /* PBGA package */ |
7150 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8347T = 0x80530010, /* TBGA package */ |
7151 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347A POWERPC_SVR_8347AT
|
7152 | 80d11f44 | j_mayer | POWERPC_SVR_8347AP = 0x80550030, /* PBGA package */ |
7153 | 80d11f44 | j_mayer | POWERPC_SVR_8347AT = 0x80530030, /* TBGA package */ |
7154 | 492d7bf5 | Thomas Monjalon | #define POWERPC_SVR_8347E POWERPC_SVR_8347ET
|
7155 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8347EP = 0x80540010, /* PBGA package */ |
7156 | 492d7bf5 | Thomas Monjalon | POWERPC_SVR_8347ET = 0x80520010, /* TBGA package */ |
7157 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347EA POWERPC_SVR_8347EAT
|
7158 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAP = 0x80540030, /* PBGA package */ |
7159 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAT = 0x80520030, /* TBGA package */ |
7160 | 80d11f44 | j_mayer | POWERPC_SVR_8349 = 0x80510010,
|
7161 | 80d11f44 | j_mayer | POWERPC_SVR_8349A = 0x80510030,
|
7162 | 80d11f44 | j_mayer | POWERPC_SVR_8349E = 0x80500010,
|
7163 | 80d11f44 | j_mayer | POWERPC_SVR_8349EA = 0x80500030,
|
7164 | c3e36823 | j_mayer | #if 0
|
7165 | 80d11f44 | j_mayer | POWERPC_SVR_8358E = xxx,
|
7166 | c3e36823 | j_mayer | #endif
|
7167 | c3e36823 | j_mayer | #if 0
|
7168 | 80d11f44 | j_mayer | POWERPC_SVR_8360E = xxx,
|
7169 | 80d11f44 | j_mayer | #endif
|
7170 | 80d11f44 | j_mayer | #define POWERPC_SVR_E500 0x40000000 |
7171 | 80d11f44 | j_mayer | POWERPC_SVR_8377 = 0x80C70010 | POWERPC_SVR_E500,
|
7172 | 80d11f44 | j_mayer | POWERPC_SVR_8377E = 0x80C60010 | POWERPC_SVR_E500,
|
7173 | 80d11f44 | j_mayer | POWERPC_SVR_8378 = 0x80C50010 | POWERPC_SVR_E500,
|
7174 | 80d11f44 | j_mayer | POWERPC_SVR_8378E = 0x80C40010 | POWERPC_SVR_E500,
|
7175 | 80d11f44 | j_mayer | POWERPC_SVR_8379 = 0x80C30010 | POWERPC_SVR_E500,
|
7176 | 80d11f44 | j_mayer | POWERPC_SVR_8379E = 0x80C00010 | POWERPC_SVR_E500,
|
7177 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533 POWERPC_SVR_8533_v11
|
7178 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v10 = 0x80340010 | POWERPC_SVR_E500,
|
7179 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v11 = 0x80340011 | POWERPC_SVR_E500,
|
7180 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533E POWERPC_SVR_8533E_v11
|
7181 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v10 = 0x803C0010 | POWERPC_SVR_E500,
|
7182 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v11 = 0x803C0011 | POWERPC_SVR_E500,
|
7183 | 80d11f44 | j_mayer | #define POWERPC_SVR_8540 POWERPC_SVR_8540_v21
|
7184 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v10 = 0x80300010 | POWERPC_SVR_E500,
|
7185 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v20 = 0x80300020 | POWERPC_SVR_E500,
|
7186 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v21 = 0x80300021 | POWERPC_SVR_E500,
|
7187 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541 POWERPC_SVR_8541_v11
|
7188 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v10 = 0x80720010 | POWERPC_SVR_E500,
|
7189 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v11 = 0x80720011 | POWERPC_SVR_E500,
|
7190 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541E POWERPC_SVR_8541E_v11
|
7191 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v10 = 0x807A0010 | POWERPC_SVR_E500,
|
7192 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v11 = 0x807A0011 | POWERPC_SVR_E500,
|
7193 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543 POWERPC_SVR_8543_v21
|
7194 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v10 = 0x80320010 | POWERPC_SVR_E500,
|
7195 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v11 = 0x80320011 | POWERPC_SVR_E500,
|
7196 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v20 = 0x80320020 | POWERPC_SVR_E500,
|
7197 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v21 = 0x80320021 | POWERPC_SVR_E500,
|
7198 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543E POWERPC_SVR_8543E_v21
|
7199 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v10 = 0x803A0010 | POWERPC_SVR_E500,
|
7200 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v11 = 0x803A0011 | POWERPC_SVR_E500,
|
7201 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v20 = 0x803A0020 | POWERPC_SVR_E500,
|
7202 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v21 = 0x803A0021 | POWERPC_SVR_E500,
|
7203 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544 POWERPC_SVR_8544_v11
|
7204 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v10 = 0x80340110 | POWERPC_SVR_E500,
|
7205 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v11 = 0x80340111 | POWERPC_SVR_E500,
|
7206 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544E POWERPC_SVR_8544E_v11
|
7207 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v10 = 0x803C0110 | POWERPC_SVR_E500,
|
7208 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v11 = 0x803C0111 | POWERPC_SVR_E500,
|
7209 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545 POWERPC_SVR_8545_v21
|
7210 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v20 = 0x80310220 | POWERPC_SVR_E500,
|
7211 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v21 = 0x80310221 | POWERPC_SVR_E500,
|
7212 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545E POWERPC_SVR_8545E_v21
|
7213 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v20 = 0x80390220 | POWERPC_SVR_E500,
|
7214 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v21 = 0x80390221 | POWERPC_SVR_E500,
|
7215 | 80d11f44 | j_mayer | #define POWERPC_SVR_8547E POWERPC_SVR_8547E_v21
|
7216 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v20 = 0x80390120 | POWERPC_SVR_E500,
|
7217 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v21 = 0x80390121 | POWERPC_SVR_E500,
|
7218 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548 POWERPC_SVR_8548_v21
|
7219 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v10 = 0x80310010 | POWERPC_SVR_E500,
|
7220 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v11 = 0x80310011 | POWERPC_SVR_E500,
|
7221 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v20 = 0x80310020 | POWERPC_SVR_E500,
|
7222 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v21 = 0x80310021 | POWERPC_SVR_E500,
|
7223 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548E POWERPC_SVR_8548E_v21
|
7224 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v10 = 0x80390010 | POWERPC_SVR_E500,
|
7225 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v11 = 0x80390011 | POWERPC_SVR_E500,
|
7226 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v20 = 0x80390020 | POWERPC_SVR_E500,
|
7227 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v21 = 0x80390021 | POWERPC_SVR_E500,
|
7228 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555 POWERPC_SVR_8555_v11
|
7229 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v10 = 0x80710010 | POWERPC_SVR_E500,
|
7230 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v11 = 0x80710011 | POWERPC_SVR_E500,
|
7231 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555E POWERPC_SVR_8555_v11
|
7232 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v10 = 0x80790010 | POWERPC_SVR_E500,
|
7233 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v11 = 0x80790011 | POWERPC_SVR_E500,
|
7234 | 80d11f44 | j_mayer | #define POWERPC_SVR_8560 POWERPC_SVR_8560_v21
|
7235 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v10 = 0x80700010 | POWERPC_SVR_E500,
|
7236 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v20 = 0x80700020 | POWERPC_SVR_E500,
|
7237 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v21 = 0x80700021 | POWERPC_SVR_E500,
|
7238 | 80d11f44 | j_mayer | POWERPC_SVR_8567 = 0x80750111 | POWERPC_SVR_E500,
|
7239 | 80d11f44 | j_mayer | POWERPC_SVR_8567E = 0x807D0111 | POWERPC_SVR_E500,
|
7240 | 80d11f44 | j_mayer | POWERPC_SVR_8568 = 0x80750011 | POWERPC_SVR_E500,
|
7241 | 80d11f44 | j_mayer | POWERPC_SVR_8568E = 0x807D0011 | POWERPC_SVR_E500,
|
7242 | 80d11f44 | j_mayer | POWERPC_SVR_8572 = 0x80E00010 | POWERPC_SVR_E500,
|
7243 | 80d11f44 | j_mayer | POWERPC_SVR_8572E = 0x80E80010 | POWERPC_SVR_E500,
|
7244 | c3e36823 | j_mayer | #if 0
|
7245 | 80d11f44 | j_mayer | POWERPC_SVR_8610 = xxx,
|
7246 | c3e36823 | j_mayer | #endif
|
7247 | 80d11f44 | j_mayer | POWERPC_SVR_8641 = 0x80900021,
|
7248 | 80d11f44 | j_mayer | POWERPC_SVR_8641D = 0x80900121,
|
7249 | a750fc0b | j_mayer | }; |
7250 | a750fc0b | j_mayer | |
7251 | 3fc6c082 | bellard | /*****************************************************************************/
|
7252 | a750fc0b | j_mayer | /* PowerPC CPU definitions */
|
7253 | 80d11f44 | j_mayer | #define POWERPC_DEF_SVR(_name, _pvr, _svr, _type) \
|
7254 | a750fc0b | j_mayer | { \ |
7255 | a750fc0b | j_mayer | .name = _name, \ |
7256 | a750fc0b | j_mayer | .pvr = _pvr, \ |
7257 | 80d11f44 | j_mayer | .svr = _svr, \ |
7258 | a750fc0b | j_mayer | .insns_flags = glue(POWERPC_INSNS_,_type), \ |
7259 | a750fc0b | j_mayer | .msr_mask = glue(POWERPC_MSRM_,_type), \ |
7260 | a750fc0b | j_mayer | .mmu_model = glue(POWERPC_MMU_,_type), \ |
7261 | a750fc0b | j_mayer | .excp_model = glue(POWERPC_EXCP_,_type), \ |
7262 | a750fc0b | j_mayer | .bus_model = glue(POWERPC_INPUT_,_type), \ |
7263 | 237c0af0 | j_mayer | .bfd_mach = glue(POWERPC_BFDM_,_type), \ |
7264 | d26bfc9a | j_mayer | .flags = glue(POWERPC_FLAG_,_type), \ |
7265 | a750fc0b | j_mayer | .init_proc = &glue(init_proc_,_type), \ |
7266 | 2f462816 | j_mayer | .check_pow = &glue(check_pow_,_type), \ |
7267 | a750fc0b | j_mayer | } |
7268 | 80d11f44 | j_mayer | #define POWERPC_DEF(_name, _pvr, _type) \
|
7269 | 80d11f44 | j_mayer | POWERPC_DEF_SVR(_name, _pvr, POWERPC_SVR_NONE, _type) |
7270 | a750fc0b | j_mayer | |
7271 | c227f099 | Anthony Liguori | static const ppc_def_t ppc_defs[] = { |
7272 | a750fc0b | j_mayer | /* Embedded PowerPC */
|
7273 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
7274 | 2662a059 | j_mayer | /* Generic PowerPC 401 */
|
7275 | 80d11f44 | j_mayer | POWERPC_DEF("401", CPU_POWERPC_401, 401), |
7276 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
7277 | 2662a059 | j_mayer | /* PowerPC 401A1 */
|
7278 | 80d11f44 | j_mayer | POWERPC_DEF("401A1", CPU_POWERPC_401A1, 401), |
7279 | a750fc0b | j_mayer | /* PowerPC 401B2 */
|
7280 | 80d11f44 | j_mayer | POWERPC_DEF("401B2", CPU_POWERPC_401B2, 401x2), |
7281 | 2662a059 | j_mayer | #if defined (TODO)
|
7282 | a750fc0b | j_mayer | /* PowerPC 401B3 */
|
7283 | 80d11f44 | j_mayer | POWERPC_DEF("401B3", CPU_POWERPC_401B3, 401x3), |
7284 | a750fc0b | j_mayer | #endif
|
7285 | a750fc0b | j_mayer | /* PowerPC 401C2 */
|
7286 | 80d11f44 | j_mayer | POWERPC_DEF("401C2", CPU_POWERPC_401C2, 401x2), |
7287 | a750fc0b | j_mayer | /* PowerPC 401D2 */
|
7288 | 80d11f44 | j_mayer | POWERPC_DEF("401D2", CPU_POWERPC_401D2, 401x2), |
7289 | a750fc0b | j_mayer | /* PowerPC 401E2 */
|
7290 | 80d11f44 | j_mayer | POWERPC_DEF("401E2", CPU_POWERPC_401E2, 401x2), |
7291 | a750fc0b | j_mayer | /* PowerPC 401F2 */
|
7292 | 80d11f44 | j_mayer | POWERPC_DEF("401F2", CPU_POWERPC_401F2, 401x2), |
7293 | a750fc0b | j_mayer | /* PowerPC 401G2 */
|
7294 | a750fc0b | j_mayer | /* XXX: to be checked */
|
7295 | 80d11f44 | j_mayer | POWERPC_DEF("401G2", CPU_POWERPC_401G2, 401x2), |
7296 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
7297 | 2662a059 | j_mayer | #if defined (TODO)
|
7298 | a750fc0b | j_mayer | /* PowerPC 401GF */
|
7299 | 80d11f44 | j_mayer | POWERPC_DEF("401GF", CPU_POWERPC_401GF, 401), |
7300 | 3fc6c082 | bellard | #endif
|
7301 | a750fc0b | j_mayer | /* IOP480 (401 microcontroler) */
|
7302 | 80d11f44 | j_mayer | POWERPC_DEF("IOP480", CPU_POWERPC_IOP480, IOP480),
|
7303 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
7304 | 80d11f44 | j_mayer | POWERPC_DEF("Cobra", CPU_POWERPC_COBRA, 401), |
7305 | 3fc6c082 | bellard | #if defined (TODO)
|
7306 | 80d11f44 | j_mayer | POWERPC_DEF("Xipchip", CPU_POWERPC_XIPCHIP, 401), |
7307 | 3fc6c082 | bellard | #endif
|
7308 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
7309 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
7310 | 80d11f44 | j_mayer | POWERPC_DEF("403", CPU_POWERPC_403, 403), |
7311 | a750fc0b | j_mayer | /* PowerPC 403 microcontrolers */
|
7312 | a750fc0b | j_mayer | /* PowerPC 403 GA */
|
7313 | 80d11f44 | j_mayer | POWERPC_DEF("403GA", CPU_POWERPC_403GA, 403), |
7314 | a750fc0b | j_mayer | /* PowerPC 403 GB */
|
7315 | 80d11f44 | j_mayer | POWERPC_DEF("403GB", CPU_POWERPC_403GB, 403), |
7316 | a750fc0b | j_mayer | /* PowerPC 403 GC */
|
7317 | 80d11f44 | j_mayer | POWERPC_DEF("403GC", CPU_POWERPC_403GC, 403), |
7318 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
7319 | 80d11f44 | j_mayer | POWERPC_DEF("403GCX", CPU_POWERPC_403GCX, 403GCX), |
7320 | 3fc6c082 | bellard | #if defined (TODO)
|
7321 | a750fc0b | j_mayer | /* PowerPC 403 GP */
|
7322 | 80d11f44 | j_mayer | POWERPC_DEF("403GP", CPU_POWERPC_403GP, 403), |
7323 | 3fc6c082 | bellard | #endif
|
7324 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
7325 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
7326 | 80d11f44 | j_mayer | POWERPC_DEF("405", CPU_POWERPC_405, 405), |
7327 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
7328 | 2662a059 | j_mayer | #if defined (TODO)
|
7329 | a750fc0b | j_mayer | /* PowerPC 405 A3 */
|
7330 | 80d11f44 | j_mayer | POWERPC_DEF("405A3", CPU_POWERPC_405A3, 405), |
7331 | 3a607854 | j_mayer | #endif
|
7332 | 3a607854 | j_mayer | #if defined (TODO)
|
7333 | a750fc0b | j_mayer | /* PowerPC 405 A4 */
|
7334 | 80d11f44 | j_mayer | POWERPC_DEF("405A4", CPU_POWERPC_405A4, 405), |
7335 | 3a607854 | j_mayer | #endif
|
7336 | 3a607854 | j_mayer | #if defined (TODO)
|
7337 | a750fc0b | j_mayer | /* PowerPC 405 B3 */
|
7338 | 80d11f44 | j_mayer | POWERPC_DEF("405B3", CPU_POWERPC_405B3, 405), |
7339 | 3fc6c082 | bellard | #endif
|
7340 | 3fc6c082 | bellard | #if defined (TODO)
|
7341 | a750fc0b | j_mayer | /* PowerPC 405 B4 */
|
7342 | 80d11f44 | j_mayer | POWERPC_DEF("405B4", CPU_POWERPC_405B4, 405), |
7343 | a750fc0b | j_mayer | #endif
|
7344 | a750fc0b | j_mayer | #if defined (TODO)
|
7345 | a750fc0b | j_mayer | /* PowerPC 405 C3 */
|
7346 | 80d11f44 | j_mayer | POWERPC_DEF("405C3", CPU_POWERPC_405C3, 405), |
7347 | a750fc0b | j_mayer | #endif
|
7348 | a750fc0b | j_mayer | #if defined (TODO)
|
7349 | a750fc0b | j_mayer | /* PowerPC 405 C4 */
|
7350 | 80d11f44 | j_mayer | POWERPC_DEF("405C4", CPU_POWERPC_405C4, 405), |
7351 | a750fc0b | j_mayer | #endif
|
7352 | a750fc0b | j_mayer | /* PowerPC 405 D2 */
|
7353 | 80d11f44 | j_mayer | POWERPC_DEF("405D2", CPU_POWERPC_405D2, 405), |
7354 | a750fc0b | j_mayer | #if defined (TODO)
|
7355 | a750fc0b | j_mayer | /* PowerPC 405 D3 */
|
7356 | 80d11f44 | j_mayer | POWERPC_DEF("405D3", CPU_POWERPC_405D3, 405), |
7357 | a750fc0b | j_mayer | #endif
|
7358 | a750fc0b | j_mayer | /* PowerPC 405 D4 */
|
7359 | 80d11f44 | j_mayer | POWERPC_DEF("405D4", CPU_POWERPC_405D4, 405), |
7360 | a750fc0b | j_mayer | #if defined (TODO)
|
7361 | a750fc0b | j_mayer | /* PowerPC 405 D5 */
|
7362 | 80d11f44 | j_mayer | POWERPC_DEF("405D5", CPU_POWERPC_405D5, 405), |
7363 | a750fc0b | j_mayer | #endif
|
7364 | a750fc0b | j_mayer | #if defined (TODO)
|
7365 | a750fc0b | j_mayer | /* PowerPC 405 E4 */
|
7366 | 80d11f44 | j_mayer | POWERPC_DEF("405E4", CPU_POWERPC_405E4, 405), |
7367 | a750fc0b | j_mayer | #endif
|
7368 | a750fc0b | j_mayer | #if defined (TODO)
|
7369 | a750fc0b | j_mayer | /* PowerPC 405 F4 */
|
7370 | 80d11f44 | j_mayer | POWERPC_DEF("405F4", CPU_POWERPC_405F4, 405), |
7371 | a750fc0b | j_mayer | #endif
|
7372 | a750fc0b | j_mayer | #if defined (TODO)
|
7373 | a750fc0b | j_mayer | /* PowerPC 405 F5 */
|
7374 | 80d11f44 | j_mayer | POWERPC_DEF("405F5", CPU_POWERPC_405F5, 405), |
7375 | a750fc0b | j_mayer | #endif
|
7376 | a750fc0b | j_mayer | #if defined (TODO)
|
7377 | a750fc0b | j_mayer | /* PowerPC 405 F6 */
|
7378 | 80d11f44 | j_mayer | POWERPC_DEF("405F6", CPU_POWERPC_405F6, 405), |
7379 | a750fc0b | j_mayer | #endif
|
7380 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
7381 | a750fc0b | j_mayer | /* PowerPC 405 CR */
|
7382 | 80d11f44 | j_mayer | POWERPC_DEF("405CR", CPU_POWERPC_405CR, 405), |
7383 | a750fc0b | j_mayer | /* PowerPC 405 CRa */
|
7384 | 80d11f44 | j_mayer | POWERPC_DEF("405CRa", CPU_POWERPC_405CRa, 405), |
7385 | a750fc0b | j_mayer | /* PowerPC 405 CRb */
|
7386 | 80d11f44 | j_mayer | POWERPC_DEF("405CRb", CPU_POWERPC_405CRb, 405), |
7387 | a750fc0b | j_mayer | /* PowerPC 405 CRc */
|
7388 | 80d11f44 | j_mayer | POWERPC_DEF("405CRc", CPU_POWERPC_405CRc, 405), |
7389 | a750fc0b | j_mayer | /* PowerPC 405 EP */
|
7390 | 80d11f44 | j_mayer | POWERPC_DEF("405EP", CPU_POWERPC_405EP, 405), |
7391 | a750fc0b | j_mayer | #if defined(TODO)
|
7392 | a750fc0b | j_mayer | /* PowerPC 405 EXr */
|
7393 | 80d11f44 | j_mayer | POWERPC_DEF("405EXr", CPU_POWERPC_405EXr, 405), |
7394 | a750fc0b | j_mayer | #endif
|
7395 | a750fc0b | j_mayer | /* PowerPC 405 EZ */
|
7396 | 80d11f44 | j_mayer | POWERPC_DEF("405EZ", CPU_POWERPC_405EZ, 405), |
7397 | a750fc0b | j_mayer | #if defined(TODO)
|
7398 | a750fc0b | j_mayer | /* PowerPC 405 FX */
|
7399 | 80d11f44 | j_mayer | POWERPC_DEF("405FX", CPU_POWERPC_405FX, 405), |
7400 | a750fc0b | j_mayer | #endif
|
7401 | a750fc0b | j_mayer | /* PowerPC 405 GP */
|
7402 | 80d11f44 | j_mayer | POWERPC_DEF("405GP", CPU_POWERPC_405GP, 405), |
7403 | a750fc0b | j_mayer | /* PowerPC 405 GPa */
|
7404 | 80d11f44 | j_mayer | POWERPC_DEF("405GPa", CPU_POWERPC_405GPa, 405), |
7405 | a750fc0b | j_mayer | /* PowerPC 405 GPb */
|
7406 | 80d11f44 | j_mayer | POWERPC_DEF("405GPb", CPU_POWERPC_405GPb, 405), |
7407 | a750fc0b | j_mayer | /* PowerPC 405 GPc */
|
7408 | 80d11f44 | j_mayer | POWERPC_DEF("405GPc", CPU_POWERPC_405GPc, 405), |
7409 | a750fc0b | j_mayer | /* PowerPC 405 GPd */
|
7410 | 80d11f44 | j_mayer | POWERPC_DEF("405GPd", CPU_POWERPC_405GPd, 405), |
7411 | a750fc0b | j_mayer | /* PowerPC 405 GPe */
|
7412 | 80d11f44 | j_mayer | POWERPC_DEF("405GPe", CPU_POWERPC_405GPe, 405), |
7413 | a750fc0b | j_mayer | /* PowerPC 405 GPR */
|
7414 | 80d11f44 | j_mayer | POWERPC_DEF("405GPR", CPU_POWERPC_405GPR, 405), |
7415 | a750fc0b | j_mayer | #if defined(TODO)
|
7416 | a750fc0b | j_mayer | /* PowerPC 405 H */
|
7417 | 80d11f44 | j_mayer | POWERPC_DEF("405H", CPU_POWERPC_405H, 405), |
7418 | a750fc0b | j_mayer | #endif
|
7419 | a750fc0b | j_mayer | #if defined(TODO)
|
7420 | a750fc0b | j_mayer | /* PowerPC 405 L */
|
7421 | 80d11f44 | j_mayer | POWERPC_DEF("405L", CPU_POWERPC_405L, 405), |
7422 | a750fc0b | j_mayer | #endif
|
7423 | a750fc0b | j_mayer | /* PowerPC 405 LP */
|
7424 | 80d11f44 | j_mayer | POWERPC_DEF("405LP", CPU_POWERPC_405LP, 405), |
7425 | a750fc0b | j_mayer | #if defined(TODO)
|
7426 | a750fc0b | j_mayer | /* PowerPC 405 PM */
|
7427 | 80d11f44 | j_mayer | POWERPC_DEF("405PM", CPU_POWERPC_405PM, 405), |
7428 | a750fc0b | j_mayer | #endif
|
7429 | a750fc0b | j_mayer | #if defined(TODO)
|
7430 | a750fc0b | j_mayer | /* PowerPC 405 PS */
|
7431 | 80d11f44 | j_mayer | POWERPC_DEF("405PS", CPU_POWERPC_405PS, 405), |
7432 | a750fc0b | j_mayer | #endif
|
7433 | a750fc0b | j_mayer | #if defined(TODO)
|
7434 | a750fc0b | j_mayer | /* PowerPC 405 S */
|
7435 | 80d11f44 | j_mayer | POWERPC_DEF("405S", CPU_POWERPC_405S, 405), |
7436 | a750fc0b | j_mayer | #endif
|
7437 | a750fc0b | j_mayer | /* Npe405 H */
|
7438 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H", CPU_POWERPC_NPE405H, 405), |
7439 | a750fc0b | j_mayer | /* Npe405 H2 */
|
7440 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H2", CPU_POWERPC_NPE405H2, 405), |
7441 | a750fc0b | j_mayer | /* Npe405 L */
|
7442 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405L", CPU_POWERPC_NPE405L, 405), |
7443 | a750fc0b | j_mayer | /* Npe4GS3 */
|
7444 | 80d11f44 | j_mayer | POWERPC_DEF("Npe4GS3", CPU_POWERPC_NPE4GS3, 405), |
7445 | a750fc0b | j_mayer | #if defined (TODO)
|
7446 | 80d11f44 | j_mayer | POWERPC_DEF("Npcxx1", CPU_POWERPC_NPCxx1, 405), |
7447 | a750fc0b | j_mayer | #endif
|
7448 | a750fc0b | j_mayer | #if defined (TODO)
|
7449 | 80d11f44 | j_mayer | POWERPC_DEF("Npr161", CPU_POWERPC_NPR161, 405), |
7450 | a750fc0b | j_mayer | #endif
|
7451 | a750fc0b | j_mayer | #if defined (TODO)
|
7452 | a750fc0b | j_mayer | /* PowerPC LC77700 (Sanyo) */
|
7453 | 80d11f44 | j_mayer | POWERPC_DEF("LC77700", CPU_POWERPC_LC77700, 405), |
7454 | a750fc0b | j_mayer | #endif
|
7455 | a750fc0b | j_mayer | /* PowerPC 401/403/405 based set-top-box microcontrolers */
|
7456 | a750fc0b | j_mayer | #if defined (TODO)
|
7457 | a750fc0b | j_mayer | /* STB010000 */
|
7458 | 80d11f44 | j_mayer | POWERPC_DEF("STB01000", CPU_POWERPC_STB01000, 401x2), |
7459 | a750fc0b | j_mayer | #endif
|
7460 | a750fc0b | j_mayer | #if defined (TODO)
|
7461 | a750fc0b | j_mayer | /* STB01010 */
|
7462 | 80d11f44 | j_mayer | POWERPC_DEF("STB01010", CPU_POWERPC_STB01010, 401x2), |
7463 | a750fc0b | j_mayer | #endif
|
7464 | a750fc0b | j_mayer | #if defined (TODO)
|
7465 | a750fc0b | j_mayer | /* STB0210 */
|
7466 | 80d11f44 | j_mayer | POWERPC_DEF("STB0210", CPU_POWERPC_STB0210, 401x3), |
7467 | a750fc0b | j_mayer | #endif
|
7468 | a750fc0b | j_mayer | /* STB03xx */
|
7469 | 80d11f44 | j_mayer | POWERPC_DEF("STB03", CPU_POWERPC_STB03, 405), |
7470 | a750fc0b | j_mayer | #if defined (TODO)
|
7471 | a750fc0b | j_mayer | /* STB043x */
|
7472 | 80d11f44 | j_mayer | POWERPC_DEF("STB043", CPU_POWERPC_STB043, 405), |
7473 | a750fc0b | j_mayer | #endif
|
7474 | a750fc0b | j_mayer | #if defined (TODO)
|
7475 | a750fc0b | j_mayer | /* STB045x */
|
7476 | 80d11f44 | j_mayer | POWERPC_DEF("STB045", CPU_POWERPC_STB045, 405), |
7477 | a750fc0b | j_mayer | #endif
|
7478 | a750fc0b | j_mayer | /* STB04xx */
|
7479 | 80d11f44 | j_mayer | POWERPC_DEF("STB04", CPU_POWERPC_STB04, 405), |
7480 | a750fc0b | j_mayer | /* STB25xx */
|
7481 | 80d11f44 | j_mayer | POWERPC_DEF("STB25", CPU_POWERPC_STB25, 405), |
7482 | a750fc0b | j_mayer | #if defined (TODO)
|
7483 | a750fc0b | j_mayer | /* STB130 */
|
7484 | 80d11f44 | j_mayer | POWERPC_DEF("STB130", CPU_POWERPC_STB130, 405), |
7485 | a750fc0b | j_mayer | #endif
|
7486 | a750fc0b | j_mayer | /* Xilinx PowerPC 405 cores */
|
7487 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp4", CPU_POWERPC_X2VP4, 405), |
7488 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp7", CPU_POWERPC_X2VP7, 405), |
7489 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp20", CPU_POWERPC_X2VP20, 405), |
7490 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp50", CPU_POWERPC_X2VP50, 405), |
7491 | a750fc0b | j_mayer | #if defined (TODO)
|
7492 | a750fc0b | j_mayer | /* Zarlink ZL10310 */
|
7493 | 80d11f44 | j_mayer | POWERPC_DEF("zl10310", CPU_POWERPC_ZL10310, 405), |
7494 | a750fc0b | j_mayer | #endif
|
7495 | a750fc0b | j_mayer | #if defined (TODO)
|
7496 | a750fc0b | j_mayer | /* Zarlink ZL10311 */
|
7497 | 80d11f44 | j_mayer | POWERPC_DEF("zl10311", CPU_POWERPC_ZL10311, 405), |
7498 | a750fc0b | j_mayer | #endif
|
7499 | a750fc0b | j_mayer | #if defined (TODO)
|
7500 | a750fc0b | j_mayer | /* Zarlink ZL10320 */
|
7501 | 80d11f44 | j_mayer | POWERPC_DEF("zl10320", CPU_POWERPC_ZL10320, 405), |
7502 | a750fc0b | j_mayer | #endif
|
7503 | a750fc0b | j_mayer | #if defined (TODO)
|
7504 | a750fc0b | j_mayer | /* Zarlink ZL10321 */
|
7505 | 80d11f44 | j_mayer | POWERPC_DEF("zl10321", CPU_POWERPC_ZL10321, 405), |
7506 | a750fc0b | j_mayer | #endif
|
7507 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
7508 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7509 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
7510 | 80d11f44 | j_mayer | POWERPC_DEF("440", CPU_POWERPC_440, 440GP), |
7511 | 80d11f44 | j_mayer | #endif
|
7512 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
7513 | a750fc0b | j_mayer | #if defined (TODO)
|
7514 | a750fc0b | j_mayer | /* PowerPC 440 A4 */
|
7515 | 80d11f44 | j_mayer | POWERPC_DEF("440A4", CPU_POWERPC_440A4, 440x4), |
7516 | a750fc0b | j_mayer | #endif
|
7517 | 95070372 | Edgar E. Iglesias | /* PowerPC 440 Xilinx 5 */
|
7518 | 95070372 | Edgar E. Iglesias | POWERPC_DEF("440-Xilinx", CPU_POWERPC_440_XILINX, 440x5), |
7519 | a750fc0b | j_mayer | #if defined (TODO)
|
7520 | a750fc0b | j_mayer | /* PowerPC 440 A5 */
|
7521 | 80d11f44 | j_mayer | POWERPC_DEF("440A5", CPU_POWERPC_440A5, 440x5), |
7522 | a750fc0b | j_mayer | #endif
|
7523 | a750fc0b | j_mayer | #if defined (TODO)
|
7524 | a750fc0b | j_mayer | /* PowerPC 440 B4 */
|
7525 | 80d11f44 | j_mayer | POWERPC_DEF("440B4", CPU_POWERPC_440B4, 440x4), |
7526 | a750fc0b | j_mayer | #endif
|
7527 | a750fc0b | j_mayer | #if defined (TODO)
|
7528 | a750fc0b | j_mayer | /* PowerPC 440 G4 */
|
7529 | 80d11f44 | j_mayer | POWERPC_DEF("440G4", CPU_POWERPC_440G4, 440x4), |
7530 | a750fc0b | j_mayer | #endif
|
7531 | a750fc0b | j_mayer | #if defined (TODO)
|
7532 | a750fc0b | j_mayer | /* PowerPC 440 F5 */
|
7533 | 80d11f44 | j_mayer | POWERPC_DEF("440F5", CPU_POWERPC_440F5, 440x5), |
7534 | a750fc0b | j_mayer | #endif
|
7535 | a750fc0b | j_mayer | #if defined (TODO)
|
7536 | a750fc0b | j_mayer | /* PowerPC 440 G5 */
|
7537 | 80d11f44 | j_mayer | POWERPC_DEF("440G5", CPU_POWERPC_440G5, 440x5), |
7538 | a750fc0b | j_mayer | #endif
|
7539 | a750fc0b | j_mayer | #if defined (TODO)
|
7540 | a750fc0b | j_mayer | /* PowerPC 440H4 */
|
7541 | 80d11f44 | j_mayer | POWERPC_DEF("440H4", CPU_POWERPC_440H4, 440x4), |
7542 | a750fc0b | j_mayer | #endif
|
7543 | a750fc0b | j_mayer | #if defined (TODO)
|
7544 | a750fc0b | j_mayer | /* PowerPC 440H6 */
|
7545 | 80d11f44 | j_mayer | POWERPC_DEF("440H6", CPU_POWERPC_440H6, 440Gx5), |
7546 | a750fc0b | j_mayer | #endif
|
7547 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
7548 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7549 | a750fc0b | j_mayer | /* PowerPC 440 EP */
|
7550 | 80d11f44 | j_mayer | POWERPC_DEF("440EP", CPU_POWERPC_440EP, 440EP), |
7551 | 80d11f44 | j_mayer | #endif
|
7552 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7553 | a750fc0b | j_mayer | /* PowerPC 440 EPa */
|
7554 | 80d11f44 | j_mayer | POWERPC_DEF("440EPa", CPU_POWERPC_440EPa, 440EP), |
7555 | 80d11f44 | j_mayer | #endif
|
7556 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7557 | a750fc0b | j_mayer | /* PowerPC 440 EPb */
|
7558 | 80d11f44 | j_mayer | POWERPC_DEF("440EPb", CPU_POWERPC_440EPb, 440EP), |
7559 | 80d11f44 | j_mayer | #endif
|
7560 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7561 | a750fc0b | j_mayer | /* PowerPC 440 EPX */
|
7562 | 80d11f44 | j_mayer | POWERPC_DEF("440EPX", CPU_POWERPC_440EPX, 440EP), |
7563 | 80d11f44 | j_mayer | #endif
|
7564 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7565 | a750fc0b | j_mayer | /* PowerPC 440 GP */
|
7566 | 80d11f44 | j_mayer | POWERPC_DEF("440GP", CPU_POWERPC_440GP, 440GP), |
7567 | 80d11f44 | j_mayer | #endif
|
7568 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7569 | a750fc0b | j_mayer | /* PowerPC 440 GPb */
|
7570 | 80d11f44 | j_mayer | POWERPC_DEF("440GPb", CPU_POWERPC_440GPb, 440GP), |
7571 | 80d11f44 | j_mayer | #endif
|
7572 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7573 | a750fc0b | j_mayer | /* PowerPC 440 GPc */
|
7574 | 80d11f44 | j_mayer | POWERPC_DEF("440GPc", CPU_POWERPC_440GPc, 440GP), |
7575 | 80d11f44 | j_mayer | #endif
|
7576 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7577 | a750fc0b | j_mayer | /* PowerPC 440 GR */
|
7578 | 80d11f44 | j_mayer | POWERPC_DEF("440GR", CPU_POWERPC_440GR, 440x5), |
7579 | 80d11f44 | j_mayer | #endif
|
7580 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7581 | a750fc0b | j_mayer | /* PowerPC 440 GRa */
|
7582 | 80d11f44 | j_mayer | POWERPC_DEF("440GRa", CPU_POWERPC_440GRa, 440x5), |
7583 | 80d11f44 | j_mayer | #endif
|
7584 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7585 | a750fc0b | j_mayer | /* PowerPC 440 GRX */
|
7586 | 80d11f44 | j_mayer | POWERPC_DEF("440GRX", CPU_POWERPC_440GRX, 440x5), |
7587 | 80d11f44 | j_mayer | #endif
|
7588 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7589 | a750fc0b | j_mayer | /* PowerPC 440 GX */
|
7590 | 80d11f44 | j_mayer | POWERPC_DEF("440GX", CPU_POWERPC_440GX, 440EP), |
7591 | 80d11f44 | j_mayer | #endif
|
7592 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7593 | a750fc0b | j_mayer | /* PowerPC 440 GXa */
|
7594 | 80d11f44 | j_mayer | POWERPC_DEF("440GXa", CPU_POWERPC_440GXa, 440EP), |
7595 | 80d11f44 | j_mayer | #endif
|
7596 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7597 | a750fc0b | j_mayer | /* PowerPC 440 GXb */
|
7598 | 80d11f44 | j_mayer | POWERPC_DEF("440GXb", CPU_POWERPC_440GXb, 440EP), |
7599 | 80d11f44 | j_mayer | #endif
|
7600 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7601 | a750fc0b | j_mayer | /* PowerPC 440 GXc */
|
7602 | 80d11f44 | j_mayer | POWERPC_DEF("440GXc", CPU_POWERPC_440GXc, 440EP), |
7603 | 80d11f44 | j_mayer | #endif
|
7604 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7605 | a750fc0b | j_mayer | /* PowerPC 440 GXf */
|
7606 | 80d11f44 | j_mayer | POWERPC_DEF("440GXf", CPU_POWERPC_440GXf, 440EP), |
7607 | 80d11f44 | j_mayer | #endif
|
7608 | a750fc0b | j_mayer | #if defined(TODO)
|
7609 | a750fc0b | j_mayer | /* PowerPC 440 S */
|
7610 | 80d11f44 | j_mayer | POWERPC_DEF("440S", CPU_POWERPC_440S, 440), |
7611 | a750fc0b | j_mayer | #endif
|
7612 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7613 | a750fc0b | j_mayer | /* PowerPC 440 SP */
|
7614 | 80d11f44 | j_mayer | POWERPC_DEF("440SP", CPU_POWERPC_440SP, 440EP), |
7615 | 80d11f44 | j_mayer | #endif
|
7616 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7617 | a750fc0b | j_mayer | /* PowerPC 440 SP2 */
|
7618 | 80d11f44 | j_mayer | POWERPC_DEF("440SP2", CPU_POWERPC_440SP2, 440EP), |
7619 | 80d11f44 | j_mayer | #endif
|
7620 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7621 | a750fc0b | j_mayer | /* PowerPC 440 SPE */
|
7622 | 80d11f44 | j_mayer | POWERPC_DEF("440SPE", CPU_POWERPC_440SPE, 440EP), |
7623 | 80d11f44 | j_mayer | #endif
|
7624 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
7625 | a750fc0b | j_mayer | #if defined (TODO)
|
7626 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
7627 | 80d11f44 | j_mayer | POWERPC_DEF("464", CPU_POWERPC_464, 460), |
7628 | a750fc0b | j_mayer | #endif
|
7629 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
7630 | a750fc0b | j_mayer | #if defined (TODO)
|
7631 | a750fc0b | j_mayer | /* PowerPC 464H90 */
|
7632 | 80d11f44 | j_mayer | POWERPC_DEF("464H90", CPU_POWERPC_464H90, 460), |
7633 | a750fc0b | j_mayer | #endif
|
7634 | a750fc0b | j_mayer | #if defined (TODO)
|
7635 | a750fc0b | j_mayer | /* PowerPC 464H90F */
|
7636 | 80d11f44 | j_mayer | POWERPC_DEF("464H90F", CPU_POWERPC_464H90F, 460F), |
7637 | a750fc0b | j_mayer | #endif
|
7638 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
7639 | 80d11f44 | j_mayer | /* MPC5xx family (aka RCPU) */
|
7640 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7641 | 80d11f44 | j_mayer | /* Generic MPC5xx core */
|
7642 | 80d11f44 | j_mayer | POWERPC_DEF("MPC5xx", CPU_POWERPC_MPC5xx, MPC5xx),
|
7643 | 80d11f44 | j_mayer | #endif
|
7644 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7645 | 80d11f44 | j_mayer | /* Codename for MPC5xx core */
|
7646 | 80d11f44 | j_mayer | POWERPC_DEF("RCPU", CPU_POWERPC_MPC5xx, MPC5xx),
|
7647 | 80d11f44 | j_mayer | #endif
|
7648 | 80d11f44 | j_mayer | /* MPC5xx microcontrollers */
|
7649 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7650 | 80d11f44 | j_mayer | /* MGT560 */
|
7651 | 80d11f44 | j_mayer | POWERPC_DEF("MGT560", CPU_POWERPC_MGT560, MPC5xx),
|
7652 | 80d11f44 | j_mayer | #endif
|
7653 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7654 | 80d11f44 | j_mayer | /* MPC509 */
|
7655 | 80d11f44 | j_mayer | POWERPC_DEF("MPC509", CPU_POWERPC_MPC509, MPC5xx),
|
7656 | 80d11f44 | j_mayer | #endif
|
7657 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7658 | 80d11f44 | j_mayer | /* MPC533 */
|
7659 | 80d11f44 | j_mayer | POWERPC_DEF("MPC533", CPU_POWERPC_MPC533, MPC5xx),
|
7660 | 80d11f44 | j_mayer | #endif
|
7661 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7662 | 80d11f44 | j_mayer | /* MPC534 */
|
7663 | 80d11f44 | j_mayer | POWERPC_DEF("MPC534", CPU_POWERPC_MPC534, MPC5xx),
|
7664 | 80d11f44 | j_mayer | #endif
|
7665 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7666 | 80d11f44 | j_mayer | /* MPC555 */
|
7667 | 80d11f44 | j_mayer | POWERPC_DEF("MPC555", CPU_POWERPC_MPC555, MPC5xx),
|
7668 | 80d11f44 | j_mayer | #endif
|
7669 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7670 | 80d11f44 | j_mayer | /* MPC556 */
|
7671 | 80d11f44 | j_mayer | POWERPC_DEF("MPC556", CPU_POWERPC_MPC556, MPC5xx),
|
7672 | 80d11f44 | j_mayer | #endif
|
7673 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7674 | 80d11f44 | j_mayer | /* MPC560 */
|
7675 | 80d11f44 | j_mayer | POWERPC_DEF("MPC560", CPU_POWERPC_MPC560, MPC5xx),
|
7676 | 80d11f44 | j_mayer | #endif
|
7677 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7678 | 80d11f44 | j_mayer | /* MPC561 */
|
7679 | 80d11f44 | j_mayer | POWERPC_DEF("MPC561", CPU_POWERPC_MPC561, MPC5xx),
|
7680 | 80d11f44 | j_mayer | #endif
|
7681 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7682 | 80d11f44 | j_mayer | /* MPC562 */
|
7683 | 80d11f44 | j_mayer | POWERPC_DEF("MPC562", CPU_POWERPC_MPC562, MPC5xx),
|
7684 | 80d11f44 | j_mayer | #endif
|
7685 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7686 | 80d11f44 | j_mayer | /* MPC563 */
|
7687 | 80d11f44 | j_mayer | POWERPC_DEF("MPC563", CPU_POWERPC_MPC563, MPC5xx),
|
7688 | 80d11f44 | j_mayer | #endif
|
7689 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7690 | 80d11f44 | j_mayer | /* MPC564 */
|
7691 | 80d11f44 | j_mayer | POWERPC_DEF("MPC564", CPU_POWERPC_MPC564, MPC5xx),
|
7692 | 80d11f44 | j_mayer | #endif
|
7693 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7694 | 80d11f44 | j_mayer | /* MPC565 */
|
7695 | 80d11f44 | j_mayer | POWERPC_DEF("MPC565", CPU_POWERPC_MPC565, MPC5xx),
|
7696 | 80d11f44 | j_mayer | #endif
|
7697 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7698 | 80d11f44 | j_mayer | /* MPC566 */
|
7699 | 80d11f44 | j_mayer | POWERPC_DEF("MPC566", CPU_POWERPC_MPC566, MPC5xx),
|
7700 | 80d11f44 | j_mayer | #endif
|
7701 | 80d11f44 | j_mayer | /* MPC8xx family (aka PowerQUICC) */
|
7702 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7703 | 80d11f44 | j_mayer | /* Generic MPC8xx core */
|
7704 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8xx", CPU_POWERPC_MPC8xx, MPC8xx),
|
7705 | 80d11f44 | j_mayer | #endif
|
7706 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7707 | 80d11f44 | j_mayer | /* Codename for MPC8xx core */
|
7708 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC", CPU_POWERPC_MPC8xx, MPC8xx),
|
7709 | 80d11f44 | j_mayer | #endif
|
7710 | 80d11f44 | j_mayer | /* MPC8xx microcontrollers */
|
7711 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7712 | 80d11f44 | j_mayer | /* MGT823 */
|
7713 | 80d11f44 | j_mayer | POWERPC_DEF("MGT823", CPU_POWERPC_MGT823, MPC8xx),
|
7714 | 80d11f44 | j_mayer | #endif
|
7715 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7716 | 80d11f44 | j_mayer | /* MPC821 */
|
7717 | 80d11f44 | j_mayer | POWERPC_DEF("MPC821", CPU_POWERPC_MPC821, MPC8xx),
|
7718 | 80d11f44 | j_mayer | #endif
|
7719 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7720 | 80d11f44 | j_mayer | /* MPC823 */
|
7721 | 80d11f44 | j_mayer | POWERPC_DEF("MPC823", CPU_POWERPC_MPC823, MPC8xx),
|
7722 | 80d11f44 | j_mayer | #endif
|
7723 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7724 | 80d11f44 | j_mayer | /* MPC850 */
|
7725 | 80d11f44 | j_mayer | POWERPC_DEF("MPC850", CPU_POWERPC_MPC850, MPC8xx),
|
7726 | 80d11f44 | j_mayer | #endif
|
7727 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7728 | 80d11f44 | j_mayer | /* MPC852T */
|
7729 | 80d11f44 | j_mayer | POWERPC_DEF("MPC852T", CPU_POWERPC_MPC852T, MPC8xx),
|
7730 | 80d11f44 | j_mayer | #endif
|
7731 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7732 | 80d11f44 | j_mayer | /* MPC855T */
|
7733 | 80d11f44 | j_mayer | POWERPC_DEF("MPC855T", CPU_POWERPC_MPC855T, MPC8xx),
|
7734 | 80d11f44 | j_mayer | #endif
|
7735 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7736 | 80d11f44 | j_mayer | /* MPC857 */
|
7737 | 80d11f44 | j_mayer | POWERPC_DEF("MPC857", CPU_POWERPC_MPC857, MPC8xx),
|
7738 | 80d11f44 | j_mayer | #endif
|
7739 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7740 | 80d11f44 | j_mayer | /* MPC859 */
|
7741 | 80d11f44 | j_mayer | POWERPC_DEF("MPC859", CPU_POWERPC_MPC859, MPC8xx),
|
7742 | 80d11f44 | j_mayer | #endif
|
7743 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7744 | 80d11f44 | j_mayer | /* MPC860 */
|
7745 | 80d11f44 | j_mayer | POWERPC_DEF("MPC860", CPU_POWERPC_MPC860, MPC8xx),
|
7746 | 80d11f44 | j_mayer | #endif
|
7747 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7748 | 80d11f44 | j_mayer | /* MPC862 */
|
7749 | 80d11f44 | j_mayer | POWERPC_DEF("MPC862", CPU_POWERPC_MPC862, MPC8xx),
|
7750 | 80d11f44 | j_mayer | #endif
|
7751 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7752 | 80d11f44 | j_mayer | /* MPC866 */
|
7753 | 80d11f44 | j_mayer | POWERPC_DEF("MPC866", CPU_POWERPC_MPC866, MPC8xx),
|
7754 | 80d11f44 | j_mayer | #endif
|
7755 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7756 | 80d11f44 | j_mayer | /* MPC870 */
|
7757 | 80d11f44 | j_mayer | POWERPC_DEF("MPC870", CPU_POWERPC_MPC870, MPC8xx),
|
7758 | 80d11f44 | j_mayer | #endif
|
7759 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7760 | 80d11f44 | j_mayer | /* MPC875 */
|
7761 | 80d11f44 | j_mayer | POWERPC_DEF("MPC875", CPU_POWERPC_MPC875, MPC8xx),
|
7762 | 80d11f44 | j_mayer | #endif
|
7763 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7764 | 80d11f44 | j_mayer | /* MPC880 */
|
7765 | 80d11f44 | j_mayer | POWERPC_DEF("MPC880", CPU_POWERPC_MPC880, MPC8xx),
|
7766 | 80d11f44 | j_mayer | #endif
|
7767 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7768 | 80d11f44 | j_mayer | /* MPC885 */
|
7769 | 80d11f44 | j_mayer | POWERPC_DEF("MPC885", CPU_POWERPC_MPC885, MPC8xx),
|
7770 | 80d11f44 | j_mayer | #endif
|
7771 | 80d11f44 | j_mayer | /* MPC82xx family (aka PowerQUICC-II) */
|
7772 | 80d11f44 | j_mayer | /* Generic MPC52xx core */
|
7773 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC52xx",
|
7774 | 80d11f44 | j_mayer | CPU_POWERPC_MPC52xx, POWERPC_SVR_52xx, G2LE), |
7775 | 80d11f44 | j_mayer | /* Generic MPC82xx core */
|
7776 | 80d11f44 | j_mayer | POWERPC_DEF("MPC82xx", CPU_POWERPC_MPC82xx, G2),
|
7777 | 80d11f44 | j_mayer | /* Codename for MPC82xx */
|
7778 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC-II", CPU_POWERPC_MPC82xx, G2),
|
7779 | 80d11f44 | j_mayer | /* PowerPC G2 core */
|
7780 | 80d11f44 | j_mayer | POWERPC_DEF("G2", CPU_POWERPC_G2, G2),
|
7781 | 80d11f44 | j_mayer | /* PowerPC G2 H4 core */
|
7782 | 80d11f44 | j_mayer | POWERPC_DEF("G2H4", CPU_POWERPC_G2H4, G2),
|
7783 | 80d11f44 | j_mayer | /* PowerPC G2 GP core */
|
7784 | 80d11f44 | j_mayer | POWERPC_DEF("G2GP", CPU_POWERPC_G2gp, G2),
|
7785 | 80d11f44 | j_mayer | /* PowerPC G2 LS core */
|
7786 | 80d11f44 | j_mayer | POWERPC_DEF("G2LS", CPU_POWERPC_G2ls, G2),
|
7787 | 80d11f44 | j_mayer | /* PowerPC G2 HiP3 core */
|
7788 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP3", CPU_POWERPC_G2_HIP3, G2),
|
7789 | 80d11f44 | j_mayer | /* PowerPC G2 HiP4 core */
|
7790 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP4", CPU_POWERPC_G2_HIP4, G2),
|
7791 | 80d11f44 | j_mayer | /* PowerPC MPC603 core */
|
7792 | 80d11f44 | j_mayer | POWERPC_DEF("MPC603", CPU_POWERPC_MPC603, 603E), |
7793 | 80d11f44 | j_mayer | /* PowerPC G2le core (same as G2 plus little-endian mode support) */
|
7794 | 80d11f44 | j_mayer | POWERPC_DEF("G2le", CPU_POWERPC_G2LE, G2LE),
|
7795 | 80d11f44 | j_mayer | /* PowerPC G2LE GP core */
|
7796 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP", CPU_POWERPC_G2LEgp, G2LE),
|
7797 | 80d11f44 | j_mayer | /* PowerPC G2LE LS core */
|
7798 | 80d11f44 | j_mayer | POWERPC_DEF("G2leLS", CPU_POWERPC_G2LEls, G2LE),
|
7799 | 80d11f44 | j_mayer | /* PowerPC G2LE GP1 core */
|
7800 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP1", CPU_POWERPC_G2LEgp1, G2LE),
|
7801 | 80d11f44 | j_mayer | /* PowerPC G2LE GP3 core */
|
7802 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP3", CPU_POWERPC_G2LEgp1, G2LE),
|
7803 | 80d11f44 | j_mayer | /* PowerPC MPC603 microcontrollers */
|
7804 | 80d11f44 | j_mayer | /* MPC8240 */
|
7805 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8240", CPU_POWERPC_MPC8240, 603E), |
7806 | 80d11f44 | j_mayer | /* PowerPC G2 microcontrollers */
|
7807 | 082c6681 | j_mayer | #if defined(TODO)
|
7808 | 80d11f44 | j_mayer | /* MPC5121 */
|
7809 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5121",
|
7810 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5121, POWERPC_SVR_5121, G2LE), |
7811 | 80d11f44 | j_mayer | #endif
|
7812 | 80d11f44 | j_mayer | /* MPC5200 */
|
7813 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200",
|
7814 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200, POWERPC_SVR_5200, G2LE), |
7815 | 80d11f44 | j_mayer | /* MPC5200 v1.0 */
|
7816 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v10",
|
7817 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v10, POWERPC_SVR_5200_v10, G2LE), |
7818 | 80d11f44 | j_mayer | /* MPC5200 v1.1 */
|
7819 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v11",
|
7820 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v11, POWERPC_SVR_5200_v11, G2LE), |
7821 | 80d11f44 | j_mayer | /* MPC5200 v1.2 */
|
7822 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v12",
|
7823 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v12, POWERPC_SVR_5200_v12, G2LE), |
7824 | 80d11f44 | j_mayer | /* MPC5200B */
|
7825 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B",
|
7826 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B, POWERPC_SVR_5200B, G2LE), |
7827 | 80d11f44 | j_mayer | /* MPC5200B v2.0 */
|
7828 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v20",
|
7829 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v20, POWERPC_SVR_5200B_v20, G2LE), |
7830 | 80d11f44 | j_mayer | /* MPC5200B v2.1 */
|
7831 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v21",
|
7832 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v21, POWERPC_SVR_5200B_v21, G2LE), |
7833 | 80d11f44 | j_mayer | /* MPC8241 */
|
7834 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8241", CPU_POWERPC_MPC8241, G2),
|
7835 | 80d11f44 | j_mayer | /* MPC8245 */
|
7836 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8245", CPU_POWERPC_MPC8245, G2),
|
7837 | 80d11f44 | j_mayer | /* MPC8247 */
|
7838 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8247", CPU_POWERPC_MPC8247, G2LE),
|
7839 | 80d11f44 | j_mayer | /* MPC8248 */
|
7840 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8248", CPU_POWERPC_MPC8248, G2LE),
|
7841 | 80d11f44 | j_mayer | /* MPC8250 */
|
7842 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250", CPU_POWERPC_MPC8250, G2),
|
7843 | 80d11f44 | j_mayer | /* MPC8250 HiP3 */
|
7844 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP3", CPU_POWERPC_MPC8250_HiP3, G2),
|
7845 | 80d11f44 | j_mayer | /* MPC8250 HiP4 */
|
7846 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP4", CPU_POWERPC_MPC8250_HiP4, G2),
|
7847 | 80d11f44 | j_mayer | /* MPC8255 */
|
7848 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255", CPU_POWERPC_MPC8255, G2),
|
7849 | 80d11f44 | j_mayer | /* MPC8255 HiP3 */
|
7850 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP3", CPU_POWERPC_MPC8255_HiP3, G2),
|
7851 | 80d11f44 | j_mayer | /* MPC8255 HiP4 */
|
7852 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP4", CPU_POWERPC_MPC8255_HiP4, G2),
|
7853 | 80d11f44 | j_mayer | /* MPC8260 */
|
7854 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260", CPU_POWERPC_MPC8260, G2),
|
7855 | 80d11f44 | j_mayer | /* MPC8260 HiP3 */
|
7856 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP3", CPU_POWERPC_MPC8260_HiP3, G2),
|
7857 | 80d11f44 | j_mayer | /* MPC8260 HiP4 */
|
7858 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP4", CPU_POWERPC_MPC8260_HiP4, G2),
|
7859 | 80d11f44 | j_mayer | /* MPC8264 */
|
7860 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264", CPU_POWERPC_MPC8264, G2),
|
7861 | 80d11f44 | j_mayer | /* MPC8264 HiP3 */
|
7862 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP3", CPU_POWERPC_MPC8264_HiP3, G2),
|
7863 | 80d11f44 | j_mayer | /* MPC8264 HiP4 */
|
7864 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP4", CPU_POWERPC_MPC8264_HiP4, G2),
|
7865 | 80d11f44 | j_mayer | /* MPC8265 */
|
7866 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265", CPU_POWERPC_MPC8265, G2),
|
7867 | 80d11f44 | j_mayer | /* MPC8265 HiP3 */
|
7868 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP3", CPU_POWERPC_MPC8265_HiP3, G2),
|
7869 | 80d11f44 | j_mayer | /* MPC8265 HiP4 */
|
7870 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP4", CPU_POWERPC_MPC8265_HiP4, G2),
|
7871 | 80d11f44 | j_mayer | /* MPC8266 */
|
7872 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266", CPU_POWERPC_MPC8266, G2),
|
7873 | 80d11f44 | j_mayer | /* MPC8266 HiP3 */
|
7874 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP3", CPU_POWERPC_MPC8266_HiP3, G2),
|
7875 | 80d11f44 | j_mayer | /* MPC8266 HiP4 */
|
7876 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP4", CPU_POWERPC_MPC8266_HiP4, G2),
|
7877 | 80d11f44 | j_mayer | /* MPC8270 */
|
7878 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8270", CPU_POWERPC_MPC8270, G2LE),
|
7879 | 80d11f44 | j_mayer | /* MPC8271 */
|
7880 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8271", CPU_POWERPC_MPC8271, G2LE),
|
7881 | 80d11f44 | j_mayer | /* MPC8272 */
|
7882 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8272", CPU_POWERPC_MPC8272, G2LE),
|
7883 | 80d11f44 | j_mayer | /* MPC8275 */
|
7884 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8275", CPU_POWERPC_MPC8275, G2LE),
|
7885 | 80d11f44 | j_mayer | /* MPC8280 */
|
7886 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8280", CPU_POWERPC_MPC8280, G2LE),
|
7887 | a750fc0b | j_mayer | /* e200 family */
|
7888 | a750fc0b | j_mayer | /* Generic PowerPC e200 core */
|
7889 | 80d11f44 | j_mayer | POWERPC_DEF("e200", CPU_POWERPC_e200, e200),
|
7890 | 80d11f44 | j_mayer | /* Generic MPC55xx core */
|
7891 | 80d11f44 | j_mayer | #if defined (TODO)
|
7892 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC55xx",
|
7893 | 80d11f44 | j_mayer | CPU_POWERPC_MPC55xx, POWERPC_SVR_55xx, e200), |
7894 | a750fc0b | j_mayer | #endif
|
7895 | a750fc0b | j_mayer | #if defined (TODO)
|
7896 | 80d11f44 | j_mayer | /* PowerPC e200z0 core */
|
7897 | 80d11f44 | j_mayer | POWERPC_DEF("e200z0", CPU_POWERPC_e200z0, e200),
|
7898 | a750fc0b | j_mayer | #endif
|
7899 | a750fc0b | j_mayer | #if defined (TODO)
|
7900 | 80d11f44 | j_mayer | /* PowerPC e200z1 core */
|
7901 | 80d11f44 | j_mayer | POWERPC_DEF("e200z1", CPU_POWERPC_e200z1, e200),
|
7902 | 80d11f44 | j_mayer | #endif
|
7903 | 80d11f44 | j_mayer | #if defined (TODO)
|
7904 | 80d11f44 | j_mayer | /* PowerPC e200z3 core */
|
7905 | 80d11f44 | j_mayer | POWERPC_DEF("e200z3", CPU_POWERPC_e200z3, e200),
|
7906 | 80d11f44 | j_mayer | #endif
|
7907 | 80d11f44 | j_mayer | /* PowerPC e200z5 core */
|
7908 | 80d11f44 | j_mayer | POWERPC_DEF("e200z5", CPU_POWERPC_e200z5, e200),
|
7909 | a750fc0b | j_mayer | /* PowerPC e200z6 core */
|
7910 | 80d11f44 | j_mayer | POWERPC_DEF("e200z6", CPU_POWERPC_e200z6, e200),
|
7911 | 80d11f44 | j_mayer | /* PowerPC e200 microcontrollers */
|
7912 | 80d11f44 | j_mayer | #if defined (TODO)
|
7913 | 80d11f44 | j_mayer | /* MPC5514E */
|
7914 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E",
|
7915 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E, POWERPC_SVR_5514E, e200), |
7916 | a750fc0b | j_mayer | #endif
|
7917 | a750fc0b | j_mayer | #if defined (TODO)
|
7918 | 80d11f44 | j_mayer | /* MPC5514E v0 */
|
7919 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v0",
|
7920 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v0, POWERPC_SVR_5514E_v0, e200), |
7921 | a750fc0b | j_mayer | #endif
|
7922 | a750fc0b | j_mayer | #if defined (TODO)
|
7923 | 80d11f44 | j_mayer | /* MPC5514E v1 */
|
7924 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v1",
|
7925 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v1, POWERPC_SVR_5514E_v1, e200), |
7926 | a750fc0b | j_mayer | #endif
|
7927 | a750fc0b | j_mayer | #if defined (TODO)
|
7928 | 80d11f44 | j_mayer | /* MPC5514G */
|
7929 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G",
|
7930 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G, POWERPC_SVR_5514G, e200), |
7931 | a750fc0b | j_mayer | #endif
|
7932 | a750fc0b | j_mayer | #if defined (TODO)
|
7933 | 80d11f44 | j_mayer | /* MPC5514G v0 */
|
7934 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v0",
|
7935 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v0, POWERPC_SVR_5514G_v0, e200), |
7936 | a750fc0b | j_mayer | #endif
|
7937 | a750fc0b | j_mayer | #if defined (TODO)
|
7938 | 80d11f44 | j_mayer | /* MPC5514G v1 */
|
7939 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v1",
|
7940 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v1, POWERPC_SVR_5514G_v1, e200), |
7941 | a750fc0b | j_mayer | #endif
|
7942 | a750fc0b | j_mayer | #if defined (TODO)
|
7943 | 80d11f44 | j_mayer | /* MPC5515S */
|
7944 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5515S",
|
7945 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5515S, POWERPC_SVR_5515S, e200), |
7946 | a750fc0b | j_mayer | #endif
|
7947 | a750fc0b | j_mayer | #if defined (TODO)
|
7948 | 80d11f44 | j_mayer | /* MPC5516E */
|
7949 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E",
|
7950 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E, POWERPC_SVR_5516E, e200), |
7951 | a750fc0b | j_mayer | #endif
|
7952 | a750fc0b | j_mayer | #if defined (TODO)
|
7953 | 80d11f44 | j_mayer | /* MPC5516E v0 */
|
7954 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v0",
|
7955 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v0, POWERPC_SVR_5516E_v0, e200), |
7956 | a750fc0b | j_mayer | #endif
|
7957 | a750fc0b | j_mayer | #if defined (TODO)
|
7958 | 80d11f44 | j_mayer | /* MPC5516E v1 */
|
7959 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v1",
|
7960 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v1, POWERPC_SVR_5516E_v1, e200), |
7961 | a750fc0b | j_mayer | #endif
|
7962 | a750fc0b | j_mayer | #if defined (TODO)
|
7963 | 80d11f44 | j_mayer | /* MPC5516G */
|
7964 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G",
|
7965 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G, POWERPC_SVR_5516G, e200), |
7966 | a750fc0b | j_mayer | #endif
|
7967 | a750fc0b | j_mayer | #if defined (TODO)
|
7968 | 80d11f44 | j_mayer | /* MPC5516G v0 */
|
7969 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v0",
|
7970 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v0, POWERPC_SVR_5516G_v0, e200), |
7971 | a750fc0b | j_mayer | #endif
|
7972 | a750fc0b | j_mayer | #if defined (TODO)
|
7973 | 80d11f44 | j_mayer | /* MPC5516G v1 */
|
7974 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v1",
|
7975 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v1, POWERPC_SVR_5516G_v1, e200), |
7976 | a750fc0b | j_mayer | #endif
|
7977 | a750fc0b | j_mayer | #if defined (TODO)
|
7978 | 80d11f44 | j_mayer | /* MPC5516S */
|
7979 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516S",
|
7980 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516S, POWERPC_SVR_5516S, e200), |
7981 | a750fc0b | j_mayer | #endif
|
7982 | a750fc0b | j_mayer | #if defined (TODO)
|
7983 | 80d11f44 | j_mayer | /* MPC5533 */
|
7984 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5533",
|
7985 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5533, POWERPC_SVR_5533, e200), |
7986 | a750fc0b | j_mayer | #endif
|
7987 | a750fc0b | j_mayer | #if defined (TODO)
|
7988 | 80d11f44 | j_mayer | /* MPC5534 */
|
7989 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5534",
|
7990 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5534, POWERPC_SVR_5534, e200), |
7991 | a750fc0b | j_mayer | #endif
|
7992 | 80d11f44 | j_mayer | #if defined (TODO)
|
7993 | 80d11f44 | j_mayer | /* MPC5553 */
|
7994 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5553",
|
7995 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5553, POWERPC_SVR_5553, e200), |
7996 | 80d11f44 | j_mayer | #endif
|
7997 | 80d11f44 | j_mayer | #if defined (TODO)
|
7998 | 80d11f44 | j_mayer | /* MPC5554 */
|
7999 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5554",
|
8000 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5554, POWERPC_SVR_5554, e200), |
8001 | 80d11f44 | j_mayer | #endif
|
8002 | 80d11f44 | j_mayer | #if defined (TODO)
|
8003 | 80d11f44 | j_mayer | /* MPC5561 */
|
8004 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5561",
|
8005 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5561, POWERPC_SVR_5561, e200), |
8006 | 80d11f44 | j_mayer | #endif
|
8007 | 80d11f44 | j_mayer | #if defined (TODO)
|
8008 | 80d11f44 | j_mayer | /* MPC5565 */
|
8009 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5565",
|
8010 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5565, POWERPC_SVR_5565, e200), |
8011 | 80d11f44 | j_mayer | #endif
|
8012 | 80d11f44 | j_mayer | #if defined (TODO)
|
8013 | 80d11f44 | j_mayer | /* MPC5566 */
|
8014 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5566",
|
8015 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5566, POWERPC_SVR_5566, e200), |
8016 | 80d11f44 | j_mayer | #endif
|
8017 | 80d11f44 | j_mayer | #if defined (TODO)
|
8018 | 80d11f44 | j_mayer | /* MPC5567 */
|
8019 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5567",
|
8020 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5567, POWERPC_SVR_5567, e200), |
8021 | 80d11f44 | j_mayer | #endif
|
8022 | 80d11f44 | j_mayer | /* e300 family */
|
8023 | 80d11f44 | j_mayer | /* Generic PowerPC e300 core */
|
8024 | 80d11f44 | j_mayer | POWERPC_DEF("e300", CPU_POWERPC_e300, e300),
|
8025 | 80d11f44 | j_mayer | /* PowerPC e300c1 core */
|
8026 | 80d11f44 | j_mayer | POWERPC_DEF("e300c1", CPU_POWERPC_e300c1, e300),
|
8027 | 80d11f44 | j_mayer | /* PowerPC e300c2 core */
|
8028 | 80d11f44 | j_mayer | POWERPC_DEF("e300c2", CPU_POWERPC_e300c2, e300),
|
8029 | 80d11f44 | j_mayer | /* PowerPC e300c3 core */
|
8030 | 80d11f44 | j_mayer | POWERPC_DEF("e300c3", CPU_POWERPC_e300c3, e300),
|
8031 | 80d11f44 | j_mayer | /* PowerPC e300c4 core */
|
8032 | 80d11f44 | j_mayer | POWERPC_DEF("e300c4", CPU_POWERPC_e300c4, e300),
|
8033 | 80d11f44 | j_mayer | /* PowerPC e300 microcontrollers */
|
8034 | 80d11f44 | j_mayer | #if defined (TODO)
|
8035 | 80d11f44 | j_mayer | /* MPC8313 */
|
8036 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313",
|
8037 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8313, e300), |
8038 | 80d11f44 | j_mayer | #endif
|
8039 | 80d11f44 | j_mayer | #if defined (TODO)
|
8040 | 80d11f44 | j_mayer | /* MPC8313E */
|
8041 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313E",
|
8042 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8313E, e300), |
8043 | 80d11f44 | j_mayer | #endif
|
8044 | 80d11f44 | j_mayer | #if defined (TODO)
|
8045 | 80d11f44 | j_mayer | /* MPC8314 */
|
8046 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314",
|
8047 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8314, e300), |
8048 | 80d11f44 | j_mayer | #endif
|
8049 | 80d11f44 | j_mayer | #if defined (TODO)
|
8050 | 80d11f44 | j_mayer | /* MPC8314E */
|
8051 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314E",
|
8052 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8314E, e300), |
8053 | 80d11f44 | j_mayer | #endif
|
8054 | 80d11f44 | j_mayer | #if defined (TODO)
|
8055 | 80d11f44 | j_mayer | /* MPC8315 */
|
8056 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315",
|
8057 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8315, e300), |
8058 | 80d11f44 | j_mayer | #endif
|
8059 | 80d11f44 | j_mayer | #if defined (TODO)
|
8060 | 80d11f44 | j_mayer | /* MPC8315E */
|
8061 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315E",
|
8062 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC831x, POWERPC_SVR_8315E, e300), |
8063 | 80d11f44 | j_mayer | #endif
|
8064 | 80d11f44 | j_mayer | #if defined (TODO)
|
8065 | 80d11f44 | j_mayer | /* MPC8321 */
|
8066 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321",
|
8067 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC832x, POWERPC_SVR_8321, e300), |
8068 | 80d11f44 | j_mayer | #endif
|
8069 | 80d11f44 | j_mayer | #if defined (TODO)
|
8070 | 80d11f44 | j_mayer | /* MPC8321E */
|
8071 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321E",
|
8072 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC832x, POWERPC_SVR_8321E, e300), |
8073 | 80d11f44 | j_mayer | #endif
|
8074 | 80d11f44 | j_mayer | #if defined (TODO)
|
8075 | 80d11f44 | j_mayer | /* MPC8323 */
|
8076 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323",
|
8077 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC832x, POWERPC_SVR_8323, e300), |
8078 | 80d11f44 | j_mayer | #endif
|
8079 | 80d11f44 | j_mayer | #if defined (TODO)
|
8080 | 80d11f44 | j_mayer | /* MPC8323E */
|
8081 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323E",
|
8082 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC832x, POWERPC_SVR_8323E, e300), |
8083 | 80d11f44 | j_mayer | #endif
|
8084 | 492d7bf5 | Thomas Monjalon | /* MPC8343 */
|
8085 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8343",
|
8086 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8343, e300), |
8087 | 80d11f44 | j_mayer | /* MPC8343A */
|
8088 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343A",
|
8089 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8343A, e300), |
8090 | 492d7bf5 | Thomas Monjalon | /* MPC8343E */
|
8091 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8343E",
|
8092 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8343E, e300), |
8093 | 80d11f44 | j_mayer | /* MPC8343EA */
|
8094 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343EA",
|
8095 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8343EA, e300), |
8096 | 492d7bf5 | Thomas Monjalon | /* MPC8347 */
|
8097 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347",
|
8098 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347, e300), |
8099 | 492d7bf5 | Thomas Monjalon | /* MPC8347T */
|
8100 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347T",
|
8101 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347T, e300), |
8102 | 492d7bf5 | Thomas Monjalon | /* MPC8347P */
|
8103 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347P",
|
8104 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347P, e300), |
8105 | 80d11f44 | j_mayer | /* MPC8347A */
|
8106 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347A",
|
8107 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347A, e300), |
8108 | 80d11f44 | j_mayer | /* MPC8347AT */
|
8109 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AT",
|
8110 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347AT, e300), |
8111 | 80d11f44 | j_mayer | /* MPC8347AP */
|
8112 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AP",
|
8113 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347AP, e300), |
8114 | 492d7bf5 | Thomas Monjalon | /* MPC8347E */
|
8115 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347E",
|
8116 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347E, e300), |
8117 | 492d7bf5 | Thomas Monjalon | /* MPC8347ET */
|
8118 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347ET",
|
8119 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347ET, e300), |
8120 | 492d7bf5 | Thomas Monjalon | /* MPC8343EP */
|
8121 | 492d7bf5 | Thomas Monjalon | POWERPC_DEF_SVR("MPC8347EP",
|
8122 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347EP, e300), |
8123 | 80d11f44 | j_mayer | /* MPC8347EA */
|
8124 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EA",
|
8125 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347EA, e300), |
8126 | 80d11f44 | j_mayer | /* MPC8347EAT */
|
8127 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAT",
|
8128 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347EAT, e300), |
8129 | 80d11f44 | j_mayer | /* MPC8343EAP */
|
8130 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAP",
|
8131 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8347EAP, e300), |
8132 | 80d11f44 | j_mayer | /* MPC8349 */
|
8133 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349",
|
8134 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8349, e300), |
8135 | 80d11f44 | j_mayer | /* MPC8349A */
|
8136 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349A",
|
8137 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8349A, e300), |
8138 | 80d11f44 | j_mayer | /* MPC8349E */
|
8139 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349E",
|
8140 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8349E, e300), |
8141 | 80d11f44 | j_mayer | /* MPC8349EA */
|
8142 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349EA",
|
8143 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC834x, POWERPC_SVR_8349EA, e300), |
8144 | 80d11f44 | j_mayer | #if defined (TODO)
|
8145 | 80d11f44 | j_mayer | /* MPC8358E */
|
8146 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8358E",
|
8147 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC835x, POWERPC_SVR_8358E, e300), |
8148 | 80d11f44 | j_mayer | #endif
|
8149 | 80d11f44 | j_mayer | #if defined (TODO)
|
8150 | 80d11f44 | j_mayer | /* MPC8360E */
|
8151 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8360E",
|
8152 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC836x, POWERPC_SVR_8360E, e300), |
8153 | 80d11f44 | j_mayer | #endif
|
8154 | 80d11f44 | j_mayer | /* MPC8377 */
|
8155 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377",
|
8156 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8377, e300), |
8157 | 80d11f44 | j_mayer | /* MPC8377E */
|
8158 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377E",
|
8159 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8377E, e300), |
8160 | 80d11f44 | j_mayer | /* MPC8378 */
|
8161 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378",
|
8162 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8378, e300), |
8163 | 80d11f44 | j_mayer | /* MPC8378E */
|
8164 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378E",
|
8165 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8378E, e300), |
8166 | 80d11f44 | j_mayer | /* MPC8379 */
|
8167 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379",
|
8168 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8379, e300), |
8169 | 80d11f44 | j_mayer | /* MPC8379E */
|
8170 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379E",
|
8171 | 74d77cae | Thomas Monjalon | CPU_POWERPC_MPC837x, POWERPC_SVR_8379E, e300), |
8172 | 80d11f44 | j_mayer | /* e500 family */
|
8173 | 80d11f44 | j_mayer | /* PowerPC e500 core */
|
8174 | bd5ea513 | aurel32 | POWERPC_DEF("e500", CPU_POWERPC_e500v2_v22, e500v2),
|
8175 | bd5ea513 | aurel32 | /* PowerPC e500v1 core */
|
8176 | bd5ea513 | aurel32 | POWERPC_DEF("e500v1", CPU_POWERPC_e500v1, e500v1),
|
8177 | 80d11f44 | j_mayer | /* PowerPC e500 v1.0 core */
|
8178 | bd5ea513 | aurel32 | POWERPC_DEF("e500_v10", CPU_POWERPC_e500v1_v10, e500v1),
|
8179 | 80d11f44 | j_mayer | /* PowerPC e500 v2.0 core */
|
8180 | bd5ea513 | aurel32 | POWERPC_DEF("e500_v20", CPU_POWERPC_e500v1_v20, e500v1),
|
8181 | 80d11f44 | j_mayer | /* PowerPC e500v2 core */
|
8182 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2", CPU_POWERPC_e500v2, e500v2),
|
8183 | 80d11f44 | j_mayer | /* PowerPC e500v2 v1.0 core */
|
8184 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v10", CPU_POWERPC_e500v2_v10, e500v2),
|
8185 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.0 core */
|
8186 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v20", CPU_POWERPC_e500v2_v20, e500v2),
|
8187 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.1 core */
|
8188 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v21", CPU_POWERPC_e500v2_v21, e500v2),
|
8189 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.2 core */
|
8190 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v22", CPU_POWERPC_e500v2_v22, e500v2),
|
8191 | 80d11f44 | j_mayer | /* PowerPC e500v2 v3.0 core */
|
8192 | bd5ea513 | aurel32 | POWERPC_DEF("e500v2_v30", CPU_POWERPC_e500v2_v30, e500v2),
|
8193 | 80d11f44 | j_mayer | /* PowerPC e500 microcontrollers */
|
8194 | 80d11f44 | j_mayer | /* MPC8533 */
|
8195 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533",
|
8196 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533, POWERPC_SVR_8533, e500v2), |
8197 | 80d11f44 | j_mayer | /* MPC8533 v1.0 */
|
8198 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v10",
|
8199 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533_v10, POWERPC_SVR_8533_v10, e500v2), |
8200 | 80d11f44 | j_mayer | /* MPC8533 v1.1 */
|
8201 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v11",
|
8202 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533_v11, POWERPC_SVR_8533_v11, e500v2), |
8203 | 80d11f44 | j_mayer | /* MPC8533E */
|
8204 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E",
|
8205 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E, POWERPC_SVR_8533E, e500v2), |
8206 | 80d11f44 | j_mayer | /* MPC8533E v1.0 */
|
8207 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v10",
|
8208 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E_v10, POWERPC_SVR_8533E_v10, e500v2), |
8209 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v11",
|
8210 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8533E_v11, POWERPC_SVR_8533E_v11, e500v2), |
8211 | 80d11f44 | j_mayer | /* MPC8540 */
|
8212 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540",
|
8213 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540, POWERPC_SVR_8540, e500v1), |
8214 | 80d11f44 | j_mayer | /* MPC8540 v1.0 */
|
8215 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v10",
|
8216 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v10, POWERPC_SVR_8540_v10, e500v1), |
8217 | 80d11f44 | j_mayer | /* MPC8540 v2.0 */
|
8218 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v20",
|
8219 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v20, POWERPC_SVR_8540_v20, e500v1), |
8220 | 80d11f44 | j_mayer | /* MPC8540 v2.1 */
|
8221 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v21",
|
8222 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8540_v21, POWERPC_SVR_8540_v21, e500v1), |
8223 | 80d11f44 | j_mayer | /* MPC8541 */
|
8224 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541",
|
8225 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541, POWERPC_SVR_8541, e500v1), |
8226 | 80d11f44 | j_mayer | /* MPC8541 v1.0 */
|
8227 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v10",
|
8228 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541_v10, POWERPC_SVR_8541_v10, e500v1), |
8229 | 80d11f44 | j_mayer | /* MPC8541 v1.1 */
|
8230 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v11",
|
8231 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541_v11, POWERPC_SVR_8541_v11, e500v1), |
8232 | 80d11f44 | j_mayer | /* MPC8541E */
|
8233 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E",
|
8234 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E, POWERPC_SVR_8541E, e500v1), |
8235 | 80d11f44 | j_mayer | /* MPC8541E v1.0 */
|
8236 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v10",
|
8237 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E_v10, POWERPC_SVR_8541E_v10, e500v1), |
8238 | 80d11f44 | j_mayer | /* MPC8541E v1.1 */
|
8239 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v11",
|
8240 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8541E_v11, POWERPC_SVR_8541E_v11, e500v1), |
8241 | 80d11f44 | j_mayer | /* MPC8543 */
|
8242 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543",
|
8243 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543, POWERPC_SVR_8543, e500v2), |
8244 | 80d11f44 | j_mayer | /* MPC8543 v1.0 */
|
8245 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v10",
|
8246 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v10, POWERPC_SVR_8543_v10, e500v2), |
8247 | 80d11f44 | j_mayer | /* MPC8543 v1.1 */
|
8248 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v11",
|
8249 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v11, POWERPC_SVR_8543_v11, e500v2), |
8250 | 80d11f44 | j_mayer | /* MPC8543 v2.0 */
|
8251 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v20",
|
8252 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v20, POWERPC_SVR_8543_v20, e500v2), |
8253 | 80d11f44 | j_mayer | /* MPC8543 v2.1 */
|
8254 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v21",
|
8255 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543_v21, POWERPC_SVR_8543_v21, e500v2), |
8256 | 80d11f44 | j_mayer | /* MPC8543E */
|
8257 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E",
|
8258 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E, POWERPC_SVR_8543E, e500v2), |
8259 | 80d11f44 | j_mayer | /* MPC8543E v1.0 */
|
8260 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v10",
|
8261 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v10, POWERPC_SVR_8543E_v10, e500v2), |
8262 | 80d11f44 | j_mayer | /* MPC8543E v1.1 */
|
8263 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v11",
|
8264 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v11, POWERPC_SVR_8543E_v11, e500v2), |
8265 | 80d11f44 | j_mayer | /* MPC8543E v2.0 */
|
8266 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v20",
|
8267 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v20, POWERPC_SVR_8543E_v20, e500v2), |
8268 | 80d11f44 | j_mayer | /* MPC8543E v2.1 */
|
8269 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v21",
|
8270 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8543E_v21, POWERPC_SVR_8543E_v21, e500v2), |
8271 | 80d11f44 | j_mayer | /* MPC8544 */
|
8272 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544",
|
8273 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544, POWERPC_SVR_8544, e500v2), |
8274 | 80d11f44 | j_mayer | /* MPC8544 v1.0 */
|
8275 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v10",
|
8276 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544_v10, POWERPC_SVR_8544_v10, e500v2), |
8277 | 80d11f44 | j_mayer | /* MPC8544 v1.1 */
|
8278 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v11",
|
8279 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544_v11, POWERPC_SVR_8544_v11, e500v2), |
8280 | 80d11f44 | j_mayer | /* MPC8544E */
|
8281 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E",
|
8282 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E, POWERPC_SVR_8544E, e500v2), |
8283 | 80d11f44 | j_mayer | /* MPC8544E v1.0 */
|
8284 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v10",
|
8285 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E_v10, POWERPC_SVR_8544E_v10, e500v2), |
8286 | 80d11f44 | j_mayer | /* MPC8544E v1.1 */
|
8287 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v11",
|
8288 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8544E_v11, POWERPC_SVR_8544E_v11, e500v2), |
8289 | 80d11f44 | j_mayer | /* MPC8545 */
|
8290 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545",
|
8291 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545, POWERPC_SVR_8545, e500v2), |
8292 | 80d11f44 | j_mayer | /* MPC8545 v2.0 */
|
8293 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v20",
|
8294 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545_v20, POWERPC_SVR_8545_v20, e500v2), |
8295 | 80d11f44 | j_mayer | /* MPC8545 v2.1 */
|
8296 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v21",
|
8297 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545_v21, POWERPC_SVR_8545_v21, e500v2), |
8298 | 80d11f44 | j_mayer | /* MPC8545E */
|
8299 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E",
|
8300 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E, POWERPC_SVR_8545E, e500v2), |
8301 | 80d11f44 | j_mayer | /* MPC8545E v2.0 */
|
8302 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v20",
|
8303 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E_v20, POWERPC_SVR_8545E_v20, e500v2), |
8304 | 80d11f44 | j_mayer | /* MPC8545E v2.1 */
|
8305 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v21",
|
8306 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8545E_v21, POWERPC_SVR_8545E_v21, e500v2), |
8307 | 80d11f44 | j_mayer | /* MPC8547E */
|
8308 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E",
|
8309 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E, POWERPC_SVR_8547E, e500v2), |
8310 | 80d11f44 | j_mayer | /* MPC8547E v2.0 */
|
8311 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v20",
|
8312 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E_v20, POWERPC_SVR_8547E_v20, e500v2), |
8313 | 80d11f44 | j_mayer | /* MPC8547E v2.1 */
|
8314 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v21",
|
8315 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8547E_v21, POWERPC_SVR_8547E_v21, e500v2), |
8316 | 80d11f44 | j_mayer | /* MPC8548 */
|
8317 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548",
|
8318 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548, POWERPC_SVR_8548, e500v2), |
8319 | 80d11f44 | j_mayer | /* MPC8548 v1.0 */
|
8320 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v10",
|
8321 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v10, POWERPC_SVR_8548_v10, e500v2), |
8322 | 80d11f44 | j_mayer | /* MPC8548 v1.1 */
|
8323 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v11",
|
8324 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v11, POWERPC_SVR_8548_v11, e500v2), |
8325 | 80d11f44 | j_mayer | /* MPC8548 v2.0 */
|
8326 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v20",
|
8327 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v20, POWERPC_SVR_8548_v20, e500v2), |
8328 | 80d11f44 | j_mayer | /* MPC8548 v2.1 */
|
8329 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v21",
|
8330 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548_v21, POWERPC_SVR_8548_v21, e500v2), |
8331 | 80d11f44 | j_mayer | /* MPC8548E */
|
8332 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E",
|
8333 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E, POWERPC_SVR_8548E, e500v2), |
8334 | 80d11f44 | j_mayer | /* MPC8548E v1.0 */
|
8335 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v10",
|
8336 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v10, POWERPC_SVR_8548E_v10, e500v2), |
8337 | 80d11f44 | j_mayer | /* MPC8548E v1.1 */
|
8338 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v11",
|
8339 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v11, POWERPC_SVR_8548E_v11, e500v2), |
8340 | 80d11f44 | j_mayer | /* MPC8548E v2.0 */
|
8341 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v20",
|
8342 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v20, POWERPC_SVR_8548E_v20, e500v2), |
8343 | 80d11f44 | j_mayer | /* MPC8548E v2.1 */
|
8344 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v21",
|
8345 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8548E_v21, POWERPC_SVR_8548E_v21, e500v2), |
8346 | 80d11f44 | j_mayer | /* MPC8555 */
|
8347 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555",
|
8348 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555, POWERPC_SVR_8555, e500v2), |
8349 | 80d11f44 | j_mayer | /* MPC8555 v1.0 */
|
8350 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v10",
|
8351 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555_v10, POWERPC_SVR_8555_v10, e500v2), |
8352 | 80d11f44 | j_mayer | /* MPC8555 v1.1 */
|
8353 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v11",
|
8354 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555_v11, POWERPC_SVR_8555_v11, e500v2), |
8355 | 80d11f44 | j_mayer | /* MPC8555E */
|
8356 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E",
|
8357 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E, POWERPC_SVR_8555E, e500v2), |
8358 | 80d11f44 | j_mayer | /* MPC8555E v1.0 */
|
8359 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v10",
|
8360 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E_v10, POWERPC_SVR_8555E_v10, e500v2), |
8361 | 80d11f44 | j_mayer | /* MPC8555E v1.1 */
|
8362 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v11",
|
8363 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8555E_v11, POWERPC_SVR_8555E_v11, e500v2), |
8364 | 80d11f44 | j_mayer | /* MPC8560 */
|
8365 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560",
|
8366 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560, POWERPC_SVR_8560, e500v2), |
8367 | 80d11f44 | j_mayer | /* MPC8560 v1.0 */
|
8368 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v10",
|
8369 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v10, POWERPC_SVR_8560_v10, e500v2), |
8370 | 80d11f44 | j_mayer | /* MPC8560 v2.0 */
|
8371 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v20",
|
8372 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v20, POWERPC_SVR_8560_v20, e500v2), |
8373 | 80d11f44 | j_mayer | /* MPC8560 v2.1 */
|
8374 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v21",
|
8375 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8560_v21, POWERPC_SVR_8560_v21, e500v2), |
8376 | 80d11f44 | j_mayer | /* MPC8567 */
|
8377 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567",
|
8378 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8567, POWERPC_SVR_8567, e500v2), |
8379 | 80d11f44 | j_mayer | /* MPC8567E */
|
8380 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567E",
|
8381 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8567E, POWERPC_SVR_8567E, e500v2), |
8382 | 80d11f44 | j_mayer | /* MPC8568 */
|
8383 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568",
|
8384 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8568, POWERPC_SVR_8568, e500v2), |
8385 | 80d11f44 | j_mayer | /* MPC8568E */
|
8386 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568E",
|
8387 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8568E, POWERPC_SVR_8568E, e500v2), |
8388 | 80d11f44 | j_mayer | /* MPC8572 */
|
8389 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572",
|
8390 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8572, POWERPC_SVR_8572, e500v2), |
8391 | 80d11f44 | j_mayer | /* MPC8572E */
|
8392 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572E",
|
8393 | bd5ea513 | aurel32 | CPU_POWERPC_MPC8572E, POWERPC_SVR_8572E, e500v2), |
8394 | 80d11f44 | j_mayer | /* e600 family */
|
8395 | 80d11f44 | j_mayer | /* PowerPC e600 core */
|
8396 | 80d11f44 | j_mayer | POWERPC_DEF("e600", CPU_POWERPC_e600, 7400), |
8397 | 80d11f44 | j_mayer | /* PowerPC e600 microcontrollers */
|
8398 | 80d11f44 | j_mayer | #if defined (TODO)
|
8399 | 80d11f44 | j_mayer | /* MPC8610 */
|
8400 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8610",
|
8401 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8610, POWERPC_SVR_8610, 7400),
|
8402 | 80d11f44 | j_mayer | #endif
|
8403 | 80d11f44 | j_mayer | /* MPC8641 */
|
8404 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641",
|
8405 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641, POWERPC_SVR_8641, 7400),
|
8406 | 80d11f44 | j_mayer | /* MPC8641D */
|
8407 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641D",
|
8408 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641D, POWERPC_SVR_8641D, 7400),
|
8409 | a750fc0b | j_mayer | /* 32 bits "classic" PowerPC */
|
8410 | a750fc0b | j_mayer | /* PowerPC 6xx family */
|
8411 | a750fc0b | j_mayer | /* PowerPC 601 */
|
8412 | bd928eba | j_mayer | POWERPC_DEF("601", CPU_POWERPC_601, 601v), |
8413 | c3e36823 | j_mayer | /* PowerPC 601v0 */
|
8414 | 082c6681 | j_mayer | POWERPC_DEF("601_v0", CPU_POWERPC_601_v0, 601), |
8415 | c3e36823 | j_mayer | /* PowerPC 601v1 */
|
8416 | 082c6681 | j_mayer | POWERPC_DEF("601_v1", CPU_POWERPC_601_v1, 601), |
8417 | 082c6681 | j_mayer | /* PowerPC 601v */
|
8418 | bd928eba | j_mayer | POWERPC_DEF("601v", CPU_POWERPC_601v, 601v), |
8419 | a750fc0b | j_mayer | /* PowerPC 601v2 */
|
8420 | 082c6681 | j_mayer | POWERPC_DEF("601_v2", CPU_POWERPC_601_v2, 601v), |
8421 | a750fc0b | j_mayer | /* PowerPC 602 */
|
8422 | 80d11f44 | j_mayer | POWERPC_DEF("602", CPU_POWERPC_602, 602), |
8423 | a750fc0b | j_mayer | /* PowerPC 603 */
|
8424 | 80d11f44 | j_mayer | POWERPC_DEF("603", CPU_POWERPC_603, 603), |
8425 | a750fc0b | j_mayer | /* Code name for PowerPC 603 */
|
8426 | 80d11f44 | j_mayer | POWERPC_DEF("Vanilla", CPU_POWERPC_603, 603), |
8427 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID6) */
|
8428 | 80d11f44 | j_mayer | POWERPC_DEF("603e", CPU_POWERPC_603E, 603E), |
8429 | a750fc0b | j_mayer | /* Code name for PowerPC 603e */
|
8430 | 80d11f44 | j_mayer | POWERPC_DEF("Stretch", CPU_POWERPC_603E, 603E), |
8431 | a750fc0b | j_mayer | /* PowerPC 603e v1.1 */
|
8432 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.1", CPU_POWERPC_603E_v11, 603E), |
8433 | a750fc0b | j_mayer | /* PowerPC 603e v1.2 */
|
8434 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.2", CPU_POWERPC_603E_v12, 603E), |
8435 | a750fc0b | j_mayer | /* PowerPC 603e v1.3 */
|
8436 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.3", CPU_POWERPC_603E_v13, 603E), |
8437 | a750fc0b | j_mayer | /* PowerPC 603e v1.4 */
|
8438 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.4", CPU_POWERPC_603E_v14, 603E), |
8439 | a750fc0b | j_mayer | /* PowerPC 603e v2.2 */
|
8440 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v2.2", CPU_POWERPC_603E_v22, 603E), |
8441 | a750fc0b | j_mayer | /* PowerPC 603e v3 */
|
8442 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v3", CPU_POWERPC_603E_v3, 603E), |
8443 | a750fc0b | j_mayer | /* PowerPC 603e v4 */
|
8444 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4", CPU_POWERPC_603E_v4, 603E), |
8445 | a750fc0b | j_mayer | /* PowerPC 603e v4.1 */
|
8446 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4.1", CPU_POWERPC_603E_v41, 603E), |
8447 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID7) */
|
8448 | 80d11f44 | j_mayer | POWERPC_DEF("603e7", CPU_POWERPC_603E7, 603E), |
8449 | a750fc0b | j_mayer | /* PowerPC 603e7t */
|
8450 | 80d11f44 | j_mayer | POWERPC_DEF("603e7t", CPU_POWERPC_603E7t, 603E), |
8451 | a750fc0b | j_mayer | /* PowerPC 603e7v */
|
8452 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v", CPU_POWERPC_603E7v, 603E), |
8453 | a750fc0b | j_mayer | /* Code name for PowerPC 603ev */
|
8454 | 80d11f44 | j_mayer | POWERPC_DEF("Vaillant", CPU_POWERPC_603E7v, 603E), |
8455 | a750fc0b | j_mayer | /* PowerPC 603e7v1 */
|
8456 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v1", CPU_POWERPC_603E7v1, 603E), |
8457 | a750fc0b | j_mayer | /* PowerPC 603e7v2 */
|
8458 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v2", CPU_POWERPC_603E7v2, 603E), |
8459 | 082c6681 | j_mayer | /* PowerPC 603p (aka PID7v) */
|
8460 | 082c6681 | j_mayer | POWERPC_DEF("603p", CPU_POWERPC_603P, 603E), |
8461 | 082c6681 | j_mayer | /* PowerPC 603r (aka PID7t) */
|
8462 | 80d11f44 | j_mayer | POWERPC_DEF("603r", CPU_POWERPC_603R, 603E), |
8463 | a750fc0b | j_mayer | /* Code name for PowerPC 603r */
|
8464 | 80d11f44 | j_mayer | POWERPC_DEF("Goldeneye", CPU_POWERPC_603R, 603E), |
8465 | a750fc0b | j_mayer | /* PowerPC 604 */
|
8466 | 80d11f44 | j_mayer | POWERPC_DEF("604", CPU_POWERPC_604, 604), |
8467 | 082c6681 | j_mayer | /* PowerPC 604e (aka PID9) */
|
8468 | 082c6681 | j_mayer | POWERPC_DEF("604e", CPU_POWERPC_604E, 604E), |
8469 | 082c6681 | j_mayer | /* Code name for PowerPC 604e */
|
8470 | 082c6681 | j_mayer | POWERPC_DEF("Sirocco", CPU_POWERPC_604E, 604E), |
8471 | a750fc0b | j_mayer | /* PowerPC 604e v1.0 */
|
8472 | 082c6681 | j_mayer | POWERPC_DEF("604e_v1.0", CPU_POWERPC_604E_v10, 604E), |
8473 | a750fc0b | j_mayer | /* PowerPC 604e v2.2 */
|
8474 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.2", CPU_POWERPC_604E_v22, 604E), |
8475 | a750fc0b | j_mayer | /* PowerPC 604e v2.4 */
|
8476 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.4", CPU_POWERPC_604E_v24, 604E), |
8477 | 082c6681 | j_mayer | /* PowerPC 604r (aka PIDA) */
|
8478 | 082c6681 | j_mayer | POWERPC_DEF("604r", CPU_POWERPC_604R, 604E), |
8479 | 082c6681 | j_mayer | /* Code name for PowerPC 604r */
|
8480 | 082c6681 | j_mayer | POWERPC_DEF("Mach5", CPU_POWERPC_604R, 604E), |
8481 | a750fc0b | j_mayer | #if defined(TODO)
|
8482 | a750fc0b | j_mayer | /* PowerPC 604ev */
|
8483 | 082c6681 | j_mayer | POWERPC_DEF("604ev", CPU_POWERPC_604EV, 604E), |
8484 | a750fc0b | j_mayer | #endif
|
8485 | a750fc0b | j_mayer | /* PowerPC 7xx family */
|
8486 | a750fc0b | j_mayer | /* Generic PowerPC 740 (G3) */
|
8487 | bd928eba | j_mayer | POWERPC_DEF("740", CPU_POWERPC_7x0, 740), |
8488 | 082c6681 | j_mayer | /* Code name for PowerPC 740 */
|
8489 | bd928eba | j_mayer | POWERPC_DEF("Arthur", CPU_POWERPC_7x0, 740), |
8490 | a750fc0b | j_mayer | /* Generic PowerPC 750 (G3) */
|
8491 | bd928eba | j_mayer | POWERPC_DEF("750", CPU_POWERPC_7x0, 750), |
8492 | 082c6681 | j_mayer | /* Code name for PowerPC 750 */
|
8493 | bd928eba | j_mayer | POWERPC_DEF("Typhoon", CPU_POWERPC_7x0, 750), |
8494 | a750fc0b | j_mayer | /* PowerPC 740/750 is also known as G3 */
|
8495 | bd928eba | j_mayer | POWERPC_DEF("G3", CPU_POWERPC_7x0, 750), |
8496 | bd928eba | j_mayer | /* PowerPC 740 v1.0 (G3) */
|
8497 | bd928eba | j_mayer | POWERPC_DEF("740_v1.0", CPU_POWERPC_7x0_v10, 740), |
8498 | bd928eba | j_mayer | /* PowerPC 750 v1.0 (G3) */
|
8499 | bd928eba | j_mayer | POWERPC_DEF("750_v1.0", CPU_POWERPC_7x0_v10, 750), |
8500 | a750fc0b | j_mayer | /* PowerPC 740 v2.0 (G3) */
|
8501 | bd928eba | j_mayer | POWERPC_DEF("740_v2.0", CPU_POWERPC_7x0_v20, 740), |
8502 | a750fc0b | j_mayer | /* PowerPC 750 v2.0 (G3) */
|
8503 | bd928eba | j_mayer | POWERPC_DEF("750_v2.0", CPU_POWERPC_7x0_v20, 750), |
8504 | a750fc0b | j_mayer | /* PowerPC 740 v2.1 (G3) */
|
8505 | bd928eba | j_mayer | POWERPC_DEF("740_v2.1", CPU_POWERPC_7x0_v21, 740), |
8506 | a750fc0b | j_mayer | /* PowerPC 750 v2.1 (G3) */
|
8507 | bd928eba | j_mayer | POWERPC_DEF("750_v2.1", CPU_POWERPC_7x0_v21, 750), |
8508 | a750fc0b | j_mayer | /* PowerPC 740 v2.2 (G3) */
|
8509 | bd928eba | j_mayer | POWERPC_DEF("740_v2.2", CPU_POWERPC_7x0_v22, 740), |
8510 | a750fc0b | j_mayer | /* PowerPC 750 v2.2 (G3) */
|
8511 | bd928eba | j_mayer | POWERPC_DEF("750_v2.2", CPU_POWERPC_7x0_v22, 750), |
8512 | a750fc0b | j_mayer | /* PowerPC 740 v3.0 (G3) */
|
8513 | bd928eba | j_mayer | POWERPC_DEF("740_v3.0", CPU_POWERPC_7x0_v30, 740), |
8514 | a750fc0b | j_mayer | /* PowerPC 750 v3.0 (G3) */
|
8515 | bd928eba | j_mayer | POWERPC_DEF("750_v3.0", CPU_POWERPC_7x0_v30, 750), |
8516 | a750fc0b | j_mayer | /* PowerPC 740 v3.1 (G3) */
|
8517 | bd928eba | j_mayer | POWERPC_DEF("740_v3.1", CPU_POWERPC_7x0_v31, 740), |
8518 | a750fc0b | j_mayer | /* PowerPC 750 v3.1 (G3) */
|
8519 | bd928eba | j_mayer | POWERPC_DEF("750_v3.1", CPU_POWERPC_7x0_v31, 750), |
8520 | a750fc0b | j_mayer | /* PowerPC 740E (G3) */
|
8521 | bd928eba | j_mayer | POWERPC_DEF("740e", CPU_POWERPC_740E, 740), |
8522 | bd928eba | j_mayer | /* PowerPC 750E (G3) */
|
8523 | bd928eba | j_mayer | POWERPC_DEF("750e", CPU_POWERPC_750E, 750), |
8524 | a750fc0b | j_mayer | /* PowerPC 740P (G3) */
|
8525 | bd928eba | j_mayer | POWERPC_DEF("740p", CPU_POWERPC_7x0P, 740), |
8526 | a750fc0b | j_mayer | /* PowerPC 750P (G3) */
|
8527 | bd928eba | j_mayer | POWERPC_DEF("750p", CPU_POWERPC_7x0P, 750), |
8528 | a750fc0b | j_mayer | /* Code name for PowerPC 740P/750P (G3) */
|
8529 | bd928eba | j_mayer | POWERPC_DEF("Conan/Doyle", CPU_POWERPC_7x0P, 750), |
8530 | a750fc0b | j_mayer | /* PowerPC 750CL (G3 embedded) */
|
8531 | bd928eba | j_mayer | POWERPC_DEF("750cl", CPU_POWERPC_750CL, 750cl), |
8532 | bd928eba | j_mayer | /* PowerPC 750CL v1.0 */
|
8533 | bd928eba | j_mayer | POWERPC_DEF("750cl_v1.0", CPU_POWERPC_750CL_v10, 750cl), |
8534 | bd928eba | j_mayer | /* PowerPC 750CL v2.0 */
|
8535 | bd928eba | j_mayer | POWERPC_DEF("750cl_v2.0", CPU_POWERPC_750CL_v20, 750cl), |
8536 | a750fc0b | j_mayer | /* PowerPC 750CX (G3 embedded) */
|
8537 | bd928eba | j_mayer | POWERPC_DEF("750cx", CPU_POWERPC_750CX, 750cx), |
8538 | bd928eba | j_mayer | /* PowerPC 750CX v1.0 (G3 embedded) */
|
8539 | bd928eba | j_mayer | POWERPC_DEF("750cx_v1.0", CPU_POWERPC_750CX_v10, 750cx), |
8540 | bd928eba | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8541 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.0", CPU_POWERPC_750CX_v20, 750cx), |
8542 | a750fc0b | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8543 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.1", CPU_POWERPC_750CX_v21, 750cx), |
8544 | a750fc0b | j_mayer | /* PowerPC 750CX v2.2 (G3 embedded) */
|
8545 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.2", CPU_POWERPC_750CX_v22, 750cx), |
8546 | a750fc0b | j_mayer | /* PowerPC 750CXe (G3 embedded) */
|
8547 | bd928eba | j_mayer | POWERPC_DEF("750cxe", CPU_POWERPC_750CXE, 750cx), |
8548 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.1 (G3 embedded) */
|
8549 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.1", CPU_POWERPC_750CXE_v21, 750cx), |
8550 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.2 (G3 embedded) */
|
8551 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.2", CPU_POWERPC_750CXE_v22, 750cx), |
8552 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.3 (G3 embedded) */
|
8553 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.3", CPU_POWERPC_750CXE_v23, 750cx), |
8554 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4 (G3 embedded) */
|
8555 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4", CPU_POWERPC_750CXE_v24, 750cx), |
8556 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4b (G3 embedded) */
|
8557 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4b", CPU_POWERPC_750CXE_v24b, 750cx), |
8558 | bd928eba | j_mayer | /* PowerPC 750CXe v3.0 (G3 embedded) */
|
8559 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.0", CPU_POWERPC_750CXE_v30, 750cx), |
8560 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1 (G3 embedded) */
|
8561 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1", CPU_POWERPC_750CXE_v31, 750cx), |
8562 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1b (G3 embedded) */
|
8563 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1b", CPU_POWERPC_750CXE_v31b, 750cx), |
8564 | a750fc0b | j_mayer | /* PowerPC 750CXr (G3 embedded) */
|
8565 | bd928eba | j_mayer | POWERPC_DEF("750cxr", CPU_POWERPC_750CXR, 750cx), |
8566 | a750fc0b | j_mayer | /* PowerPC 750FL (G3 embedded) */
|
8567 | 80d11f44 | j_mayer | POWERPC_DEF("750fl", CPU_POWERPC_750FL, 750fx), |
8568 | a750fc0b | j_mayer | /* PowerPC 750FX (G3 embedded) */
|
8569 | 80d11f44 | j_mayer | POWERPC_DEF("750fx", CPU_POWERPC_750FX, 750fx), |
8570 | a750fc0b | j_mayer | /* PowerPC 750FX v1.0 (G3 embedded) */
|
8571 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v1.0", CPU_POWERPC_750FX_v10, 750fx), |
8572 | a750fc0b | j_mayer | /* PowerPC 750FX v2.0 (G3 embedded) */
|
8573 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.0", CPU_POWERPC_750FX_v20, 750fx), |
8574 | a750fc0b | j_mayer | /* PowerPC 750FX v2.1 (G3 embedded) */
|
8575 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.1", CPU_POWERPC_750FX_v21, 750fx), |
8576 | a750fc0b | j_mayer | /* PowerPC 750FX v2.2 (G3 embedded) */
|
8577 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.2", CPU_POWERPC_750FX_v22, 750fx), |
8578 | a750fc0b | j_mayer | /* PowerPC 750FX v2.3 (G3 embedded) */
|
8579 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.3", CPU_POWERPC_750FX_v23, 750fx), |
8580 | a750fc0b | j_mayer | /* PowerPC 750GL (G3 embedded) */
|
8581 | bd928eba | j_mayer | POWERPC_DEF("750gl", CPU_POWERPC_750GL, 750gx), |
8582 | a750fc0b | j_mayer | /* PowerPC 750GX (G3 embedded) */
|
8583 | bd928eba | j_mayer | POWERPC_DEF("750gx", CPU_POWERPC_750GX, 750gx), |
8584 | a750fc0b | j_mayer | /* PowerPC 750GX v1.0 (G3 embedded) */
|
8585 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.0", CPU_POWERPC_750GX_v10, 750gx), |
8586 | a750fc0b | j_mayer | /* PowerPC 750GX v1.1 (G3 embedded) */
|
8587 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.1", CPU_POWERPC_750GX_v11, 750gx), |
8588 | a750fc0b | j_mayer | /* PowerPC 750GX v1.2 (G3 embedded) */
|
8589 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.2", CPU_POWERPC_750GX_v12, 750gx), |
8590 | a750fc0b | j_mayer | /* PowerPC 750L (G3 embedded) */
|
8591 | bd928eba | j_mayer | POWERPC_DEF("750l", CPU_POWERPC_750L, 750), |
8592 | a750fc0b | j_mayer | /* Code name for PowerPC 750L (G3 embedded) */
|
8593 | bd928eba | j_mayer | POWERPC_DEF("LoneStar", CPU_POWERPC_750L, 750), |
8594 | bd928eba | j_mayer | /* PowerPC 750L v2.0 (G3 embedded) */
|
8595 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.0", CPU_POWERPC_750L_v20, 750), |
8596 | bd928eba | j_mayer | /* PowerPC 750L v2.1 (G3 embedded) */
|
8597 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.1", CPU_POWERPC_750L_v21, 750), |
8598 | a750fc0b | j_mayer | /* PowerPC 750L v2.2 (G3 embedded) */
|
8599 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.2", CPU_POWERPC_750L_v22, 750), |
8600 | a750fc0b | j_mayer | /* PowerPC 750L v3.0 (G3 embedded) */
|
8601 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.0", CPU_POWERPC_750L_v30, 750), |
8602 | a750fc0b | j_mayer | /* PowerPC 750L v3.2 (G3 embedded) */
|
8603 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.2", CPU_POWERPC_750L_v32, 750), |
8604 | a750fc0b | j_mayer | /* Generic PowerPC 745 */
|
8605 | bd928eba | j_mayer | POWERPC_DEF("745", CPU_POWERPC_7x5, 745), |
8606 | a750fc0b | j_mayer | /* Generic PowerPC 755 */
|
8607 | bd928eba | j_mayer | POWERPC_DEF("755", CPU_POWERPC_7x5, 755), |
8608 | a750fc0b | j_mayer | /* Code name for PowerPC 745/755 */
|
8609 | bd928eba | j_mayer | POWERPC_DEF("Goldfinger", CPU_POWERPC_7x5, 755), |
8610 | a750fc0b | j_mayer | /* PowerPC 745 v1.0 */
|
8611 | bd928eba | j_mayer | POWERPC_DEF("745_v1.0", CPU_POWERPC_7x5_v10, 745), |
8612 | a750fc0b | j_mayer | /* PowerPC 755 v1.0 */
|
8613 | bd928eba | j_mayer | POWERPC_DEF("755_v1.0", CPU_POWERPC_7x5_v10, 755), |
8614 | a750fc0b | j_mayer | /* PowerPC 745 v1.1 */
|
8615 | bd928eba | j_mayer | POWERPC_DEF("745_v1.1", CPU_POWERPC_7x5_v11, 745), |
8616 | a750fc0b | j_mayer | /* PowerPC 755 v1.1 */
|
8617 | bd928eba | j_mayer | POWERPC_DEF("755_v1.1", CPU_POWERPC_7x5_v11, 755), |
8618 | a750fc0b | j_mayer | /* PowerPC 745 v2.0 */
|
8619 | bd928eba | j_mayer | POWERPC_DEF("745_v2.0", CPU_POWERPC_7x5_v20, 745), |
8620 | a750fc0b | j_mayer | /* PowerPC 755 v2.0 */
|
8621 | bd928eba | j_mayer | POWERPC_DEF("755_v2.0", CPU_POWERPC_7x5_v20, 755), |
8622 | a750fc0b | j_mayer | /* PowerPC 745 v2.1 */
|
8623 | bd928eba | j_mayer | POWERPC_DEF("745_v2.1", CPU_POWERPC_7x5_v21, 745), |
8624 | a750fc0b | j_mayer | /* PowerPC 755 v2.1 */
|
8625 | bd928eba | j_mayer | POWERPC_DEF("755_v2.1", CPU_POWERPC_7x5_v21, 755), |
8626 | a750fc0b | j_mayer | /* PowerPC 745 v2.2 */
|
8627 | bd928eba | j_mayer | POWERPC_DEF("745_v2.2", CPU_POWERPC_7x5_v22, 745), |
8628 | a750fc0b | j_mayer | /* PowerPC 755 v2.2 */
|
8629 | bd928eba | j_mayer | POWERPC_DEF("755_v2.2", CPU_POWERPC_7x5_v22, 755), |
8630 | a750fc0b | j_mayer | /* PowerPC 745 v2.3 */
|
8631 | bd928eba | j_mayer | POWERPC_DEF("745_v2.3", CPU_POWERPC_7x5_v23, 745), |
8632 | a750fc0b | j_mayer | /* PowerPC 755 v2.3 */
|
8633 | bd928eba | j_mayer | POWERPC_DEF("755_v2.3", CPU_POWERPC_7x5_v23, 755), |
8634 | a750fc0b | j_mayer | /* PowerPC 745 v2.4 */
|
8635 | bd928eba | j_mayer | POWERPC_DEF("745_v2.4", CPU_POWERPC_7x5_v24, 745), |
8636 | a750fc0b | j_mayer | /* PowerPC 755 v2.4 */
|
8637 | bd928eba | j_mayer | POWERPC_DEF("755_v2.4", CPU_POWERPC_7x5_v24, 755), |
8638 | a750fc0b | j_mayer | /* PowerPC 745 v2.5 */
|
8639 | bd928eba | j_mayer | POWERPC_DEF("745_v2.5", CPU_POWERPC_7x5_v25, 745), |
8640 | a750fc0b | j_mayer | /* PowerPC 755 v2.5 */
|
8641 | bd928eba | j_mayer | POWERPC_DEF("755_v2.5", CPU_POWERPC_7x5_v25, 755), |
8642 | a750fc0b | j_mayer | /* PowerPC 745 v2.6 */
|
8643 | bd928eba | j_mayer | POWERPC_DEF("745_v2.6", CPU_POWERPC_7x5_v26, 745), |
8644 | a750fc0b | j_mayer | /* PowerPC 755 v2.6 */
|
8645 | bd928eba | j_mayer | POWERPC_DEF("755_v2.6", CPU_POWERPC_7x5_v26, 755), |
8646 | a750fc0b | j_mayer | /* PowerPC 745 v2.7 */
|
8647 | bd928eba | j_mayer | POWERPC_DEF("745_v2.7", CPU_POWERPC_7x5_v27, 745), |
8648 | a750fc0b | j_mayer | /* PowerPC 755 v2.7 */
|
8649 | bd928eba | j_mayer | POWERPC_DEF("755_v2.7", CPU_POWERPC_7x5_v27, 755), |
8650 | a750fc0b | j_mayer | /* PowerPC 745 v2.8 */
|
8651 | bd928eba | j_mayer | POWERPC_DEF("745_v2.8", CPU_POWERPC_7x5_v28, 745), |
8652 | a750fc0b | j_mayer | /* PowerPC 755 v2.8 */
|
8653 | bd928eba | j_mayer | POWERPC_DEF("755_v2.8", CPU_POWERPC_7x5_v28, 755), |
8654 | a750fc0b | j_mayer | #if defined (TODO)
|
8655 | a750fc0b | j_mayer | /* PowerPC 745P (G3) */
|
8656 | bd928eba | j_mayer | POWERPC_DEF("745p", CPU_POWERPC_7x5P, 745), |
8657 | a750fc0b | j_mayer | /* PowerPC 755P (G3) */
|
8658 | bd928eba | j_mayer | POWERPC_DEF("755p", CPU_POWERPC_7x5P, 755), |
8659 | a750fc0b | j_mayer | #endif
|
8660 | a750fc0b | j_mayer | /* PowerPC 74xx family */
|
8661 | a750fc0b | j_mayer | /* PowerPC 7400 (G4) */
|
8662 | 80d11f44 | j_mayer | POWERPC_DEF("7400", CPU_POWERPC_7400, 7400), |
8663 | a750fc0b | j_mayer | /* Code name for PowerPC 7400 */
|
8664 | 80d11f44 | j_mayer | POWERPC_DEF("Max", CPU_POWERPC_7400, 7400), |
8665 | a750fc0b | j_mayer | /* PowerPC 74xx is also well known as G4 */
|
8666 | 80d11f44 | j_mayer | POWERPC_DEF("G4", CPU_POWERPC_7400, 7400), |
8667 | a750fc0b | j_mayer | /* PowerPC 7400 v1.0 (G4) */
|
8668 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.0", CPU_POWERPC_7400_v10, 7400), |
8669 | a750fc0b | j_mayer | /* PowerPC 7400 v1.1 (G4) */
|
8670 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.1", CPU_POWERPC_7400_v11, 7400), |
8671 | a750fc0b | j_mayer | /* PowerPC 7400 v2.0 (G4) */
|
8672 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.0", CPU_POWERPC_7400_v20, 7400), |
8673 | 4e777442 | j_mayer | /* PowerPC 7400 v2.1 (G4) */
|
8674 | 4e777442 | j_mayer | POWERPC_DEF("7400_v2.1", CPU_POWERPC_7400_v21, 7400), |
8675 | a750fc0b | j_mayer | /* PowerPC 7400 v2.2 (G4) */
|
8676 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.2", CPU_POWERPC_7400_v22, 7400), |
8677 | a750fc0b | j_mayer | /* PowerPC 7400 v2.6 (G4) */
|
8678 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.6", CPU_POWERPC_7400_v26, 7400), |
8679 | a750fc0b | j_mayer | /* PowerPC 7400 v2.7 (G4) */
|
8680 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.7", CPU_POWERPC_7400_v27, 7400), |
8681 | a750fc0b | j_mayer | /* PowerPC 7400 v2.8 (G4) */
|
8682 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.8", CPU_POWERPC_7400_v28, 7400), |
8683 | a750fc0b | j_mayer | /* PowerPC 7400 v2.9 (G4) */
|
8684 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.9", CPU_POWERPC_7400_v29, 7400), |
8685 | a750fc0b | j_mayer | /* PowerPC 7410 (G4) */
|
8686 | 80d11f44 | j_mayer | POWERPC_DEF("7410", CPU_POWERPC_7410, 7410), |
8687 | a750fc0b | j_mayer | /* Code name for PowerPC 7410 */
|
8688 | 80d11f44 | j_mayer | POWERPC_DEF("Nitro", CPU_POWERPC_7410, 7410), |
8689 | a750fc0b | j_mayer | /* PowerPC 7410 v1.0 (G4) */
|
8690 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.0", CPU_POWERPC_7410_v10, 7410), |
8691 | a750fc0b | j_mayer | /* PowerPC 7410 v1.1 (G4) */
|
8692 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.1", CPU_POWERPC_7410_v11, 7410), |
8693 | a750fc0b | j_mayer | /* PowerPC 7410 v1.2 (G4) */
|
8694 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.2", CPU_POWERPC_7410_v12, 7410), |
8695 | a750fc0b | j_mayer | /* PowerPC 7410 v1.3 (G4) */
|
8696 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.3", CPU_POWERPC_7410_v13, 7410), |
8697 | a750fc0b | j_mayer | /* PowerPC 7410 v1.4 (G4) */
|
8698 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.4", CPU_POWERPC_7410_v14, 7410), |
8699 | a750fc0b | j_mayer | /* PowerPC 7448 (G4) */
|
8700 | 80d11f44 | j_mayer | POWERPC_DEF("7448", CPU_POWERPC_7448, 7400), |
8701 | a750fc0b | j_mayer | /* PowerPC 7448 v1.0 (G4) */
|
8702 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.0", CPU_POWERPC_7448_v10, 7400), |
8703 | a750fc0b | j_mayer | /* PowerPC 7448 v1.1 (G4) */
|
8704 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.1", CPU_POWERPC_7448_v11, 7400), |
8705 | a750fc0b | j_mayer | /* PowerPC 7448 v2.0 (G4) */
|
8706 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.0", CPU_POWERPC_7448_v20, 7400), |
8707 | a750fc0b | j_mayer | /* PowerPC 7448 v2.1 (G4) */
|
8708 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.1", CPU_POWERPC_7448_v21, 7400), |
8709 | a750fc0b | j_mayer | /* PowerPC 7450 (G4) */
|
8710 | 80d11f44 | j_mayer | POWERPC_DEF("7450", CPU_POWERPC_7450, 7450), |
8711 | a750fc0b | j_mayer | /* Code name for PowerPC 7450 */
|
8712 | 80d11f44 | j_mayer | POWERPC_DEF("Vger", CPU_POWERPC_7450, 7450), |
8713 | a750fc0b | j_mayer | /* PowerPC 7450 v1.0 (G4) */
|
8714 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.0", CPU_POWERPC_7450_v10, 7450), |
8715 | a750fc0b | j_mayer | /* PowerPC 7450 v1.1 (G4) */
|
8716 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.1", CPU_POWERPC_7450_v11, 7450), |
8717 | a750fc0b | j_mayer | /* PowerPC 7450 v1.2 (G4) */
|
8718 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.2", CPU_POWERPC_7450_v12, 7450), |
8719 | a750fc0b | j_mayer | /* PowerPC 7450 v2.0 (G4) */
|
8720 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.0", CPU_POWERPC_7450_v20, 7450), |
8721 | a750fc0b | j_mayer | /* PowerPC 7450 v2.1 (G4) */
|
8722 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.1", CPU_POWERPC_7450_v21, 7450), |
8723 | a750fc0b | j_mayer | /* PowerPC 7441 (G4) */
|
8724 | 80d11f44 | j_mayer | POWERPC_DEF("7441", CPU_POWERPC_74x1, 7440), |
8725 | a750fc0b | j_mayer | /* PowerPC 7451 (G4) */
|
8726 | 80d11f44 | j_mayer | POWERPC_DEF("7451", CPU_POWERPC_74x1, 7450), |
8727 | 4e777442 | j_mayer | /* PowerPC 7441 v2.1 (G4) */
|
8728 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.1", CPU_POWERPC_7450_v21, 7440), |
8729 | 4e777442 | j_mayer | /* PowerPC 7441 v2.3 (G4) */
|
8730 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.3", CPU_POWERPC_74x1_v23, 7440), |
8731 | 4e777442 | j_mayer | /* PowerPC 7451 v2.3 (G4) */
|
8732 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.3", CPU_POWERPC_74x1_v23, 7450), |
8733 | 4e777442 | j_mayer | /* PowerPC 7441 v2.10 (G4) */
|
8734 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.10", CPU_POWERPC_74x1_v210, 7440), |
8735 | 4e777442 | j_mayer | /* PowerPC 7451 v2.10 (G4) */
|
8736 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.10", CPU_POWERPC_74x1_v210, 7450), |
8737 | a750fc0b | j_mayer | /* PowerPC 7445 (G4) */
|
8738 | 80d11f44 | j_mayer | POWERPC_DEF("7445", CPU_POWERPC_74x5, 7445), |
8739 | a750fc0b | j_mayer | /* PowerPC 7455 (G4) */
|
8740 | 80d11f44 | j_mayer | POWERPC_DEF("7455", CPU_POWERPC_74x5, 7455), |
8741 | a750fc0b | j_mayer | /* Code name for PowerPC 7445/7455 */
|
8742 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo6", CPU_POWERPC_74x5, 7455), |
8743 | a750fc0b | j_mayer | /* PowerPC 7445 v1.0 (G4) */
|
8744 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v1.0", CPU_POWERPC_74x5_v10, 7445), |
8745 | a750fc0b | j_mayer | /* PowerPC 7455 v1.0 (G4) */
|
8746 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v1.0", CPU_POWERPC_74x5_v10, 7455), |
8747 | a750fc0b | j_mayer | /* PowerPC 7445 v2.1 (G4) */
|
8748 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v2.1", CPU_POWERPC_74x5_v21, 7445), |
8749 | a750fc0b | j_mayer | /* PowerPC 7455 v2.1 (G4) */
|
8750 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v2.1", CPU_POWERPC_74x5_v21, 7455), |
8751 | a750fc0b | j_mayer | /* PowerPC 7445 v3.2 (G4) */
|
8752 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.2", CPU_POWERPC_74x5_v32, 7445), |
8753 | a750fc0b | j_mayer | /* PowerPC 7455 v3.2 (G4) */
|
8754 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.2", CPU_POWERPC_74x5_v32, 7455), |
8755 | a750fc0b | j_mayer | /* PowerPC 7445 v3.3 (G4) */
|
8756 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.3", CPU_POWERPC_74x5_v33, 7445), |
8757 | a750fc0b | j_mayer | /* PowerPC 7455 v3.3 (G4) */
|
8758 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.3", CPU_POWERPC_74x5_v33, 7455), |
8759 | a750fc0b | j_mayer | /* PowerPC 7445 v3.4 (G4) */
|
8760 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.4", CPU_POWERPC_74x5_v34, 7445), |
8761 | a750fc0b | j_mayer | /* PowerPC 7455 v3.4 (G4) */
|
8762 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.4", CPU_POWERPC_74x5_v34, 7455), |
8763 | a750fc0b | j_mayer | /* PowerPC 7447 (G4) */
|
8764 | 80d11f44 | j_mayer | POWERPC_DEF("7447", CPU_POWERPC_74x7, 7445), |
8765 | a750fc0b | j_mayer | /* PowerPC 7457 (G4) */
|
8766 | 80d11f44 | j_mayer | POWERPC_DEF("7457", CPU_POWERPC_74x7, 7455), |
8767 | a750fc0b | j_mayer | /* Code name for PowerPC 7447/7457 */
|
8768 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo7", CPU_POWERPC_74x7, 7455), |
8769 | a750fc0b | j_mayer | /* PowerPC 7447 v1.0 (G4) */
|
8770 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.0", CPU_POWERPC_74x7_v10, 7445), |
8771 | a750fc0b | j_mayer | /* PowerPC 7457 v1.0 (G4) */
|
8772 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.0", CPU_POWERPC_74x7_v10, 7455), |
8773 | a750fc0b | j_mayer | /* PowerPC 7447 v1.1 (G4) */
|
8774 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.1", CPU_POWERPC_74x7_v11, 7445), |
8775 | a750fc0b | j_mayer | /* PowerPC 7457 v1.1 (G4) */
|
8776 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.1", CPU_POWERPC_74x7_v11, 7455), |
8777 | a750fc0b | j_mayer | /* PowerPC 7457 v1.2 (G4) */
|
8778 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.2", CPU_POWERPC_74x7_v12, 7455), |
8779 | 082c6681 | j_mayer | /* PowerPC 7447A (G4) */
|
8780 | 082c6681 | j_mayer | POWERPC_DEF("7447A", CPU_POWERPC_74x7A, 7445), |
8781 | 082c6681 | j_mayer | /* PowerPC 7457A (G4) */
|
8782 | 082c6681 | j_mayer | POWERPC_DEF("7457A", CPU_POWERPC_74x7A, 7455), |
8783 | 082c6681 | j_mayer | /* PowerPC 7447A v1.0 (G4) */
|
8784 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.0", CPU_POWERPC_74x7A_v10, 7445), |
8785 | 082c6681 | j_mayer | /* PowerPC 7457A v1.0 (G4) */
|
8786 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.0", CPU_POWERPC_74x7A_v10, 7455), |
8787 | 082c6681 | j_mayer | /* Code name for PowerPC 7447A/7457A */
|
8788 | 082c6681 | j_mayer | POWERPC_DEF("Apollo7PM", CPU_POWERPC_74x7A_v10, 7455), |
8789 | 082c6681 | j_mayer | /* PowerPC 7447A v1.1 (G4) */
|
8790 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.1", CPU_POWERPC_74x7A_v11, 7445), |
8791 | 082c6681 | j_mayer | /* PowerPC 7457A v1.1 (G4) */
|
8792 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.1", CPU_POWERPC_74x7A_v11, 7455), |
8793 | 082c6681 | j_mayer | /* PowerPC 7447A v1.2 (G4) */
|
8794 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.2", CPU_POWERPC_74x7A_v12, 7445), |
8795 | 082c6681 | j_mayer | /* PowerPC 7457A v1.2 (G4) */
|
8796 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.2", CPU_POWERPC_74x7A_v12, 7455), |
8797 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
8798 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8799 | a750fc0b | j_mayer | /* PowerPC 620 */
|
8800 | 80d11f44 | j_mayer | POWERPC_DEF("620", CPU_POWERPC_620, 620), |
8801 | 082c6681 | j_mayer | /* Code name for PowerPC 620 */
|
8802 | 082c6681 | j_mayer | POWERPC_DEF("Trident", CPU_POWERPC_620, 620), |
8803 | 3fc6c082 | bellard | #if defined (TODO)
|
8804 | a750fc0b | j_mayer | /* PowerPC 630 (POWER3) */
|
8805 | 80d11f44 | j_mayer | POWERPC_DEF("630", CPU_POWERPC_630, 630), |
8806 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3", CPU_POWERPC_630, 630), |
8807 | 082c6681 | j_mayer | /* Code names for POWER3 */
|
8808 | 082c6681 | j_mayer | POWERPC_DEF("Boxer", CPU_POWERPC_630, 630), |
8809 | 082c6681 | j_mayer | POWERPC_DEF("Dino", CPU_POWERPC_630, 630), |
8810 | a750fc0b | j_mayer | #endif
|
8811 | 3a607854 | j_mayer | #if defined (TODO)
|
8812 | a750fc0b | j_mayer | /* PowerPC 631 (Power 3+) */
|
8813 | 80d11f44 | j_mayer | POWERPC_DEF("631", CPU_POWERPC_631, 631), |
8814 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3+", CPU_POWERPC_631, 631), |
8815 | 3a607854 | j_mayer | #endif
|
8816 | 3a607854 | j_mayer | #if defined (TODO)
|
8817 | a750fc0b | j_mayer | /* POWER4 */
|
8818 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4", CPU_POWERPC_POWER4, POWER4),
|
8819 | a750fc0b | j_mayer | #endif
|
8820 | 3a607854 | j_mayer | #if defined (TODO)
|
8821 | a750fc0b | j_mayer | /* POWER4p */
|
8822 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4+", CPU_POWERPC_POWER4P, POWER4P),
|
8823 | a750fc0b | j_mayer | #endif
|
8824 | 3a607854 | j_mayer | #if defined (TODO)
|
8825 | a750fc0b | j_mayer | /* POWER5 */
|
8826 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5", CPU_POWERPC_POWER5, POWER5),
|
8827 | a750fc0b | j_mayer | /* POWER5GR */
|
8828 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gr", CPU_POWERPC_POWER5GR, POWER5),
|
8829 | 2662a059 | j_mayer | #endif
|
8830 | 2662a059 | j_mayer | #if defined (TODO)
|
8831 | a750fc0b | j_mayer | /* POWER5+ */
|
8832 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5+", CPU_POWERPC_POWER5P, POWER5P),
|
8833 | a750fc0b | j_mayer | /* POWER5GS */
|
8834 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gs", CPU_POWERPC_POWER5GS, POWER5P),
|
8835 | a750fc0b | j_mayer | #endif
|
8836 | 2662a059 | j_mayer | #if defined (TODO)
|
8837 | a750fc0b | j_mayer | /* POWER6 */
|
8838 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6", CPU_POWERPC_POWER6, POWER6),
|
8839 | a750fc0b | j_mayer | /* POWER6 running in POWER5 mode */
|
8840 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6_5", CPU_POWERPC_POWER6_5, POWER5),
|
8841 | a750fc0b | j_mayer | /* POWER6A */
|
8842 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6A", CPU_POWERPC_POWER6A, POWER6),
|
8843 | 2662a059 | j_mayer | #endif
|
8844 | a750fc0b | j_mayer | /* PowerPC 970 */
|
8845 | 80d11f44 | j_mayer | POWERPC_DEF("970", CPU_POWERPC_970, 970), |
8846 | a750fc0b | j_mayer | /* PowerPC 970FX (G5) */
|
8847 | 80d11f44 | j_mayer | POWERPC_DEF("970fx", CPU_POWERPC_970FX, 970FX), |
8848 | a750fc0b | j_mayer | /* PowerPC 970FX v1.0 (G5) */
|
8849 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v1.0", CPU_POWERPC_970FX_v10, 970FX), |
8850 | a750fc0b | j_mayer | /* PowerPC 970FX v2.0 (G5) */
|
8851 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.0", CPU_POWERPC_970FX_v20, 970FX), |
8852 | a750fc0b | j_mayer | /* PowerPC 970FX v2.1 (G5) */
|
8853 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.1", CPU_POWERPC_970FX_v21, 970FX), |
8854 | a750fc0b | j_mayer | /* PowerPC 970FX v3.0 (G5) */
|
8855 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.0", CPU_POWERPC_970FX_v30, 970FX), |
8856 | a750fc0b | j_mayer | /* PowerPC 970FX v3.1 (G5) */
|
8857 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.1", CPU_POWERPC_970FX_v31, 970FX), |
8858 | a750fc0b | j_mayer | /* PowerPC 970GX (G5) */
|
8859 | 80d11f44 | j_mayer | POWERPC_DEF("970gx", CPU_POWERPC_970GX, 970GX), |
8860 | a750fc0b | j_mayer | /* PowerPC 970MP */
|
8861 | 80d11f44 | j_mayer | POWERPC_DEF("970mp", CPU_POWERPC_970MP, 970MP), |
8862 | a750fc0b | j_mayer | /* PowerPC 970MP v1.0 */
|
8863 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.0", CPU_POWERPC_970MP_v10, 970MP), |
8864 | a750fc0b | j_mayer | /* PowerPC 970MP v1.1 */
|
8865 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.1", CPU_POWERPC_970MP_v11, 970MP), |
8866 | 3a607854 | j_mayer | #if defined (TODO)
|
8867 | a750fc0b | j_mayer | /* PowerPC Cell */
|
8868 | 80d11f44 | j_mayer | POWERPC_DEF("Cell", CPU_POWERPC_CELL, 970), |
8869 | 2662a059 | j_mayer | #endif
|
8870 | 2662a059 | j_mayer | #if defined (TODO)
|
8871 | a750fc0b | j_mayer | /* PowerPC Cell v1.0 */
|
8872 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v1.0", CPU_POWERPC_CELL_v10, 970), |
8873 | 2662a059 | j_mayer | #endif
|
8874 | 2662a059 | j_mayer | #if defined (TODO)
|
8875 | a750fc0b | j_mayer | /* PowerPC Cell v2.0 */
|
8876 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v2.0", CPU_POWERPC_CELL_v20, 970), |
8877 | 2662a059 | j_mayer | #endif
|
8878 | 2662a059 | j_mayer | #if defined (TODO)
|
8879 | a750fc0b | j_mayer | /* PowerPC Cell v3.0 */
|
8880 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.0", CPU_POWERPC_CELL_v30, 970), |
8881 | 3a607854 | j_mayer | #endif
|
8882 | 3a607854 | j_mayer | #if defined (TODO)
|
8883 | a750fc0b | j_mayer | /* PowerPC Cell v3.1 */
|
8884 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.1", CPU_POWERPC_CELL_v31, 970), |
8885 | 2662a059 | j_mayer | #endif
|
8886 | 2662a059 | j_mayer | #if defined (TODO)
|
8887 | a750fc0b | j_mayer | /* PowerPC Cell v3.2 */
|
8888 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.2", CPU_POWERPC_CELL_v32, 970), |
8889 | 2662a059 | j_mayer | #endif
|
8890 | 2662a059 | j_mayer | #if defined (TODO)
|
8891 | a750fc0b | j_mayer | /* RS64 (Apache/A35) */
|
8892 | a750fc0b | j_mayer | /* This one seems to support the whole POWER2 instruction set
|
8893 | a750fc0b | j_mayer | * and the PowerPC 64 one.
|
8894 | a750fc0b | j_mayer | */
|
8895 | a750fc0b | j_mayer | /* What about A10 & A30 ? */
|
8896 | 80d11f44 | j_mayer | POWERPC_DEF("RS64", CPU_POWERPC_RS64, RS64),
|
8897 | 80d11f44 | j_mayer | POWERPC_DEF("Apache", CPU_POWERPC_RS64, RS64),
|
8898 | 80d11f44 | j_mayer | POWERPC_DEF("A35", CPU_POWERPC_RS64, RS64),
|
8899 | 3a607854 | j_mayer | #endif
|
8900 | 3a607854 | j_mayer | #if defined (TODO)
|
8901 | a750fc0b | j_mayer | /* RS64-II (NorthStar/A50) */
|
8902 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-II", CPU_POWERPC_RS64II, RS64),
|
8903 | 80d11f44 | j_mayer | POWERPC_DEF("NorthStar", CPU_POWERPC_RS64II, RS64),
|
8904 | 80d11f44 | j_mayer | POWERPC_DEF("A50", CPU_POWERPC_RS64II, RS64),
|
8905 | 3a607854 | j_mayer | #endif
|
8906 | 3a607854 | j_mayer | #if defined (TODO)
|
8907 | a750fc0b | j_mayer | /* RS64-III (Pulsar) */
|
8908 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-III", CPU_POWERPC_RS64III, RS64),
|
8909 | 80d11f44 | j_mayer | POWERPC_DEF("Pulsar", CPU_POWERPC_RS64III, RS64),
|
8910 | 2662a059 | j_mayer | #endif
|
8911 | 2662a059 | j_mayer | #if defined (TODO)
|
8912 | a750fc0b | j_mayer | /* RS64-IV (IceStar/IStar/SStar) */
|
8913 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-IV", CPU_POWERPC_RS64IV, RS64),
|
8914 | 80d11f44 | j_mayer | POWERPC_DEF("IceStar", CPU_POWERPC_RS64IV, RS64),
|
8915 | 80d11f44 | j_mayer | POWERPC_DEF("IStar", CPU_POWERPC_RS64IV, RS64),
|
8916 | 80d11f44 | j_mayer | POWERPC_DEF("SStar", CPU_POWERPC_RS64IV, RS64),
|
8917 | 3a607854 | j_mayer | #endif
|
8918 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
8919 | a750fc0b | j_mayer | /* POWER */
|
8920 | 3fc6c082 | bellard | #if defined (TODO)
|
8921 | a750fc0b | j_mayer | /* Original POWER */
|
8922 | 80d11f44 | j_mayer | POWERPC_DEF("POWER", CPU_POWERPC_POWER, POWER),
|
8923 | 80d11f44 | j_mayer | POWERPC_DEF("RIOS", CPU_POWERPC_POWER, POWER),
|
8924 | 80d11f44 | j_mayer | POWERPC_DEF("RSC", CPU_POWERPC_POWER, POWER),
|
8925 | 80d11f44 | j_mayer | POWERPC_DEF("RSC3308", CPU_POWERPC_POWER, POWER),
|
8926 | 80d11f44 | j_mayer | POWERPC_DEF("RSC4608", CPU_POWERPC_POWER, POWER),
|
8927 | 76a66253 | j_mayer | #endif
|
8928 | 76a66253 | j_mayer | #if defined (TODO)
|
8929 | a750fc0b | j_mayer | /* POWER2 */
|
8930 | 80d11f44 | j_mayer | POWERPC_DEF("POWER2", CPU_POWERPC_POWER2, POWER),
|
8931 | 80d11f44 | j_mayer | POWERPC_DEF("RSC2", CPU_POWERPC_POWER2, POWER),
|
8932 | 80d11f44 | j_mayer | POWERPC_DEF("P2SC", CPU_POWERPC_POWER2, POWER),
|
8933 | a750fc0b | j_mayer | #endif
|
8934 | a750fc0b | j_mayer | /* PA semi cores */
|
8935 | a750fc0b | j_mayer | #if defined (TODO)
|
8936 | a750fc0b | j_mayer | /* PA PA6T */
|
8937 | 80d11f44 | j_mayer | POWERPC_DEF("PA6T", CPU_POWERPC_PA6T, PA6T),
|
8938 | a750fc0b | j_mayer | #endif
|
8939 | a750fc0b | j_mayer | /* Generic PowerPCs */
|
8940 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8941 | 80d11f44 | j_mayer | POWERPC_DEF("ppc64", CPU_POWERPC_PPC64, PPC64),
|
8942 | a750fc0b | j_mayer | #endif
|
8943 | 80d11f44 | j_mayer | POWERPC_DEF("ppc32", CPU_POWERPC_PPC32, PPC32),
|
8944 | 80d11f44 | j_mayer | POWERPC_DEF("ppc", CPU_POWERPC_DEFAULT, DEFAULT),
|
8945 | a750fc0b | j_mayer | /* Fallback */
|
8946 | 80d11f44 | j_mayer | POWERPC_DEF("default", CPU_POWERPC_DEFAULT, DEFAULT),
|
8947 | a750fc0b | j_mayer | }; |
8948 | a750fc0b | j_mayer | |
8949 | a750fc0b | j_mayer | /*****************************************************************************/
|
8950 | a750fc0b | j_mayer | /* Generic CPU instanciation routine */
|
8951 | c227f099 | Anthony Liguori | static void init_ppc_proc (CPUPPCState *env, const ppc_def_t *def) |
8952 | a750fc0b | j_mayer | { |
8953 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8954 | e1833e1f | j_mayer | int i;
|
8955 | e1833e1f | j_mayer | |
8956 | a750fc0b | j_mayer | env->irq_inputs = NULL;
|
8957 | e1833e1f | j_mayer | /* Set all exception vectors to an invalid address */
|
8958 | e1833e1f | j_mayer | for (i = 0; i < POWERPC_EXCP_NB; i++) |
8959 | e1833e1f | j_mayer | env->excp_vectors[i] = (target_ulong)(-1ULL);
|
8960 | fc1c67bc | Blue Swirl | env->hreset_excp_prefix = 0x00000000;
|
8961 | e1833e1f | j_mayer | env->ivor_mask = 0x00000000;
|
8962 | e1833e1f | j_mayer | env->ivpr_mask = 0x00000000;
|
8963 | a750fc0b | j_mayer | /* Default MMU definitions */
|
8964 | a750fc0b | j_mayer | env->nb_BATs = 0;
|
8965 | a750fc0b | j_mayer | env->nb_tlb = 0;
|
8966 | a750fc0b | j_mayer | env->nb_ways = 0;
|
8967 | f2e63a42 | j_mayer | #endif
|
8968 | a750fc0b | j_mayer | /* Register SPR common to all PowerPC implementations */
|
8969 | a750fc0b | j_mayer | gen_spr_generic(env); |
8970 | a750fc0b | j_mayer | spr_register(env, SPR_PVR, "PVR",
|
8971 | a139aa17 | Nathan Froyd | /* Linux permits userspace to read PVR */
|
8972 | a139aa17 | Nathan Froyd | #if defined(CONFIG_LINUX_USER)
|
8973 | a139aa17 | Nathan Froyd | &spr_read_generic, |
8974 | a139aa17 | Nathan Froyd | #else
|
8975 | a139aa17 | Nathan Froyd | SPR_NOACCESS, |
8976 | a139aa17 | Nathan Froyd | #endif
|
8977 | a139aa17 | Nathan Froyd | SPR_NOACCESS, |
8978 | a750fc0b | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8979 | a750fc0b | j_mayer | def->pvr); |
8980 | 80d11f44 | j_mayer | /* Register SVR if it's defined to anything else than POWERPC_SVR_NONE */
|
8981 | 80d11f44 | j_mayer | if (def->svr != POWERPC_SVR_NONE) {
|
8982 | 80d11f44 | j_mayer | if (def->svr & POWERPC_SVR_E500) {
|
8983 | 80d11f44 | j_mayer | spr_register(env, SPR_E500_SVR, "SVR",
|
8984 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8985 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8986 | 80d11f44 | j_mayer | def->svr & ~POWERPC_SVR_E500); |
8987 | 80d11f44 | j_mayer | } else {
|
8988 | 80d11f44 | j_mayer | spr_register(env, SPR_SVR, "SVR",
|
8989 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8990 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8991 | 80d11f44 | j_mayer | def->svr); |
8992 | 80d11f44 | j_mayer | } |
8993 | 80d11f44 | j_mayer | } |
8994 | a750fc0b | j_mayer | /* PowerPC implementation specific initialisations (SPRs, timers, ...) */
|
8995 | a750fc0b | j_mayer | (*def->init_proc)(env); |
8996 | fc1c67bc | Blue Swirl | #if !defined(CONFIG_USER_ONLY)
|
8997 | fc1c67bc | Blue Swirl | env->excp_prefix = env->hreset_excp_prefix; |
8998 | fc1c67bc | Blue Swirl | #endif
|
8999 | 25ba3a68 | j_mayer | /* MSR bits & flags consistency checks */
|
9000 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 25)) { |
9001 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) {
|
9002 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SPE:
|
9003 | 25ba3a68 | j_mayer | case POWERPC_FLAG_VRE:
|
9004 | 25ba3a68 | j_mayer | break;
|
9005 | 25ba3a68 | j_mayer | default:
|
9006 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9007 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SPE or POWERPC_FLAG_VRE\n");
|
9008 | 25ba3a68 | j_mayer | exit(1);
|
9009 | 25ba3a68 | j_mayer | } |
9010 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) { |
9011 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9012 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SPE nor POWERPC_FLAG_VRE\n");
|
9013 | 25ba3a68 | j_mayer | exit(1);
|
9014 | 25ba3a68 | j_mayer | } |
9015 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 17)) { |
9016 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) {
|
9017 | 25ba3a68 | j_mayer | case POWERPC_FLAG_TGPR:
|
9018 | 25ba3a68 | j_mayer | case POWERPC_FLAG_CE:
|
9019 | 25ba3a68 | j_mayer | break;
|
9020 | 25ba3a68 | j_mayer | default:
|
9021 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9022 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_TGPR or POWERPC_FLAG_CE\n");
|
9023 | 25ba3a68 | j_mayer | exit(1);
|
9024 | 25ba3a68 | j_mayer | } |
9025 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) { |
9026 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9027 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_TGPR nor POWERPC_FLAG_CE\n");
|
9028 | 25ba3a68 | j_mayer | exit(1);
|
9029 | 25ba3a68 | j_mayer | } |
9030 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 10)) { |
9031 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE |
|
9032 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
9033 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SE:
|
9034 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DWE:
|
9035 | 25ba3a68 | j_mayer | case POWERPC_FLAG_UBLE:
|
9036 | 25ba3a68 | j_mayer | break;
|
9037 | 25ba3a68 | j_mayer | default:
|
9038 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9039 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SE or POWERPC_FLAG_DWE or "
|
9040 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
9041 | 25ba3a68 | j_mayer | exit(1);
|
9042 | 25ba3a68 | j_mayer | } |
9043 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE | |
9044 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
9045 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9046 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SE nor POWERPC_FLAG_DWE nor "
|
9047 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
9048 | 25ba3a68 | j_mayer | exit(1);
|
9049 | 25ba3a68 | j_mayer | } |
9050 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 9)) { |
9051 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) {
|
9052 | 25ba3a68 | j_mayer | case POWERPC_FLAG_BE:
|
9053 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DE:
|
9054 | 25ba3a68 | j_mayer | break;
|
9055 | 25ba3a68 | j_mayer | default:
|
9056 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9057 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_BE or POWERPC_FLAG_DE\n");
|
9058 | 25ba3a68 | j_mayer | exit(1);
|
9059 | 25ba3a68 | j_mayer | } |
9060 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) { |
9061 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9062 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_BE nor POWERPC_FLAG_DE\n");
|
9063 | 25ba3a68 | j_mayer | exit(1);
|
9064 | 25ba3a68 | j_mayer | } |
9065 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 2)) { |
9066 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) {
|
9067 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PX:
|
9068 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PMM:
|
9069 | 25ba3a68 | j_mayer | break;
|
9070 | 25ba3a68 | j_mayer | default:
|
9071 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9072 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_PX or POWERPC_FLAG_PMM\n");
|
9073 | 25ba3a68 | j_mayer | exit(1);
|
9074 | 25ba3a68 | j_mayer | } |
9075 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) { |
9076 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
9077 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_PX nor POWERPC_FLAG_PMM\n");
|
9078 | 25ba3a68 | j_mayer | exit(1);
|
9079 | 25ba3a68 | j_mayer | } |
9080 | 4018bae9 | j_mayer | if ((env->flags & (POWERPC_FLAG_RTC_CLK | POWERPC_FLAG_BUS_CLK)) == 0) { |
9081 | 4018bae9 | j_mayer | fprintf(stderr, "PowerPC flags inconsistency\n"
|
9082 | 4018bae9 | j_mayer | "Should define the time-base and decrementer clock source\n");
|
9083 | 4018bae9 | j_mayer | exit(1);
|
9084 | 4018bae9 | j_mayer | } |
9085 | a750fc0b | j_mayer | /* Allocate TLBs buffer when needed */
|
9086 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9087 | a750fc0b | j_mayer | if (env->nb_tlb != 0) { |
9088 | a750fc0b | j_mayer | int nb_tlb = env->nb_tlb;
|
9089 | a750fc0b | j_mayer | if (env->id_tlbs != 0) |
9090 | a750fc0b | j_mayer | nb_tlb *= 2;
|
9091 | c227f099 | Anthony Liguori | env->tlb = qemu_mallocz(nb_tlb * sizeof(ppc_tlb_t));
|
9092 | a750fc0b | j_mayer | /* Pre-compute some useful values */
|
9093 | a750fc0b | j_mayer | env->tlb_per_way = env->nb_tlb / env->nb_ways; |
9094 | a750fc0b | j_mayer | } |
9095 | a750fc0b | j_mayer | if (env->irq_inputs == NULL) { |
9096 | a750fc0b | j_mayer | fprintf(stderr, "WARNING: no internal IRQ controller registered.\n"
|
9097 | a750fc0b | j_mayer | " Attempt Qemu to crash very soon !\n");
|
9098 | a750fc0b | j_mayer | } |
9099 | a750fc0b | j_mayer | #endif
|
9100 | 2f462816 | j_mayer | if (env->check_pow == NULL) { |
9101 | 2f462816 | j_mayer | fprintf(stderr, "WARNING: no power management check handler "
|
9102 | 2f462816 | j_mayer | "registered.\n"
|
9103 | 2f462816 | j_mayer | " Attempt Qemu to crash very soon !\n");
|
9104 | 2f462816 | j_mayer | } |
9105 | a750fc0b | j_mayer | } |
9106 | a750fc0b | j_mayer | |
9107 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9108 | a750fc0b | j_mayer | static void dump_ppc_sprs (CPUPPCState *env) |
9109 | a750fc0b | j_mayer | { |
9110 | a750fc0b | j_mayer | ppc_spr_t *spr; |
9111 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9112 | a750fc0b | j_mayer | uint32_t sr, sw; |
9113 | a750fc0b | j_mayer | #endif
|
9114 | a750fc0b | j_mayer | uint32_t ur, uw; |
9115 | a750fc0b | j_mayer | int i, j, n;
|
9116 | a750fc0b | j_mayer | |
9117 | a750fc0b | j_mayer | printf("Special purpose registers:\n");
|
9118 | a750fc0b | j_mayer | for (i = 0; i < 32; i++) { |
9119 | a750fc0b | j_mayer | for (j = 0; j < 32; j++) { |
9120 | a750fc0b | j_mayer | n = (i << 5) | j;
|
9121 | a750fc0b | j_mayer | spr = &env->spr_cb[n]; |
9122 | a750fc0b | j_mayer | uw = spr->uea_write != NULL && spr->uea_write != SPR_NOACCESS;
|
9123 | a750fc0b | j_mayer | ur = spr->uea_read != NULL && spr->uea_read != SPR_NOACCESS;
|
9124 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9125 | a750fc0b | j_mayer | sw = spr->oea_write != NULL && spr->oea_write != SPR_NOACCESS;
|
9126 | a750fc0b | j_mayer | sr = spr->oea_read != NULL && spr->oea_read != SPR_NOACCESS;
|
9127 | a750fc0b | j_mayer | if (sw || sr || uw || ur) {
|
9128 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s s%c%c u%c%c\n",
|
9129 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
9130 | a750fc0b | j_mayer | sw ? 'w' : '-', sr ? 'r' : '-', |
9131 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
9132 | a750fc0b | j_mayer | } |
9133 | a750fc0b | j_mayer | #else
|
9134 | a750fc0b | j_mayer | if (uw || ur) {
|
9135 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s u%c%c\n",
|
9136 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
9137 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
9138 | a750fc0b | j_mayer | } |
9139 | a750fc0b | j_mayer | #endif
|
9140 | a750fc0b | j_mayer | } |
9141 | a750fc0b | j_mayer | } |
9142 | a750fc0b | j_mayer | fflush(stdout); |
9143 | a750fc0b | j_mayer | fflush(stderr); |
9144 | a750fc0b | j_mayer | } |
9145 | a750fc0b | j_mayer | #endif
|
9146 | a750fc0b | j_mayer | |
9147 | a750fc0b | j_mayer | /*****************************************************************************/
|
9148 | a750fc0b | j_mayer | #include <stdlib.h> |
9149 | a750fc0b | j_mayer | #include <string.h> |
9150 | a750fc0b | j_mayer | |
9151 | a750fc0b | j_mayer | /* Opcode types */
|
9152 | a750fc0b | j_mayer | enum {
|
9153 | a750fc0b | j_mayer | PPC_DIRECT = 0, /* Opcode routine */ |
9154 | a750fc0b | j_mayer | PPC_INDIRECT = 1, /* Indirect opcode table */ |
9155 | a750fc0b | j_mayer | }; |
9156 | a750fc0b | j_mayer | |
9157 | a750fc0b | j_mayer | static inline int is_indirect_opcode (void *handler) |
9158 | a750fc0b | j_mayer | { |
9159 | a750fc0b | j_mayer | return ((unsigned long)handler & 0x03) == PPC_INDIRECT; |
9160 | a750fc0b | j_mayer | } |
9161 | a750fc0b | j_mayer | |
9162 | c227f099 | Anthony Liguori | static inline opc_handler_t **ind_table(void *handler) |
9163 | a750fc0b | j_mayer | { |
9164 | c227f099 | Anthony Liguori | return (opc_handler_t **)((unsigned long)handler & ~3); |
9165 | a750fc0b | j_mayer | } |
9166 | a750fc0b | j_mayer | |
9167 | a750fc0b | j_mayer | /* Instruction table creation */
|
9168 | a750fc0b | j_mayer | /* Opcodes tables creation */
|
9169 | c227f099 | Anthony Liguori | static void fill_new_table (opc_handler_t **table, int len) |
9170 | a750fc0b | j_mayer | { |
9171 | a750fc0b | j_mayer | int i;
|
9172 | a750fc0b | j_mayer | |
9173 | a750fc0b | j_mayer | for (i = 0; i < len; i++) |
9174 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9175 | a750fc0b | j_mayer | } |
9176 | a750fc0b | j_mayer | |
9177 | c227f099 | Anthony Liguori | static int create_new_table (opc_handler_t **table, unsigned char idx) |
9178 | a750fc0b | j_mayer | { |
9179 | c227f099 | Anthony Liguori | opc_handler_t **tmp; |
9180 | a750fc0b | j_mayer | |
9181 | c227f099 | Anthony Liguori | tmp = malloc(0x20 * sizeof(opc_handler_t)); |
9182 | a750fc0b | j_mayer | fill_new_table(tmp, 0x20);
|
9183 | c227f099 | Anthony Liguori | table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT); |
9184 | a750fc0b | j_mayer | |
9185 | a750fc0b | j_mayer | return 0; |
9186 | a750fc0b | j_mayer | } |
9187 | a750fc0b | j_mayer | |
9188 | c227f099 | Anthony Liguori | static int insert_in_table (opc_handler_t **table, unsigned char idx, |
9189 | c227f099 | Anthony Liguori | opc_handler_t *handler) |
9190 | a750fc0b | j_mayer | { |
9191 | a750fc0b | j_mayer | if (table[idx] != &invalid_handler)
|
9192 | a750fc0b | j_mayer | return -1; |
9193 | a750fc0b | j_mayer | table[idx] = handler; |
9194 | a750fc0b | j_mayer | |
9195 | a750fc0b | j_mayer | return 0; |
9196 | a750fc0b | j_mayer | } |
9197 | a750fc0b | j_mayer | |
9198 | c227f099 | Anthony Liguori | static int register_direct_insn (opc_handler_t **ppc_opcodes, |
9199 | c227f099 | Anthony Liguori | unsigned char idx, opc_handler_t *handler) |
9200 | a750fc0b | j_mayer | { |
9201 | a750fc0b | j_mayer | if (insert_in_table(ppc_opcodes, idx, handler) < 0) { |
9202 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in main "
|
9203 | a750fc0b | j_mayer | "opcode table\n", idx);
|
9204 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9205 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9206 | 4c1b1bfe | j_mayer | ppc_opcodes[idx]->oname, handler->oname); |
9207 | 4c1b1bfe | j_mayer | #endif
|
9208 | a750fc0b | j_mayer | return -1; |
9209 | a750fc0b | j_mayer | } |
9210 | a750fc0b | j_mayer | |
9211 | a750fc0b | j_mayer | return 0; |
9212 | a750fc0b | j_mayer | } |
9213 | a750fc0b | j_mayer | |
9214 | c227f099 | Anthony Liguori | static int register_ind_in_table (opc_handler_t **table, |
9215 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9216 | c227f099 | Anthony Liguori | opc_handler_t *handler) |
9217 | a750fc0b | j_mayer | { |
9218 | a750fc0b | j_mayer | if (table[idx1] == &invalid_handler) {
|
9219 | a750fc0b | j_mayer | if (create_new_table(table, idx1) < 0) { |
9220 | a750fc0b | j_mayer | printf("*** ERROR: unable to create indirect table "
|
9221 | a750fc0b | j_mayer | "idx=%02x\n", idx1);
|
9222 | a750fc0b | j_mayer | return -1; |
9223 | a750fc0b | j_mayer | } |
9224 | a750fc0b | j_mayer | } else {
|
9225 | a750fc0b | j_mayer | if (!is_indirect_opcode(table[idx1])) {
|
9226 | a750fc0b | j_mayer | printf("*** ERROR: idx %02x already assigned to a direct "
|
9227 | a750fc0b | j_mayer | "opcode\n", idx1);
|
9228 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9229 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9230 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9231 | 4c1b1bfe | j_mayer | #endif
|
9232 | a750fc0b | j_mayer | return -1; |
9233 | a750fc0b | j_mayer | } |
9234 | 3a607854 | j_mayer | } |
9235 | a750fc0b | j_mayer | if (handler != NULL && |
9236 | a750fc0b | j_mayer | insert_in_table(ind_table(table[idx1]), idx2, handler) < 0) {
|
9237 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in "
|
9238 | a750fc0b | j_mayer | "opcode table %02x\n", idx2, idx1);
|
9239 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9240 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9241 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9242 | 4c1b1bfe | j_mayer | #endif
|
9243 | a750fc0b | j_mayer | return -1; |
9244 | 3a607854 | j_mayer | } |
9245 | a750fc0b | j_mayer | |
9246 | a750fc0b | j_mayer | return 0; |
9247 | a750fc0b | j_mayer | } |
9248 | a750fc0b | j_mayer | |
9249 | c227f099 | Anthony Liguori | static int register_ind_insn (opc_handler_t **ppc_opcodes, |
9250 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9251 | c227f099 | Anthony Liguori | opc_handler_t *handler) |
9252 | a750fc0b | j_mayer | { |
9253 | a750fc0b | j_mayer | int ret;
|
9254 | a750fc0b | j_mayer | |
9255 | a750fc0b | j_mayer | ret = register_ind_in_table(ppc_opcodes, idx1, idx2, handler); |
9256 | a750fc0b | j_mayer | |
9257 | a750fc0b | j_mayer | return ret;
|
9258 | a750fc0b | j_mayer | } |
9259 | a750fc0b | j_mayer | |
9260 | c227f099 | Anthony Liguori | static int register_dblind_insn (opc_handler_t **ppc_opcodes, |
9261 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9262 | c227f099 | Anthony Liguori | unsigned char idx3, opc_handler_t *handler) |
9263 | a750fc0b | j_mayer | { |
9264 | a750fc0b | j_mayer | if (register_ind_in_table(ppc_opcodes, idx1, idx2, NULL) < 0) { |
9265 | a750fc0b | j_mayer | printf("*** ERROR: unable to join indirect table idx "
|
9266 | a750fc0b | j_mayer | "[%02x-%02x]\n", idx1, idx2);
|
9267 | a750fc0b | j_mayer | return -1; |
9268 | a750fc0b | j_mayer | } |
9269 | a750fc0b | j_mayer | if (register_ind_in_table(ind_table(ppc_opcodes[idx1]), idx2, idx3,
|
9270 | a750fc0b | j_mayer | handler) < 0) {
|
9271 | a750fc0b | j_mayer | printf("*** ERROR: unable to insert opcode "
|
9272 | a750fc0b | j_mayer | "[%02x-%02x-%02x]\n", idx1, idx2, idx3);
|
9273 | a750fc0b | j_mayer | return -1; |
9274 | a750fc0b | j_mayer | } |
9275 | a750fc0b | j_mayer | |
9276 | a750fc0b | j_mayer | return 0; |
9277 | a750fc0b | j_mayer | } |
9278 | a750fc0b | j_mayer | |
9279 | c227f099 | Anthony Liguori | static int register_insn (opc_handler_t **ppc_opcodes, opcode_t *insn) |
9280 | a750fc0b | j_mayer | { |
9281 | a750fc0b | j_mayer | if (insn->opc2 != 0xFF) { |
9282 | a750fc0b | j_mayer | if (insn->opc3 != 0xFF) { |
9283 | a750fc0b | j_mayer | if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,
|
9284 | a750fc0b | j_mayer | insn->opc3, &insn->handler) < 0)
|
9285 | a750fc0b | j_mayer | return -1; |
9286 | a750fc0b | j_mayer | } else {
|
9287 | a750fc0b | j_mayer | if (register_ind_insn(ppc_opcodes, insn->opc1,
|
9288 | a750fc0b | j_mayer | insn->opc2, &insn->handler) < 0)
|
9289 | a750fc0b | j_mayer | return -1; |
9290 | a750fc0b | j_mayer | } |
9291 | a750fc0b | j_mayer | } else {
|
9292 | a750fc0b | j_mayer | if (register_direct_insn(ppc_opcodes, insn->opc1, &insn->handler) < 0) |
9293 | a750fc0b | j_mayer | return -1; |
9294 | a750fc0b | j_mayer | } |
9295 | a750fc0b | j_mayer | |
9296 | a750fc0b | j_mayer | return 0; |
9297 | a750fc0b | j_mayer | } |
9298 | a750fc0b | j_mayer | |
9299 | c227f099 | Anthony Liguori | static int test_opcode_table (opc_handler_t **table, int len) |
9300 | a750fc0b | j_mayer | { |
9301 | a750fc0b | j_mayer | int i, count, tmp;
|
9302 | a750fc0b | j_mayer | |
9303 | a750fc0b | j_mayer | for (i = 0, count = 0; i < len; i++) { |
9304 | a750fc0b | j_mayer | /* Consistency fixup */
|
9305 | a750fc0b | j_mayer | if (table[i] == NULL) |
9306 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9307 | a750fc0b | j_mayer | if (table[i] != &invalid_handler) {
|
9308 | a750fc0b | j_mayer | if (is_indirect_opcode(table[i])) {
|
9309 | c227f099 | Anthony Liguori | tmp = test_opcode_table(ind_table(table[i]), 0x20);
|
9310 | a750fc0b | j_mayer | if (tmp == 0) { |
9311 | a750fc0b | j_mayer | free(table[i]); |
9312 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9313 | a750fc0b | j_mayer | } else {
|
9314 | a750fc0b | j_mayer | count++; |
9315 | a750fc0b | j_mayer | } |
9316 | a750fc0b | j_mayer | } else {
|
9317 | a750fc0b | j_mayer | count++; |
9318 | a750fc0b | j_mayer | } |
9319 | a750fc0b | j_mayer | } |
9320 | a750fc0b | j_mayer | } |
9321 | a750fc0b | j_mayer | |
9322 | a750fc0b | j_mayer | return count;
|
9323 | a750fc0b | j_mayer | } |
9324 | a750fc0b | j_mayer | |
9325 | c227f099 | Anthony Liguori | static void fix_opcode_tables (opc_handler_t **ppc_opcodes) |
9326 | a750fc0b | j_mayer | { |
9327 | c227f099 | Anthony Liguori | if (test_opcode_table(ppc_opcodes, 0x40) == 0) |
9328 | a750fc0b | j_mayer | printf("*** WARNING: no opcode defined !\n");
|
9329 | a750fc0b | j_mayer | } |
9330 | a750fc0b | j_mayer | |
9331 | a750fc0b | j_mayer | /*****************************************************************************/
|
9332 | c227f099 | Anthony Liguori | static int create_ppc_opcodes (CPUPPCState *env, const ppc_def_t *def) |
9333 | a750fc0b | j_mayer | { |
9334 | c227f099 | Anthony Liguori | opcode_t *opc; |
9335 | a750fc0b | j_mayer | |
9336 | a750fc0b | j_mayer | fill_new_table(env->opcodes, 0x40);
|
9337 | 5c55ff99 | Blue Swirl | for (opc = opcodes; opc < &opcodes[ARRAY_SIZE(opcodes)]; opc++) {
|
9338 | a750fc0b | j_mayer | if ((opc->handler.type & def->insns_flags) != 0) { |
9339 | a750fc0b | j_mayer | if (register_insn(env->opcodes, opc) < 0) { |
9340 | a750fc0b | j_mayer | printf("*** ERROR initializing PowerPC instruction "
|
9341 | a750fc0b | j_mayer | "0x%02x 0x%02x 0x%02x\n", opc->opc1, opc->opc2,
|
9342 | a750fc0b | j_mayer | opc->opc3); |
9343 | a750fc0b | j_mayer | return -1; |
9344 | a750fc0b | j_mayer | } |
9345 | a750fc0b | j_mayer | } |
9346 | a750fc0b | j_mayer | } |
9347 | c227f099 | Anthony Liguori | fix_opcode_tables(env->opcodes); |
9348 | a750fc0b | j_mayer | fflush(stdout); |
9349 | a750fc0b | j_mayer | fflush(stderr); |
9350 | a750fc0b | j_mayer | |
9351 | a750fc0b | j_mayer | return 0; |
9352 | a750fc0b | j_mayer | } |
9353 | a750fc0b | j_mayer | |
9354 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9355 | 25ba3a68 | j_mayer | static void dump_ppc_insns (CPUPPCState *env) |
9356 | a750fc0b | j_mayer | { |
9357 | c227f099 | Anthony Liguori | opc_handler_t **table, *handler; |
9358 | b55266b5 | blueswir1 | const char *p, *q; |
9359 | a750fc0b | j_mayer | uint8_t opc1, opc2, opc3; |
9360 | a750fc0b | j_mayer | |
9361 | a750fc0b | j_mayer | printf("Instructions set:\n");
|
9362 | a750fc0b | j_mayer | /* opc1 is 6 bits long */
|
9363 | a750fc0b | j_mayer | for (opc1 = 0x00; opc1 < 0x40; opc1++) { |
9364 | a750fc0b | j_mayer | table = env->opcodes; |
9365 | a750fc0b | j_mayer | handler = table[opc1]; |
9366 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9367 | a750fc0b | j_mayer | /* opc2 is 5 bits long */
|
9368 | a750fc0b | j_mayer | for (opc2 = 0; opc2 < 0x20; opc2++) { |
9369 | a750fc0b | j_mayer | table = env->opcodes; |
9370 | a750fc0b | j_mayer | handler = env->opcodes[opc1]; |
9371 | a750fc0b | j_mayer | table = ind_table(handler); |
9372 | a750fc0b | j_mayer | handler = table[opc2]; |
9373 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9374 | a750fc0b | j_mayer | table = ind_table(handler); |
9375 | a750fc0b | j_mayer | /* opc3 is 5 bits long */
|
9376 | a750fc0b | j_mayer | for (opc3 = 0; opc3 < 0x20; opc3++) { |
9377 | a750fc0b | j_mayer | handler = table[opc3]; |
9378 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9379 | 4c1b1bfe | j_mayer | /* Special hack to properly dump SPE insns */
|
9380 | 4c1b1bfe | j_mayer | p = strchr(handler->oname, '_');
|
9381 | 4c1b1bfe | j_mayer | if (p == NULL) { |
9382 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9383 | 4c1b1bfe | j_mayer | "%s\n",
|
9384 | 4c1b1bfe | j_mayer | opc1, opc2, opc3, opc1, |
9385 | 4c1b1bfe | j_mayer | (opc3 << 5) | opc2,
|
9386 | 4c1b1bfe | j_mayer | handler->oname); |
9387 | 4c1b1bfe | j_mayer | } else {
|
9388 | 4c1b1bfe | j_mayer | q = "speundef";
|
9389 | 4c1b1bfe | j_mayer | if ((p - handler->oname) != strlen(q) ||
|
9390 | 4c1b1bfe | j_mayer | memcmp(handler->oname, q, strlen(q)) != 0) {
|
9391 | 4c1b1bfe | j_mayer | /* First instruction */
|
9392 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9393 | 4c1b1bfe | j_mayer | "%.*s\n",
|
9394 | 4c1b1bfe | j_mayer | opc1, opc2 << 1, opc3, opc1,
|
9395 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1), |
9396 | 4c1b1bfe | j_mayer | (int)(p - handler->oname),
|
9397 | 4c1b1bfe | j_mayer | handler->oname); |
9398 | 4c1b1bfe | j_mayer | } |
9399 | 4c1b1bfe | j_mayer | if (strcmp(p + 1, q) != 0) { |
9400 | 4c1b1bfe | j_mayer | /* Second instruction */
|
9401 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9402 | 4c1b1bfe | j_mayer | "%s\n",
|
9403 | 4c1b1bfe | j_mayer | opc1, (opc2 << 1) | 1, opc3, opc1, |
9404 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1) | 1, |
9405 | 4c1b1bfe | j_mayer | p + 1);
|
9406 | 4c1b1bfe | j_mayer | } |
9407 | 4c1b1bfe | j_mayer | } |
9408 | a750fc0b | j_mayer | } |
9409 | a750fc0b | j_mayer | } |
9410 | a750fc0b | j_mayer | } else {
|
9411 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9412 | a750fc0b | j_mayer | printf("INSN: %02x %02x -- (%02d %04d) : %s\n",
|
9413 | a750fc0b | j_mayer | opc1, opc2, opc1, opc2, handler->oname); |
9414 | a750fc0b | j_mayer | } |
9415 | a750fc0b | j_mayer | } |
9416 | a750fc0b | j_mayer | } |
9417 | a750fc0b | j_mayer | } else {
|
9418 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9419 | a750fc0b | j_mayer | printf("INSN: %02x -- -- (%02d ----) : %s\n",
|
9420 | a750fc0b | j_mayer | opc1, opc1, handler->oname); |
9421 | a750fc0b | j_mayer | } |
9422 | a750fc0b | j_mayer | } |
9423 | a750fc0b | j_mayer | } |
9424 | a750fc0b | j_mayer | } |
9425 | 3a607854 | j_mayer | #endif
|
9426 | a750fc0b | j_mayer | |
9427 | 24951522 | aurel32 | static int gdb_get_float_reg(CPUState *env, uint8_t *mem_buf, int n) |
9428 | 24951522 | aurel32 | { |
9429 | 24951522 | aurel32 | if (n < 32) { |
9430 | 24951522 | aurel32 | stfq_p(mem_buf, env->fpr[n]); |
9431 | 24951522 | aurel32 | return 8; |
9432 | 24951522 | aurel32 | } |
9433 | 24951522 | aurel32 | if (n == 32) { |
9434 | 24951522 | aurel32 | /* FPSCR not implemented */
|
9435 | 24951522 | aurel32 | memset(mem_buf, 0, 4); |
9436 | 24951522 | aurel32 | return 4; |
9437 | 24951522 | aurel32 | } |
9438 | 24951522 | aurel32 | return 0; |
9439 | 24951522 | aurel32 | } |
9440 | 24951522 | aurel32 | |
9441 | 24951522 | aurel32 | static int gdb_set_float_reg(CPUState *env, uint8_t *mem_buf, int n) |
9442 | 24951522 | aurel32 | { |
9443 | 24951522 | aurel32 | if (n < 32) { |
9444 | 24951522 | aurel32 | env->fpr[n] = ldfq_p(mem_buf); |
9445 | 24951522 | aurel32 | return 8; |
9446 | 24951522 | aurel32 | } |
9447 | 24951522 | aurel32 | if (n == 32) { |
9448 | 24951522 | aurel32 | /* FPSCR not implemented */
|
9449 | 24951522 | aurel32 | return 4; |
9450 | 24951522 | aurel32 | } |
9451 | 24951522 | aurel32 | return 0; |
9452 | 24951522 | aurel32 | } |
9453 | 24951522 | aurel32 | |
9454 | b4f8d821 | aurel32 | static int gdb_get_avr_reg(CPUState *env, uint8_t *mem_buf, int n) |
9455 | b4f8d821 | aurel32 | { |
9456 | b4f8d821 | aurel32 | if (n < 32) { |
9457 | e2542fe2 | Juan Quintela | #ifdef HOST_WORDS_BIGENDIAN
|
9458 | b4f8d821 | aurel32 | stq_p(mem_buf, env->avr[n].u64[0]);
|
9459 | b4f8d821 | aurel32 | stq_p(mem_buf+8, env->avr[n].u64[1]); |
9460 | b4f8d821 | aurel32 | #else
|
9461 | b4f8d821 | aurel32 | stq_p(mem_buf, env->avr[n].u64[1]);
|
9462 | b4f8d821 | aurel32 | stq_p(mem_buf+8, env->avr[n].u64[0]); |
9463 | b4f8d821 | aurel32 | #endif
|
9464 | b4f8d821 | aurel32 | return 16; |
9465 | b4f8d821 | aurel32 | } |
9466 | 70976a79 | aurel32 | if (n == 32) { |
9467 | b4f8d821 | aurel32 | stl_p(mem_buf, env->vscr); |
9468 | b4f8d821 | aurel32 | return 4; |
9469 | b4f8d821 | aurel32 | } |
9470 | 70976a79 | aurel32 | if (n == 33) { |
9471 | b4f8d821 | aurel32 | stl_p(mem_buf, (uint32_t)env->spr[SPR_VRSAVE]); |
9472 | b4f8d821 | aurel32 | return 4; |
9473 | b4f8d821 | aurel32 | } |
9474 | b4f8d821 | aurel32 | return 0; |
9475 | b4f8d821 | aurel32 | } |
9476 | b4f8d821 | aurel32 | |
9477 | b4f8d821 | aurel32 | static int gdb_set_avr_reg(CPUState *env, uint8_t *mem_buf, int n) |
9478 | b4f8d821 | aurel32 | { |
9479 | b4f8d821 | aurel32 | if (n < 32) { |
9480 | e2542fe2 | Juan Quintela | #ifdef HOST_WORDS_BIGENDIAN
|
9481 | b4f8d821 | aurel32 | env->avr[n].u64[0] = ldq_p(mem_buf);
|
9482 | b4f8d821 | aurel32 | env->avr[n].u64[1] = ldq_p(mem_buf+8); |
9483 | b4f8d821 | aurel32 | #else
|
9484 | b4f8d821 | aurel32 | env->avr[n].u64[1] = ldq_p(mem_buf);
|
9485 | b4f8d821 | aurel32 | env->avr[n].u64[0] = ldq_p(mem_buf+8); |
9486 | b4f8d821 | aurel32 | #endif
|
9487 | b4f8d821 | aurel32 | return 16; |
9488 | b4f8d821 | aurel32 | } |
9489 | 70976a79 | aurel32 | if (n == 32) { |
9490 | b4f8d821 | aurel32 | env->vscr = ldl_p(mem_buf); |
9491 | b4f8d821 | aurel32 | return 4; |
9492 | b4f8d821 | aurel32 | } |
9493 | 70976a79 | aurel32 | if (n == 33) { |
9494 | b4f8d821 | aurel32 | env->spr[SPR_VRSAVE] = (target_ulong)ldl_p(mem_buf); |
9495 | b4f8d821 | aurel32 | return 4; |
9496 | b4f8d821 | aurel32 | } |
9497 | b4f8d821 | aurel32 | return 0; |
9498 | b4f8d821 | aurel32 | } |
9499 | b4f8d821 | aurel32 | |
9500 | 688890f7 | aurel32 | static int gdb_get_spe_reg(CPUState *env, uint8_t *mem_buf, int n) |
9501 | 688890f7 | aurel32 | { |
9502 | 688890f7 | aurel32 | if (n < 32) { |
9503 | 688890f7 | aurel32 | #if defined(TARGET_PPC64)
|
9504 | 688890f7 | aurel32 | stl_p(mem_buf, env->gpr[n] >> 32);
|
9505 | 688890f7 | aurel32 | #else
|
9506 | 688890f7 | aurel32 | stl_p(mem_buf, env->gprh[n]); |
9507 | 688890f7 | aurel32 | #endif
|
9508 | 688890f7 | aurel32 | return 4; |
9509 | 688890f7 | aurel32 | } |
9510 | 70976a79 | aurel32 | if (n == 32) { |
9511 | 688890f7 | aurel32 | stq_p(mem_buf, env->spe_acc); |
9512 | 688890f7 | aurel32 | return 8; |
9513 | 688890f7 | aurel32 | } |
9514 | 70976a79 | aurel32 | if (n == 33) { |
9515 | d34defbc | aurel32 | stl_p(mem_buf, env->spe_fscr); |
9516 | 688890f7 | aurel32 | return 4; |
9517 | 688890f7 | aurel32 | } |
9518 | 688890f7 | aurel32 | return 0; |
9519 | 688890f7 | aurel32 | } |
9520 | 688890f7 | aurel32 | |
9521 | 688890f7 | aurel32 | static int gdb_set_spe_reg(CPUState *env, uint8_t *mem_buf, int n) |
9522 | 688890f7 | aurel32 | { |
9523 | 688890f7 | aurel32 | if (n < 32) { |
9524 | 688890f7 | aurel32 | #if defined(TARGET_PPC64)
|
9525 | 688890f7 | aurel32 | target_ulong lo = (uint32_t)env->gpr[n]; |
9526 | 688890f7 | aurel32 | target_ulong hi = (target_ulong)ldl_p(mem_buf) << 32;
|
9527 | 688890f7 | aurel32 | env->gpr[n] = lo | hi; |
9528 | 688890f7 | aurel32 | #else
|
9529 | 688890f7 | aurel32 | env->gprh[n] = ldl_p(mem_buf); |
9530 | 688890f7 | aurel32 | #endif
|
9531 | 688890f7 | aurel32 | return 4; |
9532 | 688890f7 | aurel32 | } |
9533 | 70976a79 | aurel32 | if (n == 32) { |
9534 | 688890f7 | aurel32 | env->spe_acc = ldq_p(mem_buf); |
9535 | 688890f7 | aurel32 | return 8; |
9536 | 688890f7 | aurel32 | } |
9537 | 70976a79 | aurel32 | if (n == 33) { |
9538 | d34defbc | aurel32 | env->spe_fscr = ldl_p(mem_buf); |
9539 | 688890f7 | aurel32 | return 4; |
9540 | 688890f7 | aurel32 | } |
9541 | 688890f7 | aurel32 | return 0; |
9542 | 688890f7 | aurel32 | } |
9543 | 688890f7 | aurel32 | |
9544 | c227f099 | Anthony Liguori | int cpu_ppc_register_internal (CPUPPCState *env, const ppc_def_t *def) |
9545 | a750fc0b | j_mayer | { |
9546 | a750fc0b | j_mayer | env->msr_mask = def->msr_mask; |
9547 | a750fc0b | j_mayer | env->mmu_model = def->mmu_model; |
9548 | a750fc0b | j_mayer | env->excp_model = def->excp_model; |
9549 | a750fc0b | j_mayer | env->bus_model = def->bus_model; |
9550 | c29b735c | Nathan Froyd | env->insns_flags = def->insns_flags; |
9551 | d26bfc9a | j_mayer | env->flags = def->flags; |
9552 | 237c0af0 | j_mayer | env->bfd_mach = def->bfd_mach; |
9553 | 2f462816 | j_mayer | env->check_pow = def->check_pow; |
9554 | a750fc0b | j_mayer | if (create_ppc_opcodes(env, def) < 0) |
9555 | a750fc0b | j_mayer | return -1; |
9556 | a750fc0b | j_mayer | init_ppc_proc(env, def); |
9557 | 24951522 | aurel32 | |
9558 | 24951522 | aurel32 | if (def->insns_flags & PPC_FLOAT) {
|
9559 | 24951522 | aurel32 | gdb_register_coprocessor(env, gdb_get_float_reg, gdb_set_float_reg, |
9560 | 24951522 | aurel32 | 33, "power-fpu.xml", 0); |
9561 | 24951522 | aurel32 | } |
9562 | b4f8d821 | aurel32 | if (def->insns_flags & PPC_ALTIVEC) {
|
9563 | b4f8d821 | aurel32 | gdb_register_coprocessor(env, gdb_get_avr_reg, gdb_set_avr_reg, |
9564 | b4f8d821 | aurel32 | 34, "power-altivec.xml", 0); |
9565 | b4f8d821 | aurel32 | } |
9566 | 40569b7e | aurel32 | if (def->insns_flags & PPC_SPE) {
|
9567 | 688890f7 | aurel32 | gdb_register_coprocessor(env, gdb_get_spe_reg, gdb_set_spe_reg, |
9568 | 688890f7 | aurel32 | 34, "power-spe.xml", 0); |
9569 | 688890f7 | aurel32 | } |
9570 | 688890f7 | aurel32 | |
9571 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9572 | 3a607854 | j_mayer | { |
9573 | b55266b5 | blueswir1 | const char *mmu_model, *excp_model, *bus_model; |
9574 | a750fc0b | j_mayer | switch (env->mmu_model) {
|
9575 | a750fc0b | j_mayer | case POWERPC_MMU_32B:
|
9576 | a750fc0b | j_mayer | mmu_model = "PowerPC 32";
|
9577 | a750fc0b | j_mayer | break;
|
9578 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_6xx:
|
9579 | a750fc0b | j_mayer | mmu_model = "PowerPC 6xx/7xx with software driven TLBs";
|
9580 | a750fc0b | j_mayer | break;
|
9581 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_74xx:
|
9582 | a750fc0b | j_mayer | mmu_model = "PowerPC 74xx with software driven TLBs";
|
9583 | a750fc0b | j_mayer | break;
|
9584 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx:
|
9585 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs";
|
9586 | a750fc0b | j_mayer | break;
|
9587 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx_Z:
|
9588 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs "
|
9589 | a750fc0b | j_mayer | "and zones protections";
|
9590 | a750fc0b | j_mayer | break;
|
9591 | b4095fed | j_mayer | case POWERPC_MMU_REAL:
|
9592 | b4095fed | j_mayer | mmu_model = "PowerPC real mode only";
|
9593 | b4095fed | j_mayer | break;
|
9594 | b4095fed | j_mayer | case POWERPC_MMU_MPC8xx:
|
9595 | b4095fed | j_mayer | mmu_model = "PowerPC MPC8xx";
|
9596 | a750fc0b | j_mayer | break;
|
9597 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE:
|
9598 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE";
|
9599 | a750fc0b | j_mayer | break;
|
9600 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE_FSL:
|
9601 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE FSL";
|
9602 | a750fc0b | j_mayer | break;
|
9603 | b4095fed | j_mayer | case POWERPC_MMU_601:
|
9604 | b4095fed | j_mayer | mmu_model = "PowerPC 601";
|
9605 | b4095fed | j_mayer | break;
|
9606 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9607 | 00af685f | j_mayer | case POWERPC_MMU_64B:
|
9608 | 00af685f | j_mayer | mmu_model = "PowerPC 64";
|
9609 | 00af685f | j_mayer | break;
|
9610 | add78955 | j_mayer | case POWERPC_MMU_620:
|
9611 | add78955 | j_mayer | mmu_model = "PowerPC 620";
|
9612 | add78955 | j_mayer | break;
|
9613 | 00af685f | j_mayer | #endif
|
9614 | a750fc0b | j_mayer | default:
|
9615 | a750fc0b | j_mayer | mmu_model = "Unknown or invalid";
|
9616 | a750fc0b | j_mayer | break;
|
9617 | a750fc0b | j_mayer | } |
9618 | a750fc0b | j_mayer | switch (env->excp_model) {
|
9619 | a750fc0b | j_mayer | case POWERPC_EXCP_STD:
|
9620 | a750fc0b | j_mayer | excp_model = "PowerPC";
|
9621 | a750fc0b | j_mayer | break;
|
9622 | a750fc0b | j_mayer | case POWERPC_EXCP_40x:
|
9623 | a750fc0b | j_mayer | excp_model = "PowerPC 40x";
|
9624 | a750fc0b | j_mayer | break;
|
9625 | a750fc0b | j_mayer | case POWERPC_EXCP_601:
|
9626 | a750fc0b | j_mayer | excp_model = "PowerPC 601";
|
9627 | a750fc0b | j_mayer | break;
|
9628 | a750fc0b | j_mayer | case POWERPC_EXCP_602:
|
9629 | a750fc0b | j_mayer | excp_model = "PowerPC 602";
|
9630 | a750fc0b | j_mayer | break;
|
9631 | a750fc0b | j_mayer | case POWERPC_EXCP_603:
|
9632 | a750fc0b | j_mayer | excp_model = "PowerPC 603";
|
9633 | a750fc0b | j_mayer | break;
|
9634 | a750fc0b | j_mayer | case POWERPC_EXCP_603E:
|
9635 | a750fc0b | j_mayer | excp_model = "PowerPC 603e";
|
9636 | a750fc0b | j_mayer | break;
|
9637 | a750fc0b | j_mayer | case POWERPC_EXCP_604:
|
9638 | a750fc0b | j_mayer | excp_model = "PowerPC 604";
|
9639 | a750fc0b | j_mayer | break;
|
9640 | a750fc0b | j_mayer | case POWERPC_EXCP_7x0:
|
9641 | a750fc0b | j_mayer | excp_model = "PowerPC 740/750";
|
9642 | a750fc0b | j_mayer | break;
|
9643 | a750fc0b | j_mayer | case POWERPC_EXCP_7x5:
|
9644 | a750fc0b | j_mayer | excp_model = "PowerPC 745/755";
|
9645 | a750fc0b | j_mayer | break;
|
9646 | a750fc0b | j_mayer | case POWERPC_EXCP_74xx:
|
9647 | a750fc0b | j_mayer | excp_model = "PowerPC 74xx";
|
9648 | a750fc0b | j_mayer | break;
|
9649 | a750fc0b | j_mayer | case POWERPC_EXCP_BOOKE:
|
9650 | a750fc0b | j_mayer | excp_model = "PowerPC BookE";
|
9651 | a750fc0b | j_mayer | break;
|
9652 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9653 | 00af685f | j_mayer | case POWERPC_EXCP_970:
|
9654 | 00af685f | j_mayer | excp_model = "PowerPC 970";
|
9655 | 00af685f | j_mayer | break;
|
9656 | 00af685f | j_mayer | #endif
|
9657 | a750fc0b | j_mayer | default:
|
9658 | a750fc0b | j_mayer | excp_model = "Unknown or invalid";
|
9659 | a750fc0b | j_mayer | break;
|
9660 | a750fc0b | j_mayer | } |
9661 | a750fc0b | j_mayer | switch (env->bus_model) {
|
9662 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_6xx:
|
9663 | a750fc0b | j_mayer | bus_model = "PowerPC 6xx";
|
9664 | a750fc0b | j_mayer | break;
|
9665 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_BookE:
|
9666 | a750fc0b | j_mayer | bus_model = "PowerPC BookE";
|
9667 | a750fc0b | j_mayer | break;
|
9668 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_405:
|
9669 | a750fc0b | j_mayer | bus_model = "PowerPC 405";
|
9670 | a750fc0b | j_mayer | break;
|
9671 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_401:
|
9672 | a750fc0b | j_mayer | bus_model = "PowerPC 401/403";
|
9673 | a750fc0b | j_mayer | break;
|
9674 | b4095fed | j_mayer | case PPC_FLAGS_INPUT_RCPU:
|
9675 | b4095fed | j_mayer | bus_model = "RCPU / MPC8xx";
|
9676 | b4095fed | j_mayer | break;
|
9677 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9678 | 00af685f | j_mayer | case PPC_FLAGS_INPUT_970:
|
9679 | 00af685f | j_mayer | bus_model = "PowerPC 970";
|
9680 | 00af685f | j_mayer | break;
|
9681 | 00af685f | j_mayer | #endif
|
9682 | a750fc0b | j_mayer | default:
|
9683 | a750fc0b | j_mayer | bus_model = "Unknown or invalid";
|
9684 | a750fc0b | j_mayer | break;
|
9685 | a750fc0b | j_mayer | } |
9686 | a750fc0b | j_mayer | printf("PowerPC %-12s : PVR %08x MSR %016" PRIx64 "\n" |
9687 | a750fc0b | j_mayer | " MMU model : %s\n",
|
9688 | a750fc0b | j_mayer | def->name, def->pvr, def->msr_mask, mmu_model); |
9689 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9690 | a750fc0b | j_mayer | if (env->tlb != NULL) { |
9691 | a750fc0b | j_mayer | printf(" %d %s TLB in %d ways\n",
|
9692 | a750fc0b | j_mayer | env->nb_tlb, env->id_tlbs ? "splitted" : "merged", |
9693 | a750fc0b | j_mayer | env->nb_ways); |
9694 | a750fc0b | j_mayer | } |
9695 | f2e63a42 | j_mayer | #endif
|
9696 | a750fc0b | j_mayer | printf(" Exceptions model : %s\n"
|
9697 | a750fc0b | j_mayer | " Bus model : %s\n",
|
9698 | a750fc0b | j_mayer | excp_model, bus_model); |
9699 | 25ba3a68 | j_mayer | printf(" MSR features :\n");
|
9700 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SPE)
|
9701 | 25ba3a68 | j_mayer | printf(" signal processing engine enable"
|
9702 | 25ba3a68 | j_mayer | "\n");
|
9703 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_VRE) |
9704 | 25ba3a68 | j_mayer | printf(" vector processor enable\n");
|
9705 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_TGPR)
|
9706 | 25ba3a68 | j_mayer | printf(" temporary GPRs\n");
|
9707 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_CE) |
9708 | 25ba3a68 | j_mayer | printf(" critical input enable\n");
|
9709 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SE)
|
9710 | 25ba3a68 | j_mayer | printf(" single-step trace mode\n");
|
9711 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DWE) |
9712 | 25ba3a68 | j_mayer | printf(" debug wait enable\n");
|
9713 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_UBLE) |
9714 | 25ba3a68 | j_mayer | printf(" user BTB lock enable\n");
|
9715 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_BE)
|
9716 | 25ba3a68 | j_mayer | printf(" branch-step trace mode\n");
|
9717 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DE) |
9718 | 25ba3a68 | j_mayer | printf(" debug interrupt enable\n");
|
9719 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_PX)
|
9720 | 25ba3a68 | j_mayer | printf(" inclusive protection\n");
|
9721 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_PMM) |
9722 | 25ba3a68 | j_mayer | printf(" performance monitor mark\n");
|
9723 | 25ba3a68 | j_mayer | if (env->flags == POWERPC_FLAG_NONE)
|
9724 | 25ba3a68 | j_mayer | printf(" none\n");
|
9725 | 4018bae9 | j_mayer | printf(" Time-base/decrementer clock source: %s\n",
|
9726 | 4018bae9 | j_mayer | env->flags & POWERPC_FLAG_RTC_CLK ? "RTC clock" : "bus clock"); |
9727 | a750fc0b | j_mayer | } |
9728 | a750fc0b | j_mayer | dump_ppc_insns(env); |
9729 | a750fc0b | j_mayer | dump_ppc_sprs(env); |
9730 | a750fc0b | j_mayer | fflush(stdout); |
9731 | 3a607854 | j_mayer | #endif
|
9732 | a750fc0b | j_mayer | |
9733 | a750fc0b | j_mayer | return 0; |
9734 | a750fc0b | j_mayer | } |
9735 | 3fc6c082 | bellard | |
9736 | c227f099 | Anthony Liguori | static const ppc_def_t *ppc_find_by_pvr (uint32_t pvr) |
9737 | 3fc6c082 | bellard | { |
9738 | c227f099 | Anthony Liguori | const ppc_def_t *ret;
|
9739 | ee4e83ed | j_mayer | uint32_t pvr_rev; |
9740 | ee4e83ed | j_mayer | int i, best, match, best_match, max;
|
9741 | 3fc6c082 | bellard | |
9742 | ee4e83ed | j_mayer | ret = NULL;
|
9743 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9744 | ee4e83ed | j_mayer | best = -1;
|
9745 | ee4e83ed | j_mayer | pvr_rev = pvr & 0xFFFF;
|
9746 | ee4e83ed | j_mayer | /* We want all specified bits to match */
|
9747 | ee4e83ed | j_mayer | best_match = 32 - ctz32(pvr_rev);
|
9748 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9749 | ee4e83ed | j_mayer | /* We check that the 16 higher bits are the same to ensure the CPU
|
9750 | ee4e83ed | j_mayer | * model will be the choosen one.
|
9751 | ee4e83ed | j_mayer | */
|
9752 | ee4e83ed | j_mayer | if (((pvr ^ ppc_defs[i].pvr) >> 16) == 0) { |
9753 | ee4e83ed | j_mayer | /* We want as much as possible of the low-level 16 bits
|
9754 | ee4e83ed | j_mayer | * to be the same but we allow inexact matches.
|
9755 | ee4e83ed | j_mayer | */
|
9756 | ee4e83ed | j_mayer | match = clz32(pvr_rev ^ (ppc_defs[i].pvr & 0xFFFF));
|
9757 | ee4e83ed | j_mayer | /* We check '>=' instead of '>' because the PPC_defs table
|
9758 | ee4e83ed | j_mayer | * is ordered by increasing revision.
|
9759 | 4c1b1bfe | j_mayer | * Then, we will match the higher revision compatible
|
9760 | ee4e83ed | j_mayer | * with the requested PVR
|
9761 | ee4e83ed | j_mayer | */
|
9762 | ee4e83ed | j_mayer | if (match >= best_match) {
|
9763 | ee4e83ed | j_mayer | best = i; |
9764 | ee4e83ed | j_mayer | best_match = match; |
9765 | ee4e83ed | j_mayer | } |
9766 | 3fc6c082 | bellard | } |
9767 | 3fc6c082 | bellard | } |
9768 | ee4e83ed | j_mayer | if (best != -1) |
9769 | ee4e83ed | j_mayer | ret = &ppc_defs[best]; |
9770 | ee4e83ed | j_mayer | |
9771 | ee4e83ed | j_mayer | return ret;
|
9772 | 3fc6c082 | bellard | } |
9773 | 3fc6c082 | bellard | |
9774 | ee4e83ed | j_mayer | #include <ctype.h> |
9775 | 3fc6c082 | bellard | |
9776 | c227f099 | Anthony Liguori | const ppc_def_t *cpu_ppc_find_by_name (const char *name) |
9777 | ee4e83ed | j_mayer | { |
9778 | c227f099 | Anthony Liguori | const ppc_def_t *ret;
|
9779 | b55266b5 | blueswir1 | const char *p; |
9780 | ee4e83ed | j_mayer | int i, max, len;
|
9781 | ee4e83ed | j_mayer | |
9782 | ee4e83ed | j_mayer | /* Check if the given name is a PVR */
|
9783 | ee4e83ed | j_mayer | len = strlen(name); |
9784 | ee4e83ed | j_mayer | if (len == 10 && name[0] == '0' && name[1] == 'x') { |
9785 | ee4e83ed | j_mayer | p = name + 2;
|
9786 | ee4e83ed | j_mayer | goto check_pvr;
|
9787 | ee4e83ed | j_mayer | } else if (len == 8) { |
9788 | ee4e83ed | j_mayer | p = name; |
9789 | ee4e83ed | j_mayer | check_pvr:
|
9790 | ee4e83ed | j_mayer | for (i = 0; i < 8; i++) { |
9791 | cd390083 | blueswir1 | if (!qemu_isxdigit(*p++))
|
9792 | ee4e83ed | j_mayer | break;
|
9793 | ee4e83ed | j_mayer | } |
9794 | ee4e83ed | j_mayer | if (i == 8) |
9795 | ee4e83ed | j_mayer | return ppc_find_by_pvr(strtoul(name, NULL, 16)); |
9796 | ee4e83ed | j_mayer | } |
9797 | ee4e83ed | j_mayer | ret = NULL;
|
9798 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9799 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9800 | ee4e83ed | j_mayer | if (strcasecmp(name, ppc_defs[i].name) == 0) { |
9801 | ee4e83ed | j_mayer | ret = &ppc_defs[i]; |
9802 | ee4e83ed | j_mayer | break;
|
9803 | 3fc6c082 | bellard | } |
9804 | 3fc6c082 | bellard | } |
9805 | ee4e83ed | j_mayer | |
9806 | ee4e83ed | j_mayer | return ret;
|
9807 | 3fc6c082 | bellard | } |
9808 | 3fc6c082 | bellard | |
9809 | 9a78eead | Stefan Weil | void ppc_cpu_list (FILE *f, fprintf_function cpu_fprintf)
|
9810 | 3fc6c082 | bellard | { |
9811 | 068abdc8 | j_mayer | int i, max;
|
9812 | 3fc6c082 | bellard | |
9813 | b1503cda | malc | max = ARRAY_SIZE(ppc_defs); |
9814 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9815 | a750fc0b | j_mayer | (*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n",
|
9816 | a750fc0b | j_mayer | ppc_defs[i].name, ppc_defs[i].pvr); |
9817 | 3fc6c082 | bellard | } |
9818 | 3fc6c082 | bellard | } |