OK.
I have settle this problem myself.
Thanks a lot.
In your mail:
>From: "Liangliang Tong" <nutspea@xxxxxxxxxx>
>Reply-To: Liangliang Tong <nutspea@xxxxxxxxxx>,
Gems Users <gems-users@xxxxxxxxxxx>
>To: gems-users@xxxxxxxxxxx
>Subject: [Gems-users] how to get the state of blocks
>Date:Thu, 15 May 2008 14:11:58 +0800
>
>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?
>
>
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
>
>
|