aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nios2
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-08-18 09:15:20 -0700
committerFangrui Song <maskray@google.com>2021-08-18 09:15:20 -0700
commit710ba420fd417a4a82e0ad2e998e5f3b972cb503 (patch)
treed29323d05fb2596578e2cc017f5982d6a43afec4 /sysdeps/nios2
parentb37b75d269883a2c553bb7019a813094eb4e2dd1 (diff)
downloadglibc-710ba420fd417a4a82e0ad2e998e5f3b972cb503.zip
glibc-710ba420fd417a4a82e0ad2e998e5f3b972cb503.tar.gz
glibc-710ba420fd417a4a82e0ad2e998e5f3b972cb503.tar.bz2
Remove sysdeps/*/tls-macros.h
They provide TLS_GD/TLS_LD/TLS_IE/TLS_IE macros for TLS testing. Now that we have migrated to __thread and tls_model attributes, these macros are unused and the tls-macros.h files can retire. Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Diffstat (limited to 'sysdeps/nios2')
-rw-r--r--sysdeps/nios2/tls-macros.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/sysdeps/nios2/tls-macros.h b/sysdeps/nios2/tls-macros.h
deleted file mode 100644
index 7029530..0000000
--- a/sysdeps/nios2/tls-macros.h
+++ /dev/null
@@ -1,46 +0,0 @@
-#define TLS_LE(x) \
- ({ int *__result; \
- asm ("addi %0, r23, %%tls_le(" #x ")" \
- : "=r" (__result)); \
- __result; })
-
-#define TLS_IE(x) \
- ({ int *__result; \
- int __tmp; \
- asm ("nextpc %0 ; " \
- "1: movhi %1, %%hiadj(_gp_got - 1b) ; " \
- "addi %1, %1, %%lo(_gp_got - 1b) ; " \
- "add %0, %0, %1 ; " \
- "ldw %1, %%tls_ie(" #x ")(%0) ; " \
- "add %1, r23, %1" \
- : "=&r" (__tmp), "=&r" (__result)); \
- __result; })
-
-#define TLS_LD(x) \
- ({ char *__result; \
- char *__result2; \
- int *__result3; \
- int __tmp; \
- extern void *__tls_get_addr (void *); \
- asm ("nextpc %0 ; " \
- "1: movhi %1, %%hiadj(_gp_got - 1b) ; " \
- "addi %1, %1, %%lo(_gp_got - 1b) ; " \
- "add %0, %0, %1 ; " \
- "addi %0, %0, %%tls_ldm(" #x ")" \
- : "=r" (__result), "=r" (__tmp)); \
- __result2 = (char *)__tls_get_addr (__result); \
- asm ("addi %0, %1, %%tls_ldo(" #x ")" \
- : "=r" (__result3) : "r" (__result2)); \
- __result3; })
-
-#define TLS_GD(x) \
- ({ int *__result; \
- int __tmp; \
- extern void *__tls_get_addr (void *); \
- asm ("nextpc %0 ; " \
- "1: movhi %1, %%hiadj(_gp_got - 1b) ; " \
- "addi %1, %1, %%lo(_gp_got - 1b) ; " \
- "add %0, %0, %1 ; " \
- "addi %0, %0, %%tls_gd(" #x ")" \
- : "=r" (__result), "=r" (__tmp)); \
- (int *)__tls_get_addr (__result); })