diff options
author | 2023-08-11 13:02:24 -0300 | |
---|---|---|
committer | 2023-08-11 14:16:26 -0400 | |
commit | b274c2388e9fcde75d60c6e7c7d8f888874b61b7 (patch) | |
tree | 90e4d20f7e9cd17eeeaeab1ed7574def185bcb7e /scripts/qapi/source.py | |
parent | target/riscv/kvm.c: fix mvendorid size in vcpu_set_machine_ids() (diff) | |
download | qemu-b274c2388e9fcde75d60c6e7c7d8f888874b61b7.tar.xz qemu-b274c2388e9fcde75d60c6e7c7d8f888874b61b7.zip |
hw/riscv/virt.c: change 'aclint' TCG check
The 'aclint' property is being conditioned with tcg acceleration in
virt_machine_class_init(). But acceleration code starts later than the
class init of the board, meaning that tcg_enabled() will be always be
false during class_init(), and the option is never being declared even
when declaring TCG accel:
$ ./build/qemu-system-riscv64 -M virt,accel=tcg,aclint=on
qemu-system-riscv64: Property 'virt-machine.aclint' not found
Fix it by moving the check from class_init() to machine_init(). Tune the
description to mention that the option is TCG only.
Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
Fixes: c0716c81b ("hw/riscv/virt: Restrict ACLINT to TCG")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1823
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230811160224.440697-2-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions