summaryrefslogtreecommitdiffstats
path: root/hw/mips_r4k.c
diff options
context:
space:
mode:
authorbellard2005-12-18 18:51:01 +0100
committerbellard2005-12-18 18:51:01 +0100
commit183b4a380683751911a24a06abae6c9d8d58ac86 (patch)
tree4f02d21746ba00ae35aa79133392c3f969c35e67 /hw/mips_r4k.c
parentsmc91c111 fixes (Paul Brook) (diff)
downloadqemu-183b4a380683751911a24a06abae6c9d8d58ac86.tar.gz
qemu-183b4a380683751911a24a06abae6c9d8d58ac86.tar.xz
qemu-183b4a380683751911a24a06abae6c9d8d58ac86.zip
do not init ne2000 if no network enabled
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1714 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mips_r4k.c')
-rw-r--r--hw/mips_r4k.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c
index 2b47ef5849..5f51f874c4 100644
--- a/hw/mips_r4k.c
+++ b/hw/mips_r4k.c
@@ -272,7 +272,8 @@ void mips_r4k_init (int ram_size, int vga_ram_size, int boot_device,
vga_initialize(NULL, ds, phys_ram_base + ram_size, ram_size,
vga_ram_size, 0, 0);
- isa_ne2000_init(0x300, 9, &nd_table[0]);
+ if (nd_table[0].vlan)
+ isa_ne2000_init(0x300, 9, &nd_table[0]);
}
QEMUMachine mips_machine = {