From c37c96b6a4b6a6e829922b132331d6302c576b16 Mon Sep 17 00:00:00 2001 From: YenHaoChen Date: Thu, 23 Jan 2025 18:28:02 +0800 Subject: [PATCH] vcompress.vm: Check if there is any vector extension before using vector CSRs --- riscv/insns/vcompress_vm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv/insns/vcompress_vm.h b/riscv/insns/vcompress_vm.h index d35b8baa12..f2ed938aa8 100644 --- a/riscv/insns/vcompress_vm.h +++ b/riscv/insns/vcompress_vm.h @@ -1,4 +1,5 @@ // vcompress vd, vs2, vs1 +P.any_vector_extensions(); require(P.VU.vstart->read() == 0); require_align(insn.rd(), P.VU.vflmul); require_align(insn.rs2(), P.VU.vflmul);