qapi: keep names in 'CpuInstanceProperties' in sync with struct CPUCore
[qemu/kevin.git] / include / hw / cpu / core.h
blob79ac79c29c503dd82faab3f104debaba3449b1eb
1 /*
2 * CPU core abstract device
4 * Copyright (C) 2016 Bharata B Rao <bharata@linux.vnet.ibm.com>
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
9 #ifndef HW_CPU_CORE_H
10 #define HW_CPU_CORE_H
12 #include "qemu/osdep.h"
13 #include "hw/qdev.h"
15 #define TYPE_CPU_CORE "cpu-core"
17 #define CPU_CORE(obj) \
18 OBJECT_CHECK(CPUCore, (obj), TYPE_CPU_CORE)
20 typedef struct CPUCore {
21 /*< private >*/
22 DeviceState parent_obj;
24 /*< public >*/
25 int core_id;
26 int nr_threads;
27 } CPUCore;
29 /* Note: topology field names need to be kept in sync with
30 * 'CpuInstanceProperties' */
32 #define CPU_CORE_PROP_CORE_ID "core-id"
34 #endif