summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2010-07-05 21:39:38 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2010-07-05 21:39:38 -0700
commit820bb3044d203aafa955cdb84c259101f051620e (patch)
tree8909b7b74aff2e7e38b2346abab8d39ab9174cbd /src/sim
parentcbd65e95dba33c0c88411b11c3e864cbc2567bbf (diff)
downloadgem5-820bb3044d203aafa955cdb84c259101f051620e.tar.xz
checkpointing: fix minor bug
Somehow we now need to explicitly specialize on 'signed char' and not just 'char' to catch cases like int8_t
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/serialize.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/serialize.cc b/src/sim/serialize.cc
index 0e6d9b254..27831ef32 100644
--- a/src/sim/serialize.cc
+++ b/src/sim/serialize.cc
@@ -87,7 +87,7 @@ showParam(ostream &os, const T &value)
// Treat 8-bit ints (chars) as ints on output, not as chars
template <>
void
-showParam(ostream &os, const char &value)
+showParam(ostream &os, const signed char &value)
{
os << (int)value;
}