Browse Source

Correct RV64 vsstatus.UXL field (#659)

It was reading as 0, which is not a legal value.

In mstatus, UXL gets initialized by the call to set_csr(CSR_MSTATUS)
here in processor_t::reset().
pull/663/head
Scott Johnson 6 years ago
committed by GitHub
parent
commit
fbb46455d9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      riscv/processor.cc

1
riscv/processor.cc

@ -460,6 +460,7 @@ void processor_t::reset()
state.dcsr.halt = halt_on_reset;
halt_on_reset = false;
set_csr(CSR_MSTATUS, state.mstatus);
state.vsstatus = state.mstatus & SSTATUS_VS_MASK; // set UXL
VU.reset();
if (n_pmp > 0) {

Loading…
Cancel
Save