Re: [PATCH v2 08/30] bsd-user/arm/target_arch_cpu.h: Implement trivial EXCP exceptions

2021-11-03 Thread Warner Losh
On Tue, Nov 2, 2021 at 9:17 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 11/2/21 6:52 PM, Warner Losh wrote: > > +case EXCP_UDEF: > > +{ > > +/* See arm/arm/undefined.c undefinedinstruction(); */ > > +info.si_addr = env->regs[

Re: [PATCH v2 08/30] bsd-user/arm/target_arch_cpu.h: Implement trivial EXCP exceptions

2021-11-02 Thread Richard Henderson
On 11/2/21 6:52 PM, Warner Losh wrote: +case EXCP_UDEF: +{ +/* See arm/arm/undefined.c undefinedinstruction(); */ +info.si_addr = env->regs[15]; + +/* + * Make sure the PC is correctly aligned. (It should +

[PATCH v2 08/30] bsd-user/arm/target_arch_cpu.h: Implement trivial EXCP exceptions

2021-11-02 Thread Warner Losh
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 Signed-off-by: Mikaƫl Urankar Signed-off-by: Kyle Evans Signed-off-