mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
Sparc32: move device instantiation to sun4m.c
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
7204ff9c79
commit
4b48bf059b
10 changed files with 217 additions and 245 deletions
|
@ -198,25 +198,6 @@ static void sun4c_intctl_reset(void *opaque)
|
|||
s->pending = 0;
|
||||
}
|
||||
|
||||
DeviceState *sun4c_intctl_init(target_phys_addr_t addr, qemu_irq *parent_irq)
|
||||
{
|
||||
DeviceState *dev;
|
||||
SysBusDevice *s;
|
||||
unsigned int i;
|
||||
|
||||
dev = qdev_create(NULL, "sun4c_intctl");
|
||||
qdev_init(dev);
|
||||
|
||||
s = sysbus_from_qdev(dev);
|
||||
|
||||
for (i = 0; i < MAX_PILS; i++) {
|
||||
sysbus_connect_irq(s, i, parent_irq[i]);
|
||||
}
|
||||
sysbus_mmio_map(s, 0, addr);
|
||||
|
||||
return dev;
|
||||
}
|
||||
|
||||
static void sun4c_intctl_init1(SysBusDevice *dev)
|
||||
{
|
||||
Sun4c_INTCTLState *s = FROM_SYSBUS(Sun4c_INTCTLState, dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue