Re: [PATCH] bsd-user/x86_64/target_arch_thread.h: Align stack

2024-07-31 Thread Warner Losh
On Wed, Jul 31, 2024 at 5:03 PM Warner Losh wrote: > Hmmm... All platforms likely need this > Oh, they all have it except x86, both 32 and 64-bit but i386 is > already properly aligned (at least in the > FreeBSD kernel), so maybe that's not needed. > > > On Wed, Jul 31, 2024 at 4:43 PM Ri

Re: [PATCH] bsd-user/x86_64/target_arch_thread.h: Align stack

2024-07-31 Thread Warner Losh
Hmmm... All platforms likely need this Oh, they all have it except x86, both 32 and 64-bit but i386 is already properly aligned (at least in the FreeBSD kernel), so maybe that's not needed. On Wed, Jul 31, 2024 at 4:43 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 8/1/

Re: [PATCH] bsd-user/x86_64/target_arch_thread.h: Align stack

2024-07-31 Thread Richard Henderson
On 8/1/24 00:44, Ilya Leoshkevich wrote: bsd-user qemu-x86_64 almost immediately dies with: qemu: 0x4002201a68: unhandled CPU exception 0xd - aborting on FreeBSD 14.1-RELEASE. This is an instruction that requires alignment: (gdb) x/i 0x4002201a68 0x4002201a68:movaps %

[PATCH] bsd-user/x86_64/target_arch_thread.h: Align stack

2024-07-31 Thread Ilya Leoshkevich
bsd-user qemu-x86_64 almost immediately dies with: qemu: 0x4002201a68: unhandled CPU exception 0xd - aborting on FreeBSD 14.1-RELEASE. This is an instruction that requires alignment: (gdb) x/i 0x4002201a68 0x4002201a68:movaps %xmm0,-0x40(%rbp) and the argument is not alig