Skip to content

Commit 0f4642e

Browse files
committed
Switch to Zvl/Zve parsing from isa_parser, instead of varch
1 parent 9f5df7f commit 0f4642e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

riscv/processor.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ processor_t::processor_t(const isa_parser_t *isa, const cfg_t *cfg,
5555
}
5656
#endif
5757

58-
parse_varch_string(cfg->varch);
58+
VU.VLEN = isa->get_vlen();
59+
VU.ELEN = isa->get_elen();
60+
VU.vlenb = isa->get_vlen() / 8;
61+
VU.vstart_alu = 0;
5962

6063
register_base_instructions();
6164
mmu = new mmu_t(sim, cfg->endianness, this);

0 commit comments

Comments
 (0)