Skip to content

Commit

Permalink
reset meta-xilinx subtree on master HEAD(874b9cee5e)
Browse files Browse the repository at this point in the history
Change-Id: Ic0716e95ff53e7d63c54dc5fce6ee42fc99ed424
  • Loading branch information
geissonator committed Oct 16, 2020
1 parent 9129b24 commit a9ff2b3
Show file tree
Hide file tree
Showing 262 changed files with 3,729 additions and 7,484 deletions.
14 changes: 14 additions & 0 deletions meta-xilinx/meta-microblaze/conf/layer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have a packages directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "xilinx-microblaze"
BBFILE_PATTERN_xilinx-microblaze = "^${LAYERDIR}/"
BBFILE_PRIORITY_xilinx-microblaze = "5"

LAYERDEPENDS_xilinx-microblaze = "core"

LAYERSERIES_COMPAT_xilinx-microblaze = "dunfell gatesgarth"
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FILESEXTRAPATHS_append := ":${THISDIR}/binutils"

SRC_URI_append = " \
file://0001-sim-Allow-microblaze-architecture.patch \
file://0002-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch \
file://0003-Add-mlittle-endian-and-mbig-endian-flags.patch \
file://0004-Disable-the-warning-message-for-eh_frame_hdr.patch \
file://0005-Fix-relaxation-of-assembler-resolved-references.patch \
file://0006-microblaze-Fixup-debug_loc-sections-after-linker-rel.patch \
file://0007-upstream-change-to-garbage-collection-sweep-causes-m.patch \
file://0008-Fix-bug-in-TLSTPREL-Relocation.patch \
file://0009-Added-Address-extension-instructions.patch \
file://0010-Add-new-bit-field-instructions.patch \
file://0011-fixing-the-imm-bug.patch \
file://0012-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch \
file://0013-fixing-the-constant-range-check-issue.patch \
file://0014-Patch-Microblaze-Compiler-will-give-error-messages-i.patch \
file://0015-intial-commit-of-MB-64-bit.patch \
file://0016-MB-X-initial-commit.patch \
file://0017-Patch-Microblaze-negl-instruction-is-overriding-rsub.patch \
file://0018-Added-relocations-for-MB-X.patch \
file://0019-Update-MB-x.patch \
file://0020-Various-fixes.patch \
file://0021-Adding-new-relocation-to-support-64bit-rodata.patch \
file://0022-fixing-the-.bss-relocation-issue.patch \
file://0023-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch \
file://0024-Revert-ld-Remove-unused-expression-state.patch \
file://0025-Patch-Microblaze-Binutils-security-check-is-causing-.patch \
file://0026-fixing-the-long-long-long-mingw-toolchain-issue.patch \
file://0027-Added-support-to-new-arithmetic-single-register-inst.patch \
file://0028-Patch-MicroBlaze-double-imml-generation-for-64-bit-v.patch \
file://0029-Fixed-bug-in-generation-of-IMML-instruction-for-the.patch \
file://0030-Patch-MicroBlaze-m64-Update-imml-instructions-for-Ty.patch \
file://0031-ldlang.c-Workaround-for-improper-address-mapping-cau.patch \
file://0032-gas-revert-moving-of-md_pseudo_table-from-const.patch \
file://0033-Fix-various-compile-warnings.patch \
file://0034-Add-initial-port-of-linux-gdbserver.patch \
file://0035-Initial-port-of-core-reading-support.patch \
file://0036-Fix-debug-message-when-register-is-unavailable.patch \
file://0037-microblaze-Add-build_gdbserver-yes-to-top-level-conf.patch \
file://0038-Initial-support-for-native-gdb.patch \
file://0039-Fixing-the-issues-related-to-GDB-7.12.patch \
file://0040-Patch-microblaze-Adding-64-bit-MB-support.patch \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 501b60af6b36fc69987e1610645742f5593a6da2 Mon Sep 17 00:00:00 2001
From: Mark Hatle <[email protected]>
Date: Thu, 6 Aug 2020 15:37:52 -0500
Subject: [PATCH 01/40] sim: Allow microblaze* architecture

Signed-off-by: Mark Hatle <[email protected]>
---
sim/configure | 2 +-
sim/configure.tgt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sim/configure b/sim/configure
index 72f95cd5c7a..9e28cc78687 100755
--- a/sim/configure
+++ b/sim/configure
@@ -3795,7 +3795,7 @@ subdirs="$subdirs aarch64"


;;
- microblaze-*-*)
+ microblaze*-*-*)

sim_arch=microblaze
subdirs="$subdirs microblaze"
diff --git a/sim/configure.tgt b/sim/configure.tgt
index 8a8e03d96f4..f6743fe8d41 100644
--- a/sim/configure.tgt
+++ b/sim/configure.tgt
@@ -59,7 +59,7 @@ case "${target}" in
mcore-*-*)
SIM_ARCH(mcore)
;;
- microblaze-*-*)
+ microblaze*-*-*)
SIM_ARCH(microblaze)
;;
mips*-*-*)
--
2.17.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 247ead894f7079a4ededf2b48a65ffa6e78e2222 Mon Sep 17 00:00:00 2001
From b8e39d2a6b83d0f0a14d4bfeafd47a37d746f159 Mon Sep 17 00:00:00 2001
From: David Holsgrove <[email protected]>
Date: Wed, 8 May 2013 11:03:36 +1000
Subject: [PATCH 01/43] Add wdc.ext.clear and wdc.ext.flush insns
Subject: [PATCH 02/40] Add wdc.ext.clear and wdc.ext.flush insns

Added two new instructions, wdc.ext.clear and wdc.ext.flush,
to enable MicroBlaze to flush an external cache, which is
Expand All @@ -15,7 +15,7 @@ Signed-off-by: David Holsgrove <[email protected]>
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
index 62ee3c9a4d..865151f95b 100644
index 27d8684df04..b6c5016e4d2 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -91,6 +91,7 @@
Expand Down Expand Up @@ -46,7 +46,7 @@ index 62ee3c9a4d..865151f95b 100644
{"mfs", INST_TYPE_RD_SPECIAL, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_MFS, 0x94008000, OPCODE_MASK_H23S, mfs, special_inst },
{"br", INST_TYPE_R2, INST_PC_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x98000000, OPCODE_MASK_H124, br, branch_inst },
diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h
index 5a2d3b0c8b..42f3dd3be5 100644
index aa53dfe6bb5..795c57b5ff6 100644
--- a/opcodes/microblaze-opcm.h
+++ b/opcodes/microblaze-opcm.h
@@ -33,8 +33,8 @@ enum microblaze_instr
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 7163824e07ade3ad2dc24e888265d27e0bc87869 Mon Sep 17 00:00:00 2001
From d2a03159f8643b1c6a2db5d95c478540cc6ca6c4 Mon Sep 17 00:00:00 2001
From: nagaraju <[email protected]>
Date: Tue, 19 Mar 2013 17:18:23 +0530
Subject: [PATCH 02/43] Add mlittle-endian and mbig-endian flags
Subject: [PATCH 03/40] Add mlittle-endian and mbig-endian flags

Added support in gas for mlittle-endian and mbig-endian flags
as options.
Expand All @@ -16,7 +16,7 @@ Signed-off-by: David Holsgrove <[email protected]>
1 file changed, 9 insertions(+)

diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
index ab90c6b20f..c92e9ce563 100644
index ae5d36dc9c3..34eeb972357 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -37,6 +37,8 @@
Expand All @@ -28,7 +28,7 @@ index ab90c6b20f..c92e9ce563 100644

void microblaze_generate_symbol (char *sym);
static bfd_boolean check_spl_reg (unsigned *);
@@ -1845,6 +1847,8 @@ struct option md_longopts[] =
@@ -1842,6 +1844,8 @@ struct option md_longopts[] =
{
{"EB", no_argument, NULL, OPTION_EB},
{"EL", no_argument, NULL, OPTION_EL},
Expand All @@ -37,7 +37,7 @@ index ab90c6b20f..c92e9ce563 100644
{ NULL, no_argument, NULL, 0}
};

@@ -2498,9 +2502,11 @@ md_parse_option (int c, const char * arg ATTRIBUTE_UNUSED)
@@ -2494,9 +2498,11 @@ md_parse_option (int c, const char * arg ATTRIBUTE_UNUSED)
switch (c)
{
case OPTION_EB:
Expand All @@ -49,7 +49,7 @@ index ab90c6b20f..c92e9ce563 100644
target_big_endian = 0;
break;
default:
@@ -2515,6 +2521,9 @@ md_show_usage (FILE * stream ATTRIBUTE_UNUSED)
@@ -2511,6 +2517,9 @@ md_show_usage (FILE * stream ATTRIBUTE_UNUSED)
/* fprintf(stream, _("\
MicroBlaze options:\n\
-noSmall Data in the comm and data sections do not go into the small data section\n")); */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
From 68fe2e975f229cce08029b3a5afb06132f1cb31c Mon Sep 17 00:00:00 2001
From a8d621e5ab335e6e61de0f081036b4705071fb74 Mon Sep 17 00:00:00 2001
From: "Edgar E. Iglesias" <[email protected]>
Date: Fri, 22 Jun 2012 01:20:20 +0200
Subject: [PATCH 03/43] Disable the warning message for eh_frame_hdr
Subject: [PATCH 04/40] Disable the warning message for eh_frame_hdr

Signed-off-by: Edgar E. Iglesias <[email protected]>
---
bfd/elf-eh-frame.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index a13e81ebb8..1824ba6e5b 100644
index 7a129b00f8d..d5e4a5c062d 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
@@ -1044,10 +1044,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
Expand All @@ -24,8 +24,8 @@ index a13e81ebb8..1824ba6e5b 100644
abfd, sec);
+}
hdr_info->u.dwarf.table = FALSE;
if (sec_info)
free (sec_info);
free (sec_info);
success:
--
2.17.1

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
From ababe1df64146c616455eb1af4cf8fd21eb6f42c Mon Sep 17 00:00:00 2001
From c4ce6cb47613293e02837fc00c2c2ebfcdd596f6 Mon Sep 17 00:00:00 2001
From: "Edgar E. Iglesias" <[email protected]>
Date: Tue, 14 Feb 2012 01:00:22 +0100
Subject: [PATCH 04/43] Fix relaxation of assembler resolved references
Subject: [PATCH 05/40] Fix relaxation of assembler resolved references

---
bfd/elf32-microblaze.c | 38 ++++++++++++++++++++++++++++++++++++++
bfd/elf32-microblaze.c | 41 ++++++++++++++++++++++++++++++++++++++
gas/config/tc-microblaze.c | 1 +
2 files changed, 39 insertions(+)
2 files changed, 42 insertions(+)

diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
index e3c8027248..359484dd5e 100644
index 693fc71f730..09dedc46106 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -1973,6 +1973,44 @@ microblaze_elf_relax_section (bfd *abfd,
@@ -1969,6 +1969,47 @@ microblaze_elf_relax_section (bfd *abfd,
irelscanend = irelocs + o->reloc_count;
for (irelscan = irelocs; irelscan < irelscanend; irelscan++)
{
Expand Down Expand Up @@ -45,9 +45,12 @@ index e3c8027248..359484dd5e 100644
+ elf_section_data (o)->this_hdr.contents = ocontents;
+ }
+ }
+ irelscan->r_addend -= calc_fixup (irelscan->r_addend
+ + isym->st_value, sec);
+ val = bfd_get_32 (abfd, ocontents + irelscan->r_offset);
+ if (val != irelscan->r_addend) {
+ fprintf(stderr, "%d: CORRUPT relax reloc! %x %lx\n", __LINE__, val, irelscan->r_addend);
+ }
+ irelscan->r_addend -= calc_fixup (irelscan->r_addend
+ + isym->st_value, 0, sec);
+ microblaze_bfd_write_imm_value_32 (abfd, ocontents + irelscan->r_offset,
+ irelscan->r_addend);
+ }
Expand All @@ -58,10 +61,10 @@ index e3c8027248..359484dd5e 100644
{
isym = isymbuf + ELF32_R_SYM (irelscan->r_info);
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
index c92e9ce563..3e728400b7 100644
index 34eeb972357..d01653aeef9 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -2205,6 +2205,7 @@ md_apply_fix (fixS * fixP,
@@ -2201,6 +2201,7 @@ md_apply_fix (fixS * fixP,
else
fixP->fx_r_type = BFD_RELOC_NONE;
fixP->fx_addsy = section_symbol (absolute_section);
Expand Down
Loading

0 comments on commit a9ff2b3

Please sign in to comment.