Changeset 82 for trunk/modules/vci_cc_xcache_wrapper_v1/caba
- Timestamp:
- Sep 2, 2010, 2:22:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_cc_xcache_wrapper_v1/caba/source/src/vci_cc_xcache_wrapper_v1.cpp
r2 r82 434 434 435 435 // multi-update or multi-invalidate for data type 436 if ( ( address!= 0x3) && (! m_segment.contains(address)) )436 if ( ((address&0x3) != 0x3) && (! m_segment.contains(address)) ) 437 437 { 438 438 std::cout << "error in component VCI_CC_XCACHE_WRAPPER " << name() << std::endl; … … 448 448 r_tgt_plen = p_vci_tgt.plen.read(); 449 449 450 if ( address== 0x3 ) // broadcast invalidate for data or instruction type450 if ( (address&0x3) == 0x3 ) // broadcast invalidate for data or instruction type 451 451 { 452 452 if ( ! p_vci_tgt.eop.read() ) … … 1487 1487 r_vci_rsp_fsm = RSP_IDLE; 1488 1488 } 1489 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_ins_error = true;1489 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_ins_error = true; 1490 1490 break; 1491 1491 … … 1499 1499 r_vci_rsp_fsm = RSP_IDLE; 1500 1500 r_icache_unc_req = false; 1501 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_ins_error = true;1501 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_ins_error = true; 1502 1502 break; 1503 1503 … … 1516 1516 r_vci_rsp_fsm = RSP_IDLE; 1517 1517 } 1518 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true;1518 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true; 1519 1519 break; 1520 1520 … … 1527 1527 r_dcache_write_req = false; 1528 1528 } 1529 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) m_iss.setWriteBerr();1529 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) m_iss.setWriteBerr(); 1530 1530 break; 1531 1531 … … 1539 1539 r_vci_rsp_fsm = RSP_IDLE; 1540 1540 r_dcache_unc_req = false; 1541 if ( p_vci_ini_rw.rerror.read() != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true;1541 if ( (p_vci_ini_rw.rerror.read()&0x1) != vci_param::ERR_NORMAL ) r_vci_rsp_data_error = true; 1542 1542 break; 1543 1543 … … 1548 1548 assert( p_vci_ini_c.reop.read() && 1549 1549 "illegal VCI response packet for icache cleanup"); 1550 assert( ( p_vci_ini_c.rerror.read() == vci_param::ERR_NORMAL) &&1550 assert( ((p_vci_ini_c.rerror.read()&0x1) == vci_param::ERR_NORMAL) && 1551 1551 "error in response packet for icache cleanup"); 1552 1552 if ( r_vci_rsp_fsm == RSP_INS_CLEANUP ) r_icache_cleanup_req = false; … … 1887 1887 p_vci_tgt.rtrdid = r_tgt_trdid.read(); 1888 1888 p_vci_tgt.rdata = 0; 1889 p_vci_tgt.rerror = 0 ;1889 p_vci_tgt.rerror = 0x2 & ( (1 << (vci_param::E + 1)) - 1); // Write OK 1890 1890 p_vci_tgt.reop = true; 1891 1891 break; … … 1898 1898 p_vci_tgt.rtrdid = r_tgt_trdid.read(); 1899 1899 p_vci_tgt.rdata = 0; 1900 p_vci_tgt.rerror = 0 ;1900 p_vci_tgt.rerror = 0x2 & ( (1 << (vci_param::E + 1)) - 1); // Write OK 1901 1901 p_vci_tgt.reop = true; 1902 1902 break; … … 1909 1909 p_vci_tgt.rtrdid = r_tgt_trdid.read(); 1910 1910 p_vci_tgt.rdata = 0; 1911 p_vci_tgt.rerror = 0 ;1911 p_vci_tgt.rerror = 0x2 & ( (1 << (vci_param::E + 1)) - 1); // Write OK 1912 1912 p_vci_tgt.reop = true; 1913 1913 break;
Note: See TracChangeset
for help on using the changeset viewer.