cmos.hh (11168:f98eb2da15a4) | cmos.hh (11175:2324ed5fa9f4) |
---|---|
1/* 2 * Copyright (c) 2008 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; --- 64 unchanged lines hidden (view full) --- 73 74 Cmos(const Params *p) : BasicPioDevice(p, 2), latency(p->pio_latency), 75 rtc(this, "rtc", p->time, true, ULL(5000000000), p->int_pin) 76 { 77 memset(regs, 0, numRegs * sizeof(uint8_t)); 78 address = 0; 79 } 80 | 1/* 2 * Copyright (c) 2008 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; --- 64 unchanged lines hidden (view full) --- 73 74 Cmos(const Params *p) : BasicPioDevice(p, 2), latency(p->pio_latency), 75 rtc(this, "rtc", p->time, true, ULL(5000000000), p->int_pin) 76 { 77 memset(regs, 0, numRegs * sizeof(uint8_t)); 78 address = 0; 79 } 80 |
81 Tick read(PacketPtr pkt); | 81 Tick read(PacketPtr pkt) override; |
82 | 82 |
83 Tick write(PacketPtr pkt); | 83 Tick write(PacketPtr pkt) override; |
84 | 84 |
85 virtual void startup(); | 85 void startup() override; |
86 87 void serialize(CheckpointOut &cp) const override; 88 void unserialize(CheckpointIn &cp) override; 89}; 90 91} // namespace X86ISA 92 93#endif //__DEV_X86_CMOS_HH__ | 86 87 void serialize(CheckpointOut &cp) const override; 88 void unserialize(CheckpointIn &cp) override; 89}; 90 91} // namespace X86ISA 92 93#endif //__DEV_X86_CMOS_HH__ |