dtod.hh (9235:5aa4896ed55a) dtod.hh (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 49 unchanged lines hidden (view full) ---

58 params() const
59 {
60 return dynamic_cast<const Params *>(_params);
61 }
62
63 virtual Tick read(PacketPtr pkt);
64 virtual Tick write(PacketPtr pkt);
65
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 49 unchanged lines hidden (view full) ---

58 params() const
59 {
60 return dynamic_cast<const Params *>(_params);
61 }
62
63 virtual Tick read(PacketPtr pkt);
64 virtual Tick write(PacketPtr pkt);
65
66 /**
67 * Serialize this object to the given output stream.
68 * @param os The stream to serialize to.
69 */
70 virtual void serialize(std::ostream &os);
71
72 /**
73 * Reconstruct the state of this object from a checkpoint.
74 * @param cp The checkpoint use.
75 * @param section The section name of this object
76 */
77 virtual void unserialize(Checkpoint *cp, const std::string &section);
78
79
66 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
67 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
80};
81
82#endif // __DEV_BADDEV_HH__
68};
69
70#endif // __DEV_BADDEV_HH__