diff options
| author | Richard Henderson <rth@twiddle.net> | 2011-08-15 11:59:09 -0700 |
|---|---|---|
| committer | Avi Kivity <avi@redhat.com> | 2011-10-10 15:29:28 +0200 |
| commit | ebf47c24b01857d8b49a892b853bdd13b8e3eb5e (patch) | |
| tree | b1e2b8738c3e5076fddaaae5d1d1ae5c7ac86c14 /hw/isa.h | |
| parent | febbd7c29a726f8e249aa421b429b3a575d70f38 (diff) | |
| download | focaccia-qemu-ebf47c24b01857d8b49a892b853bdd13b8e3eb5e.tar.gz focaccia-qemu-ebf47c24b01857d8b49a892b853bdd13b8e3eb5e.zip | |
isa: Tidy support code for isabus_get_fw_dev_path
The only user of ISADevice.ioports is isabus_get_fw_dev_path, and it only looks at the first entry of the array. Which suggests that this entire array+sort operation can be replaced by a simple minimum. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/isa.h')
| -rw-r--r-- | hw/isa.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/isa.h b/hw/isa.h index 432d17ab26..c5c2618c74 100644 --- a/hw/isa.h +++ b/hw/isa.h @@ -13,12 +13,9 @@ typedef struct ISADeviceInfo ISADeviceInfo; struct ISADevice { DeviceState qdev; - MemoryRegion *io[32]; uint32_t isairq[2]; - uint16_t ioports[32]; int nirqs; - int nioports; - int nio; + int ioport_id; }; typedef int (*isa_qdev_initfn)(ISADevice *dev); |