aboutsummaryrefslogtreecommitdiff
path: root/qom/cpu.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-07-14 10:15:08 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-07-14 12:04:43 +0200
commitc7e002c55acd82c8b7f512d52fe3fb6f94c1939e (patch)
treeed40a2500b184c241905bc84603e7aaa7a8c141e /qom/cpu.c
parente4934bb39c76bd86cccae384f2b5ef414d6f2dcb (diff)
downloadqemu-c7e002c55acd82c8b7f512d52fe3fb6f94c1939e.zip
qemu-c7e002c55acd82c8b7f512d52fe3fb6f94c1939e.tar.gz
qemu-c7e002c55acd82c8b7f512d52fe3fb6f94c1939e.tar.bz2
cpu: Convert to DEFINE_PROP_LINK
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170714021509.23681-20-famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qom/cpu.c')
-rw-r--r--qom/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qom/cpu.c b/qom/cpu.c
index 8757f03..a39ff6c 100644
--- a/qom/cpu.c
+++ b/qom/cpu.c
@@ -458,6 +458,7 @@ static void cpu_class_init(ObjectClass *klass, void *data)
set_bit(DEVICE_CATEGORY_CPU, dc->categories);
dc->realize = cpu_common_realizefn;
dc->unrealize = cpu_common_unrealizefn;
+ dc->props = cpu_common_props;
/*
* Reason: CPUs still need special care by board code: wiring up
* IRQs, adding reset handlers, halting non-first CPUs, ...