diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-03-08 22:20:32 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2021-09-08 07:59:02 -0700 |
commit | ba6f0dc65c14780683f2248274a3395dc7df02fa (patch) | |
tree | c1dc74a47bf81d0de8182f05bc8ad6a3b2bd45e6 /riscv/insns/hlv_bu.h | |
parent | 96aed2f5745e2effc173dc6cd2d2d24fa0d49c2f (diff) | |
download | spike-ba6f0dc65c14780683f2248274a3395dc7df02fa.zip spike-ba6f0dc65c14780683f2248274a3395dc7df02fa.tar.gz spike-ba6f0dc65c14780683f2248274a3395dc7df02fa.tar.bz2 |
Convert hstatus to csr_t family
Diffstat (limited to 'riscv/insns/hlv_bu.h')
-rw-r--r-- | riscv/insns/hlv_bu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/hlv_bu.h b/riscv/insns/hlv_bu.h index 2f95194..560f94a 100644 --- a/riscv/insns/hlv_bu.h +++ b/riscv/insns/hlv_bu.h @@ -1,4 +1,4 @@ require_extension('H'); require_novirt(); -require_privilege(get_field(STATE.hstatus, HSTATUS_HU) ? PRV_U : PRV_S); +require_privilege(get_field(STATE.hstatus->read(), HSTATUS_HU) ? PRV_U : PRV_S); WRITE_RD(MMU.guest_load_uint8(RS1)); |