[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support
From: |
chen huacai |
Subject: |
Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support |
Date: |
Mon, 22 Nov 2021 19:44:06 +0800 |
Hi, all,
On Mon, Nov 22, 2021 at 7:41 PM gaosong <gaosong@loongson.cn> wrote:
>
> Hi Richard,
>
> On 2021/11/20 下午6:33, Richard Henderson wrote:
>
>
> Drop all of the the inline markers.
>
> +{
> + int i;
> +
> + __put_user(env->pc, &sc->sc_pc);
> +
> + __put_user(0, &sc->sc_gpr[0]);
> + for (i = 1; i < 32; ++i) {
> + __put_user(env->gpr[i], &sc->sc_gpr[i]);
> + }
> +
> + for (i = 0; i < 32; ++i) {
> + __put_user(env->fpr[i], &sc->sc_fpr[i]);
> + }
> +}
>
>
> Missing fcsr and fcc.
>
> I'll note that the kernel is missing sets of vscr and scr[0-3]. IMO they
> should at least be zeroed in advance of supporting the vector extension.
>
> I see that vcsr set at [1]:178.
> [1]
> https://github.com/loongson/linux/blob/loongarch-next/arch/loongarch/kernel/signal.c
>
> and I also see that the kernel is missing sets of scr[0-3], Huacai is that
> right?
scr[0-3] is reserved for binary translation, it doesn't need to be set now.
Huacai
>
> Thanks
> Song Gao
--
Huacai Chen
- [PATCH v11 13/26] target/loongarch: Add floating point move instruction translation, (continued)
- [PATCH v11 13/26] target/loongarch: Add floating point move instruction translation, Song Gao, 2021/11/19
- [PATCH v11 14/26] target/loongarch: Add floating point load/store instruction translation, Song Gao, 2021/11/19
- [PATCH v11 15/26] target/loongarch: Add branch instruction translation, Song Gao, 2021/11/19
- [PATCH v11 20/26] linux-user: Add LoongArch elf support, Song Gao, 2021/11/19
- [PATCH v11 19/26] linux-user: Add LoongArch signal support, Song Gao, 2021/11/19
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, Richard Henderson, 2021/11/20
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, gaosong, 2021/11/23
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, Richard Henderson, 2021/11/24
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, gaosong, 2021/11/24
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, Richard Henderson, 2021/11/24
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, gaosong, 2021/11/24
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, Richard Henderson, 2021/11/24
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, gaosong, 2021/11/24
- Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support, Richard Henderson, 2021/11/25
[PATCH v11 17/26] linux-user: Add LoongArch generic header files, Song Gao, 2021/11/19