Re: [Qemu-devel] MIPS64 problem with ethernet

2007-05-27 Thread Aurelien Jarno
On Sun, May 27, 2007 at 06:30:52AM -0500, Jason Wessel wrote: > Aurelien Jarno wrote: > >As discussed on IRC, the problem is only present on 32-bit hosts. It is > >due to the do_ddivu which is falsely implemented using lldiv and then by > >casting the result. The patch below uses / and % as on the

Re: [Qemu-devel] MIPS64 problem with ethernet

2007-05-27 Thread Jason Wessel
Aurelien Jarno wrote: As discussed on IRC, the problem is only present on 32-bit hosts. It is due to the do_ddivu which is falsely implemented using lldiv and then by casting the result. The patch below uses / and % as on the 64-bit host code. It is maybe slower than lldiv, but at least it gives

Re: [Qemu-devel] MIPS64 problem with ethernet

2007-05-26 Thread Aurelien Jarno
On Mon, May 21, 2007 at 10:49:12AM -0500, Jason Wessel wrote: > Aurelien Jarno wrote: > >Jason Wessel a écrit : > > > >>The ethernet device does not come up correctly on a 64 MIPS target with > >>a 64 bit kernel. > >> > > > >Which Ethernet card are you using? The pcnet one is working correct

Re: [Qemu-devel] MIPS64 problem with ethernet

2007-05-21 Thread Jason Wessel
Aurelien Jarno wrote: Jason Wessel a écrit : The ethernet device does not come up correctly on a 64 MIPS target with a 64 bit kernel. Which Ethernet card are you using? The pcnet one is working correctly here. I am using a 2.6.21.1 kernel. It works perfectly fine if I boot a 32bit

Re: [Qemu-devel] MIPS64 problem with ethernet

2007-05-21 Thread Aurelien Jarno
Jason Wessel a écrit : > The ethernet device does not come up correctly on a 64 MIPS target with > a 64 bit kernel. Which Ethernet card are you using? The pcnet one is working correctly here. I am using a 2.6.21.1 kernel. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Deb

[Qemu-devel] MIPS64 problem with ethernet

2007-05-21 Thread Jason Wessel
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 == fff