summaryrefslogtreecommitdiff
path: root/src/arch/x86/types.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/types.hh')
-rw-r--r--src/arch/x86/types.hh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/arch/x86/types.hh b/src/arch/x86/types.hh
index 8487cbce9..35799e0c9 100644
--- a/src/arch/x86/types.hh
+++ b/src/arch/x86/types.hh
@@ -45,6 +45,7 @@
#include "base/bitunion.hh"
#include "base/cprintf.hh"
#include "base/types.hh"
+#include "sim/serialize.hh"
namespace X86ISA
{
@@ -224,4 +225,15 @@ namespace X86ISA
};
};
+// These two functions allow ExtMachInst to be used with SERIALIZE_SCALAR
+// and UNSERIALIZE_SCALAR.
+template <>
+void
+paramOut(std::ostream &os, const std::string &name,
+ const X86ISA::ExtMachInst &machInst);
+template <>
+void
+paramIn(Checkpoint *cp, const std::string &section,
+ const std::string &name, X86ISA::ExtMachInst &machInst);
+
#endif // __ARCH_X86_TYPES_HH__