summaryrefslogtreecommitdiff
path: root/include/sbi_utils/sys/sifive_test.h
diff options
context:
space:
mode:
authorVivian Wang <dramforever@live.com>2022-09-02 18:48:34 +0300
committerAnup Patel <anup@brainfault.org>2022-09-13 14:12:59 +0300
commit37a0d83b6d5a06fd740fcdfb5e4074c33e472a2d (patch)
tree910ce508d5ec8d28117c93980425df93da20e25f /include/sbi_utils/sys/sifive_test.h
parent19664f67579181d370621338f96307775add2bf9 (diff)
downloadopensbi-37a0d83b6d5a06fd740fcdfb5e4074c33e472a2d.tar.xz
lib: sbi_trap: Add helper to get GVA in sbi_trap_regs
The GVA bit is in mstatus on RV64, and in mstatush in RV32. Refactor code handling this in sbi_trap_handler into a helper function to extract GVA from sbi_trap_regs, so that future code accessing GVA can be XLEN-agnostic. Signed-off-by: Vivian Wang <dramforever@live.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include/sbi_utils/sys/sifive_test.h')
0 files changed, 0 insertions, 0 deletions