diff options
| author | Vivian Wang <[email protected]> | 2022-09-02 23:48:35 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-09-13 16:43:07 +0530 |
| commit | 46e744ab6736c0d14a1a1609d9dda3b802c164fe (patch) | |
| tree | 1e5a52f34f6a31d9fe7b801abc81f238300581c5 /lib/utils | |
| parent | 37a0d83b6d5a06fd740fcdfb5e4074c33e472a2d (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
