source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/src/Update_Prediction_Table_statistics_deallocation.cpp

Last change on this file was 128, checked in by rosiere, 15 years ago

1) Correct bug in link two signal
2) Fix error detected with valgrind
3) modif distexe script

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id: Update_Prediction_Table_statistics_deallocation.cpp 128 2009-06-26 08:43:23Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/include/Update_Prediction_Table.h"
10#include "Behavioural/include/Allocation.h"
11
12namespace morpheo {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace prediction_unit {
18namespace update_prediction_table {
19
20
21#undef  FUNCTION
22#define FUNCTION "Update_Prediction_Table::statistics_deallocation"
23  void Update_Prediction_Table::statistics_deallocation (void)
24  {
25    log_printf(FUNC,Update_Prediction_Table,FUNCTION,"Begin");
26
27    log_printf(INFO,Update_Prediction_Table,FUNCTION,"Generate Statistics file");
28   
29    delete    _stat;
30
31    DELETE2(_stat_nb_branch_hit              ,_param->_nb_context,MAX_BRANCH_CONDITION);
32    DELETE2(_stat_nb_branch_miss             ,_param->_nb_context,MAX_BRANCH_CONDITION);
33    DELETE1(_stat_nb_branch_unused           ,_param->_nb_context);
34
35    DELETE1(_stat_nb_branch_ifetch_prediction,_param->_nb_context);
36    DELETE1(_stat_nb_branch_accurate         ,_param->_nb_context);
37
38    DELETE1(_stat_ufpt_queue_nb_elt          ,_param->_nb_context);
39    DELETE1(_stat_upt_queue_nb_elt           ,_param->_nb_context);
40   
41    log_printf(FUNC,Update_Prediction_Table,FUNCTION,"End");
42  };
43
44}; // end namespace update_prediction_table
45}; // end namespace prediction_unit
46}; // end namespace front_end
47}; // end namespace multi_front_end
48}; // end namespace core
49
50}; // end namespace behavioural
51}; // end namespace morpheo             
52#endif
Note: See TracBrowser for help on using the repository browser.