예제 #1
0
void addCache( unsigned int tid, CONTEXT* ctxt, int flags, void* v )
{
    if( tid >= caches.size() )
    {
        caches.resize( tid + 1, nullptr );
    }
    caches[tid] = new Cache( CACHE_SIZE,
                             CACHE_LINE_SIZE,
                             CACHE_ASSOCIATIVITY,
                             &directorySet );
    //cout << "Cache " << tid << " = " << hex << caches[tid] << endl;
}