diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-11-21 19:00:30 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-01-13 10:20:49 -0600 |
commit | 663447d4ead009efd8959fe9f7055398dacd6db4 (patch) | |
tree | 6eb5a3aab1c899a8bfe775a39296dcb15591da19 | |
parent | eea86673608692c2345cfb3edd72eb9958adad7f (diff) |
rtc: raise PF bit when the periodic timer triggers but PIE=0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | hw/mc146818rtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index c482d3f3f5..93ceae70a0 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.c @@ -179,8 +179,9 @@ static void rtc_periodic_timer(void *opaque) RTCState *s = opaque; rtc_timer_update(s, s->next_periodic_time); + s->cmos_data[RTC_REG_C] |= REG_C_PF; if (s->cmos_data[RTC_REG_B] & REG_B_PIE) { - s->cmos_data[RTC_REG_C] |= 0xc0; + s->cmos_data[RTC_REG_C] |= REG_C_IRQF; #ifdef TARGET_I386 if(rtc_td_hack) { if (s->irq_reinject_on_ack_count >= RTC_REINJECT_ON_ACK_COUNT) |