Re: [PATCH v16 2/9] linux-user: Add LoongArch signal support

2022-06-15 Thread Richard Henderson
On 6/15/22 02:57, gaosong wrote: On 2022/6/15 上午12:15, Richard Henderson wrote: +static void *get_ctx(struct target_sctx_info *info) +{ +    return (void *)((char *)info + sizeof(struct target_sctx_info)); +} Return type should be struct target_sctx_info *. I wonder that if we return targe

Re: [PATCH v16 2/9] linux-user: Add LoongArch signal support

2022-06-15 Thread gaosong
On 2022/6/15 上午12:15, Richard Henderson wrote: +static void *get_ctx(struct target_sctx_info *info) +{ +    return (void *)((char *)info + sizeof(struct target_sctx_info)); +} Return type should be struct target_sctx_info *. I wonder that if we return target_fpu_context * and rename get_ctx

Re: [PATCH v16 2/9] linux-user: Add LoongArch signal support

2022-06-14 Thread Richard Henderson
On 6/14/22 02:05, Song Gao wrote: Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang --- linux-user/loongarch64/signal.c| 283 + linux-user/loongarch64/target_signal.h | 13 ++ 2 files changed, 296 insertions(+) create mode 100644 linux-user/loongarch64/

[PATCH v16 2/9] linux-user: Add LoongArch signal support

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