Date: | Tue, 15 Dec 2009 11:13:11 -0600 |
---|---|
From: | sparsh mittal ISU <sparsh@xxxxxxxxxxx> |
Subject: | [Gems-users] Regarding dump-cache |
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 |
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [Gems-users] FILE_SPECIFIED topology details, Niket Agarwal |
---|---|
Next by Date: | Re: [Gems-users] Regarding dump-cache, Javier Merino |
Previous by Thread: | Re: [Gems-users] question about sparc traplevel, Dan Gibson |
Next by Thread: | Re: [Gems-users] Regarding dump-cache, Javier Merino |
Indexes: | [Date] [Thread] |