diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/binutils/binutils/0038-MB-binutils-Upstream-port-issues.patch')
-rw-r--r-- | meta-microblaze/recipes-devtools/binutils/binutils/0038-MB-binutils-Upstream-port-issues.patch | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0038-MB-binutils-Upstream-port-issues.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0038-MB-binutils-Upstream-port-issues.patch new file mode 100644 index 00000000..cfa1a49e --- /dev/null +++ b/meta-microblaze/recipes-devtools/binutils/binutils/0038-MB-binutils-Upstream-port-issues.patch | |||
@@ -0,0 +1,99 @@ | |||
1 | From b960fb122b35cb327b9db8fd1bb835899b24d106 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | ||
3 | Date: Sun, 28 Nov 2021 17:17:15 +0530 | ||
4 | Subject: [PATCH 38/53] MB binutils Upstream port issues. | ||
5 | |||
6 | It's resolving the seg faults with ADDLIK | ||
7 | Conflicts: | ||
8 | bfd/elf64-microblaze.c | ||
9 | |||
10 | Signed-off-by: Aayush Misra <aayushm@amd.com> | ||
11 | --- | ||
12 | gas/config/tc-microblaze.c | 2 +- | ||
13 | opcodes/microblaze-dis.c | 12 ++++++------ | ||
14 | opcodes/microblaze-opc.h | 2 +- | ||
15 | 3 files changed, 8 insertions(+), 8 deletions(-) | ||
16 | |||
17 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | ||
18 | index faa458af3a0..686b1a00177 100644 | ||
19 | --- a/gas/config/tc-microblaze.c | ||
20 | +++ b/gas/config/tc-microblaze.c | ||
21 | @@ -404,7 +404,7 @@ const pseudo_typeS md_pseudo_table[] = | ||
22 | void | ||
23 | md_begin (void) | ||
24 | { | ||
25 | - const struct op_code_struct * opcode; | ||
26 | + struct op_code_struct * opcode; | ||
27 | const char *prev_name = ""; | ||
28 | |||
29 | opcode_hash_control = str_htab_create (); | ||
30 | diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c | ||
31 | index bdc6db79726..d61d6bcfeba 100644 | ||
32 | --- a/opcodes/microblaze-dis.c | ||
33 | +++ b/opcodes/microblaze-dis.c | ||
34 | @@ -153,7 +153,7 @@ get_field_imm16 (struct string_buf *buf, long instr) | ||
35 | |||
36 | static char * | ||
37 | get_field_special (struct string_buf *buf, long instr, | ||
38 | - const struct op_code_struct *op) | ||
39 | + struct op_code_struct *op) | ||
40 | { | ||
41 | char *p = strbuf (buf); | ||
42 | char *spr; | ||
43 | @@ -226,11 +226,11 @@ get_field_special (struct string_buf *buf, long instr, | ||
44 | static unsigned long | ||
45 | read_insn_microblaze (bfd_vma memaddr, | ||
46 | struct disassemble_info *info, | ||
47 | - const struct op_code_struct **opr) | ||
48 | + struct op_code_struct **opr) | ||
49 | { | ||
50 | unsigned char ibytes[4]; | ||
51 | int status; | ||
52 | - const struct op_code_struct *op; | ||
53 | + struct op_code_struct *op; | ||
54 | unsigned long inst; | ||
55 | |||
56 | status = info->read_memory_func (memaddr, ibytes, 4, info); | ||
57 | @@ -266,7 +266,7 @@ print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info) | ||
58 | fprintf_ftype print_func = info->fprintf_func; | ||
59 | void *stream = info->stream; | ||
60 | unsigned long inst, prev_inst; | ||
61 | - const struct op_code_struct *op, *pop; | ||
62 | + struct op_code_struct *op, *pop; | ||
63 | int immval = 0; | ||
64 | bool immfound = false; | ||
65 | static bfd_vma prev_insn_addr = -1; /* Init the prev insn addr. */ | ||
66 | @@ -518,7 +518,7 @@ get_insn_microblaze (long inst, | ||
67 | enum microblaze_instr_type *insn_type, | ||
68 | short *delay_slots) | ||
69 | { | ||
70 | - const struct op_code_struct *op; | ||
71 | + struct op_code_struct *op; | ||
72 | *isunsignedimm = false; | ||
73 | |||
74 | /* Just a linear search of the table. */ | ||
75 | @@ -560,7 +560,7 @@ microblaze_get_target_address (long inst, bool immfound, int immval, | ||
76 | bool *targetvalid, | ||
77 | bool *unconditionalbranch) | ||
78 | { | ||
79 | - const struct op_code_struct *op; | ||
80 | + struct op_code_struct *op; | ||
81 | long targetaddr = 0; | ||
82 | |||
83 | *unconditionalbranch = false; | ||
84 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | ||
85 | index f46fc76a94a..9f6d5456701 100644 | ||
86 | --- a/opcodes/microblaze-opc.h | ||
87 | +++ b/opcodes/microblaze-opc.h | ||
88 | @@ -153,7 +153,7 @@ | ||
89 | |||
90 | #define MAX_OPCODES 424 | ||
91 | |||
92 | -const struct op_code_struct | ||
93 | +struct op_code_struct | ||
94 | { | ||
95 | const char * name; | ||
96 | short inst_type; /* Registers and immediate values involved. */ | ||
97 | -- | ||
98 | 2.34.1 | ||
99 | |||