Added boost serialization

This commit is contained in:
Hamish Milne
2019-08-06 15:59:31 +01:00
committed by zhupengfei
parent f106e76132
commit 6940c99ed6
8 changed files with 89 additions and 3 deletions

View File

@@ -9,6 +9,7 @@
#include <memory>
#include <string>
#include <vector>
#include "boost/serialization/split_member.hpp"
#include "common/common_types.h"
#include "core/mmio.h"
@@ -52,6 +53,14 @@ struct SpecialRegion {
VAddr base;
u32 size;
MMIORegionPointer handler;
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
ar & base;
ar & size;
ar & handler;
}
};
/**