summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-crn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-crn.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-crn.patch117
1 files changed, 117 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-crn.patch b/meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-crn.patch
new file mode 100644
index 0000000000..920ccbc3e6
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-crn.patch
@@ -0,0 +1,117 @@
1From: Yufeng Zhang <yufeng.zhang@arm.com>
2Date: Mon, 13 May 2013 22:50:00 +0000 (+0000)
3Subject: gas/
4X-Git-Url: http://sourceware.org/git/?p=binutils.git;a=commitdiff_plain;h=1796bf893c4729d5c523502318d72cae78495d6c
5
6Upstream-Status: backport
7
8gas/
9
10 Backport from mainline:
11
12 2013-02-27 Yufeng Zhang <yufeng.zhang@arm.com>
13 * config/tc-aarch64.c (parse_sys_reg): Allow the full range of CRn
14 for system registers.
15
16gas/testsuite/
17
18 Backport from mainline:
19
20 2013-02-27 Yufeng Zhang <yufeng.zhang@arm.com>
21 * gas/aarch64/illegal.l: Delete the error message for
22 msr S3_1_C13_C15_1,x7.
23 * gas/aarch64/sysreg.s: Add new tests.
24 * gas/aarch64/sysreg.d: Update.
25---
26
27diff --git a/gas/ChangeLog b/gas/ChangeLog
28index 821acc9..3d09792 100644
29--- a/gas/ChangeLog
30+++ b/gas/ChangeLog
31@@ -1,3 +1,11 @@
32+2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com>
33+
34+ Backport from mainline:
35+
36+ 2013-02-27 Yufeng Zhang <yufeng.zhang@arm.com>
37+ * config/tc-aarch64.c (parse_sys_reg): Allow the full range of CRn
38+ for system registers.
39+
40 2013-03-05 Yufeng Zhang <yufeng.zhang@arm.com>
41
42 * config/tc-aarch64.c (aarch64_imm_float_p): Rename 'e' to 'pattern';
43diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
44index 162c865..db28c71 100644
45--- a/gas/config/tc-aarch64.c
46+++ b/gas/config/tc-aarch64.c
47@@ -3243,10 +3243,14 @@ parse_sys_reg (char **str, struct hash_control *sys_regs, int imple_defined_p)
48 unsigned int op0, op1, cn, cm, op2;
49 if (sscanf (buf, "s%u_%u_c%u_c%u_%u", &op0, &op1, &cn, &cm, &op2) != 5)
50 return PARSE_FAIL;
51- /* Register access is encoded as follows:
52+ /* The architecture specifies the encoding space for implementation
53+ defined registers as:
54 op0 op1 CRn CRm op2
55- 11 xxx 1x11 xxxx xxx. */
56- if (op0 != 3 || op1 > 7 || (cn | 0x4) != 0xf || cm > 15 || op2 > 7)
57+ 11 xxx 1x11 xxxx xxx
58+ For convenience GAS accepts a wider encoding space, as follows:
59+ op0 op1 CRn CRm op2
60+ 11 xxx xxxx xxxx xxx */
61+ if (op0 != 3 || op1 > 7 || cn > 15 || cm > 15 || op2 > 7)
62 return PARSE_FAIL;
63 value = (op0 << 14) | (op1 << 11) | (cn << 7) | (cm << 3) | op2;
64 }
65diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
66index d1ebc3b..8ee06c8 100644
67--- a/gas/testsuite/ChangeLog
68+++ b/gas/testsuite/ChangeLog
69@@ -1,3 +1,13 @@
70+2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com>
71+
72+ Backport from mainline:
73+
74+ 2013-02-27 Yufeng Zhang <yufeng.zhang@arm.com>
75+ * gas/aarch64/illegal.l: Delete the error message for
76+ msr S3_1_C13_C15_1,x7.
77+ * gas/aarch64/sysreg.s: Add new tests.
78+ * gas/aarch64/sysreg.d: Update.
79+
80 2013-03-08 Christian Groessler <chris@groessler.org>
81
82 Backport from mainline:
83diff --git a/gas/testsuite/gas/aarch64/illegal.l b/gas/testsuite/gas/aarch64/illegal.l
84index e17a1de..f7e4074 100644
85--- a/gas/testsuite/gas/aarch64/illegal.l
86+++ b/gas/testsuite/gas/aarch64/illegal.l
87@@ -520,7 +520,6 @@
88 [^:]*:496: Error: .*`str x1,page_table_count'
89 [^:]*:498: Error: .*`prfm PLDL3KEEP,\[x9,x15,sxtx#2\]'
90 [^:]*:500: Error: .*`mrs x5,S1_0_C13_C8_0'
91-[^:]*:501: Error: .*`msr S3_1_C13_C15_1,x7'
92 [^:]*:502: Error: .*`msr S3_1_C11_C15_-1,x7'
93 [^:]*:503: Error: .*`msr S3_1_11_15_1,x7'
94 [^:]*:506: Error: .*`movi w1,#15'
95diff --git a/gas/testsuite/gas/aarch64/sysreg.d b/gas/testsuite/gas/aarch64/sysreg.d
96index b83b270..c7cf00e 100644
97--- a/gas/testsuite/gas/aarch64/sysreg.d
98+++ b/gas/testsuite/gas/aarch64/sysreg.d
99@@ -23,3 +23,6 @@ Disassembly of section \.text:
100 3c: d5380260 mrs x0, id_isar3_el1
101 40: d5380280 mrs x0, id_isar4_el1
102 44: d53802a0 mrs x0, id_isar5_el1
103+ 48: d538cc00 mrs x0, s3_0_c12_c12_0
104+ 4c: d5384600 mrs x0, s3_0_c4_c6_0
105+ 50: d5184600 msr s3_0_c4_c6_0, x0
106diff --git a/gas/testsuite/gas/aarch64/sysreg.s b/gas/testsuite/gas/aarch64/sysreg.s
107index e6f770e..3287594 100644
108--- a/gas/testsuite/gas/aarch64/sysreg.s
109+++ b/gas/testsuite/gas/aarch64/sysreg.s
110@@ -22,3 +22,7 @@
111 mrs x0, id_isar3_el1
112 mrs x0, id_isar4_el1
113 mrs x0, id_isar5_el1
114+
115+ mrs x0, s3_0_c12_c12_0
116+ mrs x0, s3_0_c4_c6_0
117+ msr s3_0_c4_c6_0, x0