summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-12-15 22:08:44 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-12-15 22:08:44 (GMT)
commit4d313d845a60e908b9e2723cc1fe2bdbbdded315 (patch)
tree96b3c599e250b987e284e4bfcf33a7ae201cf637 /tools
parenta847082da67c5af831d1f4b66a628de2e9d61395 (diff)
Stored and provided the encoding used by an instruction.
Diffstat (limited to 'tools')
-rw-r--r--tools/d2c/spec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/d2c/spec.c b/tools/d2c/spec.c
index cf1a066..30a412a 100644
--- a/tools/d2c/spec.c
+++ b/tools/d2c/spec.c
@@ -345,6 +345,10 @@ bool write_encoding_spec_disass(const encoding_spec *spec, int fd, const char *a
dprintf(fd, "\n");
}
+ dprintf(fd, "\t\tg_arch_instruction_set_encoding(instr, \"%s\");\n", spec->prefix);
+
+ dprintf(fd, "\n");
+
dprintf(fd, "\t\treturn instr;\n");
dprintf(fd, "\n");