Revision 3b46e624 hw/mc146818rtc.c
b/hw/mc146818rtc.c | ||
---|---|---|
110 | 110 |
#ifdef DEBUG_CMOS |
111 | 111 |
printf("cmos: write index=0x%02x val=0x%02x\n", |
112 | 112 |
s->cmos_index, data); |
113 |
#endif
|
|
113 |
#endif |
|
114 | 114 |
switch(s->cmos_index) { |
115 | 115 |
case RTC_SECONDS_ALARM: |
116 | 116 |
case RTC_MINUTES_ALARM: |
... | ... | |
283 | 283 |
qemu_mod_timer(s->second_timer, s->next_second_time); |
284 | 284 |
} else { |
285 | 285 |
rtc_next_second(&s->current_tm); |
286 |
|
|
286 |
|
|
287 | 287 |
if (!(s->cmos_data[RTC_REG_B] & REG_B_SET)) { |
288 | 288 |
/* update in progress bit */ |
289 | 289 |
s->cmos_data[RTC_REG_A] |= REG_A_UIP; |
... | ... | |
411 | 411 |
|
412 | 412 |
qemu_put_buffer(f, s->cmos_data, 128); |
413 | 413 |
qemu_put_8s(f, &s->cmos_index); |
414 |
|
|
414 |
|
|
415 | 415 |
qemu_put_be32s(f, &s->current_tm.tm_sec); |
416 | 416 |
qemu_put_be32s(f, &s->current_tm.tm_min); |
417 | 417 |
qemu_put_be32s(f, &s->current_tm.tm_hour); |
Also available in: Unified diff