aboutsummaryrefslogtreecommitdiff
path: root/riscv/processor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/processor.cc')
-rw-r--r--riscv/processor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/riscv/processor.cc b/riscv/processor.cc
index 43f5627..516618d 100644
--- a/riscv/processor.cc
+++ b/riscv/processor.cc
@@ -55,7 +55,10 @@ processor_t::processor_t(const isa_parser_t *isa, const cfg_t *cfg,
}
#endif
- parse_varch_string(cfg->varch);
+ VU.VLEN = isa->get_vlen();
+ VU.ELEN = isa->get_elen();
+ VU.vlenb = isa->get_vlen() / 8;
+ VU.vstart_alu = 0;
register_base_instructions();
mmu = new mmu_t(sim, cfg->endianness, this);