summaryrefslogtreecommitdiff
path: root/hw/timer
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-11-25 18:05:53 +0100
committerAndreas Färber <afaerber@suse.de>2013-06-07 14:55:16 +0200
commit3afe7e14a42309578d324df5fe1b303a496a8466 (patch)
tree6103493c2f3fd775c385c86ece9feab93dfd643f /hw/timer
parentdb895a1e6a97e919f9b86d60c969377357b05066 (diff)
downloadqemu-3afe7e14a42309578d324df5fe1b303a496a8466.tar.gz
i8254: QOM'ify some more
Introduce type constant and avoid DO_UPCAST(). Prepares for PIT realizefn. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/timer')
-rw-r--r--hw/timer/i8254.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/timer/i8254.c b/hw/timer/i8254.c
index 20c0c3601d..efbca19df7 100644
--- a/hw/timer/i8254.c
+++ b/hw/timer/i8254.c
@@ -265,7 +265,7 @@ static void pit_irq_timer(void *opaque)
static void pit_reset(DeviceState *dev)
{
- PITCommonState *pit = DO_UPCAST(PITCommonState, dev.qdev, dev);
+ PITCommonState *pit = PIT_COMMON(dev);
PITChannelState *s;
pit_reset_common(pit);
@@ -348,7 +348,7 @@ static void pit_class_initfn(ObjectClass *klass, void *data)
}
static const TypeInfo pit_info = {
- .name = "isa-pit",
+ .name = TYPE_I8254,
.parent = TYPE_PIT_COMMON,
.instance_size = sizeof(PITCommonState),
.class_init = pit_class_initfn,