summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2004-03-05 05:38:04 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2004-03-05 05:38:04 -0500
commit1a300ef60da887fd3e90add708af4344e19770cb (patch)
tree759634c59493bf9b254003c1e3d4dc8b0cd26e0b /sim
parent4fa703f2ec733ccb8b5ffaa741db0b8510fbe188 (diff)
downloadgem5-1a300ef60da887fd3e90add708af4344e19770cb.tar.xz
small bugfix, forgot to increment iter
sim/system.cc: oops, forgot to increment iter. --HG-- extra : convert_revision : 95fcd337d00157ccf072f0eb301b76f280480839
Diffstat (limited to 'sim')
-rw-r--r--sim/system.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/system.cc b/sim/system.cc
index fa8e8c463..40c841ed5 100644
--- a/sim/system.cc
+++ b/sim/system.cc
@@ -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);