Usage of the fence.i instruction on Linux is strongly discouraged. On systems with SMP it will not work correctly without additional syscalls. See https://man7.org/linux/man- pages/man2/PR_RISCV_SET_ICACHE_FLUSH_CTX.2const.html.
The recommended way to flush the instruction cache is to use __riscv_flush_icache() (https://www.man7.org/linux//man- pages/man2/riscv_flush_icache.2.html). Not adding Zicfencei to the compiler default would allow packages not following this to stick out via FTBFS so that we can decide if code changes are needed or the instruction should be allowed via explicit compiler arguments. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2116086 Title: Build for RVA23U64 extension profile on RISC-V To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2116086/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
