diff options
| author | Cherry Mui <cherryyz@google.com> | 2021-05-19 18:13:45 -0400 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2021-05-20 19:03:48 +0000 |
| commit | 02117775d1550653bd4f58fdaa12b1e906409052 (patch) | |
| tree | ea8e7b1090c4351f2792e87d0e951cecc501fad1 /src/runtime | |
| parent | a5cd89b8c36df906e9f0e2932b83d66a43b5e745 (diff) | |
| download | go-02117775d1550653bd4f58fdaa12b1e906409052.tar.xz | |
[dev.typeparams] cmd/compile, runtime: do not zero X15 on Plan 9
On Plan 9, we cannot use SSE registers in note handlers, so we
don't use X15 for zeroing (MOVOstorezero and DUFFZERO). Do not
zero X15 on Plan 9.
Change-Id: I2b083b01b27965611cb83d19afd66b383dc77846
Reviewed-on: https://go-review.googlesource.com/c/go/+/321329
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/asm_amd64.s | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/asm_amd64.s b/src/runtime/asm_amd64.s index 14f29e1964..5990ce54c8 100644 --- a/src/runtime/asm_amd64.s +++ b/src/runtime/asm_amd64.s @@ -1600,8 +1600,10 @@ TEXT ·sigpanic0<ABIInternal>(SB),NOSPLIT,$0-0 #ifdef GOEXPERIMENT_regabig get_tls(R14) MOVQ g(R14), R14 +#ifndef GOOS_plan9 XORPS X15, X15 #endif +#endif JMP ·sigpanic<ABIInternal>(SB) // gcWriteBarrier performs a heap pointer write and informs the GC. |
