[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 73d722: bsd-user/mips*: Remove mips support
From: |
Richard Henderson |
Subject: |
[Qemu-commits] [qemu/qemu] 73d722: bsd-user/mips*: Remove mips support |
Date: |
Sat, 08 Jan 2022 09:43:53 -0800 |
Branch: refs/heads/staging
Home: https://github.com/qemu/qemu
Commit: 73d72229fca1950a1ae48843680ba0adcf1518e2
https://github.com/qemu/qemu/commit/73d72229fca1950a1ae48843680ba0adcf1518e2
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
R bsd-user/mips/target_arch_sysarch.h
R bsd-user/mips/target_syscall.h
R bsd-user/mips64/target_arch_sysarch.h
R bsd-user/mips64/target_syscall.h
Log Message:
-----------
bsd-user/mips*: Remove mips support
FreeBSD is dropping support for mips starting with FreeBSD 14. mips
support has been removed from the bsd-user fork because updating it for
new signal requirements will take too much time. Remove it here since it
is a distraction.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Commit: aa3a2428308fe6831ce4b2f9d28ff8572b74f6c4
https://github.com/qemu/qemu/commit/aa3a2428308fe6831ce4b2f9d28ff8572b74f6c4
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/freebsd/target_os_signal.h
A bsd-user/freebsd/target_os_ucontext.h
Log Message:
-----------
bsd-user/freebsd: Create common target_os_ucontext.h file
FreeBSD has a MI ucontext structure that contains the MD mcontext
machine state and other things that are machine independent. Create an
include file for all the ucontext stuff. It needs to be included in the
arch specific files after target_mcontext is defined. This is largely
copied from sys/_ucontext.h with the comments about layout removed
because we don't support ancient FreeBSD binaries.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 19bf129f8245a0f53130cb368ef616a0c362b8f4
https://github.com/qemu/qemu/commit/19bf129f8245a0f53130cb368ef616a0c362b8f4
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/i386/signal.c
A bsd-user/x86_64/signal.c
M meson.build
Log Message:
-----------
bsd-user: create a per-arch signal.c file
Create a place-holder signal.c file for each of the architectures that
are currently built. In the future, some code that's currently inlined
in target_arch_signal.h will live here.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 4dca396631a10f85065a3c71639f1655a96bcdbe
https://github.com/qemu/qemu/commit/4dca396631a10f85065a3c71639f1655a96bcdbe
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/i386/target_arch_signal.h
Log Message:
-----------
bsd-user/i386/target_arch_signal.h: Remove target_sigcontext
In FreeBSD, sigcontext was retired in favor of ucontext/mcontext.
Remove vestigial target_sigcontext.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: c504713f34fb127179496ba3e680689d38e29764
https://github.com/qemu/qemu/commit/c504713f34fb127179496ba3e680689d38e29764
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/i386/target_arch_signal.h
Log Message:
-----------
bsd-user/i386/target_arch_signal.h: use new target_os_ucontext.h
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 679041b1efc03cb6ff2343024b5d209d1fc231f1
https://github.com/qemu/qemu/commit/679041b1efc03cb6ff2343024b5d209d1fc231f1
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/i386/target_arch_signal.h
Log Message:
-----------
bsd-user/i386/target_arch_signal.h: Update mcontext_t to match FreeBSD
Fill in target_mcontext_t to match the FreeBSD mcontex_t. Also tag the
current size of mcontext and ucontext to enable size checking for i386.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: f7d5ed6184ef4fe4cc4ad168d15e2aa6d399b712
https://github.com/qemu/qemu/commit/f7d5ed6184ef4fe4cc4ad168d15e2aa6d399b712
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/i386/signal.c
M bsd-user/i386/target_arch_signal.h
Log Message:
-----------
bsd-user/i386: Move the inlines into signal.c
Move the (now stubbed out) inlines into bsd-user/i386/signal.c.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: fc1fc2c78e5d1f60faa50e75ecc7b8aefca322c3
https://github.com/qemu/qemu/commit/fc1fc2c78e5d1f60faa50e75ecc7b8aefca322c3
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/x86_64/target_arch_signal.h
Log Message:
-----------
bsd-user/x86_64/target_arch_signal.h: Remove target_sigcontext
In FreeBSD, sigcontext was retired in favor of ucontext/mcontext.
Remove vestigial target_sigcontext.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: c104b7505b890cfbd4af3fc8b891b779496ba274
https://github.com/qemu/qemu/commit/c104b7505b890cfbd4af3fc8b891b779496ba274
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/x86_64/target_arch_signal.h
Log Message:
-----------
bsd-user/x86_64/target_arch_signal.h: use new target_os_ucontext.h
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 164f94bc3033011ea9899988d33659239cacb67e
https://github.com/qemu/qemu/commit/164f94bc3033011ea9899988d33659239cacb67e
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/x86_64/target_arch_signal.h
Log Message:
-----------
bsd-user/x86_64/target_arch_signal.h: Fill in mcontext_t
Fill in target_mcontext match the FreeBSD mcontext_t structure. Also
define the size correctly.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 1b4e358a614fc6b8f2e1e1b26550f7f3e9509c8f
https://github.com/qemu/qemu/commit/1b4e358a614fc6b8f2e1e1b26550f7f3e9509c8f
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/x86_64/signal.c
M bsd-user/x86_64/target_arch_signal.h
Log Message:
-----------
bsd-user/x86_64: Move functions into signal.c
Move the current inline functions into sigal.c. This will increate the
flexibility of implementation in the future.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 108fffe53601d46c38efd44d4094bbb211cb73e3
https://github.com/qemu/qemu/commit/108fffe53601d46c38efd44d4094bbb211cb73e3
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/freebsd/target_os_ucontext.h
M bsd-user/i386/target_arch_signal.h
M bsd-user/x86_64/target_arch_signal.h
Log Message:
-----------
bsd-user/target_os_signal.h: Move signal prototypes to target_os_ucontext.h
Switch to the CPUArchState typedef and move target-provided prototypes
to target_os_ucontext.h.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: c186aa67de050ebde0edb23634e356b4e466a76f
https://github.com/qemu/qemu/commit/c186aa67de050ebde0edb23634e356b4e466a76f
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_sysarch.h
Log Message:
-----------
bsd-user/arm/target_arch_sysarch.h: Use consistent include guards
As part of upstreaming, the include guards have been made more
consistent. Update this file to use the new guards.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 559d09a6cdcc78fe0f977e516b5479b4c9587b7a
https://github.com/qemu/qemu/commit/559d09a6cdcc78fe0f977e516b5479b4c9587b7a
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_syscall.h
Log Message:
-----------
bsd-user/arm/target_syscall.h: Add copyright and update name
The preferred name for the 32-bit arm is now armv7. Update the name to
reflect that. In addition, add Stacey's copyright to this file and
update the include guards to the new convention.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 8c98705bb933f58bed743977ee897f67a27d449f
https://github.com/qemu/qemu/commit/8c98705bb933f58bed743977ee897f67a27d449f
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/target_arch.h
A bsd-user/arm/target_arch_cpu.c
Log Message:
-----------
bsd-user/arm/target_arch_cpu.c: Target specific TLS routines
Target specific TLS routines to get and set the TLS values.
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ca5d32a3f30e4bd01aa36b948e42302f40443501
https://github.com/qemu/qemu/commit/ca5d32a3f30e4bd01aa36b948e42302f40443501
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/target_arch_cpu.h
Log Message:
-----------
bsd-user/arm/target_arch_cpu.h: CPU Loop definitions
target_arch_cpu.h is for CPU loop definitions. Create the file and
define target_cpu_init and target_cpu_reset for arm.
Signed-off-by: Olivier Houchard <cognet@ci0.org>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: e17d4c9a3701ca22170cd3bbbd42c9eddad97e84
https://github.com/qemu/qemu/commit/e17d4c9a3701ca22170cd3bbbd42c9eddad97e84
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_cpu.h
Log Message:
-----------
bsd-user/arm/target_arch_cpu.h: Implement target_cpu_clone_regs
Implement target_cpu_clone_regs to clone the resister state on a fork.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 06efe3bfce17576a829fcc7de4d271fe84ca8c9d
https://github.com/qemu/qemu/commit/06efe3bfce17576a829fcc7de4d271fe84ca8c9d
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_cpu.h
Log Message:
-----------
bsd-user/arm/target_arch_cpu.h: Dummy target_cpu_loop implementation
Add a boiler plate CPU loop that does nothing except return an error for
all traps.
Signed-off-by: Sean Bruno <sbruno@FreeBSD.org>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 70985aec1c29e34e1de1aec684324073d76d5873
https://github.com/qemu/qemu/commit/70985aec1c29e34e1de1aec684324073d76d5873
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_cpu.h
Log Message:
-----------
bsd-user/arm/target_arch_cpu.h: Implement trivial EXCP exceptions
Implement EXCP_UDEF, EXCP_DEBUG, EXCP_INTERRUPT, EXCP_ATOMIC and
EXCP_YIELD. The first two generate a signal to the emulated
binary. EXCP_ATOMIC handles atomic operations. The remainder are fancy
nops.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Mikaƫl Urankar <mikael.urankar@gmail.com>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ef1412bd84cd384ee4be34139f750e789ad0f12f
https://github.com/qemu/qemu/commit/ef1412bd84cd384ee4be34139f750e789ad0f12f
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_cpu.h
Log Message:
-----------
bsd-user/arm/target_arch_cpu.h: Implement data abort exceptions
Implement EXCP_PREFETCH_ABORT AND EXCP_DATA_ABORT. Both of these data
exceptions cause a SIGSEGV.
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Olivier Houchard <cognet@ci0.org>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 8d450c9a309609f6abc75e036c5c67b1317d1dc6
https://github.com/qemu/qemu/commit/8d450c9a309609f6abc75e036c5c67b1317d1dc6
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_cpu.h
Log Message:
-----------
bsd-user/arm/target_arch_cpu.h: Implement system call dispatch
Implement the system call dispatch. This implements all three kinds of
system call: direct and the two indirect variants. It handles all the
special cases for thumb as well.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: bcacf30808ee8cd5f2e1c7104bbbee9d64e7ca6c
https://github.com/qemu/qemu/commit/bcacf30808ee8cd5f2e1c7104bbbee9d64e7ca6c
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/target_arch_reg.h
Log Message:
-----------
bsd-user/arm/target_arch_reg.h: Implement core dump register copying
Implement the register copying routines to extract registers from the
cpu for core dump generation.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: dacfdf3ba4ac0773a92472d5063166b1553dff59
https://github.com/qemu/qemu/commit/dacfdf3ba4ac0773a92472d5063166b1553dff59
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/target_arch_vmparam.h
Log Message:
-----------
bsd-user/arm/target_arch_vmparam.h: Parameters for arm address space
Various parameters describing the layout of the ARM address space. In
addition, define routines to get the stack pointer and to set the second
return value.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: eacb50b8d92452251d890f6bfb4ac8eb22acb8d2
https://github.com/qemu/qemu/commit/eacb50b8d92452251d890f6bfb4ac8eb22acb8d2
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/target_arch_sigtramp.h
Log Message:
-----------
bsd-user/arm/target_arch_sigtramp.h: Signal Trampoline for arm
Copy of the signal trampoline code for arm, as well as setup_sigtramp to
write it to the stack.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: f10521cc22aec74ad259bee03ca15ae5ee561c6c
https://github.com/qemu/qemu/commit/f10521cc22aec74ad259bee03ca15ae5ee561c6c
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/target_arch_thread.h
Log Message:
-----------
bsd-user/arm/target_arch_thread.h: Routines to create and switch to a thread
Implement target_thread_init (to create a thread) and target_set_upcall
(to switch to a thread) for arm.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Commit: 082e65314b807c8b5a5a52e15eb0797765029568
https://github.com/qemu/qemu/commit/082e65314b807c8b5a5a52e15eb0797765029568
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/target_arch_elf.h
Log Message:
-----------
bsd-user/arm/target_arch_elf.h: arm defines for ELF
Basic set of defines needed for arm ELF file activation.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 6c5d60fa78d90ba7308b021fd0d33d88475410c5
https://github.com/qemu/qemu/commit/6c5d60fa78d90ba7308b021fd0d33d88475410c5
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_elf.h
Log Message:
-----------
bsd-user/arm/target_arch_elf.h: arm get hwcap
Implement get_elf_hwcap to get the first word of hardware capabilities.
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 883d19ccf92d66fcfb72bd1b744cc8a61552419a
https://github.com/qemu/qemu/commit/883d19ccf92d66fcfb72bd1b744cc8a61552419a
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_elf.h
Log Message:
-----------
bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl
Implement the extended HW capabilities for HWCAP2.
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 156d75579f116e7da27c3c26a0964d43ba3076d2
https://github.com/qemu/qemu/commit/156d75579f116e7da27c3c26a0964d43ba3076d2
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/target_arch_signal.h
Log Message:
-----------
bsd-user/arm/target_arch_signal.h: arm specific signal registers and stack
Defines for registers and stack layout related to signals.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 03fd4028f180af4175e6446bc8c09c4689fb6580
https://github.com/qemu/qemu/commit/03fd4028f180af4175e6446bc8c09c4689fb6580
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_signal.h
Log Message:
-----------
bsd-user/arm/target_arch_signal.h: arm machine context and trapframe for
signals
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 2cb1e6432f917a91c3edd4772b26da3b5d8df791
https://github.com/qemu/qemu/commit/2cb1e6432f917a91c3edd4772b26da3b5d8df791
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/target_arch_signal.h
Log Message:
-----------
bsd-user/arm/target_arch_signal.h: Define size of *context_t
Define the native sizes of mcontext_t and ucontext_t so that the tests
in target_os_ucontext.h ensure the size of arm's version of these
structures is correct.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 781be8666c7cc05a9cce6011c9d9c1ba4e15770d
https://github.com/qemu/qemu/commit/781be8666c7cc05a9cce6011c9d9c1ba4e15770d
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A bsd-user/arm/signal.c
Log Message:
-----------
bsd-user/arm/signal.c: arm set_sigtramp_args
Implement set_sigtramp_args to setup the arguments to the sigtramp
calls.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 38ce1471c97af97ff2bb569c659951a962c2b703
https://github.com/qemu/qemu/commit/38ce1471c97af97ff2bb569c659951a962c2b703
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/signal.c
Log Message:
-----------
bsd-user/arm/signal.c: arm get_mcontext
Get the machine context from the CPU state.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: d6d4509a9f326fd90fe47e33fe532c7bc2c8adf2
https://github.com/qemu/qemu/commit/d6d4509a9f326fd90fe47e33fe532c7bc2c8adf2
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/signal.c
Log Message:
-----------
bsd-user/arm/signal.c: arm set_mcontext
Move the machine context to the CPU state.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 3ac34cc98576425a63763b7671decf11fd606ec6
https://github.com/qemu/qemu/commit/3ac34cc98576425a63763b7671decf11fd606ec6
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/arm/signal.c
Log Message:
-----------
bsd-user/arm/signal.c: arm get_ucontext_sigreturn
Update ucontext to implement sigreturn.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ca4fc704a40b5ad36a7ced03331224293888fafb
https://github.com/qemu/qemu/commit/ca4fc704a40b5ad36a7ced03331224293888fafb
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M bsd-user/freebsd/target_os_ucontext.h
Log Message:
-----------
bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE
Now that all architecutres define TARGET_[MU]CONTEXT_SIZE, enforce
requiring them and always check the sizeof target_{u,m}context_t
sizes.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 18fe5d99f27fa7458724aa367e3c6784c36d5771
https://github.com/qemu/qemu/commit/18fe5d99f27fa7458724aa367e3c6784c36d5771
Author: Warner Losh <imp@bsdimp.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
A configs/targets/arm-bsd-user.mak
Log Message:
-----------
bsd-user: add arm target build
CC: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Acked-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: df722e33d5da26ea8604500ca8f509245a0ea524
https://github.com/qemu/qemu/commit/df722e33d5da26ea8604500ca8f509245a0ea524
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-01-08 (Sat, 08 Jan 2022)
Changed paths:
A bsd-user/arm/signal.c
A bsd-user/arm/target_arch.h
A bsd-user/arm/target_arch_cpu.c
A bsd-user/arm/target_arch_cpu.h
A bsd-user/arm/target_arch_elf.h
A bsd-user/arm/target_arch_reg.h
A bsd-user/arm/target_arch_signal.h
A bsd-user/arm/target_arch_sigtramp.h
M bsd-user/arm/target_arch_sysarch.h
A bsd-user/arm/target_arch_thread.h
A bsd-user/arm/target_arch_vmparam.h
M bsd-user/arm/target_syscall.h
M bsd-user/freebsd/target_os_signal.h
A bsd-user/freebsd/target_os_ucontext.h
A bsd-user/i386/signal.c
M bsd-user/i386/target_arch_signal.h
R bsd-user/mips/target_arch_sysarch.h
R bsd-user/mips/target_syscall.h
R bsd-user/mips64/target_arch_sysarch.h
R bsd-user/mips64/target_syscall.h
A bsd-user/x86_64/signal.c
M bsd-user/x86_64/target_arch_signal.h
A configs/targets/arm-bsd-user.mak
M meson.build
Log Message:
-----------
Merge tag 'bsd-user-arm-pull-request' of gitlab.com:bsdimp/qemu into staging
bsd-user: arm (32-bit) support
This series of patches brings in 32-bit arm support for bsd-user. It implements
all the bits needed to do image activation, signal handling, stack management
and threading. This allows us to get to the "Hello World" level. The arm and x86
code are now the same as in the bsd-user fork. For full context, the fork is at
https://github.com/qemu-bsd-user/qemu-bsd-user/tree/blitz (though the the recent
sig{bus,segv} needed updates are incomplete).
v5 changes:
o Moved to using the CPUArchState typedef and move
set_sigtramp_args, get_mcontext, set_mcontext, and
get_ucontext_sigreturn prototypes to
bsd-user/freebsd/target_os_ucontext.h
o Fix issues with arm's set_mcontext related to masking
and remove an unnecessary check.
We're down to only one hunk needing review:
bsd-user/arm/target_arch_signal.c: arm set_mcontext
Warnings that should be ignored:
o make checkpatch has a couple of complaints about the comments for the
signal trampoline, since it's a false positive IMHO.
WARNING: Block comments use a leading /* on a separate line
+ /* 8 */ sys_sigreturn,
WARNING: Block comments use a leading /* on a separate line
+ /* 9 */ sys_exit
# gpg: Signature made Fri 07 Jan 2022 11:36:37 PM PST
# gpg: using RSA key 2035F894B00AA3CF7CCDE1B76C1CD1287DB01100
# gpg: Good signature from "Warner Losh <wlosh@netflix.com>" [unknown]
# gpg: aka "Warner Losh <imp@bsdimp.com>" [unknown]
# gpg: aka "Warner Losh <imp@freebsd.org>" [unknown]
# gpg: aka "Warner Losh <imp@village.org>" [unknown]
# gpg: aka "Warner Losh <wlosh@bsdimp.com>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 2035 F894 B00A A3CF 7CCD E1B7 6C1C D128 7DB0 1100
* tag 'bsd-user-arm-pull-request' of gitlab.com:bsdimp/qemu: (37 commits)
bsd-user: add arm target build
bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE
bsd-user/arm/signal.c: arm get_ucontext_sigreturn
bsd-user/arm/signal.c: arm set_mcontext
bsd-user/arm/signal.c: arm get_mcontext
bsd-user/arm/signal.c: arm set_sigtramp_args
bsd-user/arm/target_arch_signal.h: Define size of *context_t
bsd-user/arm/target_arch_signal.h: arm machine context and trapframe for
signals
bsd-user/arm/target_arch_signal.h: arm specific signal registers and stack
bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl
bsd-user/arm/target_arch_elf.h: arm get hwcap
bsd-user/arm/target_arch_elf.h: arm defines for ELF
bsd-user/arm/target_arch_thread.h: Routines to create and switch to a thread
bsd-user/arm/target_arch_sigtramp.h: Signal Trampoline for arm
bsd-user/arm/target_arch_vmparam.h: Parameters for arm address space
bsd-user/arm/target_arch_reg.h: Implement core dump register copying
bsd-user/arm/target_arch_cpu.h: Implement system call dispatch
bsd-user/arm/target_arch_cpu.h: Implement data abort exceptions
bsd-user/arm/target_arch_cpu.h: Implement trivial EXCP exceptions
bsd-user/arm/target_arch_cpu.h: Dummy target_cpu_loop implementation
...
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Compare: https://github.com/qemu/qemu/compare/afe332625855...df722e33d5da
- [Qemu-commits] [qemu/qemu] 73d722: bsd-user/mips*: Remove mips support,
Richard Henderson <=