summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2017-04-19 13:27:37 +0200
committerKhem Raj <raj.khem@gmail.com>2017-04-25 17:50:00 -0700
commitb8ccadd56a59912e329bcf11f06e79be10a96e95 (patch)
tree12a62ddd6c071d2ec5bfac4dd10fc366ee332f52
parent9b5158f054edaf166050aed62066195a656cf4e4 (diff)
downloadmeta-altera-b8ccadd56a59912e329bcf11f06e79be10a96e95.tar.gz
nios2: Add Nios2 R2
Add support for Nios2 R2 , which is a new revision of Nios2 . Note that Nios2 R2 is always little endian. Also note that Nios2 R2 is NOT binary compatible with Nios2 R1 due to the instruction opcode reencoding. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--conf/machine/include/tune-nios2.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/conf/machine/include/tune-nios2.inc b/conf/machine/include/tune-nios2.inc
index a526463..754fe64 100644
--- a/conf/machine/include/tune-nios2.inc
+++ b/conf/machine/include/tune-nios2.inc
@@ -6,8 +6,14 @@ DEFAULTTUNE ?= "nios2"
6TUNE_ARCH = "nios2" 6TUNE_ARCH = "nios2"
7TUNE_PKGARCH = "${DEFAULTTUNE}" 7TUNE_PKGARCH = "${DEFAULTTUNE}"
8 8
9# Nios2 R2
10TUNEVALID[r2] = "Nios2 R2 support"
11TUNECONFLICTS[r2] = "bigendian"
12TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "r2", " -march=r2", " -march=r1", d)}"
13
9# Endianess 14# Endianess
10TUNEVALID[bigendian] = "Enable big-endian mode" 15TUNEVALID[bigendian] = "Enable big-endian mode"
16TUNECONFLICTS[bigendian] = "r2"
11TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -meb", " -mel", d)}" 17TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -meb", " -mel", d)}"
12 18
13# Multiply opcodes 19# Multiply opcodes
@@ -43,7 +49,7 @@ TUNECONFLICTS[fpu-custom] = "fpu-soft fpu-customdiv"
43TUNECONFLICTS[fpu-customdiv] = "fpu-soft fpu-custom" 49TUNECONFLICTS[fpu-customdiv] = "fpu-soft fpu-custom"
44 50
45# Architecture configuration 51# Architecture configuration
46AVAILTUNES += "nios2 nios2eb" 52AVAILTUNES += "nios2 nios2eb nios2r2"
47 53
48TUNEVALID[nios2] = "Nios2 R1 Little-Endian" 54TUNEVALID[nios2] = "Nios2 R1 Little-Endian"
49TUNE_FEATURES_tune-nios2 = "nios2" 55TUNE_FEATURES_tune-nios2 = "nios2"
@@ -52,3 +58,7 @@ PACKAGE_EXTRA_ARCHS_tune-nios2 = "${TUNE_PKGARCH}"
52TUNEVALID[nios2eb] = "Nios2 R1 Big-Endian" 58TUNEVALID[nios2eb] = "Nios2 R1 Big-Endian"
53TUNE_FEATURES_tune-nios2eb = "bigendian" 59TUNE_FEATURES_tune-nios2eb = "bigendian"
54PACKAGE_EXTRA_ARCHS_tune-nios2eb = "${TUNE_PKGARCH}" 60PACKAGE_EXTRA_ARCHS_tune-nios2eb = "${TUNE_PKGARCH}"
61
62TUNEVALID[nios2r2] = "Nios2 R2"
63TUNE_FEATURES_tune-nios2r2 = "r2"
64PACKAGE_EXTRA_ARCHS_tune-nios2r2 = "${TUNE_PKGARCH}"