summaryrefslogtreecommitdiff
path: root/tools/d2c/spec.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-28 19:40:19 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-28 19:40:19 (GMT)
commit0f0cb560006c0ef5eb690f89c4ce720936c9d6f6 (patch)
tree09a09248b4da91cbebae8609249d02f3fbef1ef3 /tools/d2c/spec.c
parent3e6c0fb01710f61e8dc9383de6be4db1188b3ee6 (diff)
Stored instruction hooks in the data section rather than in the heap.
Diffstat (limited to 'tools/d2c/spec.c')
-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 1d91fed..5aa7066 100644
--- a/tools/d2c/spec.c
+++ b/tools/d2c/spec.c
@@ -332,6 +332,8 @@ bool write_encoding_spec_disass(const encoding_spec *spec, int fd, const char *a
dprintf(fd, "\n");
+ result &= declare_hook_functions(spec->hooks, false, fd);
+
/* Vérification que le décodage est possible */
result &= check_bits_correctness(spec->bits, fd);
@@ -457,6 +459,8 @@ bool write_encoding_spec_format_disass(const encoding_spec *spec, int fd, const
dprintf(fd, "\n");
+ result &= declare_hook_functions(spec->hooks, true, fd);
+
/* Création de l'instruction en elle-même */
new_ins = get_new_keyword_from_syntax_items(spec->syntax);