This patchset brings us a couple of steps closer to the FreeBSD Development tree, Stacey Son's bsd-user branch and qemu-devel port maintained out of tree.
These patches are designed to begin to break apart the architectures in bsd-user for the upcoming new arch support patches. Patch 1/4 of this set is a reset of Patch 5/10 from the last bsd-user update push. It addresses Peter Maydell's commentary about missing and redundant code for print_sysarch and the build breakage for netbsd and openbsd bsd-user programs. Patch 4/4 of this set includes Patch 10/10 from the last bsd-user update push. It includes the code that uses the #define vaules as to avoid the possibility of commiting dead code. Sean Bruno (2): bsd-user: Implement new syscall print_sysarch and add strace support bsd-user: Rename struct linux_binprm to struct bsd_binprm Stacey Son (2): bsd-user: move arch/OS dependent code out of main.c bsd-user: move arch/OS dependent code out of syscall.c bsd-user/Makefile.objs | 2 +- bsd-user/bsdload.c | 170 ++++-- bsd-user/elfload.c | 11 +- bsd-user/freebsd/host_os.h | 46 ++ bsd-user/freebsd/os-strace.h | 29 + bsd-user/freebsd/os-sys.c | 285 ++++++++++ bsd-user/freebsd/strace.list | 2 +- bsd-user/freebsd/target_os_stack.h | 157 ++++++ bsd-user/freebsd/target_os_vmparam.h | 23 + bsd-user/i386/syscall.h | 23 + bsd-user/i386/target_arch.h | 13 + bsd-user/i386/target_arch_cpu.c | 79 +++ bsd-user/i386/target_arch_cpu.h | 300 +++++++++++ bsd-user/i386/target_arch_sigtramp.h | 11 + bsd-user/i386/target_arch_sysarch.h | 78 +++ bsd-user/i386/target_arch_vmparam.h | 28 + bsd-user/i386/target_signal.h | 6 - bsd-user/main.c | 927 +++++++------------------------- bsd-user/mmap.c | 2 +- bsd-user/netbsd/host_os.h | 31 ++ bsd-user/netbsd/os-strace.h | 29 + bsd-user/netbsd/os-sys.c | 46 ++ bsd-user/netbsd/target_os_stack.h | 33 ++ bsd-user/netbsd/target_os_vmparam.h | 23 + bsd-user/openbsd/host_os.h | 31 ++ bsd-user/openbsd/os-strace.h | 29 + bsd-user/openbsd/os-sys.c | 46 ++ bsd-user/openbsd/target_os_stack.h | 33 ++ bsd-user/openbsd/target_os_vmparam.h | 23 + bsd-user/qemu.h | 50 +- bsd-user/sparc/syscall.h | 29 +- bsd-user/sparc/target_arch.h | 11 + bsd-user/sparc/target_arch_cpu.c | 113 ++++ bsd-user/sparc/target_arch_cpu.h | 158 ++++++ bsd-user/sparc/target_arch_sigtramp.h | 11 + bsd-user/sparc/target_arch_sysarch.h | 52 ++ bsd-user/sparc/target_arch_vmparam.h | 37 ++ bsd-user/sparc/target_signal.h | 5 - bsd-user/sparc64/syscall.h | 28 +- bsd-user/sparc64/target_arch.h | 11 + bsd-user/sparc64/target_arch_cpu.c | 118 ++++ bsd-user/sparc64/target_arch_cpu.h | 191 +++++++ bsd-user/sparc64/target_arch_sigtramp.h | 11 + bsd-user/sparc64/target_arch_sysarch.h | 52 ++ bsd-user/sparc64/target_arch_vmparam.h | 37 ++ bsd-user/sparc64/target_signal.h | 5 - bsd-user/strace.c | 10 + bsd-user/syscall.c | 210 +------- bsd-user/x86_64/syscall.h | 26 +- bsd-user/x86_64/target_arch.h | 13 + bsd-user/x86_64/target_arch_cpu.c | 79 +++ bsd-user/x86_64/target_arch_cpu.h | 322 +++++++++++ bsd-user/x86_64/target_arch_sigtramp.h | 11 + bsd-user/x86_64/target_arch_sysarch.h | 76 +++ bsd-user/x86_64/target_arch_vmparam.h | 28 + bsd-user/x86_64/target_signal.h | 5 - 56 files changed, 3207 insertions(+), 1008 deletions(-) create mode 100644 bsd-user/freebsd/host_os.h create mode 100644 bsd-user/freebsd/os-strace.h create mode 100644 bsd-user/freebsd/os-sys.c create mode 100644 bsd-user/freebsd/target_os_stack.h create mode 100644 bsd-user/freebsd/target_os_vmparam.h create mode 100644 bsd-user/i386/target_arch.h create mode 100644 bsd-user/i386/target_arch_cpu.c create mode 100644 bsd-user/i386/target_arch_cpu.h create mode 100644 bsd-user/i386/target_arch_sigtramp.h create mode 100644 bsd-user/i386/target_arch_sysarch.h create mode 100644 bsd-user/i386/target_arch_vmparam.h create mode 100644 bsd-user/netbsd/host_os.h create mode 100644 bsd-user/netbsd/os-strace.h create mode 100644 bsd-user/netbsd/os-sys.c create mode 100644 bsd-user/netbsd/target_os_stack.h create mode 100644 bsd-user/netbsd/target_os_vmparam.h create mode 100644 bsd-user/openbsd/host_os.h create mode 100644 bsd-user/openbsd/os-strace.h create mode 100644 bsd-user/openbsd/os-sys.c create mode 100644 bsd-user/openbsd/target_os_stack.h create mode 100644 bsd-user/openbsd/target_os_vmparam.h create mode 100644 bsd-user/sparc/target_arch.h create mode 100644 bsd-user/sparc/target_arch_cpu.c create mode 100644 bsd-user/sparc/target_arch_cpu.h create mode 100644 bsd-user/sparc/target_arch_sigtramp.h create mode 100644 bsd-user/sparc/target_arch_sysarch.h create mode 100644 bsd-user/sparc/target_arch_vmparam.h create mode 100644 bsd-user/sparc64/target_arch.h create mode 100644 bsd-user/sparc64/target_arch_cpu.c create mode 100644 bsd-user/sparc64/target_arch_cpu.h create mode 100644 bsd-user/sparc64/target_arch_sigtramp.h create mode 100644 bsd-user/sparc64/target_arch_sysarch.h create mode 100644 bsd-user/sparc64/target_arch_vmparam.h create mode 100644 bsd-user/x86_64/target_arch.h create mode 100644 bsd-user/x86_64/target_arch_cpu.c create mode 100644 bsd-user/x86_64/target_arch_cpu.h create mode 100644 bsd-user/x86_64/target_arch_sigtramp.h create mode 100644 bsd-user/x86_64/target_arch_sysarch.h create mode 100644 bsd-user/x86_64/target_arch_vmparam.h -- 2.0.0