summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alkondratenko@gmail.com>2022-05-30 20:33:18 -0700
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2022-05-30 20:33:18 -0700
commit9d44463380716ebad2f8ba13ce8a737f22bb2602 (patch)
treed969bf7aaa81a719a8ad6f5a8b35a41433b75c87
parent6c99def347460adbb9f17815feb641cf5474548e (diff)
downloadgperftools-9d44463380716ebad2f8ba13ce8a737f22bb2602.tar.gz
Remove basic support for Elbrus 2000 (e2k)
This reverts commit 3b1c60cc4ea737ff151977dbcd164c5e2eb859fb.
-rw-r--r--cmake/PCFromUContext.cmake1
-rw-r--r--m4/pc_from_ucontext.m41
-rw-r--r--src/base/basictypes.h2
-rw-r--r--src/malloc_hook_mmap_linux.h3
4 files changed, 1 insertions, 6 deletions
diff --git a/cmake/PCFromUContext.cmake b/cmake/PCFromUContext.cmake
index d231124..e2db2e3 100644
--- a/cmake/PCFromUContext.cmake
+++ b/cmake/PCFromUContext.cmake
@@ -29,7 +29,6 @@ macro(pc_from_ucontext variable)
"uc_mcontext.psw.addr" # Linux (s390)
"uc_mcontext.gregs[R15]" # Linux (arm old [untested])
"uc_mcontext.arm_pc" # Linux (arm arch 5)
- "uc_mcontext.cr0_hi" # Linux (e2k)
"uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64)
"uc_mcontext.mc_eip" # FreeBSD (i386)
"uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
diff --git a/m4/pc_from_ucontext.m4 b/m4/pc_from_ucontext.m4
index ffe0764..7f09dd7 100644
--- a/m4/pc_from_ucontext.m4
+++ b/m4/pc_from_ucontext.m4
@@ -33,7 +33,6 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT],
pc_fields="$pc_fields uc_mcontext.psw.addr" # Linux (s390)
pc_fields="$pc_fields uc_mcontext.gregs[[R15]]" # Linux (arm old [untested])
pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
- pc_fields="$pc_fields uc_mcontext.cr0_hi" # Linux (e2k)
pc_fields="$pc_fields uc_mcontext.gp_regs[[PT_NIP]]" # Suse SLES 11 (ppc64)
pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
pc_fields="$pc_fields uc_mcontext.mc_srr0" # FreeBSD (powerpc, powerpc64)
diff --git a/src/base/basictypes.h b/src/base/basictypes.h
index 5814d5b..a8c9e1c 100644
--- a/src/base/basictypes.h
+++ b/src/base/basictypes.h
@@ -385,8 +385,6 @@ class AssignAttributeStartEnd {
# define CACHELINE_ALIGNED __attribute__((aligned(256)))
# elif (defined(__riscv) && __riscv_xlen == 64)
# define CACHELINE_ALIGNED __attribute__((aligned(64)))
-# elif (defined(__e2k__))
-# define CACHELINE_ALIGNED __attribute__((aligned(64)))
# elif defined(__loongarch64)
# define CACHELINE_ALIGNED __attribute__((aligned(64)))
# else
diff --git a/src/malloc_hook_mmap_linux.h b/src/malloc_hook_mmap_linux.h
index 4362fe0..c7d8b4b 100644
--- a/src/malloc_hook_mmap_linux.h
+++ b/src/malloc_hook_mmap_linux.h
@@ -56,8 +56,7 @@
|| defined(__aarch64__) \
|| defined(__loongarch64) \
|| (defined(_MIPS_SIM) && (_MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32)) \
- || defined(__s390__) || (defined(__riscv) && __riscv_xlen == 64) \
- || defined(__e2k__)
+ || defined(__s390__) || (defined(__riscv) && __riscv_xlen == 64)
static inline void* do_mmap64(void *start, size_t length,
int prot, int flags,