[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/10] linux-user/loongarch64: Fix setup_extcontext alloc wrong fp
|
From: |
Song Gao |
|
Subject: |
[PULL 06/10] linux-user/loongarch64: Fix setup_extcontext alloc wrong fpu_context size |
|
Date: |
Fri, 3 Nov 2023 14:23:28 +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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231101030816.2353416-3-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 afcee641a6..6844f187ee 100644
--- a/linux-user/loongarch64/signal.c
+++ b/linux-user/loongarch64/signal.c
@@ -115,7 +115,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
- [PULL 00/10] loongarch-to-apply queue, Song Gao, 2023/11/03
- [PULL 06/10] linux-user/loongarch64: Fix setup_extcontext alloc wrong fpu_context size,
Song Gao <=
- [PULL 05/10] linux-user/loongarch64: Use traps to track LSX/LASX usage, Song Gao, 2023/11/03
- [PULL 07/10] linux-user/loongarch64: setup_sigframe() set 'end' context size 0, Song Gao, 2023/11/03
- [PULL 04/10] target/loongarch: Support 4K page size, Song Gao, 2023/11/03
- [PULL 03/10] target/loongarch: Implement query-cpu-model-expansion, Song Gao, 2023/11/03
- [PULL 02/10] target/loongarch: Allow user enable/disable LSX/LASX features, Song Gao, 2023/11/03
- [PULL 08/10] linux-user/loongarch64: Use abi_{ulong,uint} types, Song Gao, 2023/11/03
- [PULL 01/10] target/loongarch: Add cpu model 'max', Song Gao, 2023/11/03
- [PULL 09/10] linux-user/loongarch64: Add LSX sigcontext save/restore, Song Gao, 2023/11/03
- [PULL 10/10] linux-user/loongarch64: Add LASX sigcontext save/restore, Song Gao, 2023/11/03
- Re: [PULL 00/10] loongarch-to-apply queue, Stefan Hajnoczi, 2023/11/06