]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add custom RTEMS multilibs
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 21 Jun 2018 09:36:40 +0000 (09:36 +0000)
committerSebastian Huber <sh@gcc.gnu.org>
Thu, 21 Jun 2018 09:36:40 +0000 (09:36 +0000)
commit1534996ff5ea8e4f14e674432a32fe462dd01782
tree6eaacd1b323b9976ab4b9f9c52da69189ebea43f
parentbc95e9eb0e59046c94b3db3efdec6b1d5c60e47b
RISC-V: Add custom RTEMS multilibs

Add multilib variants for -march=rv64imafd, e.g. to support the BOOMv2 core.

Add -mcmodel=medany as a variant of the 64-bit multilibs for RTEMS.  The
rationale for this change is that several existing RISC-V chips map the
RAM at 0x80000000.  In RTEMS, we do not use virtual memory, so
applications will run at this location which is outside the +-2GiB range
in a 64-bit configuration.

gcc/
* config.gcc (riscv*-*-elf* | riscv*-*-rtems*): Use custom
multilibs for *-*-rtems*.
* config/riscv/t-rtems: New file.

From-SVN: r261838
gcc/ChangeLog
gcc/config.gcc
gcc/config/riscv/t-rtems [new file with mode: 0644]