-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension zicsr required in HiFive1_rev_B board #420
Comments
I have the same problem trying to reproduce the performance results for SPARKNaCl. I'm using gnat_riscv64_elf_13.2.1 I get
Note the -march=rv32imac in that compiler invocation. I know I need to change this to -march=rv32imac_zicsr but where is this setting stored? I see those options in the compiler installation in files called "runtime.xml" - but which one needs to change and how? |
I think I have it working now - I needed to modify the runtime.xml file in the light_rv32imac directory in the compiler distro. Does that sound right? |
Hi @rod-chapman, That's what I was about to say. The architecture switches are set in the run-time. There might be two other options:
|
I'm not sure if setting that arch switch should be part of the standard runtime distro of the compiler, or part of the config of the runtime library for that particular board? Is the "light_rv32imac" runtime used for any CPUs/boards that don't have the zicsr extension? |
We are supposed to have one "light" run-time for every architecture, but for RISC-V, there are so many combinations that it is practically impossible:
One of the reasons why I made this little experiment here to use with Alire: https://alire.ada.dev/crates/bare_runtime |
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:
I'm using
alr 1.2.2
andgnat_riscv64_elf 12.2.1
, with the proper target and runtime for this board.Any idea or suggestion?
The text was updated successfully, but these errors were encountered: