aboutsummaryrefslogtreecommitdiff
path: root/hw/sm501.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sm501.c')
-rw-r--r--hw/sm501.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/sm501.c b/hw/sm501.c
index 1a342bdc58..41ef3bff7a 100644
--- a/hw/sm501.c
+++ b/hw/sm501.c
@@ -1222,8 +1222,13 @@ void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq,
0x1000, sm501_disp_ctrl_index);
/* bridge to usb host emulation module */
+#ifdef TARGET_WORDS_BIGENDIAN
+ usb_ohci_init_sm501(base + MMIO_BASE_OFFSET + SM501_USB_HOST, base,
+ 2, -1, irq, 1);
+#else
usb_ohci_init_sm501(base + MMIO_BASE_OFFSET + SM501_USB_HOST, base,
- 2, -1, irq);
+ 2, -1, irq, 0);
+#endif
/* bridge to serial emulation module */
if (chr) {