mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/pci-host/raven: Remove is-legacy-prep property
This was a workaround for the prep machine that was removed 5 years
ago so this is no longer needed.
Fixes: b2ce76a073
(hw/ppc/prep: Remove the deprecated "prep" machine and the OpenHackware BIOS)
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <0d41c18a8831bd4c8b0948eda3ef8f60f5a311f3.1746374076.git.balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
65561d9393
commit
8a486e3902
1 changed files with 11 additions and 19 deletions
|
@ -75,7 +75,6 @@ struct PRePPCIState {
|
|||
RavenPCIState pci_dev;
|
||||
|
||||
int contiguous_map;
|
||||
bool is_legacy_prep;
|
||||
};
|
||||
|
||||
#define BIOS_SIZE (1 * MiB)
|
||||
|
@ -243,22 +242,18 @@ static void raven_pcihost_realizefn(DeviceState *d, Error **errp)
|
|||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
int i;
|
||||
|
||||
if (s->is_legacy_prep) {
|
||||
for (i = 0; i < PCI_NUM_PINS; i++) {
|
||||
sysbus_init_irq(dev, &s->pci_irqs[i]);
|
||||
}
|
||||
} else {
|
||||
/* According to PReP specification section 6.1.6 "System Interrupt
|
||||
* Assignments", all PCI interrupts are routed via IRQ 15 */
|
||||
s->or_irq = OR_IRQ(object_new(TYPE_OR_IRQ));
|
||||
object_property_set_int(OBJECT(s->or_irq), "num-lines", PCI_NUM_PINS,
|
||||
&error_fatal);
|
||||
qdev_realize(DEVICE(s->or_irq), NULL, &error_fatal);
|
||||
sysbus_init_irq(dev, &s->or_irq->out_irq);
|
||||
/*
|
||||
* According to PReP specification section 6.1.6 "System Interrupt
|
||||
* Assignments", all PCI interrupts are routed via IRQ 15
|
||||
*/
|
||||
s->or_irq = OR_IRQ(object_new(TYPE_OR_IRQ));
|
||||
object_property_set_int(OBJECT(s->or_irq), "num-lines", PCI_NUM_PINS,
|
||||
&error_fatal);
|
||||
qdev_realize(DEVICE(s->or_irq), NULL, &error_fatal);
|
||||
sysbus_init_irq(dev, &s->or_irq->out_irq);
|
||||
|
||||
for (i = 0; i < PCI_NUM_PINS; i++) {
|
||||
s->pci_irqs[i] = qdev_get_gpio_in(DEVICE(s->or_irq), i);
|
||||
}
|
||||
for (i = 0; i < PCI_NUM_PINS; i++) {
|
||||
s->pci_irqs[i] = qdev_get_gpio_in(DEVICE(s->or_irq), i);
|
||||
}
|
||||
|
||||
qdev_init_gpio_in(d, raven_change_gpio, 1);
|
||||
|
@ -426,9 +421,6 @@ static const Property raven_pcihost_properties[] = {
|
|||
DEFINE_PROP_UINT32("elf-machine", PREPPCIState, pci_dev.elf_machine,
|
||||
EM_NONE),
|
||||
DEFINE_PROP_STRING("bios-name", PREPPCIState, pci_dev.bios_name),
|
||||
/* Temporary workaround until legacy prep machine is removed */
|
||||
DEFINE_PROP_BOOL("is-legacy-prep", PREPPCIState, is_legacy_prep,
|
||||
false),
|
||||
};
|
||||
|
||||
static void raven_pcihost_class_init(ObjectClass *klass, const void *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue