aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-16 13:47:45 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-16 13:47:45 +0000
commitfa28ec521bbc132556a5379f28eff60207cf9d7d (patch)
treed770db3cd0d3c14c97ad9a74ac974142a02364c4 /hw/sun4m.c
parentd3ffcafe25b5966b351ea6100160c2156688f22f (diff)
Sparc32: convert cs4231 to qdev
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index f9ef298513..5d23f31ac2 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -580,8 +580,10 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, ram_addr_t RAM_size,
espdma_memory_read, espdma_memory_write,
espdma, espdma_irq, esp_reset);
- if (hwdef->cs_base)
- cs_init(hwdef->cs_base, hwdef->cs_irq, slavio_intctl);
+ if (hwdef->cs_base) {
+ sysbus_create_simple("SUNW,CS4231", hwdef->cs_base,
+ slavio_irq[hwdef->cs_irq]);
+ }
kernel_size = sun4m_load_kernel(kernel_filename, initrd_filename,
RAM_size);