aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc_prep.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-02-05 04:14:41 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-02-05 04:14:41 +0000
commita41b2ff2ddd0ba05ac2ca1bb657603b1d09dc9bc (patch)
tree3dfb995363cc4046f782911fbf509ae070845a7f /hw/ppc_prep.c
parentd861b05ea30e6ac177de9b679da96194ebe21afc (diff)
downloadqemu-a41b2ff2ddd0ba05ac2ca1bb657603b1d09dc9bc.zip
qemu-a41b2ff2ddd0ba05ac2ca1bb657603b1d09dc9bc.tar.gz
qemu-a41b2ff2ddd0ba05ac2ca1bb657603b1d09dc9bc.tar.bz2
Allow selection of emulated network card.
rtl8139 emulation. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1745 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc_prep.c')
-rw-r--r--hw/ppc_prep.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c
index d4f3021..9df4307 100644
--- a/hw/ppc_prep.c
+++ b/hw/ppc_prep.c
@@ -624,7 +624,13 @@ static void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device,
if (nb_nics1 > NE2000_NB_MAX)
nb_nics1 = NE2000_NB_MAX;
for(i = 0; i < nb_nics1; i++) {
- isa_ne2000_init(ne2000_io[i], ne2000_irq[i], &nd_table[i]);
+ if (nd_table[0].model == NULL
+ || strcmp(nd_table[0].model, "ne2k_isa") == 0) {
+ isa_ne2000_init(ne2000_io[i], ne2000_irq[i], &nd_table[i]);
+ } else {
+ fprintf(stderr, "qemu: Unsupported NIC: %s\n", nd_table[0].model);
+ exit (1);
+ }
}
for(i = 0; i < 2; i++) {