diff options
author | Song Gao <gaosong@loongson.cn> | 2023-11-01 11:08:12 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2023-11-03 14:13:22 +0800 |
commit | 420756c2dd1413cdd06e8c86b4bf80fba08f009f (patch) | |
tree | debcda9b4a7dba813d89c8f28140a64ad56ef90a /linux-user/loongarch64/signal.c | |
parent | 91ffd93be614da080a6dd8826d999e3e4761f78b (diff) |
linux-user/loongarch64: Fix setup_extcontext alloc wrong fpu_context size
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>
Diffstat (limited to 'linux-user/loongarch64/signal.c')
-rw-r--r-- | linux-user/loongarch64/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |