summary refs log tree commit diff stats
path: root/target/riscv/riscv-qmp-cmds.c
diff options
context:
space:
mode:
authorMax Chou <max.chou@sifive.com>2025-09-23 17:07:28 +0800
committerAlistair Francis <alistair.francis@wdc.com>2025-10-03 13:15:14 +1000
commitae4a37f57818e47e212272821a5a86ad54620eb8 (patch)
tree9e068e7a815ac8f4ed31613154f1c227a26a9f15 /target/riscv/riscv-qmp-cmds.c
parent0b16c7b6a854d461cdfd418769b51d58e43dd92a (diff)
downloadfocaccia-qemu-ae4a37f57818e47e212272821a5a86ad54620eb8.tar.gz
focaccia-qemu-ae4a37f57818e47e212272821a5a86ad54620eb8.zip
target/riscv: rvv: Replace checking V by checking Zve32x
The Zve32x extension will be applied by the V and Zve* extensions.
Therefore we can replace the original V checking with Zve32x checking for both
the V and Zve* extensions.

Signed-off-by: Max Chou <max.chou@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250923090729.1887406-2-max.chou@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/riscv-qmp-cmds.c')
-rw-r--r--target/riscv/riscv-qmp-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/riscv/riscv-qmp-cmds.c b/target/riscv/riscv-qmp-cmds.c
index b63de8dd45..c499f9b9a7 100644
--- a/target/riscv/riscv-qmp-cmds.c
+++ b/target/riscv/riscv-qmp-cmds.c
@@ -342,7 +342,7 @@ int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval)
     }
 
     if (reg_is_vreg(name)) {
-        if (!riscv_has_ext(env, RVV)) {
+        if (!riscv_cpu_cfg(env)->ext_zve32x) {
             return -EINVAL;
         }