blob: 94afee34bd85024d877b91b246c7c1173c4ec18b [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001DEFAULTTUNE ?= "mips32r2-74kc"
2
3MIPSPKGSFX_MIPS16E ??= ""
4
5require conf/machine/include/tune-mips32r2.inc
6require conf/machine/include/mips/feature-mips-mips16e.inc
7
8
9TUNEVALID[74kc] = "Enable MIPS 74K with DSPr2 processor optimizations"
10TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "74kc", " -mtune=74kc", "", d)}"
11
12AVAILTUNES += "mips32r2-74kc mips32r2-74kc-m16"
13AVAILTUNES += "mips32r2el-74kc mips32r2el-74kc-m16"
14
15# big endian: kc+dsp2=kc, kc+dsp2+mips16e=kc-m16
16TUNE_FEATURES_tune-mips32r2-74kc = "${TUNE_FEATURES_tune-mips32r2-nf} 74kc"
17TUNE_FEATURES_tune-mips32r2-74kc-m16 = "${TUNE_FEATURES_tune-mips32r2-74kc} mips16e"
18
19MIPSPKGSFX_VARIANT_tune-mips32r2-74kc = "mips32r2-74kc"
20PACKAGE_EXTRA_ARCHS_tune-mips32r2-74kc = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-nf} mips32r2-74kc-nf"
21QEMU_EXTRAOPTIONS_mips32r2-74kc-nf = " -cpu 24Kc"
22
23MIPSPKGSFX_VARIANT_tune-mips32r2-74kc-m16 = "mips32r2-74kc${MIPSPKGSFX_MIPS16E}"
24PACKAGE_EXTRA_ARCHS_tune-mips32r2-74kc-m16 = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-74kc} mips32r2-74kc-m16-nf"
25QEMU_EXTRAOPTIONS_mips32r2-74kc-m16-nf = " -cpu 24KEc"
26
27# little endian: kc+dsp2=kc, kc+dsp2+mips16e=kc-m16
28TUNE_FEATURES_tune-mips32r2el-74kc = "${TUNE_FEATURES_tune-mips32r2el-nf} 74kc"
29TUNE_FEATURES_tune-mips32r2el-74kc-m16 = "${TUNE_FEATURES_tune-mips32r2el-74kc} mips16e"
30
31MIPSPKGSFX_VARIANT_tune-mips32r2el-74kc = "mips32r2el-74kc"
32PACKAGE_EXTRA_ARCHS_tune-mips32r2el-74kc = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-nf} mips32r2el-74kc-nf"
33QEMU_EXTRAOPTIONS_mips32r2el-74kc-nf = " -cpu 24Kc"
34
35MIPSPKGSFX_VARIANT_tune-mips32r2el-74kc-m16 = "mips32r2el-74kc${MIPSPKGSFX_MIPS16E}"
36PACKAGE_EXTRA_ARCHS_tune-mips32r2el-74kc-m16 = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-74kc} mips32r2el-74kc-m16-nf"
37QEMU_EXTRAOPTIONS_mips32r2el-74kc-m16-nf = " -cpu 24KEc"