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/Environment/Data/src/Segment.cpp

    r81 r134  
    44namespace data {
    55 
    6   Segment::Segment (void)
    7   {
    8     name     = "";
    9     base     = 0;
    10     size     = 0;
    11     uncached = false;
    12     data     = NULL;
    13     type     = TYPE_TARGET_MEMORY;
    14     index    = 0;
    15   }
     6//   Segment::Segment (void)
     7//   {
     8//     name     = "";
     9//     base     = 0;
     10//     size     = 0;
     11//     uncached = false;
     12//     data     = NULL;
     13//     type     = TYPE_TARGET_MEMORY;
     14//     index    = 0;
     15//   }
    1616
    1717  Segment::Segment (SEGMENT_TABLE_ENTRY * segment)
     
    2525    type     = TYPE_TARGET_MEMORY;
    2626    index    = 0;
     27    memset((void*)data,0,size * sizeof(char));
    2728  }
    2829
Note: See TracChangeset for help on using the changeset viewer.