mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
QMP: Introduce RTC_CHANGE event
Emitted whenever the RTC time changes. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d74c7dfd1b
commit
80cd34787f
6 changed files with 32 additions and 0 deletions
|
@ -297,6 +297,8 @@ static void rtc_set_time(RTCState *s)
|
|||
tm->tm_mday = rtc_from_bcd(s, s->cmos_data[RTC_DAY_OF_MONTH]);
|
||||
tm->tm_mon = rtc_from_bcd(s, s->cmos_data[RTC_MONTH]) - 1;
|
||||
tm->tm_year = rtc_from_bcd(s, s->cmos_data[RTC_YEAR]) + s->base_year - 1900;
|
||||
|
||||
rtc_change_mon_event(tm);
|
||||
}
|
||||
|
||||
static void rtc_copy_date(RTCState *s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue