Re: [PATCH for-6.2 12/43] target/sh4: Implement do_unaligned_access for user-only

2021-07-30 Thread Rob Landley
On 7/29/21 8:52 AM, Peter Maydell wrote: > On Thu, 29 Jul 2021 at 02:01, Richard Henderson > wrote: >> >> Cc: Yoshinori Sato >> Signed-off-by: Richard Henderson >> --- >> linux-user/sh4/cpu_loop.c | 8 >> target/sh4/cpu.c | 2 +- >> target/sh4/op_helper.c| 3 --- >> 3

Re: [PATCH for-6.2 12/43] target/sh4: Implement do_unaligned_access for user-only

2021-07-29 Thread Richard Henderson
On 7/29/21 3:52 AM, Peter Maydell wrote: sh4 kernel default for unaligned accesses seems to be "warn and fixup", not SIGBUS, unless the user changes that by writing to /proc/cpu/alignment or the process changes it via prctl(). We will still need this for load-locked/store-conditional

Re: [PATCH for-6.2 12/43] target/sh4: Implement do_unaligned_access for user-only

2021-07-29 Thread Peter Maydell
On Thu, 29 Jul 2021 at 02:01, Richard Henderson wrote: > > Cc: Yoshinori Sato > Signed-off-by: Richard Henderson > --- > linux-user/sh4/cpu_loop.c | 8 > target/sh4/cpu.c | 2 +- > target/sh4/op_helper.c| 3 --- > 3 files changed, 9 insertions(+), 4 deletions(-) > > diff

[PATCH for-6.2 12/43] target/sh4: Implement do_unaligned_access for user-only

2021-07-28 Thread Richard Henderson
Cc: Yoshinori Sato Signed-off-by: Richard Henderson --- linux-user/sh4/cpu_loop.c | 8 target/sh4/cpu.c | 2 +- target/sh4/op_helper.c| 3 --- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/linux-user/sh4/cpu_loop.c b/linux-user/sh4/cpu_loop.c index