Ignore:
Timestamp:
Sep 3, 2013, 1:51:37 PM (11 years ago)
Author:
meunier
Message:

Tried to supress a few errors from valgrind; added corresponding delete and free in destructors (tsar_generic_xbar/top.cpp, tsar_xbar_cluster, vci_mem_cache)

Location:
trunk/platforms/tsar_generic_xbar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_xbar/top.cpp

    r508 r512  
    951951
    952952   
     953   // Free memory
    953954   for (size_t i = 0; i  < (XMAX * YMAX); i++)
    954955   {
     
    957958      delete clusters[x][y];
    958959   }
     960
     961   dealloc_elems<DspinSignals<dspin_cmd_width> >(signal_dspin_h_cmd_inc, XMAX - 1, YMAX, 3);
     962   dealloc_elems<DspinSignals<dspin_cmd_width> >(signal_dspin_h_cmd_dec, XMAX - 1, YMAX, 3);
     963   dealloc_elems<DspinSignals<dspin_rsp_width> >(signal_dspin_h_rsp_inc, XMAX - 1, YMAX, 2);
     964   dealloc_elems<DspinSignals<dspin_rsp_width> >(signal_dspin_h_rsp_dec, XMAX - 1, YMAX, 2);
     965   dealloc_elems<DspinSignals<dspin_cmd_width> >(signal_dspin_v_cmd_inc, XMAX, YMAX - 1, 3);
     966   dealloc_elems<DspinSignals<dspin_cmd_width> >(signal_dspin_v_cmd_dec, XMAX, YMAX - 1, 3);
     967   dealloc_elems<DspinSignals<dspin_rsp_width> >(signal_dspin_v_rsp_inc, XMAX, YMAX - 1, 2);
     968   dealloc_elems<DspinSignals<dspin_rsp_width> >(signal_dspin_v_rsp_dec, XMAX, YMAX - 1, 2);
     969   dealloc_elems<DspinSignals<dspin_cmd_width> >(signal_dspin_false_cmd_in, XMAX, YMAX, 4, 3);
     970   dealloc_elems<DspinSignals<dspin_cmd_width> >(signal_dspin_false_cmd_out, XMAX, YMAX, 4, 3);
     971   dealloc_elems<DspinSignals<dspin_rsp_width> >(signal_dspin_false_rsp_in, XMAX, YMAX, 4, 2);
     972   dealloc_elems<DspinSignals<dspin_rsp_width> >(signal_dspin_false_rsp_out, XMAX, YMAX, 4, 2);
    959973
    960974   return EXIT_SUCCESS;
  • trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp

    r508 r512  
    789789                                                 vci_param_ext>::~TsarXbarCluster() {
    790790
     791    dealloc_elems<DspinInput<dspin_cmd_width> > (p_cmd_in, 4, 3);
     792    dealloc_elems<DspinOutput<dspin_cmd_width> >(p_cmd_out, 4, 3);
     793    dealloc_elems<DspinInput<dspin_rsp_width> > (p_rsp_in, 4, 2);
     794    dealloc_elems<DspinOutput<dspin_rsp_width> >(p_rsp_out, 4, 2);
     795
    791796    for (size_t p = 0; p < n_procs; p++)
    792797    {
Note: See TracChangeset for help on using the changeset viewer.