mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
esp: rename existing ESP QOM type to SYSBUS_ESP
The existing ESP QOM type currently represents a sysbus device with an embedded ESP state. Rename the type to SYSBUS_ESP accordingly. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20210304221103.6369-3-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
94d5c79d32
commit
84fbefedfe
6 changed files with 13 additions and 13 deletions
|
@ -295,13 +295,13 @@ static void sparc32_espdma_device_init(Object *obj)
|
|||
memory_region_init_io(&s->iomem, OBJECT(s), &dma_mem_ops, s,
|
||||
"espdma-mmio", DMA_SIZE);
|
||||
|
||||
object_initialize_child(obj, "esp", &es->esp, TYPE_ESP);
|
||||
object_initialize_child(obj, "esp", &es->esp, TYPE_SYSBUS_ESP);
|
||||
}
|
||||
|
||||
static void sparc32_espdma_device_realize(DeviceState *dev, Error **errp)
|
||||
{
|
||||
ESPDMADeviceState *es = SPARC32_ESPDMA_DEVICE(dev);
|
||||
SysBusESPState *sysbus = ESP(&es->esp);
|
||||
SysBusESPState *sysbus = SYSBUS_ESP(&es->esp);
|
||||
ESPState *esp = &sysbus->esp;
|
||||
|
||||
esp->dma_memory_read = espdma_memory_read;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue