]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: PadLock adjustments
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Oct 2025 07:26:24 +0000 (09:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Oct 2025 07:26:24 +0000 (09:26 +0200)
commit5690a49ac7919e50b65db5bb29d8c1715ce4cec6
treee7c5bb35807b5c1d0c1940fb8524f4f5c7f76ea5
parentd4c517eec101a1b0375430b695cb79551b823666
x86: PadLock adjustments

For one, all PadLock insns depend on CR4.FXSR to be enabled, which means
they ought to be taking FXSR as a prereq.

Furthermore none of them permits a REPNE prefix; such forms are documented
to cause #UD. (This is mainly relevant for XSTORE, which doesn't include a
REP prefix in its base encoding. For the others this merely is a change in
what diagnostic is issued.)

Finally it is documented that an operand size prefix also causes #UD.
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/padlock-bad.l [new file with mode: 0644]
gas/testsuite/gas/i386/padlock-bad.s [new file with mode: 0644]
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h