Changeset 104


Ignore:
Timestamp:
Oct 5, 2010, 4:04:18 PM (14 years ago)
Author:
gao
Message:

Verify broadcast address using mask

Location:
trunk/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_cc_vcache_wrapper2_v1/caba/source/src/vci_cc_vcache_wrapper2_v1.cpp

    r101 r104  
    686686
    687687            // multi-update or multi-invalidate for data type
    688             if ( ( address != 0x3 ) && ( ! m_segment.contains(address)) )
     688            if ( ( (address & 0x3) != 0x3 ) && ( ! m_segment.contains(address)) )
    689689            {
    690690                std::cout << "error in component VCI_CC_VCACHE_WRAPPER " << name() << std::endl;
     
    700700                          (paddr_t)p_vci_tgt.wdata.read() * m_dcache_words * 4;
    701701
    702             if ( address == 0x3 ) // broadcast invalidate for data or instruction type
     702            if ( (address & 0x3) == 0x3 ) // broadcast invalidate for data or instruction type
    703703            {
    704704                if ( ! p_vci_tgt.eop.read() )
  • trunk/modules/vci_cc_vcache_wrapper_v1/caba/source/src/vci_cc_vcache_wrapper_v1.cpp

    r61 r104  
    614614
    615615            // multi-update or multi-invalidate for data type
    616             if ( ( address != 0x3 ) && ( ! m_segment.contains(address)) )
     616            if ( ( (address & 0x3) != 0x3 ) && ( ! m_segment.contains(address)) )
    617617            {
    618618                std::cout << "error in component VCI_CC_VCACHE_WRAPPER " << name() << std::endl;
     
    628628                          (paddr_t)p_vci_tgt.wdata.read() * m_dcache_words * 4;
    629629
    630             if ( address == 0x3 ) // broadcast invalidate for data or instruction type
     630            if ( (address & 0x3) == 0x3 ) // broadcast invalidate for data or instruction type
    631631            {
    632632                if ( ! p_vci_tgt.eop.read() )
Note: See TracChangeset for help on using the changeset viewer.