diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-29 10:36:32 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-29 10:36:32 (GMT) |
commit | 2a6e943002b4e3f1e147847c554e1b1a5d173b0f (patch) | |
tree | d43ae61793f91296aaa1ba854f788a817e81ced2 /src | |
parent | 9f9041e11efa71cb043425cd5e89daea0247e76c (diff) |
Avoided a crash by creating an empty function to dump ARMv7 stats.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/arm/v7/core.c | 19 | ||||
-rw-r--r-- | src/arch/arm/v7/core.h | 5 | ||||
-rw-r--r-- | src/core/processors.c | 2 |
3 files changed, 25 insertions, 1 deletions
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 |