25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_prep.c,v 1.17 2007/01/21 21:02:57 debug Exp $ |
* $Id: machine_prep.c,v 1.20 2007/06/15 18:08:10 debug Exp $ |
29 |
* |
* |
30 |
* Machines conforming to the PowerPC Reference Platform specs. |
* COMMENT: Machines conforming to the PowerPC Reference Platform specs |
31 |
*/ |
*/ |
32 |
|
|
33 |
#include <stdio.h> |
#include <stdio.h> |
57 |
case MACHINE_PREP_IBM6050: |
case MACHINE_PREP_IBM6050: |
58 |
machine->machine_name = |
machine->machine_name = |
59 |
"PowerPC Reference Platform, IBM 6050/6070"; |
"PowerPC Reference Platform, IBM 6050/6070"; |
|
machine->stable = 1; |
|
60 |
model_name = "IBM PPS Model 6050/6070 (E)"; |
model_name = "IBM PPS Model 6050/6070 (E)"; |
61 |
|
|
62 |
if (machine->emulated_hz == 0) |
if (machine->emulated_hz == 0) |
73 |
bus_pci_add(machine, pci_data, machine->memory, |
bus_pci_add(machine, pci_data, machine->memory, |
74 |
0, 13, 0, "dec21143"); |
0, 13, 0, "dec21143"); |
75 |
|
|
76 |
if (machine->use_x11) { |
if (machine->x11_md.in_use) { |
77 |
bus_pci_add(machine, pci_data, machine->memory, |
bus_pci_add(machine, pci_data, machine->memory, |
78 |
0, 14, 0, "s3_virge"); |
0, 14, 0, "s3_virge"); |
79 |
} |
} |
132 |
/* type: console */ |
/* type: console */ |
133 |
store_32bit_word(cpu, cpu->cd.ppc.gpr[6]+12, 20); |
store_32bit_word(cpu, cpu->cd.ppc.gpr[6]+12, 20); |
134 |
store_32bit_word(cpu, cpu->cd.ppc.gpr[6]+16, 1); |
store_32bit_word(cpu, cpu->cd.ppc.gpr[6]+16, 1); |
135 |
store_buf(cpu, cpu->cd.ppc.gpr[6]+20, machine->use_x11? "vga":"com", 4); |
store_buf(cpu, cpu->cd.ppc.gpr[6]+20, |
136 |
|
machine->x11_md.in_use? "vga":"com", 4); |
137 |
store_32bit_word(cpu, cpu->cd.ppc.gpr[6]+24, 0x3f8);/* addr */ |
store_32bit_word(cpu, cpu->cd.ppc.gpr[6]+24, 0x3f8);/* addr */ |
138 |
store_32bit_word(cpu, cpu->cd.ppc.gpr[6]+28, 9600);/* speed */ |
store_32bit_word(cpu, cpu->cd.ppc.gpr[6]+28, 9600);/* speed */ |
139 |
|
|