small bugfix, forgot to increment iter
sim/system.cc: oops, forgot to increment iter. --HG-- extra : convert_revision : 95fcd337d00157ccf072f0eb301b76f280480839
This commit is contained in:
parent
4fa703f2ec
commit
1a300ef60d
1 changed files with 2 additions and 1 deletions
|
@ -53,6 +53,7 @@ System::System(const std::string _name,
|
|||
if (bin == true) {
|
||||
Kernel = new Statistics::MainBin("non TCPIP Kernel stats");
|
||||
Kernel->activate();
|
||||
User = new Statistics::MainBin("User stats");
|
||||
} else
|
||||
Kernel = NULL;
|
||||
}
|
||||
|
@ -136,7 +137,7 @@ System::serialize(std::ostream &os)
|
|||
int numCtxs = swCtxMap.size();
|
||||
SERIALIZE_SCALAR(numCtxs);
|
||||
SWContext *ctx;
|
||||
for (int i = 0; iter != end; ++i) {
|
||||
for (int i = 0; iter != end; ++i, ++iter) {
|
||||
paramOut(os, csprintf("Addr[%d]",i), (*iter).first);
|
||||
ctx = (*iter).second;
|
||||
paramOut(os, csprintf("calls[%d]",i), ctx->calls);
|
||||
|
|
Loading…
Reference in a new issue