OSDN Git Service

hw/timer/i8254_common: Share "iobase" property via base class
authorBernhard Beschow <shentey@gmail.com>
Tue, 23 May 2023 19:56:06 +0000 (21:56 +0200)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 5 Jun 2023 06:43:23 +0000 (07:43 +0100)
commit02520772ae1f5e336dd12765d7f9166e859642a9
treef97ee1f96a58b011e0d3d11a0737ee509c4d4b7b
parent848a6caa88b9f082c89c9b41afa975761262981d
hw/timer/i8254_common: Share "iobase" property via base class

Both TYPE_KVM_I8254 and TYPE_I8254 have their own but same implementation of
the "iobase" property. The storage for the property already resides in
PITCommonState, so also move the property definition there.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230523195608.125820-2-shentey@gmail.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/i386/kvm/i8254.c
hw/timer/i8254.c
hw/timer/i8254_common.c