diff options
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2024-11-19 16:17:00 -0300 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2024-12-20 11:22:47 +1000 |
commit | 01948b1dea1ce9cafa8df7f0dc3d2aac6056ddbc (patch) | |
tree | 4f50ce3974920e5aa4b5502783d9db4d6571b482 /hw/intc | |
parent | 7d0b35b3c916cf52e5d7c57e214c69bfb23f96d6 (diff) | |
download | qemu-01948b1dea1ce9cafa8df7f0dc3d2aac6056ddbc.zip qemu-01948b1dea1ce9cafa8df7f0dc3d2aac6056ddbc.tar.gz qemu-01948b1dea1ce9cafa8df7f0dc3d2aac6056ddbc.tar.bz2 |
hw/riscv/virt.c: reduce virt_use_kvm_aia() usage
In create_fdt_sockets() we have the following pattern:
if (kvm_enabled() && virt_use_kvm_aia(s)) {
(... do stuff ...)
} else {
(... do other stuff ...)
}
if (kvm_enabled() && virt_use_kvm_aia(s)) {
(... do more stuff ...)
} else {
(... do more other stuff)
}
Do everything in a single if/else clause to reduce the usage of
virt_use_kvm_aia() helper and to make the code a bit less repetitive.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20241119191706.718860-3-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/intc')
0 files changed, 0 insertions, 0 deletions