aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-24 17:12:43 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-24 17:12:43 +0000
commitfa1fb14cd2f4f24e158b1bb284bd193e79899575 (patch)
tree8a38b3800d1f3a13153ef0f1b4b08761d82039b3 /hw/sun4m.c
parent1f9584496747480020bb93ee1582d104f877ce0a (diff)
Fix SCSI cdrom boot, thanks Blue Swirl.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2278 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index a636638b5f..c6765d9e17 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -262,6 +262,12 @@ static void sun4m_init(int ram_size, int vga_ram_size, int boot_device,
slavio_serial_init(PHYS_JJ_SER, PHYS_JJ_SER_IRQ, serial_hds[1], serial_hds[0]);
fdctrl_init(PHYS_JJ_FLOPPY_IRQ, 0, 1, PHYS_JJ_FDC, fd_table);
main_esp = esp_init(bs_table, PHYS_JJ_ESP, dma);
+ for (i = 0; i < MAX_SCSI_DISKS; i++) {
+ if (scsi_disks_info[i].adapter == SCSI_ESP &&
+ scsi_disks_info[i].device_type != SCSI_NONE) {
+ esp_scsi_attach(main_esp, bs_scsi_table[i], scsi_disks_info[i].id);
+ }
+ }
slavio_misc = slavio_misc_init(PHYS_JJ_SLAVIO, PHYS_JJ_ME_IRQ);
cs_init(PHYS_JJ_CS, PHYS_JJ_CS_IRQ, slavio_intctl);
sparc32_dma_set_reset_data(dma, main_esp, main_lance);