mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -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;
|
RavenPCIState pci_dev;
|
||||||
|
|
||||||
int contiguous_map;
|
int contiguous_map;
|
||||||
bool is_legacy_prep;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define BIOS_SIZE (1 * MiB)
|
#define BIOS_SIZE (1 * MiB)
|
||||||
|
@ -243,13 +242,10 @@ static void raven_pcihost_realizefn(DeviceState *d, Error **errp)
|
||||||
MemoryRegion *address_space_mem = get_system_memory();
|
MemoryRegion *address_space_mem = get_system_memory();
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (s->is_legacy_prep) {
|
/*
|
||||||
for (i = 0; i < PCI_NUM_PINS; i++) {
|
* According to PReP specification section 6.1.6 "System Interrupt
|
||||||
sysbus_init_irq(dev, &s->pci_irqs[i]);
|
* Assignments", all PCI interrupts are routed via IRQ 15
|
||||||
}
|
*/
|
||||||
} 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));
|
s->or_irq = OR_IRQ(object_new(TYPE_OR_IRQ));
|
||||||
object_property_set_int(OBJECT(s->or_irq), "num-lines", PCI_NUM_PINS,
|
object_property_set_int(OBJECT(s->or_irq), "num-lines", PCI_NUM_PINS,
|
||||||
&error_fatal);
|
&error_fatal);
|
||||||
|
@ -259,7 +255,6 @@ static void raven_pcihost_realizefn(DeviceState *d, Error **errp)
|
||||||
for (i = 0; i < PCI_NUM_PINS; i++) {
|
for (i = 0; i < PCI_NUM_PINS; i++) {
|
||||||
s->pci_irqs[i] = qdev_get_gpio_in(DEVICE(s->or_irq), i);
|
s->pci_irqs[i] = qdev_get_gpio_in(DEVICE(s->or_irq), i);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
qdev_init_gpio_in(d, raven_change_gpio, 1);
|
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,
|
DEFINE_PROP_UINT32("elf-machine", PREPPCIState, pci_dev.elf_machine,
|
||||||
EM_NONE),
|
EM_NONE),
|
||||||
DEFINE_PROP_STRING("bios-name", PREPPCIState, pci_dev.bios_name),
|
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)
|
static void raven_pcihost_class_init(ObjectClass *klass, const void *data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue