malta_io.cc (10642:9d3b6e7dd205) malta_io.cc (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2004-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;

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

106void
107MaltaIO::clearIntr(uint8_t interrupt)
108{
109 malta->cchip->clearIntr(interrupt);
110 DPRINTF(Malta, "clear pic interrupt to cchip\n");
111}
112
113void
1/*
2 * Copyright (c) 2004-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;

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

106void
107MaltaIO::clearIntr(uint8_t interrupt)
108{
109 malta->cchip->clearIntr(interrupt);
110 DPRINTF(Malta, "clear pic interrupt to cchip\n");
111}
112
113void
114MaltaIO::serialize(ostream &os)
114MaltaIO::serialize(CheckpointOut &cp) const
115{
116 SERIALIZE_SCALAR(timerData);
117 SERIALIZE_SCALAR(mask1);
118 SERIALIZE_SCALAR(mask2);
119 SERIALIZE_SCALAR(mode1);
120 SERIALIZE_SCALAR(mode2);
121 SERIALIZE_SCALAR(picr);
122 SERIALIZE_SCALAR(picInterrupting);
123
124 // Serialize the timers
115{
116 SERIALIZE_SCALAR(timerData);
117 SERIALIZE_SCALAR(mask1);
118 SERIALIZE_SCALAR(mask2);
119 SERIALIZE_SCALAR(mode1);
120 SERIALIZE_SCALAR(mode2);
121 SERIALIZE_SCALAR(picr);
122 SERIALIZE_SCALAR(picInterrupting);
123
124 // Serialize the timers
125 pitimer.serialize("pitimer", os);
126 rtc.serialize("rtc", os);
125 pitimer.serialize("pitimer", cp);
126 rtc.serialize("rtc", cp);
127}
128
129void
127}
128
129void
130MaltaIO::unserialize(Checkpoint *cp, const string &section)
130MaltaIO::unserialize(CheckpointIn &cp)
131{
132 UNSERIALIZE_SCALAR(timerData);
133 UNSERIALIZE_SCALAR(mask1);
134 UNSERIALIZE_SCALAR(mask2);
135 UNSERIALIZE_SCALAR(mode1);
136 UNSERIALIZE_SCALAR(mode2);
137 UNSERIALIZE_SCALAR(picr);
138 UNSERIALIZE_SCALAR(picInterrupting);
139
140 // Unserialize the timers
131{
132 UNSERIALIZE_SCALAR(timerData);
133 UNSERIALIZE_SCALAR(mask1);
134 UNSERIALIZE_SCALAR(mask2);
135 UNSERIALIZE_SCALAR(mode1);
136 UNSERIALIZE_SCALAR(mode2);
137 UNSERIALIZE_SCALAR(picr);
138 UNSERIALIZE_SCALAR(picInterrupting);
139
140 // Unserialize the timers
141 pitimer.unserialize("pitimer", cp, section);
142 rtc.unserialize("rtc", cp, section);
141 pitimer.unserialize("pitimer", cp);
142 rtc.unserialize("rtc", cp);
143}
144
145void
146MaltaIO::startup()
147{
148 rtc.startup();
149 pitimer.startup();
150}
151
152MaltaIO *
153MaltaIOParams::create()
154{
155 return new MaltaIO(this);
156}
143}
144
145void
146MaltaIO::startup()
147{
148 rtc.startup();
149 pitimer.startup();
150}
151
152MaltaIO *
153MaltaIOParams::create()
154{
155 return new MaltaIO(this);
156}