diff options
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2023-09-12 10:24:05 -0300 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2023-10-12 11:30:37 +1000 |
commit | bfb37c693a8dd19f41f9017821a48c188eed41e7 (patch) | |
tree | 8a8c0178b41ee746b6b38f57fa0983db05567bc9 | |
parent | 8ea3fceff4e0622f16441e261d125709c8819577 (diff) | |
download | qemu-bfb37c693a8dd19f41f9017821a48c188eed41e7.zip qemu-bfb37c693a8dd19f41f9017821a48c188eed41e7.tar.gz qemu-bfb37c693a8dd19f41f9017821a48c188eed41e7.tar.bz2 |
target/riscv/cpu.c: skip 'bool' check when filtering KVM props
After the introduction of riscv_cpu_options[] all properties in
riscv_cpu_extensions[] are booleans. This check is now obsolete.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Message-ID: <20230912132423.268494-3-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
-rw-r--r-- | target/riscv/cpu.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 03143c3..e02f399 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -1972,17 +1972,11 @@ static void riscv_cpu_add_user_properties(Object *obj) * Set the default to disabled for every extension * unknown to KVM and error out if the user attempts * to enable any of them. - * - * We're giving a pass for non-bool properties since they're - * not related to the availability of extensions and can be - * safely ignored as is. */ - if (prop->info == &qdev_prop_bool) { - object_property_add(obj, prop->name, "bool", - NULL, cpu_set_cfg_unavailable, - NULL, (void *)prop->name); - continue; - } + object_property_add(obj, prop->name, "bool", + NULL, cpu_set_cfg_unavailable, + NULL, (void *)prop->name); + continue; } #endif qdev_property_add_static(dev, prop); |