diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-03-04 16:28:39 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2021-09-08 07:59:02 -0700 |
commit | f4db821afbfdd7b2c5f00fd239c084f6036b7094 (patch) | |
tree | d85632757baa8f98e5cb37e8efceacb2954136b5 /riscv/insns/sfence_vma.h | |
parent | a9720fb0f89047aeff661f86eeaa3fc941efd8a8 (diff) | |
download | spike-f4db821afbfdd7b2c5f00fd239c084f6036b7094.zip spike-f4db821afbfdd7b2c5f00fd239c084f6036b7094.tar.gz spike-f4db821afbfdd7b2c5f00fd239c084f6036b7094.tar.bz2 |
Convert mstatus into csr_t family
Step 3 of plan described in csrs.h.
Diffstat (limited to 'riscv/insns/sfence_vma.h')
-rw-r--r-- | riscv/insns/sfence_vma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/sfence_vma.h b/riscv/insns/sfence_vma.h index 2896024..a14865f 100644 --- a/riscv/insns/sfence_vma.h +++ b/riscv/insns/sfence_vma.h @@ -4,6 +4,6 @@ if (STATE.v) { if (STATE.prv == PRV_U || get_field(STATE.hstatus, HSTATUS_VTVM)) require_novirt(); } else { - require_privilege(get_field(STATE.mstatus, MSTATUS_TVM) ? PRV_M : PRV_S); + require_privilege(get_field(STATE.mstatus->read(), MSTATUS_TVM) ? PRV_M : PRV_S); } MMU.flush_tlb(); |