浏览代码

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>
Philippe Mathieu-Daudé 4 月之前
父节点
当前提交
b2e72fadc8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hw/nvram/xlnx-efuse.c

+ 2 - 0
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 = {