On Mon, 01 Dec 2025 15:05:15 PST (-0800), [email protected] wrote:


On 12/1/25 1:31 PM, Peter Bergner wrote:
While verifying our Ascalon extensions list was complete (it isn't, follow-on
patch coming), I noticed that the rva23s64 and rvb23s64 profiles were missing
the mandatory zifencei extension, hence the following patch.

This was bootstrapped and regtested with no regressions.
Ok for trunk?

Peter




The RVA23S64 and RVB23S64 profiles both state that zifencei is a mandatory
extension.  Add it to both profiles.

gcc/
        PR target/122942
        * config/riscv/riscv-profiles.def (rva23s64): Add zifencei.
        (rvb23s64): Likewise.
I went ahead and pushed this to the trunk.  One less patch & BZ for the
list tomorrow :-)

Peter and I were talking on IRC (because I was trying to get email working). I think this one is safe: we can't actually use fence.i in userspace on Linux, but it's gated by the flush function. So this should basically be a NOP on Linux.

Embedded users have always sort of just been on their own to sort these sorts of things out, and fence.i been enabled/disabled between older releases so hopefully we're safe there too.

(There's also that outstanding __clear_cache libcall bug, where some configurations build a libgcc with an empty __clear_cache when they shouldn't. IIRC Jim reported it a few years ago...)


jeff

Reply via email to