11a4b7ee2SBrad BishopDEFAULTTUNE ?= "mips32r2-74kc" 21a4b7ee2SBrad Bishop 31a4b7ee2SBrad BishopMIPSPKGSFX_MIPS16E ??= "" 41a4b7ee2SBrad Bishop 5*d159c7fbSAndrew Geisslerrequire conf/machine/include/mips/tune-mips32r2.inc 61a4b7ee2SBrad Bishoprequire conf/machine/include/mips/feature-mips-mips16e.inc 71a4b7ee2SBrad Bishop 81a4b7ee2SBrad Bishop 91a4b7ee2SBrad BishopTUNEVALID[74kc] = "Enable MIPS 74K with DSPr2 processor optimizations" 101a4b7ee2SBrad BishopTUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "74kc", " -mtune=74kc", "", d)}" 111a4b7ee2SBrad Bishop 121a4b7ee2SBrad BishopAVAILTUNES += "mips32r2-74kc mips32r2-74kc-m16" 131a4b7ee2SBrad BishopAVAILTUNES += "mips32r2el-74kc mips32r2el-74kc-m16" 141a4b7ee2SBrad Bishop 151a4b7ee2SBrad Bishop# big endian: kc+dsp2=kc, kc+dsp2+mips16e=kc-m16 16213cb269SPatrick WilliamsTUNE_FEATURES:tune-mips32r2-74kc = "${TUNE_FEATURES:tune-mips32r2-nf} 74kc" 17213cb269SPatrick WilliamsTUNE_FEATURES:tune-mips32r2-74kc-m16 = "${TUNE_FEATURES:tune-mips32r2-74kc} mips16e" 181a4b7ee2SBrad Bishop 19213cb269SPatrick WilliamsMIPSPKGSFX_VARIANT:tune-mips32r2-74kc = "mips32r2-74kc" 20213cb269SPatrick WilliamsPACKAGE_EXTRA_ARCHS:tune-mips32r2-74kc = "${PACKAGE_EXTRA_ARCHS:tune-mips32r2-nf} mips32r2-74kc-nf" 211a4b7ee2SBrad BishopQEMU_EXTRAOPTIONS_mips32r2-74kc-nf = " -cpu 24Kc" 221a4b7ee2SBrad Bishop 23213cb269SPatrick WilliamsMIPSPKGSFX_VARIANT:tune-mips32r2-74kc-m16 = "mips32r2-74kc${MIPSPKGSFX_MIPS16E}" 24213cb269SPatrick WilliamsPACKAGE_EXTRA_ARCHS:tune-mips32r2-74kc-m16 = "${PACKAGE_EXTRA_ARCHS:tune-mips32r2-74kc} mips32r2-74kc-m16-nf" 251a4b7ee2SBrad BishopQEMU_EXTRAOPTIONS_mips32r2-74kc-m16-nf = " -cpu 24KEc" 261a4b7ee2SBrad Bishop 271a4b7ee2SBrad Bishop# little endian: kc+dsp2=kc, kc+dsp2+mips16e=kc-m16 28213cb269SPatrick WilliamsTUNE_FEATURES:tune-mips32r2el-74kc = "${TUNE_FEATURES:tune-mips32r2el-nf} 74kc" 29213cb269SPatrick WilliamsTUNE_FEATURES:tune-mips32r2el-74kc-m16 = "${TUNE_FEATURES:tune-mips32r2el-74kc} mips16e" 301a4b7ee2SBrad Bishop 31213cb269SPatrick WilliamsMIPSPKGSFX_VARIANT:tune-mips32r2el-74kc = "mips32r2el-74kc" 32213cb269SPatrick WilliamsPACKAGE_EXTRA_ARCHS:tune-mips32r2el-74kc = "${PACKAGE_EXTRA_ARCHS:tune-mips32r2el-nf} mips32r2el-74kc-nf" 331a4b7ee2SBrad BishopQEMU_EXTRAOPTIONS_mips32r2el-74kc-nf = " -cpu 24Kc" 341a4b7ee2SBrad Bishop 35213cb269SPatrick WilliamsMIPSPKGSFX_VARIANT:tune-mips32r2el-74kc-m16 = "mips32r2el-74kc${MIPSPKGSFX_MIPS16E}" 36213cb269SPatrick WilliamsPACKAGE_EXTRA_ARCHS:tune-mips32r2el-74kc-m16 = "${PACKAGE_EXTRA_ARCHS:tune-mips32r2el-74kc} mips32r2el-74kc-m16-nf" 371a4b7ee2SBrad BishopQEMU_EXTRAOPTIONS_mips32r2el-74kc-m16-nf = " -cpu 24KEc" 38