[PATCH 0/2] lib: sbi_misaligned_ldst: Set GVA if not emulating

Vivian Wang dramforever at live.com
Fri Sep 2 08:48:33 PDT 2022


Fix of a previous patch 1c4ce74f5128 ("lib: sbi: Set gva when creating
sbi_trap_info"), correctly set hstatus.GVA for misaligned loads/stores
that cannot be emulated at all.

See: https://lists.infradead.org/pipermail/opensbi/2022-August/003274.html

Vivian Wang (2):
  lib: sbi_trap: Add helper to get GVA in sbi_trap_regs
  lib: sbi_misaligned_ldst: Set GVA if not emulating

 include/sbi/sbi_trap.h        | 18 ++++++++++++++++++
 lib/sbi/sbi_misaligned_ldst.c |  4 ++--
 lib/sbi/sbi_trap.c            | 14 +-------------
 3 files changed, 21 insertions(+), 15 deletions(-)

-- 
2.37.1




More information about the opensbi mailing list