RTC: Update interrupt state when interrupts are masked/unmasked
authorYang Zhang <yang.z.zhang@intel.com>
Thu, 2 Aug 2012 16:04:07 +0000 (18:04 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 Sep 2012 18:52:28 +0000 (13:52 -0500)
commit9324cc50c6b5df0998d46e8fca76e35f00ced6c3
treeee986c3c6f51d72d00a36112137cc32d8825eea2
parente46deabaa58b78397aeef2b04147aeecf5933794
RTC: Update interrupt state when interrupts are masked/unmasked

If an interrupt flag is already set when the interrupt becomes enabled,
raise an interrupt immediately, and vice versa if interrupts become
disabled.

Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/mc146818rtc.c
hw/mc146818rtc_regs.h