Home
last modified time | relevance | path

Searched refs:m_mru_idx (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/opencsd/decoder/source/mem_acc/
H A Dtrc_mem_acc_cache.cpp43 #define INC_HITS_RL(idx) m_hits++; m_hit_rl[m_mru_idx]++;
52 #define INC_RL(idx) m_hit_rl[m_mru_idx]++;
78 … memcpy(byteBuffer, &m_mru[m_mru_idx].data[address - m_mru[m_mru_idx].st_addr], reqBytes); in readBytesFromCache()
80 …oss << "TrcMemAccCache:: hit [page: " << std::dec << m_mru_idx << "[addr:0x" << std::hex << addres… in readBytesFromCache()
83 INC_HITS_RL(m_mru_idx); in readBytesFromCache()
93 m_mru_idx = m_mru_next_new; in readBytesFromCache()
94 …m_mru[m_mru_idx].valid_len = p_accessor->readBytes(address, mem_space, trcID, MEM_ACC_CACHE_PAGE_S… in readBytesFromCache()
97 if (m_mru[m_mru_idx].valid_len > MEM_ACC_CACHE_PAGE_SIZE) in readBytesFromCache()
99 m_mru[m_mru_idx].valid_len = 0; // set to nothing returned. in readBytesFromCache()
103 if (m_mru[m_mru_idx].valid_len > 0) in readBytesFromCache()
[all …]
/freebsd/contrib/opencsd/decoder/include/mem_acc/
H A Dtrc_mem_acc_cache.h85 int m_mru_idx = 0; // in use index variable
115 if ((m_mru[m_mru_idx].st_addr <= address) && in blockInPage()
116 m_mru[m_mru_idx].st_addr + m_mru[m_mru_idx].valid_len >= (address + reqBytes)) in blockInPage()
129 m_mru_idx++; in blockInCache()
130 if (m_mru_idx == MEM_ACC_CACHE_MRU_SIZE) in blockInCache()
131 m_mru_idx = 0; in blockInCache()
143 m_mru_idx = 0; in invalidateAll()