[PATCH 07/12] x86_64/k10/popcount.asm: Prepend X86_NOTRACK to "jmp *%rdx"
H.J. Lu
hjl.tools at gmail.com
Thu Jan 30 14:08:32 UTC 2020
Since K10 popcount.asm uses a trick to implment jump tables with LEA,
prepend X86_NOTRACK to "jmp *%rdx" to disable indirect branch tracking
when Intel CET is enabled.
* mpn/x86_64/k10/popcount.asm: Prepend X86_NOTRACK to
"jmp *%rdx".
---
mpn/x86_64/k10/popcount.asm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mpn/x86_64/k10/popcount.asm b/mpn/x86_64/k10/popcount.asm
index 735d25a30..45bcba5b0 100644
--- a/mpn/x86_64/k10/popcount.asm
+++ b/mpn/x86_64/k10/popcount.asm
@@ -79,7 +79,7 @@ C neg R32(%rcx)
lea L(top)(%rip), %rdx
lea (%rdx,%rcx,2), %rdx
- jmp *%rdx
+ X86_NOTRACK jmp *%rdx
',`
lea (up,n,8), up
@@ -101,7 +101,7 @@ C lea (%rcx,%rcx,4), %rcx C 10x
lea L(top)(%rip), %rdx
add %rcx, %rdx
- jmp *%rdx
+ X86_NOTRACK jmp *%rdx
')
ALIGN(32)
--
2.24.1
More information about the gmp-devel
mailing list