Commit 111afc12 authored by Rahul Pathak's avatar Rahul Pathak Committed by Anup Patel
Browse files

lib: sbi_illegal_insn: Fix FENCE.TSO emulation infinite trap loop

In case of missing "FENCE.TSO" instruction implementation,
opensbi can emulate the "FENCE.TSO" with "FENCE RW,RW", but
mepc was not incremented to continue from the next instruction
causing infinite trap.

Fixes: cb8271c8

 ("lib: sbi_illegal_insn: Add emulation for fence.tso")
Signed-off-by: default avatarRahul Pathak <rpathak@ventanamicro.com>
Reviewed-by: default avatarAndrew Jones <ajones@ventanamicro.com>
Reviewed-by: default avatarXiang W <wxjstz@126.com>
Reviewed-by: default avatarSamuel Holland <samuel@sholland.org>
parent a69eb6cc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment