]> git.proxmox.com Git - mirror_qemu.git/commit
hw: remove pio_addr_t
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Mar 2016 09:20:34 +0000 (10:20 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 May 2016 14:42:30 +0000 (16:42 +0200)
commit89a80e7400f7225d9401b35ef32454b4ab29dc67
tree1ab07269c819c8eb7d128ec27bbbf9d5e61825d7
parent63c915526d6a54a95919ebece83fa9ca631b2508
hw: remove pio_addr_t

pio_addr_t is almost unused, because these days I/O ports are simply
accessed through the address space.  cpu_{in,out}[bwl] themselves are
almost unused; monitor.c and xen-hvm.c could use address_space_read/write
directly, since they have an integer size at hand.  This leaves qtest as
the only user of those functions.

On the other hand even portio_* functions use this type; the only
interesting use of pio_addr_t thus is include/hw/sysbus.h.  I guess I
could move it there, but I don't see much benefit in that either.  Using
uint32_t is enough and avoids the need to include ioport.h everywhere.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/sysbus.c
include/exec/ioport.h
include/hw/sysbus.h
ioport.c
xen-hvm.c