summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-07-07 09:51:04 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-07-07 09:51:04 +0100
commitb3ecfa6ae00620fa8a89460ff2a57275b973c260 (patch)
treef7a3e188469e613ac83b3b38e1f7d6a9e7cd0513 /src/sim
parent888ec455cba4174863be5ed9148aaf093a061101 (diff)
downloadgem5-b3ecfa6ae00620fa8a89460ff2a57275b973c260.tar.xz
base: Add serialization support to Pixels and FrameBuffer
Serialize pixels as unsigned 32 bit integers by adding the required to_number() and stream operators. This is used by the FrameBuffer, which now implements the Serializable interface. Users of frame buffers are expected to serialize it into its own section by calling serializeSection().
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/serialize.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/serialize.cc b/src/sim/serialize.cc
index a7c1834cf..b74b4bc9d 100644
--- a/src/sim/serialize.cc
+++ b/src/sim/serialize.cc
@@ -55,6 +55,7 @@
#include <string>
#include <vector>
+#include "base/framebuffer.hh"
#include "base/inifile.hh"
#include "base/misc.hh"
#include "base/output.hh"
@@ -418,6 +419,7 @@ INSTANTIATE_PARAM_TEMPLATES(bool)
INSTANTIATE_PARAM_TEMPLATES(float)
INSTANTIATE_PARAM_TEMPLATES(double)
INSTANTIATE_PARAM_TEMPLATES(string)
+INSTANTIATE_PARAM_TEMPLATES(Pixel)
/////////////////////////////