summaryrefslogtreecommitdiff
path: root/src/core/processors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/processors.c')
-rw-r--r--src/core/processors.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/processors.c b/src/core/processors.c
index 193cd25..6de2c09 100644
--- a/src/core/processors.c
+++ b/src/core/processors.c
@@ -30,6 +30,7 @@
#include "../arch/immediate.h"
+#include "../arch/target.h"
#include "../arch/arm/v7/core.h"
#include "../arch/arm/v7/processor.h"
#include "../arch/dalvik/core.h"
@@ -143,6 +144,7 @@ bool load_hard_coded_processors_definitions(void)
bool result; /* Bilan à retourner */
result = init_imm_operand_sharing();
+ result &= init_target_operand_sharing();
result &= register_processor_type("armv7", "ARM v7", G_TYPE_ARMV7_PROCESSOR,
#ifdef DEBUG_DUMP_STATS
@@ -195,6 +197,7 @@ void unload_processors_definitions(void)
_processors_definitions = NULL;
_processors_definitions_count = 0;
+ exit_target_operand_sharing();
exit_imm_operand_sharing();
G_UNLOCK(_pdef_access);
@@ -323,6 +326,7 @@ void display_share_stats(GArchProcessor *proc)
G_LOCK(_pdef_access);
dump_imm_operand_share_stats();
+ dump_target_operand_share_stats();
for (i = 0; i < _processors_definitions_count; i++)
if (_processors_definitions[i].instance == type)