[Qemu-devel] [PATCH v2 009/108] linux-user: Set up infrastructure for table-izing syscalls

2018-06-09 Thread Richard Henderson
At the same time, split out set_robust_list and get_robust_list. Put them together, along with their block comment, at the top of syscall_table. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 87 +--- 1 file changed, 66 insertions(+), 21 delet

Re: [Qemu-devel] [PATCH v2 009/108] linux-user: Set up infrastructure for table-izing syscalls

2018-06-10 Thread Peter Maydell
On 10 June 2018 at 04:00, Richard Henderson wrote: > At the same time, split out set_robust_list and get_robust_list. > Put them together, along with their block comment, at the top > of syscall_table. > > Signed-off-by: Richard Henderson > --- > linux-user/syscall.c | 87 +++

Re: [Qemu-devel] [PATCH v2 009/108] linux-user: Set up infrastructure for table-izing syscalls

2018-06-10 Thread Peter Maydell
On 10 June 2018 at 13:32, Peter Maydell wrote: > On 10 June 2018 at 04:00, Richard Henderson > wrote: >> At the same time, split out set_robust_list and get_robust_list. >> Put them together, along with their block comment, at the top >> of syscall_table. >> >> Signed-off-by: Richard Henderson

Re: [Qemu-devel] [PATCH v2 009/108] linux-user: Set up infrastructure for table-izing syscalls

2018-06-10 Thread Richard Henderson
On 06/10/2018 02:39 AM, Peter Maydell wrote: > It would be cleaner to have a single > #if something > static foo_impl(..) { ... } > static syscall_impl foo = { > .name = "foo", > .impl = foo_impl, > .strace_stuff = ..., > }; > register_syscall(foo); > #endif > > Hash table? It would b