[binutils-gdb] x86/APX: GETSEC cannot be used with REX2

Jan Beulich jbeulich@sourceware.org
Fri Jan 31 09:08:53 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b2d844097b9730bf2c455021baccfddd72469aac

commit b2d844097b9730bf2c455021baccfddd72469aac
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Jan 31 10:07:32 2025 +0100

    x86/APX: GETSEC cannot be used with REX2
    
    It lives in a "forbidden" row, yet its disassembler table entry was
    lacking a respective marker.

Diff:
---
 opcodes/i386-dis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 9e5747c1e34..cc5448b2784 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -2307,7 +2307,7 @@ static const struct dis386 dis386_twobyte[] = {
   { "sysenter",		{ SEP }, PREFIX_REX2_ILLEGAL },
   { "sysexit%LQ",	{ SEP }, PREFIX_REX2_ILLEGAL },
   { Bad_Opcode },
-  { "getsec",		{ XX }, 0 },
+  { "getsec",		{ XX }, PREFIX_REX2_ILLEGAL },
   /* 38 */
   { THREE_BYTE_TABLE (THREE_BYTE_0F38) },
   { Bad_Opcode },


More information about the Binutils-cvs mailing list