diff options
Diffstat (limited to 'src/sim/serialize.hh')
-rw-r--r-- | src/sim/serialize.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh index 561cd5508..e3b761f10 100644 --- a/src/sim/serialize.hh +++ b/src/sim/serialize.hh @@ -100,13 +100,15 @@ void paramIn(CheckpointIn &cp, const std::string &name, } template <class T> -bool optParamIn(CheckpointIn &cp, const std::string &name, T ¶m); +bool optParamIn(CheckpointIn &cp, const std::string &name, T ¶m, + bool warn = true); template <typename DataType, typename BitUnion> bool optParamIn(CheckpointIn &cp, const std::string &name, - BitfieldBackend::BitUnionOperators<DataType, BitUnion> &p) + BitfieldBackend::BitUnionOperators<DataType, BitUnion> &p, + bool warn = true) { - return optParamIn(cp, name, p.__data); + return optParamIn(cp, name, p.__data, warn); } template <class T> |