Ignore:
Timestamp:
Mar 28, 2011, 6:46:33 PM (14 years ago)
Author:
kane
Message:

fix bug in ccxcachev4, save cpu_info in memcachev4

Location:
trunk/modules/vci_mem_cache_v4/caba/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_mem_cache_v4/caba/source/include/mem_cache_directory_v4.h

    r142 r143  
    77#include "arithmetics.h"
    88
    9 #define L1_MULTI_CACHE      1
     9#define L1_MULTI_CACHE 1
    1010//#define RANDOM_EVICTION
    1111
  • trunk/modules/vci_mem_cache_v4/caba/source/src/vci_mem_cache_v4.cpp

    r141 r143  
    2929#include "../include/vci_mem_cache_v4.h"
    3030
    31 // #define TDEBUG // Transaction tab debug
    32 // #define IDEBUG // Update tab debug
    33 // #define DDEBUG // Directory debug
    34 // #define LOCK_DEBUG // Lock debug
    35 
    3631#define DEBUG_VCI_MEM_CACHE 0
    37 #define DEBUG_START_CYCLE   949900
     32#define DEBUG_START_CYCLE   1500
    3833#define RANDOMIZE_SC
    3934
    4035#define ASSERT_VERBOSE
    4136#define ASSERT_NCYCLES m_cpt_cycles
     37
     38#if DEBUG_VCI_MEM_CACHE
     39#define TDEBUG // Transaction tab debug
     40#define IDEBUG // Update tab debug
     41#define DDEBUG // Directory debug
     42#define LOCK_DEBUG // Lock debug
     43#endif
     44
    4245
    4346#include "debug.h"
     
    26602663            bool match_heap         = match_heap_srcid and match_heap_cache_id and match_heap_inst;
    26612664
     2665            PRINTF("  * <MEM_CACHE.CLEANUP> %s - srcid %d\n",name().c_str(),r_cleanup_srcid.read());
     2666           
    26622667#if L1_MULTI_CACHE
    26632668            PRINTF("  * <MEM_CACHE.CLEANUP> match_dir  %d (match_dir_srcid  %d, match_dir_cache_id  %d, match_dir_inst  %d)\n",
     
    26832688            if(match_dir){
    26842689              DirectoryEntry dir_entry;
    2685               dir_entry.valid          = true;
     2690              dir_entry.valid            = true;
    26862691              dir_entry.is_cnt         = r_cleanup_is_cnt.read();
    2687               dir_entry.dirty          = r_cleanup_dirty.read();
     2692              dir_entry.dirty            = r_cleanup_dirty.read();
    26882693              dir_entry.tag                = r_cleanup_tag.read();
    2689               dir_entry.lock           = r_cleanup_lock.read();
     2694              dir_entry.lock             = r_cleanup_lock.read();
    26902695              dir_entry.ptr            = heap_entry.next;
    26912696              dir_entry.count          = r_cleanup_count.read()-1;
Note: See TracChangeset for help on using the changeset viewer.