[PATCH v1] lib: sbi_illegal_insn: Fix FENCE.TSO emulation infinite trap loop

Samuel Holland samuel at sholland.org
Tue Aug 16 23:06:02 PDT 2022


On 8/12/22 8:54 AM, Rahul Pathak wrote:
> 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: Rahul Pathak <rpathak at ventanamicro.com>
> Reviewed-by: Andrew Jones <ajones at ventanamicro.com>

Reviewed-by: Samuel Holland <samuel at sholland.org>

Thanks for catching this!



More information about the opensbi mailing list