25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_test.c,v 1.14 2006/06/24 10:19:19 debug Exp $ |
* $Id: machine_test.c,v 1.17 2006/07/20 21:53:00 debug Exp $ |
29 |
* |
* |
30 |
* Various "test" machines (bare machines with just a CPU, or a bare machine |
* Various "test" machines (bare machines with just a CPU, or a bare machine |
31 |
* plus some experimental devices). |
* plus some experimental devices). |
60 |
(uint64_t) DEV_MP_ADDRESS); |
(uint64_t) DEV_MP_ADDRESS); |
61 |
device_add(machine, tmpstr); |
device_add(machine, tmpstr); |
62 |
|
|
63 |
dev_fb_init(machine, machine->memory, DEV_FB_ADDRESS, VFB_GENERIC, |
snprintf(tmpstr, sizeof(tmpstr), "fbctrl addr=0x%"PRIx64, |
64 |
640,480, 640,480, 24, "generic"); |
(uint64_t) DEV_FBCTRL_ADDRESS); |
65 |
|
device_add(machine, tmpstr); |
66 |
|
|
67 |
snprintf(tmpstr, sizeof(tmpstr), "disk addr=0x%"PRIx64, |
snprintf(tmpstr, sizeof(tmpstr), "disk addr=0x%"PRIx64, |
68 |
(uint64_t) DEV_DISK_ADDRESS); |
(uint64_t) DEV_DISK_ADDRESS); |
410 |
(uint64_t) DEV_MP_ADDRESS); |
(uint64_t) DEV_MP_ADDRESS); |
411 |
device_add(machine, tmpstr); |
device_add(machine, tmpstr); |
412 |
|
|
413 |
dev_fb_init(machine, machine->memory, DEV_FB_ADDRESS, VFB_GENERIC, |
snprintf(tmpstr, sizeof(tmpstr), "fbctrl addr=0x%"PRIx64, |
414 |
640,480, 640,480, 24, "testmips generic"); |
(uint64_t) DEV_FBCTRL_ADDRESS); |
415 |
|
device_add(machine, tmpstr); |
416 |
|
|
417 |
snprintf(tmpstr, sizeof(tmpstr), "disk addr=0x%"PRIx64, |
snprintf(tmpstr, sizeof(tmpstr), "disk addr=0x%"PRIx64, |
418 |
(uint64_t) DEV_DISK_ADDRESS); |
(uint64_t) DEV_DISK_ADDRESS); |
595 |
machine_entry_add_alias(me, "testsparc"); |
machine_entry_add_alias(me, "testsparc"); |
596 |
} |
} |
597 |
|
|
598 |
|
|
599 |
|
MACHINE_SETUP(baretransputer) |
600 |
|
{ |
601 |
|
machine->machine_name = "Generic \"bare\" Transputer machine"; |
602 |
|
machine->stable = 1; |
603 |
|
} |
604 |
|
|
605 |
|
|
606 |
|
MACHINE_DEFAULT_CPU(baretransputer) |
607 |
|
{ |
608 |
|
machine->cpu_name = strdup("T800"); |
609 |
|
} |
610 |
|
|
611 |
|
|
612 |
|
MACHINE_REGISTER(baretransputer) |
613 |
|
{ |
614 |
|
MR_DEFAULT(baretransputer, "Generic \"bare\" Transputer machine", |
615 |
|
ARCH_TRANSPUTER, MACHINE_BARETRANSPUTER); |
616 |
|
|
617 |
|
machine_entry_add_alias(me, "baretransputer"); |
618 |
|
} |
619 |
|
|