diff options
author | Thomas Huth <thuth@redhat.com> | 2023-01-12 09:39:21 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-01-26 13:25:07 +0100 |
commit | e803a7f9b1f4d2324b15213593b6e24096e64280 (patch) | |
tree | d762d8105b3dce9041ed6b5a9654e63d0e018131 /hw/misc | |
parent | a8fe0757e1a3b6d92d7d0a9ddccd902e35fbb045 (diff) |
hw/misc/sifive_u_otp: Remove the deprecated OTP config with '-drive if=none'
'-drive if=none' is meant for configuring back-end devices only, so this
got marked as deprecated in QEMU 6.2. Users should now only use the new
way with '-drive if=pflash' instead.
Message-Id: <20230112083921.887828-1-thuth@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/misc')
-rw-r--r-- | hw/misc/sifive_u_otp.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/hw/misc/sifive_u_otp.c b/hw/misc/sifive_u_otp.c index 6d7fdb040a..8965f5c22a 100644 --- a/hw/misc/sifive_u_otp.c +++ b/hw/misc/sifive_u_otp.c @@ -210,13 +210,6 @@ static void sifive_u_otp_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->mmio); dinfo = drive_get(IF_PFLASH, 0, 0); - if (!dinfo) { - dinfo = drive_get(IF_NONE, 0, 0); - if (dinfo) { - warn_report("using \"-drive if=none\" for the OTP is deprecated, " - "use \"-drive if=pflash\" instead."); - } - } if (dinfo) { int ret; uint64_t perm; |