]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: delete useless TPIDR macro on arm64
authoreric fang <eric.fang@arm.com>
Fri, 17 Dec 2021 08:26:06 +0000 (08:26 +0000)
committerMichael Pratt <mpratt@google.com>
Tue, 22 Mar 2022 20:46:22 +0000 (20:46 +0000)
The TPIDR macro in tls_arm64.h is not used anywhere, so remove it
to reduce confusion.

Change-Id: I04aa5e64ee30753f28f43bc67b44559d81d093c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/373357
Trust: Eric Fang <eric.fang@arm.com>
Run-TryBot: Eric Fang <eric.fang@arm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/tls_arm64.h

index fe5e4cee12db92cf234a5a6c1cade9f6f5843066..3aa8c63d39d7b244f5c7d32401899bd326a846d9 100644 (file)
@@ -10,7 +10,6 @@
 #define TLS_linux
 #endif
 #ifdef TLS_linux
-#define TPIDR TPIDR_EL0
 #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0
 #endif
 
 #define TLS_darwin
 #endif
 #ifdef TLS_darwin
-#define TPIDR TPIDRRO_EL0
 #define TLSG_IS_VARIABLE
 #define MRS_TPIDR_R0 WORD $0xd53bd060 // MRS TPIDRRO_EL0, R0
 #endif
 
 #ifdef GOOS_freebsd
-#define TPIDR TPIDR_EL0
 #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0
 #endif
 
 #ifdef GOOS_netbsd
-#define TPIDR TPIDRRO_EL0
 #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDRRO_EL0, R0
 #endif
 
 #ifdef GOOS_openbsd
-#define TPIDR TPIDR_EL0
 #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0
 #endif