From ba31cc7226ebcee639f18faa90c1542bd364fba3 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Fri, 20 Jan 2017 14:01:16 +0100 Subject: Introduce DEVICE_CATEGORY_CPU for CPU devices Now that CPUs show up in the help text of "-device ?", we should group them into an appropriate category. Signed-off-by: Thomas Huth Reviewed-by: Eduardo Habkost Message-Id: <1484917276-7107-1-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini --- qom/cpu.c | 1 + 1 file changed, 1 insertion(+) (limited to 'qom') diff --git a/qom/cpu.c b/qom/cpu.c index 7f57587..e815db7 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -415,6 +415,7 @@ static void cpu_class_init(ObjectClass *klass, void *data) k->cpu_exec_enter = cpu_common_noop; k->cpu_exec_exit = cpu_common_noop; k->cpu_exec_interrupt = cpu_common_exec_interrupt; + set_bit(DEVICE_CATEGORY_CPU, dc->categories); dc->realize = cpu_common_realizefn; dc->unrealize = cpu_common_unrealizefn; /* -- cgit v1.1