Changeset 82 for trunk/modules/vci_cc_xcache_wrapper_v4/caba/source
- Timestamp:
- Sep 2, 2010, 2:22:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_cc_xcache_wrapper_v4/caba/source/src/vci_cc_xcache_wrapper_v4.cpp
r58 r82 432 432 433 433 // multi-update or multi-invalidate for data type 434 if ( ( address!= 0x3) && (! m_segment.contains(address)) )434 if ( ((address&0x3) != 0x3) && (! m_segment.contains(address)) ) 435 435 { 436 436 std::cout << "error in component VCI_CC_XCACHE_WRAPPER " << name() << std::endl; … … 446 446 r_tgt_plen = p_vci_tgt.plen.read(); 447 447 448 if ( address== 0x3 ) // broadcast invalidate for data or instruction type448 if ( (address&0x3) == 0x3 ) // broadcast invalidate for data or instruction type 449 449 { 450 450 if ( ! p_vci_tgt.eop.read() ) … … 1558 1558 r_vci_rsp_fsm = RSP_IDLE; 1559 1559 } 1560 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_ins_error = true;1560 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_ins_error = true; 1561 1561 break; 1562 1562 … … 1570 1570 r_vci_rsp_fsm = RSP_IDLE; 1571 1571 r_icache_unc_req = false; 1572 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_ins_error = true;1572 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_ins_error = true; 1573 1573 break; 1574 1574 … … 1587 1587 r_vci_rsp_fsm = RSP_IDLE; 1588 1588 } 1589 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true;1589 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true; 1590 1590 break; 1591 1591 … … 1598 1598 r_dcache_write_req = false; 1599 1599 } 1600 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) m_iss.setWriteBerr();1600 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) m_iss.setWriteBerr(); 1601 1601 break; 1602 1602 … … 1610 1610 r_vci_rsp_fsm = RSP_IDLE; 1611 1611 r_dcache_unc_req = false; 1612 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true;1612 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true; 1613 1613 break; 1614 1614 … … 1622 1622 r_vci_rsp_fsm = RSP_IDLE; 1623 1623 r_dcache_sc_req = false; 1624 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true;1624 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true; 1625 1625 break; 1626 1626 … … 1631 1631 assert( p_vci_ini_c.reop.read() && 1632 1632 "illegal VCI response packet for icache cleanup"); 1633 assert( ( p_vci_ini_c.rerror.read() == vci_param::ERR_NORMAL) &&1633 assert( ((p_vci_ini_c.rerror.read()&0x1) == vci_param::ERR_NORMAL) && 1634 1634 "error in response packet for icache cleanup"); 1635 1635 if ( r_vci_rsp_fsm == RSP_INS_CLEANUP ) r_icache_cleanup_req = false; … … 2011 2011 p_vci_tgt.rtrdid = r_tgt_trdid.read(); 2012 2012 p_vci_tgt.rdata = 0; 2013 p_vci_tgt.rerror = 0 ;2013 p_vci_tgt.rerror = 0x2 & ( (1 << (vci_param::E + 1)) - 1); // Write OK 2014 2014 p_vci_tgt.reop = true; 2015 2015 break; … … 2022 2022 p_vci_tgt.rtrdid = r_tgt_trdid.read(); 2023 2023 p_vci_tgt.rdata = 0; 2024 p_vci_tgt.rerror = 0 ;2024 p_vci_tgt.rerror = 0x2 & ( (1 << (vci_param::E + 1)) - 1); // Write OK 2025 2025 p_vci_tgt.reop = true; 2026 2026 break; … … 2033 2033 p_vci_tgt.rtrdid = r_tgt_trdid.read(); 2034 2034 p_vci_tgt.rdata = 0; 2035 p_vci_tgt.rerror = 0 ;2035 p_vci_tgt.rerror = 0x2 & ( (1 << (vci_param::E + 1)) - 1); // Write OK 2036 2036 p_vci_tgt.reop = true; 2037 2037 break;
Note: See TracChangeset
for help on using the changeset viewer.