arch-riscv: Fix the bug of vsetivli frequently flushing the pipeline

Change-Id: I5bede47919c06cea86fa23a81624b502fbdc1159
This commit is contained in:
Zhibo Hong
2024-10-23 17:24:43 +08:00
parent f01d68bf96
commit 089d780c76

View File

@@ -202,6 +202,7 @@ def template VSetiVliBranchTarget {{
rpc.vl(), requested_vl, vlmax, rd_bits, rs1_bits);
std::unique_ptr<PCState> npc(dynamic_cast<PCState*>(rpc.clone()));
npc->set(rvSext(npc->pc() + 4));
npc->vtype(new_vtype);
npc->vl(new_vl);
return npc;