On Sun, 22 Aug 2021 at 04:55, Richard Henderson <richard.hender...@linaro.org> wrote: > > This si_code was changed in 75abf64287cab, for linux 4.17. > > Signed-off-by: Richard Henderson <richard.hender...@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.mayd...@linaro.org> thanks -- PMM