Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / cpu / core.h
blob98ab91647eb25053602208cd350107cbce70c6b8
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 "hw/qdev-core.h"
13 #include "qom/object.h"
15 #define TYPE_CPU_CORE "cpu-core"
17 OBJECT_DECLARE_SIMPLE_TYPE(CPUCore, CPU_CORE)
19 struct CPUCore {
20 /*< private >*/
21 DeviceState parent_obj;
23 /*< public >*/
24 int core_id;
25 int nr_threads;
28 /* Note: topology field names need to be kept in sync with
29 * 'CpuInstanceProperties' */
31 #define CPU_CORE_PROP_CORE_ID "core-id"
33 #endif