Re: [Qemu-devel] [PATCH] mips-user socket-related syscall support

2006-06-24 Thread Fabrice Bellard
Raphaël Rigo wrote: Raphaël Rigo wrote: Fabrice Bellard wrote: Another point is that doing: +target_long args[6]; + +tputl(args, arg1); +tputl(args+1, arg2); +tputl(args+2, arg3); +tputl(args+3, arg4); +tputl(args+4, arg5); +tputl(args+5, arg6); at the start of

Re: [Qemu-devel] [PATCH] mips-user socket-related syscall support

2006-06-22 Thread Raphaël Rigo
Raphaël Rigo wrote: Fabrice Bellard wrote: Another point is that doing: +target_long args[6]; + +tputl(args, arg1); +tputl(args+1, arg2); +tputl(args+2, arg3); +tputl(args+3, arg4); +tputl(args+4, arg5); +tputl(args+5, arg6); at the start of every syscall

Re: [Qemu-devel] [PATCH] mips-user socket-related syscall support

2006-06-20 Thread Raphaël Rigo
Fabrice Bellard wrote: Hi, Is it really needed to duplicate socket.h ? What are the differences for mips ? Regards, Fabrice. Hi, almost all socket related constants are different on MIPS. I thought it would be cleaner to define all constants for each target, so that if we add support

Re: [Qemu-devel] [PATCH] mips-user socket-related syscall support

2006-06-20 Thread Thiemo Seufer
Raphaël Rigo wrote: Fabrice Bellard wrote: Hi, Is it really needed to duplicate socket.h ? What are the differences for mips ? Regards, Fabrice. Hi, almost all socket related constants are different on MIPS. I thought it would be cleaner to define all constants for

Re: [Qemu-devel] [PATCH] mips-user socket-related syscall support

2006-06-20 Thread Raphaël Rigo
Fabrice Bellard wrote: Another point is that doing: +target_long args[6]; + +tputl(args, arg1); +tputl(args+1, arg2); +tputl(args+2, arg3); +tputl(args+3, arg4); +tputl(args+4, arg5); +tputl(args+5, arg6); at the start of every syscall is not acceptable. You should

[Qemu-devel] [PATCH] mips-user socket-related syscall support

2006-06-19 Thread Raphaël Rigo
Hello, this patch is a revamped version of the one I posted about 2 months ago, it is much better. It implements the syscalls related to sockets on the MIPS platform (because it has no socketcall syscall). I had to create a socket.h file defining the constants for the targets because MIPS doesn't

Re: [Qemu-devel] [PATCH] mips-user socket-related syscall support

2006-06-19 Thread Fabrice Bellard
Hi, Is it really needed to duplicate socket.h ? What are the differences for mips ? Regards, Fabrice. Raphaël Rigo wrote: Hello, this patch is a revamped version of the one I posted about 2 months ago, it is much better. It implements the syscalls related to sockets on the MIPS platform

Re: [Qemu-devel] [PATCH] mips-user socket-related syscall support

2006-06-19 Thread Fabrice Bellard
Another point is that doing: +target_long args[6]; + +tputl(args, arg1); +tputl(args+1, arg2); +tputl(args+2, arg3); +tputl(args+3, arg4); +tputl(args+4, arg5); +tputl(args+5, arg6); at the start of every syscall is not acceptable. You should add a specific socket