summary refs log tree commit diff stats
path: root/target/loongarch/cpu.c
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-02-10 15:21:39 +0800
committerBibo Mao <maobibo@loongson.cn>2025-03-05 09:39:18 +0800
commitab9935d2991e620482b10a261e264f0e6e16ed61 (patch)
treece9ba41a557defb98f2516dbdf54a00c06993206 /target/loongarch/cpu.c
parent2cd6857f6f5b92ed6c0fa3404efaa843aaa6be0c (diff)
downloadfocaccia-qemu-ab9935d2991e620482b10a261e264f0e6e16ed61.tar.gz
focaccia-qemu-ab9935d2991e620482b10a261e264f0e6e16ed61.zip
hw/loongarch/virt: Implement cpu plug interface
Implement cpu plug interface, and cold-plug cpu uses plug interface
when cpu object is created.

Co-developed-by: Xianglai Li <lixianglai@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Diffstat (limited to 'target/loongarch/cpu.c')
-rw-r--r--target/loongarch/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c
index 8b99b8def4..b2961d8605 100644
--- a/target/loongarch/cpu.c
+++ b/target/loongarch/cpu.c
@@ -932,6 +932,7 @@ static void loongarch_cpu_class_init(ObjectClass *c, void *data)
 #ifdef CONFIG_TCG
     cc->tcg_ops = &loongarch_tcg_ops;
 #endif
+    dc->user_creatable = true;
 }
 
 static const gchar *loongarch32_gdb_arch_name(CPUState *cs)