summaryrefslogtreecommitdiff
path: root/src/dev/i8254xGBe.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-06-05 11:40:02 -0700
committerNathan Binkert <nate@binkert.org>2009-06-05 11:40:02 -0700
commita01437ab03fedd65405f214aacb0416088704505 (patch)
treed1d986f0e4402c7d178e0176927650a14773c20c /src/dev/i8254xGBe.cc
parent6faf377b5305f9dcc3c7b013c4d67f5accb92617 (diff)
downloadgem5-a01437ab03fedd65405f214aacb0416088704505.tar.xz
types: need typename keyword to get the type.
Diffstat (limited to 'src/dev/i8254xGBe.cc')
-rw-r--r--src/dev/i8254xGBe.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/dev/i8254xGBe.cc b/src/dev/i8254xGBe.cc
index 743de8a83..ca7e9e67a 100644
--- a/src/dev/i8254xGBe.cc
+++ b/src/dev/i8254xGBe.cc
@@ -1095,9 +1095,9 @@ void
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 @@ IGbE::DescCache<T>::serialize(std::ostream &os)
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 @@ IGbE::DescCache<T>::unserialize(Checkpoint *cp, const std::string &section)
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));