Revision c1e1a491

b/hw/axis_dev88.c
303 303
    }
304 304

  
305 305
    /* Add the two ethernet blocks.  */
306
    nd_table[0].model = nd_table[0].model ? nd_table[0].model : "fseth";
306 307
    eth[0] = etraxfs_eth_init(&nd_table[0], env, pic->irq + 25, 0x30034000);
307
    if (nb_nics > 1)
308
    if (nb_nics > 1) {
309
        nd_table[1].model = nd_table[1].model ? nd_table[1].model : "fseth";
308 310
        eth[1] = etraxfs_eth_init(&nd_table[1], env, pic->irq + 26, 0x30036000);
311
    }
309 312

  
310 313
    /* The DMA Connector block is missing, hardwire things for now.  */
311 314
    etraxfs_dmac_connect_client(etraxfs_dmac, 0, eth[0]);
b/hw/etraxfs.c
94 94
    }
95 95

  
96 96
    /* Add the two ethernet blocks.  */
97
    nd_table[0].model = nd_table[0].model ? nd_table[0].model : "fseth";
97 98
    eth[0] = etraxfs_eth_init(&nd_table[0], env, pic->irq + 25, 0x30034000);
98
    if (nb_nics > 1)
99
    if (nb_nics > 1) {
100
        nd_table[1].model = nd_table[1].model ? nd_table[1].model : "fseth";
99 101
        eth[1] = etraxfs_eth_init(&nd_table[1], env, pic->irq + 26, 0x30036000);
102
    }
100 103

  
101 104
    /* The DMA Connector block is missing, hardwire things for now.  */
102 105
    etraxfs_dmac_connect_client(etraxfs_dmac, 0, eth[0]);

Also available in: Unified diff