cmos.cc (10631:6d6bfdb036ce) cmos.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;

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

114
115void
116X86ISA::Cmos::startup()
117{
118 rtc.startup();
119}
120
121void
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;

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

114
115void
116X86ISA::Cmos::startup()
117{
118 rtc.startup();
119}
120
121void
122X86ISA::Cmos::serialize(std::ostream &os)
122X86ISA::Cmos::serialize(CheckpointOut &cp) const
123{
124 SERIALIZE_SCALAR(address);
125 SERIALIZE_ARRAY(regs, numRegs);
126
127 // Serialize the timer
123{
124 SERIALIZE_SCALAR(address);
125 SERIALIZE_ARRAY(regs, numRegs);
126
127 // Serialize the timer
128 rtc.serialize("rtc", os);
128 rtc.serialize("rtc", cp);
129}
130
131void
129}
130
131void
132X86ISA::Cmos::unserialize(Checkpoint *cp, const std::string &section)
132X86ISA::Cmos::unserialize(CheckpointIn &cp)
133{
134 UNSERIALIZE_SCALAR(address);
135 UNSERIALIZE_ARRAY(regs, numRegs);
136
137 // Serialize the timer
133{
134 UNSERIALIZE_SCALAR(address);
135 UNSERIALIZE_ARRAY(regs, numRegs);
136
137 // Serialize the timer
138 rtc.unserialize("rtc", cp, section);
138 rtc.unserialize("rtc", cp);
139}
140
141X86ISA::Cmos *
142CmosParams::create()
143{
144 return new X86ISA::Cmos(this);
145}
139}
140
141X86ISA::Cmos *
142CmosParams::create()
143{
144 return new X86ISA::Cmos(this);
145}