Ignore:
Timestamp:
May 12, 2010, 7:34:01 PM (14 years ago)
Author:
rosiere
Message:

1) add counters_t type for interface
2) fix in check load in load_store_unit
3) add parameters (but not yet implemented)
4) change environment and add script (distcc_env.sh ...)
5) add warning if an unser change rename flag with l.mtspr instruction
6) ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat.cpp

    r124 r138  
    1414    _save_periodic         (_period>0)
    1515  {
     16    _generate_file = true;
     17
    1618    _list_operand  = new std::map<std::string, var_t>;
    1719    _list_expr     = new std::list<expr_t>;
    1820    _list_stat     = new std::list<Stat *>;
     21    _list_counters = new std::list<counters_t *>;
    1922
    2023    _cycle         = create_variable("cycle");
    2124//  _cycle         = create_counter("cycle","","");
    2225    *_cycle        = 0; // for the first period
    23 
    24     _generate_file = true;
    2526  }
    2627
     
    3536    _save_periodic         (period>0)
    3637  {
     38    _generate_file = true;
     39
    3740    _list_operand  = new std::map<std::string, var_t>;
    3841    _list_expr     = new std::list<expr_t>;
    3942    _list_stat     = new std::list<Stat *>;
     43    _list_counters = new std::list<counters_t *>;
    4044
    4145    _cycle         = create_variable("cycle");
    4246//  _cycle         = create_counter("cycle","","");
    4347    *_cycle        = 0; // for the first period
    44 
    45     _generate_file = true;
    4648  }
    4749
     
    6870      }
    6971    delete _list_expr;
     72
     73    // parcourir la liste et desallouer les arbres
     74    for (std::list<counters_t*>::iterator i=_list_counters->begin();
     75         i!= _list_counters->end();
     76         ++i)
     77      {
     78        delete *i;
     79      }
     80    delete _list_counters;
     81
    7082    delete _list_stat;
    7183  }
Note: See TracChangeset for help on using the changeset viewer.