From 02520772ae1f5e336dd12765d7f9166e859642a9 Mon Sep 17 00:00:00 2001 From: Bernhard Beschow Date: Tue, 23 May 2023 21:56:06 +0200 Subject: hw/timer/i8254_common: Share "iobase" property via base class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Michael S. Tsirkin Reviewed-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230523195608.125820-2-shentey@gmail.com> Signed-off-by: Mark Cave-Ayland --- hw/i386/kvm/i8254.c | 1 - 1 file changed, 1 deletion(-) (limited to 'hw/i386/kvm/i8254.c') diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c index 191a26f..6a7383d 100644 --- a/hw/i386/kvm/i8254.c +++ b/hw/i386/kvm/i8254.c @@ -301,7 +301,6 @@ static void kvm_pit_realizefn(DeviceState *dev, Error **errp) } static Property kvm_pit_properties[] = { - DEFINE_PROP_UINT32("iobase", PITCommonState, iobase, -1), DEFINE_PROP_LOSTTICKPOLICY("lost_tick_policy", KVMPITState, lost_tick_policy, LOST_TICK_POLICY_DELAY), DEFINE_PROP_END_OF_LIST(), -- cgit v1.1