From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hq9My-0003Ae-N8 for qemu-devel@nongnu.org; Mon, 21 May 2007 11:00:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hq9Mx-0003AS-6n for qemu-devel@nongnu.org; Mon, 21 May 2007 11:00:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hq9Mx-0003AP-0x for qemu-devel@nongnu.org; Mon, 21 May 2007 11:00:19 -0400 Received: from mail.windriver.com ([147.11.1.11] helo=mail.wrs.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hq9Mw-0004Km-Dk for qemu-devel@nongnu.org; Mon, 21 May 2007 11:00:18 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id l4LF0HJE021356 for ; Mon, 21 May 2007 08:00:17 -0700 (PDT) Message-ID: <4651B40F.3000704@windriver.com> Date: Mon, 21 May 2007 10:00:31 -0500 From: Jason Wessel MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] MIPS64 problem with ethernet 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 The ethernet device does not come up correctly on a 64 MIPS target with a 64 bit kernel. I narrowed it down a bit, so I thought I might mention it. If I add to the kernel the line: printk("\nTest ~0UL == %lx\n", (~0UL)); It will print correctly on the real HW: Test ~0UL == ffffffffffffffff In qemu-system-mips64 it will only print: Test ~0UL == The ethernet fails due to the failure of the computing of the test kcalloc() found in slab.h. if (n != 0 && size > ULONG_MAX / n) Where n == 16, size == 8, and ULONG_MAX == (~0UL). I suspect some low level debugging of which op code translation is at fault would be next... Jason.