[Gems-users] how to get the state of blocks


Date: Thu, 15 May 2008 14:11:58 +0800
From: "Liangliang Tong" <nutspea@xxxxxxxxxx>
Subject: [Gems-users] how to get the state of blocks
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? 


[← Prev in Thread] Current Thread [Next in Thread→]