backdoor.hh (10905:a6ca6831e775) backdoor.hh (11168:f98eb2da15a4)
1/*
2 * Copyright (c) 2001-2005 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;

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

71 * primarily used doing boot before the kernel has loaded its device
72 * drivers.
73 */
74class AlphaBackdoor : public BasicPioDevice
75{
76 protected:
77 struct Access : public AlphaAccess, public Serializable
78 {
1/*
2 * Copyright (c) 2001-2005 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;

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

71 * primarily used doing boot before the kernel has loaded its device
72 * drivers.
73 */
74class AlphaBackdoor : public BasicPioDevice
75{
76 protected:
77 struct Access : public AlphaAccess, public Serializable
78 {
79 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
80 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
79 void serialize(CheckpointOut &cp) const override;
80 void unserialize(CheckpointIn &cp) override;
81 };
82
83 union {
84 Access *alphaAccess;
85 uint8_t *consoleData;
86 };
87
88 /** the disk must be accessed from the console */

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

113 * memory mapped reads and writes
114 */
115 virtual Tick read(PacketPtr pkt);
116 virtual Tick write(PacketPtr pkt);
117
118 /**
119 * standard serialization routines for checkpointing
120 */
81 };
82
83 union {
84 Access *alphaAccess;
85 uint8_t *consoleData;
86 };
87
88 /** the disk must be accessed from the console */

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

113 * memory mapped reads and writes
114 */
115 virtual Tick read(PacketPtr pkt);
116 virtual Tick write(PacketPtr pkt);
117
118 /**
119 * standard serialization routines for checkpointing
120 */
121 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
122 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
121 void serialize(CheckpointOut &cp) const override;
122 void unserialize(CheckpointIn &cp) override;
123};
124
125#endif // __DEV_ALPHA_BACKDOOR_HH__
123};
124
125#endif // __DEV_ALPHA_BACKDOOR_HH__