diff options
author | Marek Vasut <marex@denx.de> | 2017-04-19 13:27:37 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2017-04-25 17:50:00 -0700 |
commit | b8ccadd56a59912e329bcf11f06e79be10a96e95 (patch) | |
tree | 12a62ddd6c071d2ec5bfac4dd10fc366ee332f52 | |
parent | 9b5158f054edaf166050aed62066195a656cf4e4 (diff) | |
download | meta-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.inc | 12 |
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" | |||
6 | TUNE_ARCH = "nios2" | 6 | TUNE_ARCH = "nios2" |
7 | TUNE_PKGARCH = "${DEFAULTTUNE}" | 7 | TUNE_PKGARCH = "${DEFAULTTUNE}" |
8 | 8 | ||
9 | # Nios2 R2 | ||
10 | TUNEVALID[r2] = "Nios2 R2 support" | ||
11 | TUNECONFLICTS[r2] = "bigendian" | ||
12 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "r2", " -march=r2", " -march=r1", d)}" | ||
13 | |||
9 | # Endianess | 14 | # Endianess |
10 | TUNEVALID[bigendian] = "Enable big-endian mode" | 15 | TUNEVALID[bigendian] = "Enable big-endian mode" |
16 | TUNECONFLICTS[bigendian] = "r2" | ||
11 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -meb", " -mel", d)}" | 17 | TUNE_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" | |||
43 | TUNECONFLICTS[fpu-customdiv] = "fpu-soft fpu-custom" | 49 | TUNECONFLICTS[fpu-customdiv] = "fpu-soft fpu-custom" |
44 | 50 | ||
45 | # Architecture configuration | 51 | # Architecture configuration |
46 | AVAILTUNES += "nios2 nios2eb" | 52 | AVAILTUNES += "nios2 nios2eb nios2r2" |
47 | 53 | ||
48 | TUNEVALID[nios2] = "Nios2 R1 Little-Endian" | 54 | TUNEVALID[nios2] = "Nios2 R1 Little-Endian" |
49 | TUNE_FEATURES_tune-nios2 = "nios2" | 55 | TUNE_FEATURES_tune-nios2 = "nios2" |
@@ -52,3 +58,7 @@ PACKAGE_EXTRA_ARCHS_tune-nios2 = "${TUNE_PKGARCH}" | |||
52 | TUNEVALID[nios2eb] = "Nios2 R1 Big-Endian" | 58 | TUNEVALID[nios2eb] = "Nios2 R1 Big-Endian" |
53 | TUNE_FEATURES_tune-nios2eb = "bigendian" | 59 | TUNE_FEATURES_tune-nios2eb = "bigendian" |
54 | PACKAGE_EXTRA_ARCHS_tune-nios2eb = "${TUNE_PKGARCH}" | 60 | PACKAGE_EXTRA_ARCHS_tune-nios2eb = "${TUNE_PKGARCH}" |
61 | |||
62 | TUNEVALID[nios2r2] = "Nios2 R2" | ||
63 | TUNE_FEATURES_tune-nios2r2 = "r2" | ||
64 | PACKAGE_EXTRA_ARCHS_tune-nios2r2 = "${TUNE_PKGARCH}" | ||