5
Last change
on this file since 11ff3a9 was
11ff3a9,
checked in by Hesham Almatary <heshamelmatary@…>, on 10/27/17 at 04:18:40
|
cpukit: RISC-V - make riscv32 code work for riscv64 - v2
- Use #ifdefs for 32/64 bit code
- Use unsigned long which is 32-bit on riscv32 and 64-bit on riscv64 (register size)
- Move the code to a new shared riscv folder to be shared between riscv32 and riscv64
- Rename RTEMS_CPU extracted from command line to shared riscv target s/riscv*/riscv
Update #3109
|
-
Property mode set to
100644
|
File size:
612 bytes
|
Rev | Line | |
---|
[ed8ec1c] | 1 | dnl canonicalize target cpu |
---|
| 2 | dnl NOTE: Most rtems targets do not fullfil autoconf's |
---|
| 3 | dnl target naming conventions "processor-vendor-os" |
---|
| 4 | dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them |
---|
| 5 | dnl and we have to fix it for rtems ourselves |
---|
| 6 | |
---|
[5b2e199] | 7 | AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU], |
---|
[3da33bf8] | 8 | [AC_REQUIRE([AC_CANONICAL_HOST]) |
---|
[ed8ec1c] | 9 | AC_MSG_CHECKING(rtems target cpu) |
---|
[ed4b894] | 10 | case "${host}" in |
---|
[11ff3a9] | 11 | riscv*-*-rtems*) |
---|
| 12 | RTEMS_CPU=riscv;; |
---|
[38d1150] | 13 | *-*-rtems*) |
---|
| 14 | RTEMS_CPU="$host_cpu";; |
---|
| 15 | *) |
---|
[ed8ec1c] | 16 | ;; |
---|
| 17 | esac |
---|
[38d1150] | 18 | AS_IF([test -n "$RTEMS_CPU"], |
---|
| 19 | [dnl |
---|
| 20 | AC_MSG_RESULT($RTEMS_CPU)], |
---|
| 21 | [dnl |
---|
| 22 | AC_MSG_RESULT([<none>]) |
---|
| 23 | AC_MSG_ERROR([unsupported host $host])]) |
---|
[ed8ec1c] | 24 | AC_SUBST(RTEMS_CPU) |
---|
| 25 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.