- Timestamp:
- Sep 16, 2013, 4:57:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RWT/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r525 r526 2987 2987 // erase any possible new reservation when we release the lock on the 2988 2988 // directory 2989 m_llsc_table.sw(m_nline[(addr_t)r_write_address.read()],r_write_word_index.read(),r_write_word_index.read()+r_write_word_count.read()); 2990 2991 //m_llsc_table.sw(r_write_address.read()); 2989 #define L2 soclib::common::uint32_log2 2990 addr_t min = r_write_address.read(); 2991 addr_t max = r_write_address.read() + 2992 ((r_write_word_count.read()-1) << L2(vci_param_int::B)); 2993 #undef L2 2994 m_llsc_table.sw(min, max); 2992 2995 2993 2996 r_write_fsm = WRITE_DIR_LOCK; … … 4677 4680 if (!r_xram_rsp_victim_coherent.read()) 4678 4681 { 4679 //m_llsc_table.sw(r_xram_rsp_victim_nline.read()*m_words*4); 4680 m_llsc_table.sw(r_xram_rsp_victim_nline.read(), 0, m_words - 1); 4682 addr_t min = r_xram_rsp_victim_nline.read()*m_words*4 ; 4683 addr_t max = r_xram_rsp_victim_nline.read()*m_words*4 + (m_words - 1)*4; 4684 m_llsc_table.sw(min, max); 4681 4685 } 4682 4686 #if DEBUG_MEMC_XRAM_RSP … … 5318 5322 m_cache_data.write(way, set, word, r_cleanup_data[word].read(), 0xF); 5319 5323 } 5320 m_llsc_table.sw(r_cleanup_nline.read(), 0 , m_words - 1); 5321 //m_llsc_table.sw(r_cleanup_nline.read()*m_words*4); 5324 addr_t min = r_cleanup_nline.read()*m_words*4 ; 5325 addr_t max = r_cleanup_nline.read()*m_words*4 + (m_words - 1)*4; 5326 m_llsc_table.sw(min, max); 5322 5327 } 5323 5328 … … 6151 6156 << " | @ " << std::hex << m_cmd_cas_addr_fifo.read() 6152 6157 << " | WRITE (cas triggered)" << std::endl;*/ 6153 m_llsc_table.sw(m_nline[(addr_t)m_cmd_cas_addr_fifo.read()],m_x[(addr_t)(m_cmd_cas_addr_fifo.read())],m_x[(addr_t)(m_cmd_cas_addr_fifo.read())]); 6154 6158 6159 m_llsc_table.sw(m_cmd_cas_addr_fifo.read(), m_cmd_cas_addr_fifo.read()); 6155 6160 // test coherence request 6156 6161 if(r_cas_count.read()) // replicated line
Note: See TracChangeset
for help on using the changeset viewer.