Ignore:
Timestamp:
Jul 15, 2009, 10:41:01 AM (15 years ago)
Author:
rosiere
Message:

1) valgrind fix
2) debug file on/off

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src/Commit_unit_allocation.cpp

    r127 r134  
    358358
    359359#if defined(DEBUG) and defined(DEBUG_Commit_unit) and (DEBUG_Commit_unit == true)
    360     directory_init ();
    361 
    362     instruction_log_file = new std::ofstream [_param->_nb_thread];
    363     for (uint32_t i=0; i<_param->_nb_thread; ++i)
    364       if (_param->_have_thread [i])
    365         {
    366          
    367           std::string filename = morpheo::filename(MORPHEO_LOG,
    368                                                    "Instruction_flow-thread_"+toString(i),
    369                                                    "",
    370                                                    "log",
    371                                                    _simulation_file_with_date,
    372                                                    _simulation_file_with_pid ,
    373                                                    true);
    374          
    375           instruction_log_file [i].open(filename.c_str() ,std::ios::out | std::ios::trunc);
    376         }
     360    if (log_file_generate)
     361      {
     362        directory_init ();
     363       
     364        instruction_log_file = new std::ofstream [_param->_nb_thread];
     365        for (uint32_t i=0; i<_param->_nb_thread; ++i)
     366          if (_param->_have_thread [i])
     367            {
     368             
     369              std::string filename = morpheo::filename(MORPHEO_LOG,
     370                                                       "Instruction_flow-thread_"+toString(i),
     371                                                       "",
     372                                                       "log",
     373                                                       _simulation_file_with_date,
     374                                                       _simulation_file_with_pid ,
     375                                                       true);
     376             
     377              instruction_log_file [i].open(filename.c_str() ,std::ios::out | std::ios::trunc);
     378            }
     379      }
    377380#endif
    378381
Note: See TracChangeset for help on using the changeset viewer.