x86/thunk: Don't opencode TSX instructions in clear_bhb_tsx()

The new toolchain baseline understands the RTM instructions.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2025-05-02 14:12:10 +01:00
1 parent b458596ac3
commit 3f182352c5
1 file changed
+2 -2
+2 -2
View File
@@ -19,8 +19,8 @@
* disabled for e.g. TAA mitigation reasons.
*/
FUNC(clear_bhb_tsx)
.byte 0xc7, 0xf8; .long 1f - 0f /* xbegin 1f */
0: .byte 0xc6, 0xf8, 0 /* xabort $0 */
xbegin 1f
xabort $0
int3
1:
ret
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.