]> Cypherpunks repositories - gostls13.git/commit
runtime: save and restore fcc registers in async preempt on loong64
authorHuang Qiqi <huangqiqi@loongson.cn>
Mon, 13 Mar 2023 10:52:43 +0000 (18:52 +0800)
committerCherry Mui <cherryyz@google.com>
Wed, 22 Mar 2023 19:29:43 +0000 (19:29 +0000)
commit48d61a46e28076bf0e41f50459fe0875ec5f4010
tree41f92ad41845894fc4536081eabca77d32b0f2d7
parent09e9a9eac9f3d347e3a204ae3ca309b5340028c4
runtime: save and restore fcc registers in async preempt on loong64

During the context switch of goroutine scheduling, the value of the
fcc0 register needs to be saved on the stack.

Fixs #59000.

Change-Id: Ie80dbae738f60df6c11a3fe31fc57de817d76afc
Reviewed-on: https://go-review.googlesource.com/c/go/+/475577
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: WANG Xuerui <git@xen0n.name>
src/runtime/mkpreempt.go
src/runtime/preempt_loong64.s