On Wed, 3 Jun 2020 at 02:13, Richard Henderson <richard.hender...@linaro.org> wrote: > > We need this to raise unaligned exceptions from user mode. > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > v6: Use EXCP_UNALIGNED for user-only and update cpu_loop.c.
Could you update the comment in cpu.h, maybe something like: #define EXCP_UNALIGNED 22 /* v7M UNALIGNED UsageFault; also linux-user */ and also update the string printed by arm_log_exception(): #ifdef CONFIG_USER_ONLY [EXCP_UNALIGNED] = "linux-user unaligned access fault", #else [EXCP_UNALIGNED] = "v7M UNALIGNED UsageFault", #endif Otherwise Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM