Re: [RFC v4 04/11] linux-user: Implement native-bypass option support

2023-08-09 Thread Alex Bennée
Yeqi Fu writes: > This commit implements the -native-bypass support in linux-user. The > native_calls_enabled() function can be true only when the > '-native-bypass' option is given. > > Signed-off-by: Yeqi Fu > --- > include/native/native.h | 9 + > linux-user/main.c | 38

Re: [RFC v4 04/11] linux-user: Implement native-bypass option support

2023-08-09 Thread Richard Henderson
On 8/8/23 07:17, Yeqi Fu wrote: +#define native_bypass_enabled() native_lib_path ? true : false Need parenthesis for the expression, and possibly better as (native_lib_path != NULL) rather than ternary expression. +#if defined(CONFIG_NATIVE_CALL) +/* Set the library for native bypas

[RFC v4 04/11] linux-user: Implement native-bypass option support

2023-08-08 Thread Yeqi Fu
This commit implements the -native-bypass support in linux-user. The native_calls_enabled() function can be true only when the '-native-bypass' option is given. Signed-off-by: Yeqi Fu --- include/native/native.h | 9 + linux-user/main.c | 38 ++