Re: [PATCH] linux-user: fix incorrect alignment of pretcode

2023-05-13 Thread Richard Henderson
On 5/12/23 16:38, fa...@mail.ustc.edu.cn wrote: sigframe::pretcode & rt_sigframe::pretcode must align of 16n-sizeof(void*) instead of 16n, Because rsp align of 16n before instruction "call" in caller, After "call", push address of "call" in caller. sp of begin in callee is 16n-sizeof(void*) Re

[PATCH] linux-user: fix incorrect alignment of pretcode

2023-05-12 Thread fanwj
sigframe::pretcode & rt_sigframe::pretcode must align of 16n-sizeof(void*) instead of 16n, Because rsp align of 16n before instruction "call" in caller, After "call", push address of "call" in caller. sp of begin in callee is 16n-sizeof(void*) Resolves: https://gitlab.com/qemu-project/qemu/-/is