summaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-06 11:25:43 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-06 11:25:43 +0000
commit81732d1926fd50283e12b0abdcbbe8242c8bb29c (patch)
tree6251b31ba6ef2fd006f227484980446d8d307ed2 /hw/sun4m.c
parentaa6ad6fee28653943bb2ce2f48d7ed61c4d6d603 (diff)
downloadqemu-81732d1926fd50283e12b0abdcbbe8242c8bb29c.tar.gz
qemu-81732d1926fd50283e12b0abdcbbe8242c8bb29c.tar.bz2
qemu-81732d1926fd50283e12b0abdcbbe8242c8bb29c.zip
Implement user mode for timers
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3337 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index d2b6b7b887..af96474bf8 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -380,13 +380,10 @@ static void *sun4m_hw_init(const struct hwdef *hwdef, int RAM_size,
nvram = m48t59_init(slavio_irq[0], hwdef->nvram_base, 0,
hwdef->nvram_size, 8);
- for (i = 0; i < MAX_CPUS; i++) {
- slavio_timer_init(hwdef->counter_base +
- (target_phys_addr_t)(i * TARGET_PAGE_SIZE),
- slavio_cpu_irq[i], 0);
- }
- slavio_timer_init(hwdef->counter_base + 0x10000ULL,
- slavio_irq[hwdef->clock1_irq], 2);
+
+ slavio_timer_init_all(hwdef->counter_base, slavio_irq[hwdef->clock1_irq],
+ slavio_cpu_irq);
+
slavio_serial_ms_kbd_init(hwdef->ms_kb_base, slavio_irq[hwdef->ms_kb_irq]);
// Slavio TTYA (base+4, Linux ttyS0) is the first Qemu serial device
// Slavio TTYB (base+0, Linux ttyS1) is the second Qemu serial device