changeset a2c8a951a63e in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=a2c8a951a63e
description:
        types: need typename keyword to get the type.

diffstat:

1 file changed, 10 insertions(+), 10 deletions(-)
src/dev/i8254xGBe.cc |   20 ++++++++++----------

diffs (60 lines):

diff -r a17798f2a52c -r a2c8a951a63e src/dev/i8254xGBe.cc
--- a/src/dev/i8254xGBe.cc      Thu Jun 04 23:21:12 2009 -0700
+++ b/src/dev/i8254xGBe.cc      Fri Jun 05 11:40:02 2009 -0700
@@ -1095,9 +1095,9 @@
 IGbE::DescCache<T>::reset()
 {
     DPRINTF(EthernetDesc, "Reseting descriptor cache\n");
-    for (CacheType::size_type x = 0; x < usedCache.size(); x++)
+    for (typename CacheType::size_type x = 0; x < usedCache.size(); x++)
         delete usedCache[x];
-    for (CacheType::size_type x = 0; x < unusedCache.size(); x++)
+    for (typename CacheType::size_type x = 0; x < unusedCache.size(); x++)
         delete unusedCache[x];
 
     usedCache.clear();
@@ -1117,16 +1117,16 @@
     SERIALIZE_SCALAR(moreToWb);
     SERIALIZE_SCALAR(wbAlignment);
 
-    CacheType::size_type usedCacheSize = usedCache.size();
+    typename CacheType::size_type usedCacheSize = usedCache.size();
     SERIALIZE_SCALAR(usedCacheSize);
-    for (CacheType::size_type x = 0; x < usedCacheSize; x++) {
+    for (typename CacheType::size_type x = 0; x < usedCacheSize; x++) {
         arrayParamOut(os, csprintf("usedCache_%d", x),
                       (uint8_t*)usedCache[x],sizeof(T));
     }
 
-    CacheType::size_type unusedCacheSize = unusedCache.size();
+    typename CacheType::size_type unusedCacheSize = unusedCache.size();
     SERIALIZE_SCALAR(unusedCacheSize);
-    for(CacheType::size_type x = 0; x < unusedCacheSize; x++) {
+    for (typename CacheType::size_type x = 0; x < unusedCacheSize; x++) {
         arrayParamOut(os, csprintf("unusedCache_%d", x),
                       (uint8_t*)unusedCache[x],sizeof(T));
     }
@@ -1152,19 +1152,19 @@
     UNSERIALIZE_SCALAR(moreToWb);
     UNSERIALIZE_SCALAR(wbAlignment);
 
-    CacheType::size_type usedCacheSize;
+    typename CacheType::size_type usedCacheSize;
     UNSERIALIZE_SCALAR(usedCacheSize);
     T *temp;
-    for(CacheType::size_type x = 0; x < usedCacheSize; x++) {
+    for (typename CacheType::size_type x = 0; x < usedCacheSize; x++) {
         temp = new T;
         arrayParamIn(cp, section, csprintf("usedCache_%d", x),
                      (uint8_t*)temp,sizeof(T));
         usedCache.push_back(temp);
     }
 
-    CacheType::size_type unusedCacheSize;
+    typename CacheType::size_type unusedCacheSize;
     UNSERIALIZE_SCALAR(unusedCacheSize);
-    for(CacheType::size_type x = 0; x < unusedCacheSize; x++) {
+    for (typename CacheType::size_type x = 0; x < unusedCacheSize; x++) {
         temp = new T;
         arrayParamIn(cp, section, csprintf("unusedCache_%d", x),
                      (uint8_t*)temp,sizeof(T));
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to