Ignore:
Timestamp:
Jul 18, 2014, 11:38:54 AM (10 years ago)
Author:
meunier
Message:
  • Added initialization to some components in order to avoid valgrind errors
  • Corrected two bugs which caused the simulations to be non-deterministic:
    • one in the memcache (possibly uninitialized paddr variable used for cache access, modifying LRU bits)
    • one in the run_simus.py script (replacing a file with an identical file in a hdd image does modify its size)
Location:
trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/include/tsar_xbar_cluster.h

    r706 r752  
    211211
    212212    ~TsarXbarCluster();
     213    void trace(sc_trace_file * tf, const std::string & name);
    213214
    214215};
  • trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp

    r706 r752  
    669669
    670670
     671template<size_t dspin_cmd_width,
     672         size_t dspin_rsp_width,
     673         typename vci_param_int,
     674         typename vci_param_ext>
     675void TsarXbarCluster<dspin_cmd_width,
     676                     dspin_rsp_width,
     677                     vci_param_int,
     678                     vci_param_ext>::trace(sc_core::sc_trace_file * tf, const std::string & name) {
     679
     680#define __trace(x) sc_core::sc_trace(tf, x, name + "_" + #x)
     681    __trace(signal_vci_l2g_d);
     682    __trace(signal_vci_g2l_d);
     683    __trace(signal_vci_tgt_memc);
     684    __trace(signal_vci_tgt_xicu);
     685    __trace(signal_vci_tgt_mdma);
     686    __trace(signal_vci_ini_mdma);
     687
     688    for (size_t p = 0; p < n_procs; p++) {
     689        std::ostringstream signame;
     690        signame << "vci_ini_proc_" << p;
     691        sc_core::sc_trace(tf, signal_vci_ini_proc[p], signame.str());
     692    }
     693    __trace(signal_vci_tgt_mtty);
     694    __trace(signal_vci_tgt_brom);
     695    __trace(signal_vci_tgt_bdev);
     696    __trace(signal_vci_tgt_fbuf);
     697    __trace(signal_vci_tgt_simh);
     698    __trace(signal_vci_ini_bdev);
     699    __trace(signal_vci_tgt_memc);
     700    __trace(signal_vci_xram);
     701#undef trace
     702
     703}                       
     704                                   
     705
     706
     707
    671708}}
    672709
     
    680717// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
    681718
    682 
    683 
Note: See TracChangeset for help on using the changeset viewer.