summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-03-31 08:18:58 +0200
committerJan Beulich <jbeulich@suse.com>2023-03-31 08:18:58 +0200
commitedd67638687a06788c8c69c75e139bca8f94f1a3 (patch)
tree2a61dec9a6dc6e5926ccbdbf90224b64f2f8b7c7 /opcodes
parentaf9eb2ee1b10caa89e1c603cd484bc025e71f4fd (diff)
downloadbinutils-gdb-edd67638687a06788c8c69c75e139bca8f94f1a3.tar.gz
x86: introduce .insn directive
For starters this deals with only very basic constructs.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/i386-gen.c3
-rw-r--r--opcodes/i386-mnem.h1
-rw-r--r--opcodes/i386-tbl.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 76ccd32a97b..489ae3429c9 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -1814,6 +1814,9 @@ process_i386_opcodes (FILE *table)
l = l1;
}
+ fprintf (table, " \"\\0\"\".insn\"\n");
+ fprintf (fp, "#define MN__insn %#x\n", offs + 1);
+
fprintf (table, ";\n");
fclose (fp);
diff --git a/opcodes/i386-mnem.h b/opcodes/i386-mnem.h
index 4ca786a1957..3e0af793fa8 100644
--- a/opcodes/i386-mnem.h
+++ b/opcodes/i386-mnem.h
@@ -2339,3 +2339,4 @@ extern const char i386_mnemonics[];
#define MN__rex_ 0x469c
#define MN__evex_ 0x46a2
#define MN__vex_ 0x46a9
+#define MN__insn 0x46af
diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h
index bc830af8640..ed7c43c8e4d 100644
--- a/opcodes/i386-tbl.h
+++ b/opcodes/i386-tbl.h
@@ -60199,6 +60199,7 @@ const char i386_mnemonics[] =
"\0""{rex}"
"\0""{evex}"
"\0""{vex}"
+ "\0"".insn"
;
/* i386 register table. */