# Add MicroBlaze Patches (only when using MicroBlaze)
FILESEXTRAPATHS:append := ":${THISDIR}/gcc-12"

SRC_URI += " \
    file://0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch \
    file://0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch \
    file://0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch \
    file://0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch \
    file://0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch \
    file://0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch \
    file://0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch \
    file://0008-Patch-microblaze-Fix-atomic-side-effects.patch \
    file://0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch \
    file://0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch \
    file://0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch \
    file://0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch \
    file://0013-Patch-microblaze-Removed-moddi3-routinue.patch \
    file://0014-Patch-microblaze-Add-INIT_PRIORITY-support-Added.patch \
    file://0015-Patch-microblaze-Add-optimized-lshrsi3.patch \
    file://0016-Patch-microblaze-Add-cbranchsi4_reg.patch \
    file://0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch \
    file://0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch \
    file://0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch \
    file://0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch \
    file://0021-PATCH-21-53-Patch-microblaze-Correct-the-const-high-.patch \
    file://0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch \
    file://0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch \
    file://0024-Patch-MicroBlaze-this-patch-has-1.Fixed-the-bug-in.patch \
    file://0025-Fixing-the-issue-with-the-builtin_alloc.patch \
    file://0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch \
    file://0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch \
    file://0028-Intial-commit-for-64bit-MB-sources.patch \
    file://0029-Patch-MicroBlaze-re-arrangement-of-the-compare-branc.patch \
    file://0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch \
    file://0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch \
    file://0032-Patch-MicroBlaze-Fixed-issues-like.patch \
    file://0033-Patch-MicroBlaze.patch \
    file://0034-Added-double-arith-instructions.patch \
    file://0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch \
    file://0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch \
    file://0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch \
    file://0038-fixing-the-typo-errors-in-umodsi3-file.patch \
    file://0039-fixing-the-32bit-LTO-related-issue9-1014024.patch \
    file://0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch \
    file://0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch \
    file://0042-fixing-the-long-long-long-mingw-toolchain-issue.patch \
    file://0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch \
    file://0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch \
    file://0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch \
    file://0046-Patch-microblaze-MB-64-removal-of-barrel-shift-instr.patch \
    file://0047-Added-new-MB-64-single-register-arithmetic-instructi.patch \
    file://0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch \
    file://0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch \
    file://0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch \
    file://0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch \
    file://0052-Patch-MicroBlaze.patch \
    file://0053-patch-microblaze64-Add-Zero_extended-instructions.patch \
    file://microblaze-mulitlib-hack.patch \
"
