Ignore:
Timestamp:
Jul 18, 2014, 11:38:54 AM (10 years ago)
Author:
meunier
Message:
  • Added initialization to some components in order to avoid valgrind errors
  • Corrected two bugs which caused the simulations to be non-deterministic:
    • one in the memcache (possibly uninitialized paddr variable used for cache access, modifying LRU bits)
    • one in the run_simus.py script (replacing a file with an identical file in a hdd image does modify its size)
Location:
trunk/modules/vci_mem_cache/caba/source/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_mem_cache/caba/source/include/mem_cache_directory.h

    r499 r752  
    650650              {
    651651                  m_cache_data[i][j] = new uint32_t [words];
     652                  // Init to avoid potential errors from memory checkers
     653                  std::memset(m_cache_data[i][j], 0, sizeof(uint32_t) * words);
    652654              }
    653655          }
  • trunk/modules/vci_mem_cache/caba/source/include/vci_mem_cache.h

    r722 r752  
    404404
    405405      // instrumentation counters
    406       uint32_t     m_cpt_cycles;         // Counter of cycles
    407       uint32_t     m_cpt_reset_count;    // Cycle at which the counters were last reset
     406      uint64_t     m_cpt_cycles;         // Counter of cycles
     407      uint64_t     m_cpt_reset_count;    // Cycle at which the counters were last reset
    408408
    409409      // Counters accessible in software (not yet but eventually)
Note: See TracChangeset for help on using the changeset viewer.