]> Cypherpunks repositories - gostls13.git/commit
runtime: save and restore all fcc registers in async preempt on loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Mon, 18 Aug 2025 06:58:03 +0000 (14:58 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Wed, 20 Aug 2025 01:58:21 +0000 (18:58 -0700)
commitbd885401d5a4b45fee8ae37069be0cc3beef9e3e
tree3e7cb4380b63a5957dedd0d3f355ecc05aa54d51
parent119546ea4fdded79057913a943bd3b6a8dcf8d4a
runtime: save and restore all fcc registers in async preempt on loong64

Currently, all Op implementations on loong64 use fcc0 by default, so only
fcc0 is saved in CL 475577. However, fcc1-fcc7 may also be used by users
when writing assembly code, such as in CL 693878.

Change-Id: Idb60d8101a0f7d602dfcbbb39bd5da9f2c475bfd
Reviewed-on: https://go-review.googlesource.com/c/go/+/696875
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/runtime/mkpreempt.go
src/runtime/preempt_loong64.s