cmos.cc (7799:5d0f62927d75) | cmos.cc (7903:7fcfb515d7bf) |
---|---|
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) --- 106 rtc.writeData(reg, val); 107 } else { 108 DPRINTF(CMOS, "Writing non-volitile CMOS address %x with %x.\n", 109 reg, val); 110 regs[reg] = val; 111 } 112} 113 | 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) --- 106 rtc.writeData(reg, val); 107 } else { 108 DPRINTF(CMOS, "Writing non-volitile CMOS address %x with %x.\n", 109 reg, val); 110 regs[reg] = val; 111 } 112} 113 |
114void 115X86ISA::Cmos::serialize(std::ostream &os) 116{ 117 SERIALIZE_SCALAR(address); 118 SERIALIZE_ARRAY(regs, numRegs); 119 120 // Serialize the timer 121 rtc.serialize("rtc", os); 122} 123 124void 125X86ISA::Cmos::unserialize(Checkpoint *cp, const std::string §ion) 126{ 127 UNSERIALIZE_SCALAR(address); 128 UNSERIALIZE_ARRAY(regs, numRegs); 129 130 // Serialize the timer 131 rtc.unserialize("rtc", cp, section); 132} 133 |
|
114X86ISA::Cmos * 115CmosParams::create() 116{ 117 return new X86ISA::Cmos(this); 118} | 134X86ISA::Cmos * 135CmosParams::create() 136{ 137 return new X86ISA::Cmos(this); 138} |