diff options
author | Luiz Capitulino | 2010-02-25 16:11:44 +0100 |
---|---|---|
committer | Anthony Liguori | 2010-03-08 18:30:09 +0100 |
commit | 80cd34787fc0fc31b1a341c7b8d8e729c1b6ea58 (patch) | |
tree | 87b4d9bb87753831af21d16f6ce011f985fdbd37 /hw/mc146818rtc.c | |
parent | QMP: Revamp the qmp-events.txt file (diff) | |
download | qemu-80cd34787fc0fc31b1a341c7b8d8e729c1b6ea58.tar.gz qemu-80cd34787fc0fc31b1a341c7b8d8e729c1b6ea58.tar.xz qemu-80cd34787fc0fc31b1a341c7b8d8e729c1b6ea58.zip |
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>
Diffstat (limited to 'hw/mc146818rtc.c')
-rw-r--r-- | hw/mc146818rtc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 2616d0d7e6..a53785593f 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.c @@ -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) |