mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
heathrow: remove obsolete heathow_init() function
Instead wire up heathrow to the CPU and grackle PCI host using qdev GPIOs. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
0f4b5415c3
commit
a5ed75fe2e
4 changed files with 18 additions and 31 deletions
|
@ -172,29 +172,16 @@ static void heathrow_init(Object *obj)
|
|||
HeathrowState *s = HEATHROW(obj);
|
||||
SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
|
||||
|
||||
/* only 1 CPU */
|
||||
qdev_init_gpio_out(DEVICE(obj), s->irqs, 1);
|
||||
|
||||
qdev_init_gpio_in(DEVICE(obj), heathrow_set_irq, HEATHROW_NUM_IRQS);
|
||||
|
||||
memory_region_init_io(&s->mem, OBJECT(s), &heathrow_ops, s,
|
||||
"heathrow-pic", 0x1000);
|
||||
sysbus_init_mmio(sbd, &s->mem);
|
||||
}
|
||||
|
||||
DeviceState *heathrow_pic_init(int nb_cpus, qemu_irq **irqs,
|
||||
qemu_irq **pic_irqs)
|
||||
{
|
||||
DeviceState *d;
|
||||
HeathrowState *s;
|
||||
|
||||
d = qdev_create(NULL, TYPE_HEATHROW);
|
||||
qdev_init_nofail(d);
|
||||
|
||||
s = HEATHROW(d);
|
||||
/* only 1 CPU */
|
||||
s->irqs = irqs[0];
|
||||
|
||||
*pic_irqs = qemu_allocate_irqs(heathrow_set_irq, s, HEATHROW_NUM_IRQS);
|
||||
|
||||
return d;
|
||||
}
|
||||
|
||||
static void heathrow_class_init(ObjectClass *oc, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue