Changeset 836 for trunk/modules/vci_cc_vcache_wrapper
- Timestamp:
- Oct 15, 2014, 11:41:49 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_cc_vcache_wrapper/caba/source/src/vci_cc_vcache_wrapper.cpp
r816 r836 1387 1387 int state; 1388 1388 paddr_t tag; 1389 size_t way = r_icache_flush_count.read() /m_icache_sets;1390 size_t set = r_icache_flush_count.read() %m_icache_sets;1389 size_t way = r_icache_flush_count.read() / m_icache_sets; 1390 size_t set = r_icache_flush_count.read() % m_icache_sets; 1391 1391 1392 1392 #ifdef INSTRUMENTATION … … 2438 2438 if (m_dreq.type == iss_t::XTN_READ) 2439 2439 { 2440 int xtn_opcode = (int) m_dreq.addr / 4;2440 int xtn_opcode = (int) m_dreq.addr / 4; 2441 2441 2442 2442 // checking processor mode: … … 2972 2972 2973 2973 // itlb miss request 2974 else if (r_icache_tlb_miss_req.read() and not wbuf_write_miss 2974 else if (r_icache_tlb_miss_req.read() and not wbuf_write_miss) 2975 2975 { 2976 2976 r_dcache_tlb_ins = true; … … 3111 3111 3112 3112 } 3113 else if (entry & PTE_T_MASK 3113 else if (entry & PTE_T_MASK) // PTD : me must access PT2 3114 3114 { 3115 3115 // mark the cache line ac containing a PTD … … 3847 3847 int state; 3848 3848 paddr_t tag; 3849 size_t way = r_dcache_flush_count.read() /m_dcache_sets;3850 size_t set = r_dcache_flush_count.read() %m_dcache_sets;3849 size_t way = r_dcache_flush_count.read() / m_dcache_sets; 3850 size_t set = r_dcache_flush_count.read() % m_dcache_sets; 3851 3851 3852 3852 #ifdef INSTRUMENTATION … … 4460 4460 r_dcache_contains_ptd[way * m_dcache_sets + set] = false; 4461 4461 } 4462 if (r_dcache_miss_type.read() ==PTE1_MISS) r_dcache_fsm = DCACHE_TLB_PTE1_GET;4463 else if (r_dcache_miss_type.read() ==PTE2_MISS) r_dcache_fsm = DCACHE_TLB_PTE2_GET;4464 else r_dcache_fsm = DCACHE_IDLE;4462 if (r_dcache_miss_type.read() == PTE1_MISS) r_dcache_fsm = DCACHE_TLB_PTE1_GET; 4463 else if (r_dcache_miss_type.read() == PTE2_MISS) r_dcache_fsm = DCACHE_TLB_PTE2_GET; 4464 else r_dcache_fsm = DCACHE_IDLE; 4465 4465 } 4466 4466 break; … … 4760 4760 } 4761 4761 4762 assert ( not r_dcache_cc_send_req.read() and4763 "CC_SEND must be available in DCACHE_CC_CHECK" 4762 assert(not r_dcache_cc_send_req.read() and 4763 "CC_SEND must be available in DCACHE_CC_CHECK"); 4764 4764 4765 4765 // Match between MISS address and CC address … … 6021 6021 p_vci.trdid = 0; 6022 6022 p_vci.pktid = TYPE_READ_INS_MISS; 6023 p_vci.plen = m_icache_words <<2;6023 p_vci.plen = m_icache_words << 2; 6024 6024 p_vci.cmd = vci_param::CMD_READ; 6025 6025 p_vci.eop = true;
Note: See TracChangeset
for help on using the changeset viewer.