summaryrefslogtreecommitdiff
path: root/sim/serialize.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2003-10-28 17:48:10 -0800
committerSteve Reinhardt <stever@eecs.umich.edu>2003-10-28 17:48:10 -0800
commit3761bcf076e9289f34b4863d87e4b2afdd276341 (patch)
treefc9944fb1e928313a80b0f5738536f848d8c9de3 /sim/serialize.cc
parente12e64a0718f6805c1203e1d11a39abaf0d9483b (diff)
downloadgem5-3761bcf076e9289f34b4863d87e4b2afdd276341.tar.xz
Get new serialization code to link.
sim/param.cc: Convert parseParam() and showParam() to templates, andd explicitly instantiate them for common types. sim/param.hh: Add declarations for parseParam() and showParam() function templates, so serialize.cc can use them. sim/serialize.cc: Don't need declarations for parseParam() and showParam() since we put them in param.hh. Also instantiate paramOut() etc. for bool. --HG-- extra : convert_revision : 1d84d0fbec64481996cbfa8b84c67c13c6244385
Diffstat (limited to 'sim/serialize.cc')
-rw-r--r--sim/serialize.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc
index 936812795..b2a50154f 100644
--- a/sim/serialize.cc
+++ b/sim/serialize.cc
@@ -76,9 +76,6 @@ Serializeable::nameOut(ostream &os, const string &_name)
os << "\n[" << _name << "]\n";
}
-template <class T> bool parseParam(const std::string &str, T &data);
-template <class T> void showParam(const std::ostream &os, T &data);
-
template <class T>
void
paramOut(ostream &os, const std::string &name, const T& param)
@@ -184,6 +181,7 @@ INSTANTIATE_PARAM_TEMPLATES(int32_t)
INSTANTIATE_PARAM_TEMPLATES(uint32_t)
INSTANTIATE_PARAM_TEMPLATES(int64_t)
INSTANTIATE_PARAM_TEMPLATES(uint64_t)
+INSTANTIATE_PARAM_TEMPLATES(bool)
INSTANTIATE_PARAM_TEMPLATES(string)