Changeset 71 for trunk/modules/vci_cc_vcache_wrapper2_v1/caba/source
- Timestamp:
- Aug 4, 2010, 8:47:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_cc_vcache_wrapper2_v1/caba/source/src/vci_cc_vcache_wrapper2_v1.cpp
r70 r71 2269 2269 else if ( r_itlb_acc_dcache_req ) // ins tlb write access bit 2270 2270 { 2271 bool write_hit = r_dcache.write(r_icache_paddr_save, r_icache_pte_update);2272 assert(write_hit && "Write on miss ignores data");2273 2271 r_dcache_itlb_ll_acc_req = true; 2274 2272 r_dcache_fsm = DCACHE_ITLB_LL_WAIT; … … 3153 3151 { 3154 3152 r_dcache_tlb_ptba_read = false; 3155 write_hit = r_dcache.write(((paddr_t)(tlb_data & ((1<<(m_paddr_nbits - PAGE_K_NBITS))-1)) << PAGE_K_NBITS |3156 (paddr_t)(((dreq.addr & PTD_ID2_MASK) >> PAGE_K_NBITS) << 3)), r_dcache_pte_update);3157 //assert(write_hit && "Write on miss ignores data");3158 3153 r_dcache_tlb_ll_dirty_req = true; 3159 3154 r_dcache_fsm = DCACHE_LL_DIRTY_WAIT; … … 3181 3176 r_dcache_pte_update = tlb_data | PTE_L_MASK; 3182 3177 r_dcache_tlb_ll_acc_req = true; 3183 write_hit = r_dcache.write(r_dcache_tlb_paddr,(tlb_data | PTE_L_MASK));3184 assert(write_hit && "Write on miss ignores data");3185 3178 r_dcache_fsm = DCACHE_TLB1_LL_WAIT; 3186 3179 m_cpt_dcache_data_write++; … … 3200 3193 r_dcache_pte_update = tlb_data | PTE_R_MASK; 3201 3194 r_dcache_tlb_ll_acc_req = true; 3202 write_hit = r_dcache.write(r_dcache_tlb_paddr,(tlb_data | PTE_R_MASK));3203 assert(write_hit && "Write on miss ignores data");3204 3195 r_dcache_fsm = DCACHE_TLB1_LL_WAIT; 3205 3196 m_cpt_dcache_data_write++; … … 3495 3486 { 3496 3487 r_dcache_tlb_ptba_read = false; 3497 write_hit = r_dcache.write(((paddr_t)(rsp_dtlb_miss & ((1<<(m_paddr_nbits - PAGE_K_NBITS))-1)) << PAGE_K_NBITS |3498 (paddr_t)(((dreq.addr & PTD_ID2_MASK) >> PAGE_K_NBITS) << 3)),r_dcache_pte_update);3499 //assert(write_hit && "Write on miss ignores data");3500 3488 r_dcache_tlb_ll_dirty_req = true; 3501 3489 r_dcache_fsm = DCACHE_LL_DIRTY_WAIT; … … 3523 3511 r_dcache_pte_update = rsp_dtlb_miss | PTE_L_MASK; 3524 3512 r_dcache_tlb_ll_acc_req = true; 3525 write_hit = r_dcache.write(r_dcache_tlb_paddr,(rsp_dtlb_miss | PTE_L_MASK));3526 assert(write_hit && "Write on miss ignores data");3527 3513 r_dcache_fsm = DCACHE_TLB1_LL_WAIT; 3528 3514 m_cpt_dcache_data_write++; … … 3542 3528 r_dcache_pte_update = rsp_dtlb_miss | PTE_R_MASK; 3543 3529 r_dcache_tlb_ll_acc_req = true; 3544 write_hit = r_dcache.write(r_dcache_tlb_paddr,(rsp_dtlb_miss | PTE_R_MASK));3545 assert(write_hit && "Write on miss ignores data");3546 3530 r_dcache_fsm = DCACHE_TLB1_LL_WAIT; 3547 3531 m_cpt_dcache_data_write++; … … 3655 3639 r_dcache_ppn_update = tlb_data_ppn; 3656 3640 r_dcache_tlb_ll_acc_req = true; 3657 write_hit = r_dcache.write(r_dcache_tlb_paddr,(tlb_data | PTE_L_MASK));3658 assert(write_hit && "Write on miss ignores data");3659 3641 r_dcache_fsm = DCACHE_TLB2_LL_WAIT; 3660 3642 m_cpt_dcache_data_write++; … … 3676 3658 r_dcache_ppn_update = tlb_data_ppn; 3677 3659 r_dcache_tlb_ll_acc_req = true; 3678 write_hit = r_dcache.write(r_dcache_tlb_paddr,(tlb_data | PTE_R_MASK));3679 assert(write_hit && "Write on miss ignores data");3680 3660 r_dcache_fsm = DCACHE_TLB2_LL_WAIT; 3681 3661 m_cpt_dcache_data_write++; … … 3986 3966 r_dcache_ppn_update = tlb_data_ppn; 3987 3967 r_dcache_tlb_ll_acc_req = true; 3988 write_hit = r_dcache.write(r_dcache_tlb_paddr,(rsp_dtlb_miss | PTE_L_MASK));3989 assert(write_hit && "Write on miss ignores data");3990 3968 r_dcache_fsm = DCACHE_TLB2_LL_WAIT; 3991 3969 m_cpt_dcache_data_write++; … … 4007 3985 r_dcache_ppn_update = tlb_data_ppn; 4008 3986 r_dcache_tlb_ll_acc_req = true; 4009 write_hit = r_dcache.write(r_dcache_tlb_paddr,(rsp_dtlb_miss | PTE_R_MASK));4010 assert(write_hit && "Write on miss ignores data");4011 3987 r_dcache_fsm = DCACHE_TLB2_LL_WAIT; 4012 3988 m_cpt_dcache_data_write++;
Note: See TracChangeset
for help on using the changeset viewer.