]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Add workaround for arm64 AT_HWCAP on newer kernels. Bug KDE#381556.
authorMark Wielaard <mark@klomp.org>
Mon, 18 Jun 2018 13:07:27 +0000 (15:07 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 18 Jun 2018 13:07:27 +0000 (15:07 +0200)
commitad4481d23aa54ad947f7dcd194f1233e0b99c70f
tree7a865fb8ff80acea15eb5ad4d4d97a8ebe5ca30d
parentc76123d32cd81c8eaed99cb582a364f025c40ca9
Add workaround for arm64 AT_HWCAP on newer kernels. Bug KDE#381556.

Starting with linux 4.11 the kernel started to populate the AT_HWCAPS
auxv entry. And glibc 2.26 now uses this to see whether it can use the
mrs instruction and certain feature registers on arm64. Since these
are not supported under valgrind this causes an unhandled instruction
error. Workaround this for now my just clearing the AT_HWCAPS on arm64.

This should be fixed properly by someone with knowledge of what each
of the arm64 HWCAPS bits mean and which bits correspond to instructions
and registers supported by VEX or not.
https://bugs.kde.org/show_bug.cgi?id=381556
coregrind/m_initimg/initimg-linux.c