From f94658098d666a96ce342f78c59528c3746ce7d4 Mon Sep 17 00:00:00 2001 From: Roger Chang Date: Mon, 14 Aug 2023 11:03:31 +0800 Subject: [PATCH] arch-riscv: Remove checked_type in StaticInst Constructor We should not try to check vtype when decoding the instruction. It should be checked in vset{i}vl{i} since the register can be modified via vset{i}vl{i} Change-Id: I403e5c4579bc5b8e6af10f93eac20c14662e4d2d --- src/arch/riscv/insts/vector.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/riscv/insts/vector.hh b/src/arch/riscv/insts/vector.hh index cae0dcac0a..8098c98b78 100644 --- a/src/arch/riscv/insts/vector.hh +++ b/src/arch/riscv/insts/vector.hh @@ -100,7 +100,7 @@ class VectorNonSplitInst : public RiscvStaticInst OpClass __opClass) : RiscvStaticInst(mnem, _machInst, __opClass), vl(_machInst.vl), - vtype(checked_vtype(_machInst.vill, _machInst.vtype8)) + vtype(_machInst.vtype8) { this->flags[IsVector] = true; } @@ -118,7 +118,7 @@ class VectorMacroInst : public RiscvMacroInst OpClass __opClass) : RiscvMacroInst(mnem, _machInst, __opClass), vl(_machInst.vl), - vtype(checked_vtype(_machInst.vill, _machInst.vtype8)) + vtype(_machInst.vtype8) { this->flags[IsVector] = true; }