Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 1 | require conf/machine/include/riscv/arch-riscv.inc |
| 2 | |
| 3 | TUNEVALID[riscv64] = "Enable 64-bit RISC-V optimizations" |
| 4 | TUNEVALID[riscv32] = "Enable 32-bit RISC-V optimizations" |
| 5 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | TUNEVALID[riscv64nf] = "Enable 64-bit RISC-V optimizations no floating point" |
| 7 | TUNEVALID[riscv32nf] = "Enable 32-bit RISC-V optimizations no floating point" |
| 8 | |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 9 | TUNEVALID[bigendian] = "Big endian mode" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 10 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 11 | AVAILTUNES += "riscv64 riscv32 riscv64nf riscv32nf" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 12 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | # Default |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 14 | TUNE_FEATURES:tune-riscv64 = "riscv64" |
| 15 | TUNE_ARCH:tune-riscv64 = "riscv64" |
| 16 | TUNE_PKGARCH:tune-riscv64 = "riscv64" |
| 17 | PACKAGE_EXTRA_ARCHS:tune-riscv64 = "riscv64" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 18 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 19 | TUNE_FEATURES:tune-riscv32 = "riscv32" |
| 20 | TUNE_ARCH:tune-riscv32 = "riscv32" |
| 21 | TUNE_PKGARCH:tune-riscv32 = "riscv32" |
| 22 | PACKAGE_EXTRA_ARCHS:tune-riscv32 = "riscv32" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 23 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 24 | # No float |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 25 | TUNE_FEATURES:tune-riscv64nf = "${TUNE_FEATURES:tune-riscv64} riscv64nf" |
| 26 | TUNE_ARCH:tune-riscv64nf = "riscv64" |
| 27 | TUNE_PKGARCH:tune-riscv64nf = "riscv64nf" |
| 28 | PACKAGE_EXTRA_ARCHS:tune-riscv64nf = "riscv64nf" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 29 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | TUNE_FEATURES:tune-riscv32nf = "${TUNE_FEATURES:tune-riscv32} riscv32nf" |
| 31 | TUNE_ARCH:tune-riscv32nf = "riscv32" |
| 32 | TUNE_PKGARCH:tune-riscv32nf = "riscv32nf" |
| 33 | PACKAGE_EXTRA_ARCHS:tune-riscv32nf = "riscv32nf" |