Skip to content

Commit 707b1f2

Browse files
committed
Instantiate vector CSRs only if any_vector_extensions()
1 parent af90d42 commit 707b1f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

riscv/processor.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@ void processor_t::reset()
577577
state.reset(this, isa->get_max_isa());
578578
state.dcsr->halt = halt_on_reset;
579579
halt_on_reset = false;
580-
VU.reset();
580+
if (any_vector_extensions())
581+
VU.reset();
581582
in_wfi = false;
582583

583584
if (n_pmp > 0) {

0 commit comments

Comments
 (0)