summaryrefslogtreecommitdiff
path: root/lib/utils/timer/fdt_timer_mtimer.c
diff options
context:
space:
mode:
authordramforever <[email protected]>2022-06-09 15:07:31 +0800
committerAnup Patel <[email protected]>2022-06-21 08:31:56 +0530
commita07402ac9cea19b3af70ed6469bb6d937132a18f (patch)
tree22fcbfc17f00c75d5b507ef567dd4093f19db794 /lib/utils/timer/fdt_timer_mtimer.c
parent187127fb89b99790793d4b2663286371b59021ae (diff)
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer/fdt_timer_mtimer.c')
0 files changed, 0 insertions, 0 deletions