Re: [PATCH v2 14/40] bsd-user/arm/target_arch_cpu.h: Use force_sig_fault for EXCP_UDEF

2022-01-27 Thread Warner Losh
On Wed, Jan 26, 2022 at 11:27 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 1/25/22 12:29, Warner Losh wrote: > > +case EXCP_NOCP: > > +case EXCP_INVSTATE: > > +/* > > + * See arm/arm/undefined.c undefinedinstruction(); > > + *

Re: [PATCH v2 14/40] bsd-user/arm/target_arch_cpu.h: Use force_sig_fault for EXCP_UDEF

2022-01-26 Thread Richard Henderson
On 1/25/22 12:29, Warner Losh wrote: +case EXCP_NOCP: +case EXCP_INVSTATE: +/* + * See arm/arm/undefined.c undefinedinstruction(); + * + * A number of details aren't emulated (they likely don't matter): + * o Misaligned P

[PATCH v2 14/40] bsd-user/arm/target_arch_cpu.h: Use force_sig_fault for EXCP_UDEF

2022-01-24 Thread Warner Losh
Use force_sig_fault to implement unknown opcode. This just uninlines that function, so simplify things by using it. Fold in EXCP_NOCP and EXCP_INVSTATE, as is done in linux-user. Make a note about slight differences with FreeBSD in case any of them turn out to be important later. Signed-off-by: Wa