Deleted Added
sdiff udiff text old ( 3311:7eb47a60dbd4 ) new ( 3320:a8910dbabb44 )
full compact
1/*
2 * Copyright (c) 2003 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 153 unchanged lines hidden (view full) ---

162 req->setPaddr(paddr);
163 return page_check(req->getPaddr(), req->getSize());
164}
165
166void
167PageTable::serialize(std::ostream &os)
168{
169 paramOut(os, "ptable.size", pTable.size());
170 int count = 0;
171
172 m5::hash_map<Addr,Addr>::iterator iter;
173 while (iter != pTable.end()) {
174 paramOut(os, csprintf("ptable.entry%dvaddr", count),iter->first);
175 paramOut(os, csprintf("ptable.entry%dpaddr", count),iter->second);
176 ++count;
177 }
178 assert(count == pTable.size());
179}
180
181void
182PageTable::unserialize(Checkpoint *cp, const std::string &section)
183{
184 int i = 0, count;

--- 14 unchanged lines hidden ---