source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/src/Meta_Predictor_statistics_allocation.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.2 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id: Meta_Predictor_statistics_allocation.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/Direction/Meta_Predictor/include/Meta_Predictor.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace prediction_unit {
17namespace direction {
18namespace meta_predictor {
19
20
21#undef  FUNCTION
22#define FUNCTION "Meta_Predictor::statistics_allocation"
23  void Meta_Predictor::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics)
24  {
25    log_begin(Meta_Predictor,FUNCTION);
26
27    _stat = new Stat (static_cast<std::string>(_name),
28                      "Meta_Predictor",
29                      param_statistics);
30
31    for (uint32_t i=0; i<_param->_nb_predictor; ++i)
32    _stat->add_stat(_component_two_level_branch_predictor [i]->_stat);
33    _stat->add_stat(_component_glue                          ->_stat);
34   
35    log_end(Meta_Predictor,FUNCTION);
36  };
37
38}; // end namespace meta_predictor
39}; // end namespace direction
40}; // end namespace prediction_unit
41}; // end namespace front_end
42}; // end namespace multi_front_end
43}; // end namespace core
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
47#endif
Note: See TracBrowser for help on using the repository browser.