RISC-V: Default RV64 BSPs to medany
Reported by: |
Hesham Almatary |
Owned by: |
Hesham Almatary <hesham.almatary@…> |
Priority:
|
normal
|
Milestone:
|
6.1
|
Component:
|
arch/riscv
|
Version:
|
6
|
Severity:
|
normal
|
Keywords:
|
|
Cc:
|
Sebastian Huber, Joel Sherrill
|
Blocked By:
|
|
Blocking:
|
|
|
|
Currently generic RISC-V BSPs (riscv/riscv) that start with rv64 and not rv64_medany will start at 0x70000000. This adds high maintenance overhead and deviates from almost all other RISC-V-based OSes and baremetal program that start at 0x80000000. Further, testing now has to account for an extra parameter (medany or not) that doubles the number of BSPs need to be tested.
It would be ideal to reduce maintenance efforts by defaulting all RV64 BSPs to medany and make them start at 0x80000000 to run on both QEMU and Spike. Those that need other cmodels or start addresses could be customised (e.g., rv64imac would default to medany but rv64imac_medlow won't).
gcc: Build medany rv32 multilibs