projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea8667
)
rtc: raise PF bit when the periodic timer triggers but PIE=0
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 21 Nov 2011 18:00:30 +0000
(19:00 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 13 Jan 2012 16:20:49 +0000
(10:20 -0600)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/mc146818rtc.c
patch
|
blob
|
history
diff --git
a/hw/mc146818rtc.c
b/hw/mc146818rtc.c
index c482d3f3f5ac090619834671f24f5c3025c78968..93ceae70a0bf9259ea5448529fcc36073df03b41 100644
(file)
--- 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)