arch-riscv: Fix the bug of vsetivli frequently flushing the pipeline
Change-Id: I5bede47919c06cea86fa23a81624b502fbdc1159
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user