Ignore:
Timestamp:
May 16, 2009, 4:42:39 PM (15 years ago)
Author:
rosiere
Message:

1) Platforms : add new organization for test
2) Load_Store_Unit : add array to count nb_check in store_queue
3) Issue_queue and Core_Glue : rewrite the issue network
4) Special_Register_Unit : add reset value to register CID
5) Softwares : add multicontext test
6) Softwares : add SPECINT
7) Softwares : add MiBench?
7) Read_queue : inhib access for r0
8) Change Core_Glue (network) - dont yet support priority and load balancing scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Common/src/MemCheck.cpp

    r115 r117  
    1414
    1515// Global flags set by macros in MemCheck.h
    16 bool traceFlag  = true;
     16bool traceFlag  = false;
    1717bool activeFlag = false;
    1818
     
    137137void operator delete(void* p)
    138138{
    139   memMap_it it = findPtr(p);
     139  bool can_free = true;
    140140 
    141   if (it != memMap.end())
     141  if (activeFlag)
    142142    {
     143      memMap_it it = findPtr(p);
     144     
     145      if (it != memMap.end())
     146        {
     147          // this pointer is previously allocated
     148          delPtr(p);
     149         
     150        }
     151      else
     152        {
     153          // this pointer is not previously allocated
     154
     155          can_free = false;
     156          msgError("Attempt to delete unknown pointer: %p\n", p);
     157        }
     158    }
     159
     160 
     161  if (can_free)
     162    {
     163      if(traceFlag)
     164        msgInformation("Deleted memory at address %p\n", p);
     165     
    143166      free(p);
    144       delPtr(p);
    145 
    146       if(traceFlag)
    147         msgInformation("Deleted memory at address %p\n", p);
    148167    }
    149   else
    150     if(!p && activeFlag)
    151       msgError("Attempt to delete unknown pointer: %p\n", p);
    152168}
    153169
Note: See TracChangeset for help on using the changeset viewer.