Skip to content

Conversation

@ilg-ul
Copy link

@ilg-ul ilg-ul commented Aug 30, 2024

The xPack RISC-V Embedded GCC toolchain uses the riscv-none-elf triplet.

This patch adds it to the PICO_DEFAULT_GCC_TRIPLE list in the CMake files, thus adding support for the xPack RISC-V Embedded GCC toolchain.

This PR fixes #1887.

@kilograham kilograham added this to the 2.0.1 milestone Aug 30, 2024
@ilg-ul
Copy link
Author

ilg-ul commented Sep 1, 2024

BTW, the triplet used by Debian is riscv64-unknown-elf, I think it should be added too.

@ilg-ul
Copy link
Author

ilg-ul commented Sep 1, 2024

I did a new test and the -march=rv32ima_zicsr_zifencei_zba_zbb_zbs_zbkb -mabi=ilp32 options used by the pico_riscv_gcc.cmake are accepted by the official RISC-V GCC 14.2 compiler.

zcmp is not accepted by my 14.2.0-1 release because of the outdated binutils 2.42 (the error comes from the assembler).

I did a new build with binutils 2.43.1 and the zcmp extension was accepted:

ilg@wksi tmp % /Users/ilg/Work/xpack-dev-tools-build/riscv-none-elf-gcc-14.2.0-2/darwin-x64/application/bin/riscv-none-elf-gcc m.c -march=rv32imac_zicsr_zifencei_zba_zbb_zbs_zbkb_zca_zcb_zcmp -mabi=ilp32
ilg@wksi tmp % 

I'll make a new 14.2.0-2 release with the latest binutils.

Updating the pico_riscv_gcc_zcb_zcmp.cmake file should no longer be a problem.

@kilograham kilograham self-assigned this Sep 3, 2024
@ilg-ul ilg-ul closed this by deleting the head repository Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants