AdaCore / AdaCore/Ada_Drivers_Library
Extension zicsr required in HiFive1_rev_B board
Nobody has claimed this yet.
- Dominant language
- Ada
- Stars
- 286
- Forks
- 165
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm trying to compile the example provided for the HiFive1_rev_B board, but I'm getting the same errors mentioned in https://github.com/AdaCore/Ada_Drivers_Library/issues/411:
Ada_Drivers_Library/arch/RISC-V/src/riscv-csr_generic.adb:55: Error: unrecognized opcode
csrw mhpmevent3,a5', extensionzicsr' required
I'm using alr 1.2.2 and gnat_riscv64_elf 12.2.1, with the proper target and runtime for this board.
Any idea or suggestion?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the HiFive1_rev_B example build with alr 1.2.2 and gnat_riscv64_elf 12.2.1. Inspect arch/RISC-V/src/riscv-csr_generic.adb at line 55 and compare the related discussion in issue 411. Done means the example compiles without the zicsr opcode error, with the affected configuration documented.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100