Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKhAr-0007r1-39 for qemu-devel@nongnu.org; Wed, 07 Jan 2009 17:46:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKhAq-0007pI-I6 for qemu-devel@nongnu.org; Wed, 07 Jan 2009 17:46:52 -0500 Received: from [199.232.76.173] (port=60707 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKhAq-0007ov-5U for qemu-devel@nongnu.org; Wed, 07 Jan 2009 17:46:52 -0500 Received: from savannah.gnu.org ([199.232.41.3]:39787 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LKhAp-0003I4-R8 for qemu-devel@nongnu.org; Wed, 07 Jan 2009 17:46:51 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LKhAp-0007O3-95 for qemu-devel@nongnu.org; Wed, 07 Jan 2009 22:46:51 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LKhAo-0007Nv-TU for qemu-devel@nongnu.org; Wed, 07 Jan 2009 22:46:51 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Wed, 07 Jan 2009 22:46:50 +0000 Subject: [Qemu-devel] [6226] ETRAX: Always provide a valid net model. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6226 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6226 Author: edgar_igl Date: 2009-01-07 22:46:50 +0000 (Wed, 07 Jan 2009) Log Message: ----------- ETRAX: Always provide a valid net model. Signed-off-by: Edgar E. Iglesias Modified Paths: -------------- trunk/hw/axis_dev88.c trunk/hw/etraxfs.c Modified: trunk/hw/axis_dev88.c =================================================================== --- trunk/hw/axis_dev88.c 2009-01-07 20:07:09 UTC (rev 6225) +++ trunk/hw/axis_dev88.c 2009-01-07 22:46:50 UTC (rev 6226) @@ -303,9 +303,12 @@ } /* Add the two ethernet blocks. */ + nd_table[0].model = nd_table[0].model ? nd_table[0].model : "fseth"; eth[0] = etraxfs_eth_init(&nd_table[0], env, pic->irq + 25, 0x30034000); - if (nb_nics > 1) + if (nb_nics > 1) { + nd_table[1].model = nd_table[1].model ? nd_table[1].model : "fseth"; eth[1] = etraxfs_eth_init(&nd_table[1], env, pic->irq + 26, 0x30036000); + } /* The DMA Connector block is missing, hardwire things for now. */ etraxfs_dmac_connect_client(etraxfs_dmac, 0, eth[0]); Modified: trunk/hw/etraxfs.c =================================================================== --- trunk/hw/etraxfs.c 2009-01-07 20:07:09 UTC (rev 6225) +++ trunk/hw/etraxfs.c 2009-01-07 22:46:50 UTC (rev 6226) @@ -94,9 +94,12 @@ } /* Add the two ethernet blocks. */ + nd_table[0].model = nd_table[0].model ? nd_table[0].model : "fseth"; eth[0] = etraxfs_eth_init(&nd_table[0], env, pic->irq + 25, 0x30034000); - if (nb_nics > 1) + if (nb_nics > 1) { + nd_table[1].model = nd_table[1].model ? nd_table[1].model : "fseth"; eth[1] = etraxfs_eth_init(&nd_table[1], env, pic->irq + 26, 0x30036000); + } /* The DMA Connector block is missing, hardwire things for now. */ etraxfs_dmac_connect_client(etraxfs_dmac, 0, eth[0]);