qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] MIPS64 problem with ethernet
@ 2007-05-21 15:00 Jason Wessel
  2007-05-21 15:39 ` Aurelien Jarno
  0 siblings, 1 reply; 6+ messages in thread
From: Jason Wessel @ 2007-05-21 15:00 UTC (permalink / raw)
  To: qemu-devel


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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-27 23:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21 15:00 [Qemu-devel] MIPS64 problem with ethernet Jason Wessel
2007-05-21 15:39 ` Aurelien Jarno
2007-05-21 15:49   ` Jason Wessel
2007-05-26 21:18     ` Aurelien Jarno
2007-05-27 11:30       ` Jason Wessel
2007-05-27 23:07         ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).