Changeset 515 for branches/RWT/modules/vci_cc_vcache_wrapper/caba
- Timestamp:
- Sep 4, 2013, 4:35:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RWT/modules/vci_cc_vcache_wrapper/caba/source/src/vci_cc_vcache_wrapper.cpp
r513 r515 343 343 r_dcache_tlb_pte_flags("r_dcache_tlb_pte_flags"), 344 344 r_dcache_tlb_pte_ppn("r_dcache_tlb_pte_ppn"), 345 346 347 345 // r_dcache_tlb_cache_way("r_dcache_tlb_cache_way"), 346 // r_dcache_tlb_cache_set("r_dcache_tlb_cache_set"), 347 // r_dcache_tlb_cache_word("r_dcache_tlb_cache_word"), 348 348 r_dcache_tlb_way("r_dcache_tlb_way"), 349 349 r_dcache_tlb_set("r_dcache_tlb_set"), … … 3170 3170 r_dcache_content_state[m_icache_sets*way+set] = LINE_CACHE_IN_TLB; 3171 3171 r_dcache_tlb_pte_flags = entry; 3172 3173 3174 3172 //r_dcache_tlb_cache_way = way; 3173 //r_dcache_tlb_cache_set = set; 3174 //r_dcache_tlb_cache_word = word; 3175 3175 r_dcache_fsm = DCACHE_TLB_PTE1_SELECT; 3176 3177 r_cas_islocal = (cache_state == CACHE_SLOT_STATE_VALID_NCC);//do not check L2 if NCC: the CAS is necessarily a success 3178 r_cas_local_way = way; 3179 r_cas_local_set = set; 3180 r_cas_local_word = word; 3176 3181 3177 3182 #if DEBUG_DCACHE … … 3444 3449 r_dcache_tlb_pte_flags = pte_flags; 3445 3450 r_dcache_tlb_pte_ppn = pte_ppn; 3446 3447 3448 3451 //r_dcache_tlb_cache_way = way; 3452 //r_dcache_tlb_cache_set = set; 3453 //r_dcache_tlb_cache_word = word; 3449 3454 r_dcache_fsm = DCACHE_TLB_PTE2_SELECT; 3450 3455 3456 r_cas_islocal = (cache_state == CACHE_SLOT_STATE_VALID_NCC);//do not check L2 if NCC: the CAS is necessarily a success 3457 r_cas_local_way = way; 3458 r_cas_local_set = set; 3459 r_cas_local_word = word; 3460 3451 3461 #if DEBUG_DCACHE 3452 3462 if ( m_debug_activated ) … … 3557 3567 // and can be obtained in the mapping table. 3558 3568 // As long as this computation is not done, all access are local. 3559 3560 int state;3561 size_t way;3562 size_t set;3563 size_t word;3564 r_dcache.read_dir(r_dcache_tlb_paddr.read(),3565 &state,3566 &way,3567 &set,3568 &word);3569 r_cas_islocal = (state == CACHE_SLOT_STATE_VALID_NCC);//do not check L2 if NCC: the CAS is necessarily a success3570 r_cas_local_way = way;3571 r_cas_local_set = set;3572 r_cas_local_word = word;3573 3569 3574 3570 if ( local ) // local access
Note: See TracChangeset
for help on using the changeset viewer.