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 | |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 9 | TUNEVALID[riscv64nc] = "Enable 64-bit RISC-V optimizations without compressed instructions" |
| 10 | |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 11 | TUNEVALID[bigendian] = "Big endian mode" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 12 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 13 | AVAILTUNES += "riscv64 riscv32 riscv64nc riscv64nf riscv32nf" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 14 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | # Default |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | TUNE_FEATURES:tune-riscv64 = "riscv64" |
| 17 | TUNE_ARCH:tune-riscv64 = "riscv64" |
| 18 | TUNE_PKGARCH:tune-riscv64 = "riscv64" |
| 19 | PACKAGE_EXTRA_ARCHS:tune-riscv64 = "riscv64" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 20 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | TUNE_FEATURES:tune-riscv32 = "riscv32" |
| 22 | TUNE_ARCH:tune-riscv32 = "riscv32" |
| 23 | TUNE_PKGARCH:tune-riscv32 = "riscv32" |
| 24 | PACKAGE_EXTRA_ARCHS:tune-riscv32 = "riscv32" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 25 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 26 | # No float |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | TUNE_FEATURES:tune-riscv64nf = "${TUNE_FEATURES:tune-riscv64} riscv64nf" |
| 28 | TUNE_ARCH:tune-riscv64nf = "riscv64" |
| 29 | TUNE_PKGARCH:tune-riscv64nf = "riscv64nf" |
| 30 | PACKAGE_EXTRA_ARCHS:tune-riscv64nf = "riscv64nf" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 31 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 32 | TUNE_FEATURES:tune-riscv32nf = "${TUNE_FEATURES:tune-riscv32} riscv32nf" |
| 33 | TUNE_ARCH:tune-riscv32nf = "riscv32" |
| 34 | TUNE_PKGARCH:tune-riscv32nf = "riscv32nf" |
| 35 | PACKAGE_EXTRA_ARCHS:tune-riscv32nf = "riscv32nf" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 36 | |
| 37 | # no compressed |
| 38 | TUNE_FEATURES:tune-riscv64nc = "${TUNE_FEATURES:tune-riscv64} riscv64nc" |
| 39 | TUNE_ARCH:tune-riscv64nc = "riscv64" |
| 40 | TUNE_PKGARCH:tune-riscv64nc = "riscv64nc" |
| 41 | PACKAGE_EXTRA_ARCHS:tune-riscv64nc = "riscv64nc" |