Hi All,
I try to use the isBlockShared function in Chip.C to test if a block is shared.
But the complier said that this function is unrecognized.
This function is a member function of class "Chip", this is part of its code:
bool Chip::isBlockShared(const Address& addr) const
{
for (int i = 0; i < RubyConfig::numberOfL2CachePerChip(m_id); i++) {
if (m_L2Cache_Controller_vec[i]->L2Cache_isBlockShared(addr))
return true;
..
}
}
I add the test code in the in_port(mandatoryQueue_in,
CacheMsg,mandatoryQueue_in,desc='..") function in MESI_CMP_ccache-L1cache.sm, the
code is as followed:
if (isBlockShared(in_msg.Address)) { ... }
Could anyone tell me how to fix it?
|