Re: [PATCH v4 5/5] tcg/sparc: Support unaligned access for user-only

2022-02-04 Thread Richard Henderson
On 2/5/22 06:07, Peter Maydell wrote: +/* + * Overalignment: When we're asking for really large alignment, + * the actual access is always done above and all we need to do + * here is invoke the handler for SIGBUS. + */ I thought the access was in an annulled delay slot and

Re: [PATCH v4 5/5] tcg/sparc: Support unaligned access for user-only

2022-02-04 Thread Peter Maydell
On Fri, 4 Feb 2022 at 08:16, Richard Henderson wrote: > > This is kinda sorta the opposite of the other tcg hosts, where > we get (normal) alignment checks for free with host SIGBUS and > need to add code to support unaligned accesses. > > This inline code expansion is somewhat large, but it takes

[PATCH v4 5/5] tcg/sparc: Support unaligned access for user-only

2022-02-03 Thread Richard Henderson
This is kinda sorta the opposite of the other tcg hosts, where we get (normal) alignment checks for free with host SIGBUS and need to add code to support unaligned accesses. This inline code expansion is somewhat large, but it takes quite a few instructions to make a function call to a helper anyw