summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorVivian Wang <[email protected]>2022-09-02 23:48:35 +0800
committerAnup Patel <[email protected]>2022-09-13 16:43:07 +0530
commit46e744ab6736c0d14a1a1609d9dda3b802c164fe (patch)
tree1e5a52f34f6a31d9fe7b801abc81f238300581c5 /lib/utils
parent37a0d83b6d5a06fd740fcdfb5e4074c33e472a2d (diff)
lib: sbi_misaligned_ldst: Set GVA if not emulating
If a particular misaligned load or store cannot be emulated at all, for the redirected trap, trap.gva is set to 0, but it should be the same as mstatus[h].GVA of the original trap. Fix this so that if the trap is destined for HS-mode, hstatus.GVA is then set correctly. Fixes: 1c4ce74f5128 ("lib: sbi: Set gva when creating sbi_trap_info") Signed-off-by: Vivian Wang <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions