Upstream several small fixes to reduce diffs and fix minor bugs
- Remove host-os.h
- #ifdef sockopt that aren't in 14
- Eliminate unused regs arg in load_elf_binary
- Implement sigfastblock
- Implement exterrctl(2)
- Move tb_flush stuff to begin_parallel_context
- Fix crazy bug with mmap and mmap flags
- Initialize per-arch child registers
- Flag shared memory as needing atomics
- Drop support for FreeBSD 12
- HOST_BIG_ENDIAN and TARGET_BIG_ENDIAN are always defined
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
Changes in v2:
- Use if instead of #ifdef
- Drop gdb patch, it's not ready and needs work
- Drop mmap patch: it's part of a bigger set of changes
- Link to v1: https://lore.kernel.org/qemu-devel/20260919-misc-2025q4-v1-0-ebfa61049bd7@bsdimp.com
---
Rick Richard (1):
bsd-user: HOST_BIG_ENDIAN and TARGET_BIG_ENDIAN are always
Warner Losh (10):
bsd-user: Drop support for FreeBSD 12
bsd-user: Flag shared memory as needing atomics
bsd-user: Initialize per-arch child registers
bsd-user: Fix crazy bug with mmap
bsd-user: Move tb_flush stuff to begin_parallel_context
bsd-user: Implement exterrctl(2)
bsd-user: Implement sigfastblock
bsd-user: Eliminate unused regs arg in load_elf_binary
bsd-user: #ifdef sockopt that aren't in 14
bsd-user: Remove host-os.h
bsd-user/bsd-file.h | 43 +++++++-------
bsd-user/bsd-mem.h | 8 +++
bsd-user/bsdload.c | 2 +-
bsd-user/elfload.c | 3 +-
bsd-user/freebsd/host-os.h | 25 --------
bsd-user/freebsd/os-misc.h | 121 +++++++++++++++++++++-----------------
bsd-user/freebsd/os-sockopt.h | 2 +
bsd-user/freebsd/os-syscall.c | 11 ++++
bsd-user/freebsd/os-thread.c | 9 ++-
bsd-user/freebsd/os-thread.h | 13 +++-
bsd-user/freebsd/target_os_user.h | 5 --
bsd-user/main.c | 2 -
bsd-user/mmap.c | 26 ++++++--
bsd-user/qemu.h | 21 ++++++-
bsd-user/syscall_defs.h | 9 ++-
15 files changed, 175 insertions(+), 125 deletions(-)
---
base-commit: f8aef8a9aed7438083c400da10acabdec485dc9b
change-id: 20260919-misc-2025q4-6875b032dac7
Best regards,
--
Warner Losh <imp@bsdimp.com>