protected:
uint8_t address;
- struct tm foo_time;
-
static const int numRegs = 128;
uint8_t regs[numRegs];
public:
- Cmos(EventManager *em) : rtc(em, "rtc", foo_time, true, ULL(5000000000))
- {
- memset(regs, 0, numRegs * sizeof(uint8_t));
- address = 0;
- }
-
- Cmos(EventManager *em, Tick _latency) : SubDevice(_latency),
- rtc(em, "rtc", foo_time, true, ULL(5000000000))
+ Cmos(EventManager *em, Tick _latency, struct tm time) :
+ SubDevice(_latency), rtc(em, "rtc", time, true, ULL(5000000000))
{
memset(regs, 0, numRegs * sizeof(uint8_t));
address = 0;
}
- Cmos(EventManager *em, Addr start, Addr size, Tick _latency) :
+ Cmos(EventManager *em, Addr start, Addr size,
+ Tick _latency, struct tm time) :
SubDevice(start, size, _latency),
- rtc(em, "rtc", foo_time, true, ULL(5000000000))
+ rtc(em, "rtc", time, true, ULL(5000000000))
{
memset(regs, 0, numRegs * sizeof(uint8_t));
address = 0;
pic1(0x20, 2, p->pio_latency),
pic2(0xA0, 2, p->pio_latency),
pit(this, p->name + ".pit", 0x40, 4, p->pio_latency),
- cmos(this, 0x70, 2, p->pio_latency),
+ cmos(this, 0x70, 2, p->pio_latency, p->time),
speaker(&pit, 0x61, 1, p->pio_latency)
{
addDevice(pic1);