diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-02-05 04:14:41 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-02-05 04:14:41 +0000 |
commit | a41b2ff2ddd0ba05ac2ca1bb657603b1d09dc9bc (patch) | |
tree | 3dfb995363cc4046f782911fbf509ae070845a7f /hw/integratorcp.c | |
parent | d861b05ea30e6ac177de9b679da96194ebe21afc (diff) | |
download | hqemu-a41b2ff2ddd0ba05ac2ca1bb657603b1d09dc9bc.zip hqemu-a41b2ff2ddd0ba05ac2ca1bb657603b1d09dc9bc.tar.gz |
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/integratorcp.c')
-rw-r--r-- | hw/integratorcp.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 1979c39..d2b437c 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -1195,8 +1195,15 @@ static void integratorcp_init(int ram_size, int vga_ram_size, int boot_device, icp_control_init(0xcb000000); icp_kmi_init(0x18000000, pic, 3, 0); icp_kmi_init(0x19000000, pic, 4, 1); - if (nd_table[0].vlan) - smc91c111_init(&nd_table[0], 0xc8000000, pic, 27); + if (nd_table[0].vlan) { + if (nd_table[0].model == NULL + || strcmp(nd_table[0].model, "smc91c111") == 0) { + smc91c111_init(&nd_table[0], 0xc8000000, pic, 27); + } else { + fprintf(stderr, "qemu: Unsupported NIC: %s\n", nd_table[0].model); + exit (1); + } + } /* Load the kernel. */ if (!kernel_filename) { |