aboutsummaryrefslogtreecommitdiff
path: root/scripts/Kconfiglib/kconfiglib.py
diff options
context:
space:
mode:
authordramforever <dramforever@live.com>2022-06-09 15:07:31 +0800
committerAnup Patel <anup@brainfault.org>2022-06-21 08:31:56 +0530
commita07402ac9cea19b3af70ed6469bb6d937132a18f (patch)
tree22fcbfc17f00c75d5b507ef567dd4093f19db794 /scripts/Kconfiglib/kconfiglib.py
parent187127fb89b99790793d4b2663286371b59021ae (diff)
downloadopensbi-a07402ac9cea19b3af70ed6469bb6d937132a18f.zip
opensbi-a07402ac9cea19b3af70ed6469bb6d937132a18f.tar.gz
opensbi-a07402ac9cea19b3af70ed6469bb6d937132a18f.tar.bz2
lib: sbi: Fix tval and tinst for sbi_get_insn()
We should not change trap->tval to mepc because mtval already points to the faulting portion of the emulated instruction fetch, which is also what stval is expected to be. In addition, htinst is only allowed to be zero for instruction access faults or page faults, and is only allowed to be zero or a psuedoinstruction for instruction guest-page faults. Fix trap->tinst for these cases. Signed-off-by: dramforever <dramforever@live.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'scripts/Kconfiglib/kconfiglib.py')
0 files changed, 0 insertions, 0 deletions