Changeset 514


Ignore:
Timestamp:
Sep 4, 2013, 11:58:38 AM (9 years ago)
Author:
meunier
Message:

More memory cleaning for valgrind (generic_llsc_global_table, vci_block_device_tsar)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/generic_llsc_global_table/include/generic_llsc_global_table.h

    r512 r514  
    319319    {
    320320        // making all slots available by reseting all valid bits
    321         std::memset(r_val,  0, sizeof((*r_val) * nb_slots));
    322         std::memset(r_addr, 0, sizeof((*r_addr) * nb_slots));
    323         std::memset(r_key,  0, sizeof((*r_key) * nb_slots));
     321        std::memset(r_val,  0, sizeof(*r_val) * nb_slots);
     322        std::memset(r_addr, 0, sizeof(*r_addr) * nb_slots);
     323        std::memset(r_key,  0, sizeof(*r_key) * nb_slots);
    324324
    325325        // init registers
  • trunk/modules/vci_block_device_tsar/caba/source/include/vci_block_device_tsar.h

    r409 r514  
    231231        const uint32_t                      burst_size = 64,
    232232        const uint32_t                      latency = 0);
     233
     234    ~VciBlockDeviceTsar();
     235
    233236};
    234237
  • trunk/modules/vci_block_device_tsar/caba/source/src/vci_block_device_tsar.cpp

    r500 r514  
    501501        p_vci_target.cmdack = true;
    502502        p_vci_target.rspval = false;
     503        p_vci_target.rdata  = 0;
    503504        break;
    504505    case T_READ_STATUS:
     
    753754} // end constructor
    754755
     756tmpl(/**/)::~VciBlockDeviceTsar()
     757{
     758    delete [] r_local_buffer;
     759}
     760
     761
    755762//////////////////////////
    756763tmpl(void)::print_trace()
Note: See TracChangeset for help on using the changeset viewer.