[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 1/1] hw/riscv: shakti_c: Mark as not user creatable
From: |
Alistair Francis |
Subject: |
[PATCH v1 1/1] hw/riscv: shakti_c: Mark as not user creatable |
Date: |
Mon, 27 Sep 2021 17:13:32 +1000 |
From: Alistair Francis <alistair.francis@wdc.com>
Mark the shakti_c machine as not user creatable as it uses serial_hd.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/639
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
hw/riscv/shakti_c.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/riscv/shakti_c.c b/hw/riscv/shakti_c.c
index 2f084d3c8d..603992d442 100644
--- a/hw/riscv/shakti_c.c
+++ b/hw/riscv/shakti_c.c
@@ -150,6 +150,8 @@ static void shakti_c_soc_class_init(ObjectClass *klass,
void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = shakti_c_soc_state_realize;
+ /* Reason: 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)
--
2.31.1
- [PATCH v1 1/1] hw/riscv: shakti_c: Mark as not user creatable,
Alistair Francis <=