diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2015-12-15 22:08:44 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2015-12-15 22:08:44 (GMT) | 
| commit | 4d313d845a60e908b9e2723cc1fe2bdbbdded315 (patch) | |
| tree | 96b3c599e250b987e284e4bfcf33a7ae201cf637 /tools/d2c/spec.c | |
| parent | a847082da67c5af831d1f4b66a628de2e9d61395 (diff) | |
Stored and provided the encoding used by an instruction.
Diffstat (limited to 'tools/d2c/spec.c')
| -rw-r--r-- | tools/d2c/spec.c | 4 | 
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");  | 
