diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2003-10-29 08:50:25 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2003-10-29 08:50:25 -0800 |
commit | 8da9fcdd751bcb74c17e72d7d0a6c7ccf259552c (patch) | |
tree | 0cf43c0d989be70e4dbf57eaa3c1083ae0b11f9a /arch/alpha | |
parent | aa12cac9fd423d75578c3657fe5fe6e664e63890 (diff) | |
download | gem5-8da9fcdd751bcb74c17e72d7d0a6c7ccf259552c.tar.xz |
Flesh out ExecContext serialize/unserialize (including RegFile).
Add support for serializing enums.
arch/alpha/isa_traits.hh:
Add serialize/unserialize functions for RegFile
(defined in new isa_traits.cc).
cpu/exec_context.cc:
Flesh out serialize/unserialize.
sim/serialize.hh:
Add {UN}SERIALIZE_ENUM().
--HG--
extra : convert_revision : 9e30c7e7b3b290dc8ea0888ba3636fc93ee89052
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/isa_traits.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/alpha/isa_traits.hh b/arch/alpha/isa_traits.hh index e27841c3c..fbdcffbcf 100644 --- a/arch/alpha/isa_traits.hh +++ b/arch/alpha/isa_traits.hh @@ -158,6 +158,9 @@ class AlphaISA #endif // FULL_SYSTEM // Are these architectural, or just for convenience? uint8_t opcode, ra; // current instruction details (for intr's) + + void serialize(std::ostream &os); + void unserialize(const IniFile *db, const std::string §ion); }; static StaticInstPtr<AlphaISA> decodeInst(MachInst); |