aboutsummaryrefslogtreecommitdiff
path: root/hw/mc146818rtc.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-10-08 00:00:00 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-12 09:42:31 -0500
commitce88f890bdbb4e38a047d9e5d096233163452651 (patch)
tree2d3df28f6cb23efeb3e300e27b7f3a437060c7a3 /hw/mc146818rtc.c
parenta3a766e7b3878e598dee5e4d426c067d5db051d3 (diff)
TARGET_I386 is always defined if TARGET_X86_64 is defined
Patchworks-ID: 35378 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/mc146818rtc.c')
-rw-r--r--hw/mc146818rtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c
index d82131ace6..e6e6cbfc54 100644
--- a/hw/mc146818rtc.c
+++ b/hw/mc146818rtc.c
@@ -91,7 +91,7 @@ static void rtc_irq_raise(qemu_irq irq) {
* mode is established while interrupt is raised. We want it to
* be lowered in any case
*/
-#if defined TARGET_I386 || defined TARGET_X86_64
+#if defined TARGET_I386
if (!hpet_in_legacy_mode())
#endif
qemu_irq_raise(irq);
@@ -138,7 +138,7 @@ static void rtc_timer_update(RTCState *s, int64_t current_time)
int enable_pie;
period_code = s->cmos_data[RTC_REG_A] & 0x0f;
-#if defined TARGET_I386 || defined TARGET_X86_64
+#if defined TARGET_I386
/* disable periodic timer if hpet is in legacy mode, since interrupts are
* disabled anyway.
*/