From 760ab3d0dbebbcd1b7b476f38704ae2e83006adf Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 22 Dec 2022 09:36:16 +0100 Subject: x86: correct/improve TSX controls TSXLDTRK takes RTM as a prereq. Additionally introduce an umbrella "tsx" extension option covering both RTM and HLE, paralleling the "abm" one we already have. --- gas/config/tc-i386.c | 5 +++-- gas/doc/c-i386.texi | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'gas') diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index e2ffa5d..4e4bfdd 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1050,7 +1050,8 @@ static const arch_entry cpu_arch[] = SUBARCH (lzcnt, LZCNT, LZCNT, false), SUBARCH (popcnt, POPCNT, POPCNT, false), SUBARCH (hle, HLE, HLE, false), - SUBARCH (rtm, RTM, RTM, false), + SUBARCH (rtm, RTM, ANY_RTM, false), + SUBARCH (tsx, TSX, TSX, false), SUBARCH (invpcid, INVPCID, INVPCID, false), SUBARCH (clflush, CLFLUSH, CLFLUSH, false), SUBARCH (nop, NOP, NOP, false), @@ -1112,7 +1113,7 @@ static const arch_entry cpu_arch[] = SUBARCH (rdpru, RDPRU, RDPRU, false), SUBARCH (mcommit, MCOMMIT, MCOMMIT, false), SUBARCH (sev_es, SEV_ES, ANY_SEV_ES, false), - SUBARCH (tsxldtrk, TSXLDTRK, TSXLDTRK, false), + SUBARCH (tsxldtrk, TSXLDTRK, ANY_TSXLDTRK, false), SUBARCH (kl, KL, ANY_KL, false), SUBARCH (widekl, WIDEKL, ANY_WIDEKL, false), SUBARCH (uintr, UINTR, UINTR, false), diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi index feca644..8fe4410 100644 --- a/gas/doc/c-i386.texi +++ b/gas/doc/c-i386.texi @@ -227,6 +227,7 @@ accept various extension mnemonics. For example, @code{popcnt}, @code{hle}, @code{rtm}, +@code{tsx}, @code{invpcid}, @code{clflush}, @code{mwaitx}, @@ -1485,8 +1486,8 @@ supported on the CPU specified. The choices for @var{cpu_type} are: @item @samp{.aes} @tab @samp{.pclmul} @tab @samp{.fma} @tab @samp{.fsgsbase} @item @samp{.rdrnd} @tab @samp{.f16c} @tab @samp{.avx2} @tab @samp{.bmi2} @item @samp{.lzcnt} @tab @samp{.popcnt} @tab @samp{.invpcid} @tab @samp{.vmfunc} -@item @samp{.hle} -@item @samp{.rtm} @tab @samp{.adx} @tab @samp{.rdseed} @tab @samp{.prfchw} +@item @samp{.hle} @tab @samp{.rtm} @tab @samp{.tsx} +@item @samp{.adx} @tab @samp{.rdseed} @tab @samp{.prfchw} @item @samp{.smap} @tab @samp{.mpx} @tab @samp{.sha} @tab @samp{.prefetchwt1} @item @samp{.clflushopt} @tab @samp{.xsavec} @tab @samp{.xsaves} @tab @samp{.se1} @item @samp{.avx512f} @tab @samp{.avx512cd} @tab @samp{.avx512er} @tab @samp{.avx512pf} -- cgit v1.1