summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-25 23:21:28 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-31 21:32:43 +0200
commitb2e72fadc8119aa1ad3de9528d991be4d348cca5 (patch)
tree40712f9cc9d96ee73cc7345db168fa82b4b3e9fb
parent490aaae935b6461cfe30660e819317521b255321 (diff)
downloadfocaccia-qemu-b2e72fadc8119aa1ad3de9528d991be4d348cca5.tar.gz
focaccia-qemu-b2e72fadc8119aa1ad3de9528d991be4d348cca5.zip
hw/nvram/xlnx-efuse: Do not expose as user-creatable
This device is part of SoC components thus can not
be created manually.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250325224310.8785-10-philmd@linaro.org>
-rw-r--r--hw/nvram/xlnx-efuse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/nvram/xlnx-efuse.c b/hw/nvram/xlnx-efuse.c
index 29e7dd539e..176e88fcd1 100644
--- a/hw/nvram/xlnx-efuse.c
+++ b/hw/nvram/xlnx-efuse.c
@@ -280,6 +280,8 @@ static void efuse_class_init(ObjectClass *klass, void *data)
 
     dc->realize = efuse_realize;
     device_class_set_props(dc, efuse_properties);
+    /* Reason: Part of Xilinx SoC */
+    dc->user_creatable = false;
 }
 
 static const TypeInfo efuse_info = {