aboutsummaryrefslogtreecommitdiff
path: root/hw/realview.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-21 19:47:12 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-21 19:47:12 +0000
commitf1698408f1dcb7548a21828a0b1e2b530fae3af3 (patch)
tree491458ab922c56707622f1d78f3cabfcd3eceee0 /hw/realview.c
parent2d48377a8531de63ec1d0c4b9b1959dc4b78356c (diff)
downloadqemu-f1698408f1dcb7548a21828a0b1e2b530fae3af3.zip
qemu-f1698408f1dcb7548a21828a0b1e2b530fae3af3.tar.gz
qemu-f1698408f1dcb7548a21828a0b1e2b530fae3af3.tar.bz2
Compile usb-ohci only once
Push TARGET_WORDS_BIGENDIAN dependency to board level. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/realview.c')
-rw-r--r--hw/realview.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/realview.c b/hw/realview.c
index f786699..c102ddc 100644
--- a/hw/realview.c
+++ b/hw/realview.c
@@ -266,7 +266,11 @@ static void realview_init(ram_addr_t ram_size,
pic[48], pic[49], pic[50], pic[51], NULL);
pci_bus = (PCIBus *)qdev_get_child_bus(dev, "pci");
if (usb_enabled) {
- usb_ohci_init_pci(pci_bus, -1);
+#ifdef TARGET_WORDS_BIGENDIAN
+ usb_ohci_init_pci(pci_bus, -1, 1);
+#else
+ usb_ohci_init_pci(pci_bus, -1, 0);
+#endif
}
n = drive_get_max_bus(IF_SCSI);
while (n >= 0) {