Re: [Gems-users] Regarding dump-cache


Date: Wed, 16 Dec 2009 08:52:40 +0100
From: Javier Merino <jmerino@xxxxxxxxxxxxx>
Subject: Re: [Gems-users] Regarding dump-cache
Ruby's caches don't contain data if DATA_BLOCK is false. Try executing
"ruby0.setparam DATA_BLOCK true" before "ruby0.init" (or recompile with
DATA_BLOCK: true in ruby/config/rubyconfig.defaults ).

Hope this helps,

sparsh mittal ISU wrote:
> Hello All,
> 
> While using ruby, when I issue ruby0.dump-cache,
> 
> I get
> .....
>   Index: 12877 way: 2 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12877 way: 3 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12878 way: 0 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12878 way: 1 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12878 way: 2 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12878 way: 3 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12879 way: 0 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12879 way: 1 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12879 way: 2 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12879 way: 3 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12880 way: 0 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12880 way: 1 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12880 way: 2 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
>   Index: 12880 way: 3 entry: [L1Cache_Entry: CacheState=I DataBlk= ] ]
> ..........................
> 
> On seeing the DataBlock.C file in ruby/common, the print function is the
> following:
> void DataBlock::print(ostream& out) const
> {
>   int size = m_data.size();
>   out<<size<<" "; //Added by me
>   for (int i = 0; i < size; i+=4) {
>   out<<"REACHED\t"; //Added by me
>     out << hex << *((uint32*)(&(m_data[i]))) << " ";
>   }
>   out << dec << "]" << flush;
> }
> 
> After these additions, when I run, I find that it is because the size is
> zero, so it never enters the for loop.
> These means the Vector
> Vector<uint8> m_data;
> always has size =0.
> 
> Then how can we get or print the value of cache-data (or at least
> addresses stored in cache; so that one knows about the contents of the
> cache).
> I would be thankful for the help.
> -- 
> Thanks and Regards
> Sparsh Mittal
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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.
> 

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