MemoryRegion *rtc = g_new(MemoryRegion, 1);
MemoryRegion *dma_dummy = g_new(MemoryRegion, 1);
MemoryRegion *dp8393x_prom = g_new(MemoryRegion, 1);
- NICInfo *nd;
DeviceState *dev, *rc4030;
MMIOKBDState *i8042;
SysBusDevice *sysbus;
}
/* Network controller */
- for (n = 0; n < nb_nics; n++) {
- nd = &nd_table[n];
- if (!nd->model) {
- nd->model = g_strdup("dp83932");
- }
- if (strcmp(nd->model, "dp83932") == 0) {
- mips_jazz_init_net(nd, rc4030_dma_mr, rc4030, dp8393x_prom);
- break;
- } else if (is_help_option(nd->model)) {
- error_report("Supported NICs: dp83932");
- exit(1);
- } else {
- error_report("Unsupported NIC: %s", nd->model);
- exit(1);
- }
+ if (nb_nics == 1) {
+ mips_jazz_init_net(&nd_table[0], rc4030_dma_mr, rc4030, dp8393x_prom);
+ } else if (nb_nics > 1) {
+ error_report("This machine only supports one NIC");
+ exit(1);
}
/* SCSI adapter */