]> Cypherpunks repositories - gostls13.git/commit
runtime/internal/atomic: correct GOARM=7 guard at a DMB instruction
authorCherry Mui <cherryyz@google.com>
Fri, 16 Feb 2024 15:58:56 +0000 (10:58 -0500)
committerCherry Mui <cherryyz@google.com>
Fri, 16 Feb 2024 18:13:42 +0000 (18:13 +0000)
commita0226c5680f3ce6b0d8a8341f8c69611f3008393
tree00d1627b68f3bce98ea9ed86fee97b08657d7f19
parent720eadead23fcf76c0d783cf0b200ed252b5ea22
runtime/internal/atomic: correct GOARM=7 guard at a DMB instruction

CL 525637 changed to the guard of DMB instruction from the
compiled-in runtime.goarm value to GOARM_7 macro and CPU feature
detection. It missed a place where runtime.goarm is loaded to a
register and reused later. This CL corrects the condition.

Fixes #65601.

Change-Id: I2ddefd03a1eb1048dbec0254c6e234c65b054279
Reviewed-on: https://go-review.googlesource.com/c/go/+/564855
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/internal/atomic/atomic_arm.s