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/Data_read.cpp

    r81 r134  
    66  bool Data::read (uint32_t address, uint32_t size, char * & data_dest)
    77  {
     8//     for (uint32_t i=0; i<size; ++i)
     9//       data_dest[i] = '\0';
     10   
    811    uint32_t num_seg = 0;
    9     bool     res     = false;
    10 
     12   
    1113    // Scan all segment
    12     for (num_seg = 0; num_seg < nb_seg; num_seg ++)
     14    for (; num_seg < nb_seg; num_seg ++)
    1315      if (segment[num_seg]->test (address,size) == true)
    1416        {
    1517          segment[num_seg]->read (address,size,data_dest);
    16           res = true;
    1718          break;
    1819        }
    1920   
    20     return res;
     21    return (num_seg < nb_seg);
    2122  }
    2223
Note: See TracChangeset for help on using the changeset viewer.