mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/isa/isa-bus: Remove isabus_dev_print()
All isabus_dev_print() did was to print up to two IRQ numbers per device. This is redundant if the IRQ numbers are present as QOM properties (see e.g. the modified tests/qemu-iotests/172.out). Now that the last devices relying on isabus_dev_print() had their IRQ numbers QOM'ified, the contribution of this function ultimately became redundant. Remove it. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220301220037.76555-5-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220307134353.1950-12-philippe.mathieu.daude@gmail.com> Reviewed-by: Bernhard Beschow <shentey@gmail.com>
This commit is contained in:
parent
b86ce7a66a
commit
27b4cfb94f
2 changed files with 0 additions and 42 deletions
|
@ -21,21 +21,18 @@
|
|||
#include "qemu/error-report.h"
|
||||
#include "qemu/module.h"
|
||||
#include "qapi/error.h"
|
||||
#include "monitor/monitor.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "hw/isa/isa.h"
|
||||
|
||||
static ISABus *isabus;
|
||||
|
||||
static void isabus_dev_print(Monitor *mon, DeviceState *dev, int indent);
|
||||
static char *isabus_get_fw_dev_path(DeviceState *dev);
|
||||
|
||||
static void isa_bus_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
BusClass *k = BUS_CLASS(klass);
|
||||
|
||||
k->print_dev = isabus_dev_print;
|
||||
k->get_fw_dev_path = isabus_get_fw_dev_path;
|
||||
}
|
||||
|
||||
|
@ -222,19 +219,6 @@ void isa_build_aml(ISABus *bus, Aml *scope)
|
|||
}
|
||||
}
|
||||
|
||||
static void isabus_dev_print(Monitor *mon, DeviceState *dev, int indent)
|
||||
{
|
||||
ISADevice *d = ISA_DEVICE(dev);
|
||||
|
||||
if (d->isairq[1] != -1) {
|
||||
monitor_printf(mon, "%*sisa irqs %d,%d\n", indent, "",
|
||||
d->isairq[0], d->isairq[1]);
|
||||
} else if (d->isairq[0] != -1) {
|
||||
monitor_printf(mon, "%*sisa irq %d\n", indent, "",
|
||||
d->isairq[0]);
|
||||
}
|
||||
}
|
||||
|
||||
static void isabus_bridge_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue