summaryrefslogtreecommitdiff
path: root/src/sim/system.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-09-19 10:35:09 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2014-09-19 10:35:09 -0400
commit32c111eda40269b0047ba3c109b7a2ba878d2544 (patch)
treee806998d437a52de4818a1bd4110ae1c96768ea9 /src/sim/system.cc
parentaddfd89dced4e2429050663db93ad37790f37a78 (diff)
downloadgem5-32c111eda40269b0047ba3c109b7a2ba878d2544.tar.xz
misc: Restore ostream flags where needed
This patch ensures we adhere to the normal ostream usage rules, and restore the flags after modifying them.
Diffstat (limited to 'src/sim/system.cc')
-rw-r--r--src/sim/system.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sim/system.cc b/src/sim/system.cc
index fe5be23dc..c0b9486f4 100644
--- a/src/sim/system.cc
+++ b/src/sim/system.cc
@@ -418,12 +418,16 @@ System::workItemEnd(uint32_t tid, uint32_t workid)
void
System::printSystems()
{
+ ios::fmtflags flags(cerr.flags());
+
vector<System *>::iterator i = systemList.begin();
vector<System *>::iterator end = systemList.end();
for (; i != end; ++i) {
System *sys = *i;
cerr << "System " << sys->name() << ": " << hex << sys << endl;
}
+
+ cerr.flags(flags);
}
void