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_transition.cpp

    r128 r134  
    831831
    832832#if defined(DEBUG) and defined(DEBUG_Commit_unit) and (DEBUG_Commit_unit == true)
    833                     {
    834                       // log file
    835                       instruction_log_file [num_thread]
    836                         << "[" << simulation_cycle() << "] "
    837                         << std::hex
    838                         << (entry->address<<2) << " (" << (entry->address) << ") "
    839                         << std::dec
    840                         << "[" << entry->cycle_rob_in << ", " << entry->cycle_commit << "] "
    841                         << "{" << ((retire_ok)?"OK":"KO") << "} ";
    842                      
    843                       if ((type == TYPE_MEMORY) and  is_operation_memory_load(entry->operation))
    844                         instruction_log_file [num_thread] << std::hex << entry->load_data << std::dec;
    845                      
    846                       instruction_log_file [num_thread] << std::endl;
    847                     }
     833                    if (log_file_generate)
     834                      {
     835                        // log file
     836                        instruction_log_file [num_thread]
     837                          << "[" << simulation_cycle() << "] "
     838                          << std::hex
     839                          << (entry->address<<2) << " (" << (entry->address) << ") "
     840                          << std::dec
     841                          << "[" << entry->cycle_rob_in << ", " << entry->cycle_commit << "] "
     842                          << "{" << ((retire_ok)?"OK":"KO") << "} ";
     843                       
     844                        if ((type == TYPE_MEMORY) and  is_operation_memory_load(entry->operation))
     845                          instruction_log_file [num_thread] << std::hex << entry->load_data << std::dec;
     846                       
     847                        instruction_log_file [num_thread] << std::endl;
     848                      }
    848849#endif     
    849850
Note: See TracChangeset for help on using the changeset viewer.