25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_test.c,v 1.38 2007/06/15 18:08:10 debug Exp $ |
* $Id: machine_test.c,v 1.40 2007/08/29 20:36:49 debug Exp $ |
29 |
* |
* |
30 |
* COMMENT: Various test machines |
* COMMENT: Various test machines |
31 |
* |
* |
83 |
/* |
/* |
84 |
* First add the interrupt controller. Most processor architectures |
* First add the interrupt controller. Most processor architectures |
85 |
* in GXemul have only 1 interrupt pin on the CPU, and it is simply |
* in GXemul have only 1 interrupt pin on the CPU, and it is simply |
86 |
* called "emul[x].machine[y].cpu[z]". |
* called "machine[y].cpu[z]". |
87 |
* |
* |
88 |
* MIPS is an exception, dealt with in a separate setup function. |
* MIPS is an exception, dealt with in a separate setup function. |
89 |
* ARM and SH are dealt with here. |
* ARM and SH are dealt with here. |
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
MACHINE_SETUP(barem32r) |
246 |
|
{ |
247 |
|
machine->machine_name = "Generic \"bare\" M32R machine"; |
248 |
|
} |
249 |
|
|
250 |
|
|
251 |
|
MACHINE_SETUP(testm32r) |
252 |
|
{ |
253 |
|
machine->machine_name = "M32R test machine"; |
254 |
|
|
255 |
|
default_test(machine, cpu); |
256 |
|
} |
257 |
|
|
258 |
|
|
259 |
|
MACHINE_DEFAULT_CPU(barem32r) |
260 |
|
{ |
261 |
|
machine->cpu_name = strdup("M32R"); |
262 |
|
} |
263 |
|
|
264 |
|
|
265 |
|
MACHINE_DEFAULT_CPU(testm32r) |
266 |
|
{ |
267 |
|
machine->cpu_name = strdup("M32R"); |
268 |
|
} |
269 |
|
|
270 |
|
|
271 |
|
MACHINE_REGISTER(barem32r) |
272 |
|
{ |
273 |
|
MR_DEFAULT(barem32r, "Generic \"bare\" M32R machine", |
274 |
|
ARCH_M32R, MACHINE_BAREM32R); |
275 |
|
|
276 |
|
machine_entry_add_alias(me, "barem32r"); |
277 |
|
} |
278 |
|
|
279 |
|
|
280 |
|
MACHINE_REGISTER(testm32r) |
281 |
|
{ |
282 |
|
MR_DEFAULT(testm32r, "Test-machine for M32R", |
283 |
|
ARCH_M32R, MACHINE_TESTM32R); |
284 |
|
|
285 |
|
machine_entry_add_alias(me, "testm32r"); |
286 |
|
} |
287 |
|
|
288 |
|
|
289 |
MACHINE_SETUP(barem88k) |
MACHINE_SETUP(barem88k) |
290 |
{ |
{ |
291 |
machine->machine_name = "Generic \"bare\" M88K machine"; |
machine->machine_name = "Generic \"bare\" M88K machine"; |