aboutsummaryrefslogtreecommitdiff
path: root/hw/riscv
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2021-09-29 09:29:55 +1000
committerAlistair Francis <alistair.francis@wdc.com>2021-10-07 08:41:33 +1000
commit9ae6ecd848dcd1b32003526ab65a0d4c644dfb07 (patch)
tree66718f21492d05ef2bc63d0a9bcb3ddc9c1a0d82 /hw/riscv
parent47b5fbf5a3f9c88936a0532ecb918f5e58ad348c (diff)
downloadqemu-9ae6ecd848dcd1b32003526ab65a0d4c644dfb07.zip
qemu-9ae6ecd848dcd1b32003526ab65a0d4c644dfb07.tar.gz
qemu-9ae6ecd848dcd1b32003526ab65a0d4c644dfb07.tar.bz2
hw/riscv: shakti_c: Mark as not user creatable
Mark the shakti_c machine as not user creatable. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/639 Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <c617a04d4e3dd041a3427b47a1b1d5ab475a2edd.1632871759.git.alistair.francis@wdc.com>
Diffstat (limited to 'hw/riscv')
-rw-r--r--hw/riscv/shakti_c.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/riscv/shakti_c.c b/hw/riscv/shakti_c.c
index 2f084d3..d7d1f91 100644
--- a/hw/riscv/shakti_c.c
+++ b/hw/riscv/shakti_c.c
@@ -150,6 +150,13 @@ static void shakti_c_soc_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = shakti_c_soc_state_realize;
+ /*
+ * Reasons:
+ * - Creates CPUS in riscv_hart_realize(), and can create unintended
+ * CPUs
+ * - Uses serial_hds in realize function, thus can't be used twice
+ */
+ dc->user_creatable = false;
}
static void shakti_c_soc_instance_init(Object *obj)