On 11/5/26 8:58 AM, Kito Cheng wrote:
Palmer Dabbelt <[email protected]> 於 2026年11月5日週四 下午11:48寫道:
On Wed, 04 Nov 2026 20:20:30 PST (-0800), [email protected] wrote:
This series adds a way to fix errata for specific cores, and adds the
first erratum.

Patch 1 adds the framework, with no errata yet:

- riscv-errata.def lists the errata.  Each one has a -mfix-NAME option.
- RISCV_CORE_ERRATUM in riscv-cores.def lists the errata of a core.
- --with-errata=LIST turns on workarounds by default.

Patch 2 adds -mfix-sifive-mal-9174, which is on by default for
sifive-p870-d.  It keeps the destination of a vector indexed load from
overlapping its index.  The code does not change when it is off.

I plan to backport this series to GCC 16.

Tested with QEMU and our p870 bigsky board.
So you're planning on shipping the chips with the errata on boards that
make it outside SiFive?
(shrug) what I can tell is: we/SiFive decide to publish errata
fix to GCC and LLVM[1].

[1] https://github.com/llvm/llvm-project/pull/224739
It happens ;(  There's been errata workarounds for various MIPS & AArch64 bugs.  I know we worked around some on the mn103 way way way back in pre-historical times, though I don't think we said much about them, we just steered code generation away from the problem areas.  There were probably others I don't remember.

Jeff

Reply via email to