Commit cb8271c8 authored by Samuel Holland's avatar Samuel Holland Committed by Anup Patel
Browse files

lib: sbi_illegal_insn: Add emulation for fence.tso

While OpenC906 appears to properly decode `fence.tso` as a fence
instruction[1], the version of the C906 taped out in the Allwinner D1
does not, and raises illegal instruction.

Handle this errata by emulating `fence.tso` as `fence rw, rw`.

[1]: https://github.com/T-head-Semi/openc906/blob/30827e7f/C906_RTL_FACTORY/gen_rtl/idu/rtl/aq_idu_id_decd.v#L2097



Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent ff65bfec
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