[RTEMS Project] #4775: RISC-V: Default RV64 BSPs to medany (was: RISC-V: Default BSPs to medany)

RTEMS trac trac at rtems.org
Wed Dec 21 12:35:09 UTC 2022


#4775: RISC-V: Default RV64 BSPs to medany
-----------------------------+---------------------
 Reporter:  Hesham Almatary  |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  6.1
Component:  arch/riscv       |     Version:  6
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+---------------------
Description changed by Hesham Almatary:

Old description:

> Currently generic RISC-V BSPs (riscv/riscv) that start with rv* and not
> rv*_medany will start at 0x70000000. This adds high mainternace 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. RV32* currently don't have medany support as gcc/newlib
> doesn't build this. Thus, rv32 only currently runs on Spike as QEMU
> starts at 0x80000000.
>
> It would be ideal to reduce maintenance efforts by defaulting all 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).

New description:

 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).

--

--
Ticket URL: <http://devel.rtems.org/ticket/4775#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list