Skip to contentSkip to conversation

TARGET_I386 is always defined if TARGET_X86_64 is defined

PATCH New Juan Quintela 1 participant 1 message Oct 7, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TARGET_I386 is always defined if TARGET_X86_64 is defined

---
 hw/hpet_emul.h   |    2 +-
 hw/mc146818rtc.c |    4 ++--
 hw/pci-hotplug.c |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
hw/hpet_emul.h +1 -1
index 3258d8b..cfd95b4 100644
@@ -74,7 +74,7 @@ typedef struct HPETState {
     uint64_t hpet_counter;      /* main counter */
 } HPETState;
 
-#if defined TARGET_I386 || defined TARGET_X86_64
+#if defined TARGET_I386
 extern uint32_t hpet_in_legacy_mode(void);
 extern void hpet_init(qemu_irq *irq);
 #endif
hw/mc146818rtc.c +2 -2
index bec5687..0b945d5 100644
@@ -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.
      */
hw/pci-hotplug.c +1 -1
index c38a127..099a6f7 100644
@@ -34,7 +34,7 @@
 #include "virtio-blk.h"
 #include "qemu-config.h"
 
-#if defined(TARGET_I386) || defined(TARGET_X86_64)
+#if defined(TARGET_I386)
 static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,
                                        const char *devaddr,
                                        const char *opts_str)
Signature · 1 line
1.6.2.5