summaryrefslogtreecommitdiff
path: root/hw/slavio_timer.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-08 20:24:47 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-08 20:24:47 +0000
commit4b48bf059b2824e09ca8062269b689a20528f16c (patch)
tree6cb03c3605b390f75fcd496948cdbf459d23608a /hw/slavio_timer.c
parent7204ff9c792e47339ea506ea1466e9f5c36f63b2 (diff)
downloadqemu-4b48bf059b2824e09ca8062269b689a20528f16c.tar.gz
qemu-4b48bf059b2824e09ca8062269b689a20528f16c.tar.bz2
qemu-4b48bf059b2824e09ca8062269b689a20528f16c.zip
Sparc32: move device instantiation to sun4m.c
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/slavio_timer.c')
-rw-r--r--hw/slavio_timer.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/hw/slavio_timer.c b/hw/slavio_timer.c
index aa9672a928..ed1145a315 100644
--- a/hw/slavio_timer.c
+++ b/hw/slavio_timer.c
@@ -76,9 +76,6 @@ typedef struct TimerContext {
#define SYS_TIMER_SIZE 0x14
#define CPU_TIMER_SIZE 0x10
-#define SYS_TIMER_OFFSET 0x10000ULL
-#define CPU_TIMER_OFFSET(cpu) (0x1000ULL * cpu)
-
#define TIMER_LIMIT 0
#define TIMER_COUNTER 1
#define TIMER_COUNTER_NORST 2
@@ -415,26 +412,6 @@ static void slavio_timer_reset(void *opaque)
s->cputimer_mode = 0;
}
-void slavio_timer_init_all(target_phys_addr_t addr, qemu_irq master_irq,
- qemu_irq *cpu_irqs, unsigned int num_cpus)
-{
- DeviceState *dev;
- SysBusDevice *s;
- unsigned int i;
-
- dev = qdev_create(NULL, "slavio_timer");
- qdev_prop_set_uint32(dev, "num_cpus", num_cpus);
- qdev_init(dev);
- s = sysbus_from_qdev(dev);
- sysbus_connect_irq(s, 0, master_irq);
- sysbus_mmio_map(s, 0, addr + SYS_TIMER_OFFSET);
-
- for (i = 0; i < MAX_CPUS; i++) {
- sysbus_mmio_map(s, i + 1, addr + (target_phys_addr_t)CPU_TIMER_OFFSET(i));
- sysbus_connect_irq(s, i + 1, cpu_irqs[i]);
- }
-}
-
static void slavio_timer_init1(SysBusDevice *dev)
{
int io;