Re: [PATCH v19 02/13] linux-user: Add LoongArch signal support

2022-06-23 Thread gaosong
On 2022/6/24 上午9:20, Richard Henderson wrote: On 6/23/22 17:45, maobibo wrote: 在 2022/6/24 07:34, Richard Henderson 写道: On 6/23/22 01:55, Song Gao wrote: +static void setup_sigcontext(CPULoongArchState *env, + struct target_sigcontext *sc, +  

Re: [PATCH v19 02/13] linux-user: Add LoongArch signal support

2022-06-23 Thread Richard Henderson
On 6/23/22 17:45, maobibo wrote: 在 2022/6/24 07:34, Richard Henderson 写道: On 6/23/22 01:55, Song Gao wrote: +static void setup_sigcontext(CPULoongArchState *env, + struct target_sigcontext *sc, + struct extctx_layout *extctx) +{ +    int

Re: [PATCH v19 02/13] linux-user: Add LoongArch signal support

2022-06-23 Thread maobibo
在 2022/6/24 08:45, maobibo 写道: > > > 在 2022/6/24 07:34, Richard Henderson 写道: >> On 6/23/22 01:55, Song Gao wrote: >>> +static void setup_sigcontext(CPULoongArchState *env, >>> + struct target_sigcontext *sc, >>> + struct extctx_layout *e

Re: [PATCH v19 02/13] linux-user: Add LoongArch signal support

2022-06-23 Thread maobibo
在 2022/6/24 07:34, Richard Henderson 写道: > On 6/23/22 01:55, Song Gao wrote: >> +static void setup_sigcontext(CPULoongArchState *env, >> + struct target_sigcontext *sc, >> + struct extctx_layout *extctx) >> +{ >> +    int i; >> + >> +    if

Re: [PATCH v19 02/13] linux-user: Add LoongArch signal support

2022-06-23 Thread Richard Henderson
On 6/23/22 01:55, Song Gao wrote: +static void setup_sigcontext(CPULoongArchState *env, + struct target_sigcontext *sc, + struct extctx_layout *extctx) +{ +int i; + +if (extctx->flags & SC_USED_FP) { +__put_user(extctx->fpu.a

[PATCH v19 02/13] linux-user: Add LoongArch signal support

2022-06-23 Thread Song Gao
Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang --- linux-user/loongarch64/signal.c| 331 + linux-user/loongarch64/target_signal.h | 13 + 2 files changed, 344 insertions(+) create mode 100644 linux-user/loongarch64/signal.c create mode 100644 linux-user/l