[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 16/30] linux-user/hppa: Set FPE_CONDTRAP for COND
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 16/30] linux-user/hppa: Set FPE_CONDTRAP for COND |
Date: |
Tue, 24 Aug 2021 17:37:29 +0100 |
On Sun, 22 Aug 2021 at 04:55, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> This si_code was changed in 75abf64287cab, for linux 4.17.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> linux-user/syscall_defs.h | 1 +
> linux-user/hppa/cpu_loop.c | 2 ++
> 2 files changed, 3 insertions(+)
>
> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
> index 55ccc6ae03..f9efbffe0c 100644
> --- a/linux-user/syscall_defs.h
> +++ b/linux-user/syscall_defs.h
> @@ -688,6 +688,7 @@ typedef struct target_siginfo {
> #define TARGET_FPE_FLTINV (7) /* floating point invalid operation */
> #define TARGET_FPE_FLTSUB (8) /* subscript out of range */
> #define TARGET_FPE_FLTUNK (14) /* undiagnosed fp exception */
> +#define TARGET_FPE_CONDTRAP (15) /* trap on condition */
> #define TARGET_NSIGFPE 15
We don't use TARGET_NSIGFPE, but we should either update it
as the kernel did in 75abf64287cab, or just delete it.
(We don't have the equivalent NSIGTRAP, NSIGBUS, etc for the
other si_codes, so maybe deleting is the simplest option. If you
want to put a preceding patch that just deletes our TARGET_NSIGFPE
definition, you can have my r-by for that.)
Otherwise
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- Re: [PATCH v2 21/30] linux-user/microblaze: Fix SIGFPE si_codes, (continued)
- [PATCH v2 26/30] linux-user/riscv: Use force_sig_fault, force_sigsegv_for_addr, Richard Henderson, 2021/08/21
- [PATCH v2 25/30] linux-user/ppc: Use force_sig_fault, force_sigsegv_for_addr, Richard Henderson, 2021/08/21
- [PATCH v2 28/30] linux-user/sh4: Use force_sig_fault, force_sigsegv_for_addr, Richard Henderson, 2021/08/21
- [PATCH v2 29/30] linux-user/sparc: Use force_sig_fault, force_sigsegv_for_addr, Richard Henderson, 2021/08/21
- [PATCH v2 16/30] linux-user/hppa: Set FPE_CONDTRAP for COND, Richard Henderson, 2021/08/21
- Re: [PATCH v2 16/30] linux-user/hppa: Set FPE_CONDTRAP for COND,
Peter Maydell <=
- [PATCH v2 22/30] linux-user/mips: Improve do_break, Richard Henderson, 2021/08/21
- [PATCH v2 19/30] linux-user/m68k: Use force_sig_fault, force_sigsegv_for_addr, Richard Henderson, 2021/08/21
- [PATCH v2 30/30] linux-user/xtensa: Use force_sig_fault, force_sigsegv_for_addr, Richard Henderson, 2021/08/21
- [PATCH v2 23/30] linux-user/mips: Use force_sig_fault, force_sigsegv_for_addr, Richard Henderson, 2021/08/21
- [PATCH v2 27/30] linux-user/s390x: Use force_sig_fault, force_sigsegv_for_addr, Richard Henderson, 2021/08/21