On 12/14/21 01:26, Richard Henderson wrote: > Move linux-user safe-syscall.S and safe-syscall-error.c to common-user > so that bsd-user can also use it. Also move safe-syscall.h to > include/user/. Since there is nothing here that is related to the guest, > as opposed to the host, build it once. > > Reviewed-by: Warner Losh <i...@bsdimp.com> > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > meson.build | 18 +++++++++++++++++- > {linux-user => include/user}/safe-syscall.h | 0 > .../safe-syscall-error.c | 2 +- > linux-user/signal.c | 2 +- > linux-user/syscall.c | 2 +- > MAINTAINERS | 2 ++ > bsd-user/meson.build | 2 ++ > .../host/aarch64/safe-syscall.inc.S | 2 +- > .../host/arm/safe-syscall.inc.S | 2 +- > .../host/i386/safe-syscall.inc.S | 2 +- > .../host/mips/safe-syscall.inc.S | 2 +- > .../host/ppc64/safe-syscall.inc.S | 2 +- > .../host/riscv/safe-syscall.inc.S | 2 +- > .../host/s390x/safe-syscall.inc.S | 2 +- > .../host/sparc64/safe-syscall.inc.S | 2 +- > .../host/x86_64/safe-syscall.inc.S | 2 +- > common-user/meson.build | 6 ++++++ > {linux-user => common-user}/safe-syscall.S | 0 > linux-user/meson.build | 5 +++-- > 19 files changed, 42 insertions(+), 15 deletions(-) > rename {linux-user => include/user}/safe-syscall.h (100%) > rename {linux-user => common-user}/safe-syscall-error.c (95%) > rename {linux-user => common-user}/host/aarch64/safe-syscall.inc.S (97%) > rename {linux-user => common-user}/host/arm/safe-syscall.inc.S (98%) > rename {linux-user => common-user}/host/i386/safe-syscall.inc.S (98%) > rename {linux-user => common-user}/host/mips/safe-syscall.inc.S (98%) > rename {linux-user => common-user}/host/ppc64/safe-syscall.inc.S (98%) > rename {linux-user => common-user}/host/riscv/safe-syscall.inc.S (97%) > rename {linux-user => common-user}/host/s390x/safe-syscall.inc.S (98%) > rename {linux-user => common-user}/host/sparc64/safe-syscall.inc.S (97%) > rename {linux-user => common-user}/host/x86_64/safe-syscall.inc.S (98%) > create mode 100644 common-user/meson.build > rename {linux-user => common-user}/safe-syscall.S (100%)
Nice! Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>