Commit 183b4a380683751911a24a06abae6c9d8d58ac86

Authored by bellard
1 parent 5198cfd9

do not init ne2000 if no network enabled


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1714 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
hw/mips_r4k.c
... ... @@ -272,7 +272,8 @@ void mips_r4k_init (int ram_size, int vga_ram_size, int boot_device,
272 272 vga_initialize(NULL, ds, phys_ram_base + ram_size, ram_size,
273 273 vga_ram_size, 0, 0);
274 274  
275   - isa_ne2000_init(0x300, 9, &nd_table[0]);
  275 + if (nd_table[0].vlan)
  276 + isa_ne2000_init(0x300, 9, &nd_table[0]);
276 277 }
277 278  
278 279 QEMUMachine mips_machine = {
... ...