aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-10 11:46:13 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-10 11:46:13 +0000
commitf158755072f368d539b31851b308bec985893abb (patch)
tree1b6ec88e3fa8bc71e1b5ed4db75adc0a6dd37c42 /hw/sun4m.c
parentbf8c534200b7e69e87725a0d49eb94c0da744f91 (diff)
Restore SCSI disk attaching, by Igor Kovalenko.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2313 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index a636638b5f..9b6aae53c8 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -262,6 +262,13 @@ 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_DISKS; i++) {
+ if (bs_table[i]) {
+ esp_scsi_attach(main_esp, bs_table[i], i);
+ }
+ }
+
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);