mc146818rtc: embrace all x86 specific code
authorXiao Guangrong <xiaoguangrong@tencent.com>
Wed, 10 May 2017 08:32:59 +0000 (16:32 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Jun 2017 18:18:35 +0000 (20:18 +0200)
commite0c8b950d17a57343926ed937af10e8903b0d6cc
treeb69d9194f6c601f96129ce0450a4cd492b5b7ba6
parent388ad5d2969b70242a385031caadef46328bf940
mc146818rtc: embrace all x86 specific code

Introduce a function, rtc_policy_slew_deliver_irq(), which delivers
irq if LOST_TICK_POLICY_SLEW is used, as which is only supported on
x86, other platforms call it will trigger a assert

After that, we can move the x86 specific code to the common place

Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Message-Id: <20170510083259.3900-6-xiaoguangrong@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/timer/mc146818rtc.c