summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-05-21 16:48:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-05-21 16:48:11 (GMT)
commitacd355c4c5ae25fb9cac64b8dc17407a2bcc979b (patch)
treed5b43201049116cd9734ff554e61ed8a7e0084cc /src/core
parent4691a434a34a19317156a761967f719e408b73bb (diff)
Refined the whole share system for operands.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/processors.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/processors.c b/src/core/processors.c
index 6de2c09..d968d4f 100644
--- a/src/core/processors.c
+++ b/src/core/processors.c
@@ -31,6 +31,7 @@
#include "../arch/immediate.h"
#include "../arch/target.h"
+#include "../arch/register.h"
#include "../arch/arm/v7/core.h"
#include "../arch/arm/v7/processor.h"
#include "../arch/dalvik/core.h"
@@ -145,6 +146,7 @@ bool load_hard_coded_processors_definitions(void)
result = init_imm_operand_sharing();
result &= init_target_operand_sharing();
+ result &= init_register_operand_sharing();
result &= register_processor_type("armv7", "ARM v7", G_TYPE_ARMV7_PROCESSOR,
#ifdef DEBUG_DUMP_STATS
@@ -197,6 +199,7 @@ void unload_processors_definitions(void)
_processors_definitions = NULL;
_processors_definitions_count = 0;
+ exit_register_operand_sharing();
exit_target_operand_sharing();
exit_imm_operand_sharing();