summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/arch/arm/v7/core.c19
-rw-r--r--src/arch/arm/v7/core.h5
-rw-r--r--src/core/processors.c2
4 files changed, 32 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2ace970..8fec1ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
16-12-29 Cyrille Bagard <nocbos@gmail.com>
+ * src/arch/arm/v7/core.c:
+ * src/arch/arm/v7/core.h:
+ * src/core/processors.c:
+ Avoid a crash by creating an empty function to dump ARMv7 stats.
+
+16-12-29 Cyrille Bagard <nocbos@gmail.com>
+
* plugins/mobicore/mclf.c:
Register portions using the new way.
diff --git a/src/arch/arm/v7/core.c b/src/arch/arm/v7/core.c
index 97fdb3d..0d1bf1c 100644
--- a/src/arch/arm/v7/core.c
+++ b/src/arch/arm/v7/core.c
@@ -52,6 +52,25 @@ bool init_armv7_core(void)
* *
* Paramètres : - *
* *
+* Description : Imprime des statistiques quant aux partages dans l'archi. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+#ifdef DEBUG_DUMP_STATS
+void dump_armv7_share_stats(void)
+{
+
+}
+#endif
+
+
+/******************************************************************************
+* *
+* Paramètres : - *
+* *
* Description : Supprime les mécanismes internes de l'architecture ARMv7. *
* *
* Retour : - *
diff --git a/src/arch/arm/v7/core.h b/src/arch/arm/v7/core.h
index ff0bcf7..fb31c3a 100644
--- a/src/arch/arm/v7/core.h
+++ b/src/arch/arm/v7/core.h
@@ -32,6 +32,11 @@
/* Met en place les mécanismes internes de l'architecture ARMv7. */
bool init_armv7_core(void);
+/* Imprime des statistiques quant aux partages dans l'archi. */
+#ifdef DEBUG_DUMP_STATS
+void dump_armv7_share_stats(void);
+#endif
+
/* Supprime les mécanismes internes de l'architecture ARMv7. */
void exit_armv7_core(void);
diff --git a/src/core/processors.c b/src/core/processors.c
index 2b1e0ca..9e835ec 100644
--- a/src/core/processors.c
+++ b/src/core/processors.c
@@ -145,7 +145,7 @@ bool load_hard_coded_processors_definitions(void)
result &= register_processor_type("armv7", "ARM v7", G_TYPE_ARMV7_PROCESSOR,
#ifdef DEBUG_DUMP_STATS
- init_armv7_core, NULL, exit_armv7_core);
+ init_armv7_core, dump_armv7_share_stats, exit_armv7_core);
#else
init_armv7_core, exit_armv7_core);
#endif