need some initializations before doing the loop.
--HG-- extra : convert_revision : e5e8b16ae4f119c923d8c0d295aa9569d7a8fe5b
This commit is contained in:
parent
c2c48645c9
commit
15770fb7b4
1 changed files with 3 additions and 2 deletions
|
@ -167,13 +167,14 @@ void
|
|||
PageTable::serialize(std::ostream &os)
|
||||
{
|
||||
paramOut(os, "ptable.size", pTable.size());
|
||||
|
||||
int count = 0;
|
||||
|
||||
m5::hash_map<Addr,Addr>::iterator iter;
|
||||
while (iter != pTable.end()) {
|
||||
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);
|
||||
++count;
|
||||
}
|
||||
assert(count == pTable.size());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue