[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 3/6] linux-user/loongarch64: Fix setup_extcontext alloc wrong
From: |
Song Gao |
Subject: |
[PATCH v1 3/6] linux-user/loongarch64: Fix setup_extcontext alloc wrong fpu_context size |
Date: |
Tue, 10 Oct 2023 11:36:58 +0800 |
See:
https://github.com/torvalds/linux/blob/master/arch/loongarch/kernel/signal.c
The alloc size is sizeof(struct target_fpu_context).
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
linux-user/loongarch64/signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/loongarch64/signal.c b/linux-user/loongarch64/signal.c
index 39572c1190..d97aa7db7f 100644
--- a/linux-user/loongarch64/signal.c
+++ b/linux-user/loongarch64/signal.c
@@ -100,7 +100,7 @@ static abi_ptr setup_extcontext(struct extctx_layout
*extctx, abi_ptr sp)
/* For qemu, there is no lazy fp context switch, so fp always present. */
extctx->flags = SC_USED_FP;
sp = extframe_alloc(extctx, &extctx->fpu,
- sizeof(struct target_rt_sigframe), FPU_CTX_ALIGN, sp);
+ sizeof(struct target_fpu_context), FPU_CTX_ALIGN, sp);
return sp;
}
--
2.25.1
- [PATCH v1 0/6] linux-user/loongarch64: Add LSX/LASX sigcontext, Song Gao, 2023/10/09
- [PATCH v1 4/6] linux-user/loongarch64: setup_sigframe() set 'end' context size 0, Song Gao, 2023/10/09
- [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX instructions extctx_flags, Song Gao, 2023/10/09
- Re: [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX instructions extctx_flags, Richard Henderson, 2023/10/28
- Re: [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX instructions extctx_flags, gaosong, 2023/10/29
- Re: [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX instructions extctx_flags, Richard Henderson, 2023/10/30
- Re: [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX instructions extctx_flags, gaosong, 2023/10/31
- Re: [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX instructions extctx_flags, Richard Henderson, 2023/10/31
- Re: [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX instructions extctx_flags, gaosong, 2023/10/31
[PATCH v1 3/6] linux-user/loongarch64: Fix setup_extcontext alloc wrong fpu_context size,
Song Gao <=
[PATCH v1 5/6] linux-user/loongarch64: Add LSX sigcontext save/restore, Song Gao, 2023/10/09
[PATCH v1 6/6] linux-user/loongarch64: Add LASX sigcontext save/restore, Song Gao, 2023/10/09
[PATCH v1 1/6] target/loongarch: Add env->extctx_flags for user-mode setup extcontext, Song Gao, 2023/10/09
Re: [PATCH v1 0/6] linux-user/loongarch64: Add LSX/LASX sigcontext, gaosong, 2023/10/22