initialize end, clean up loop
--HG-- extra : convert_revision : e1c107f0c0fd5d535acd2d6c43571a5df57c9ed3
This commit is contained in:
parent
b937d54510
commit
5b246a0567
|
@ -170,11 +170,14 @@ PageTable::serialize(std::ostream &os)
|
|||
|
||||
int count = 0;
|
||||
|
||||
m5::hash_map<Addr,Addr>::iterator iter;
|
||||
m5::hash_map<Addr,Addr>::iterator end;
|
||||
for (iter = pTable.begin(); iter != end; ++iter,++count) {
|
||||
paramOut(os, csprintf("ptable.entry%dvaddr", count),iter->first);
|
||||
paramOut(os, csprintf("ptable.entry%dpaddr", count),iter->second);
|
||||
m5::hash_map<Addr,Addr>::iterator iter = pTable.begin();
|
||||
m5::hash_map<Addr,Addr>::iterator end = pTable.end();
|
||||
while (iter != end) {
|
||||
paramOut(os, csprintf("ptable.entry%dvaddr", count), iter->first);
|
||||
paramOut(os, csprintf("ptable.entry%dpaddr", count), iter->second);
|
||||
|
||||
++iter;
|
||||
++count;
|
||||
}
|
||||
assert(count == pTable.size());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue