Re: [PATCH v2 8/8] linux-user: Simplify host <-> target errno conversion using macros

2021-07-08 Thread Philippe Mathieu-Daudé
On 7/8/21 5:30 PM, Laurent Vivier wrote: > Le 08/07/2021 à 16:11, Philippe Mathieu-Daudé a écrit : >> Convert the host_to_target_errno_table[] array to a switch case >> to allow compiler optimizations. Extract the errnos list as to >> a new includible unit, using a generic macro. Remove the code >>

Re: [PATCH v2 8/8] linux-user: Simplify host <-> target errno conversion using macros

2021-07-08 Thread Richard Henderson
On 7/8/21 8:30 AM, Laurent Vivier wrote: Le 08/07/2021 à 16:11, Philippe Mathieu-Daudé a écrit : Convert the host_to_target_errno_table[] array to a switch case to allow compiler optimizations. Extract the errnos list as to a new includible unit, using a generic macro. Remove the code related to

Re: [PATCH v2 8/8] linux-user: Simplify host <-> target errno conversion using macros

2021-07-08 Thread Richard Henderson
On 7/8/21 7:11 AM, Philippe Mathieu-Daudé wrote: Convert the host_to_target_errno_table[] array to a switch case to allow compiler optimizations. Extract the errnos list as to a new includible unit, using a generic macro. Remove the code related to target_to_host_errno_table[] initialization. Su

Re: [PATCH v2 8/8] linux-user: Simplify host <-> target errno conversion using macros

2021-07-08 Thread Laurent Vivier
Le 08/07/2021 à 16:11, Philippe Mathieu-Daudé a écrit : > Convert the host_to_target_errno_table[] array to a switch case > to allow compiler optimizations. Extract the errnos list as to > a new includible unit, using a generic macro. Remove the code > related to target_to_host_errno_table[] initia

[PATCH v2 8/8] linux-user: Simplify host <-> target errno conversion using macros

2021-07-08 Thread Philippe Mathieu-Daudé
Convert the host_to_target_errno_table[] array to a switch case to allow compiler optimizations. Extract the errnos list as to a new includible unit, using a generic macro. Remove the code related to target_to_host_errno_table[] initialization. Suggested-by: Richard Henderson Signed-off-by: Phili