mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
Disable Thumb code generation in codecs for ARM profile 65
It seems that there are a couple of codecs that use assembly optimizations. Some of their instruction sequences are not valid Thumb code. To be able to compile them successfully on TI OMAP4430, ARM mode is forced on the codecs. Change-Id: I932186177b540985e37cb3a5333943572da1c60a
This commit is contained in:
parent
11163721d6
commit
508bfabe83
1 changed files with 14 additions and 0 deletions
14
tools/configure
vendored
14
tools/configure
vendored
|
|
@ -4939,6 +4939,19 @@ if [ -z "$arch" ]; then
|
||||||
GCCOPTS="$GCCOPTS -masm-syntax-unified"
|
GCCOPTS="$GCCOPTS -masm-syntax-unified"
|
||||||
fi
|
fi
|
||||||
case "$arch_profile" in
|
case "$arch_profile" in
|
||||||
|
65)
|
||||||
|
arch_profile=application
|
||||||
|
|
||||||
|
# Disable generation of Thumb code, since some codecs use
|
||||||
|
# instructions that can only be assembled to ARM code
|
||||||
|
GCCOPTS="$GCCOPTS -marm"
|
||||||
|
|
||||||
|
# Make sure Thumb does not get enabled by the command-line option
|
||||||
|
if [ "$ARG_ARM_THUMB" = "1" ]; then
|
||||||
|
echo "Warning: --thumb option has no effect on ARM A profile cores"
|
||||||
|
ARG_ARM_THUMB=0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
77)
|
77)
|
||||||
arch_profile=micro
|
arch_profile=micro
|
||||||
|
|
||||||
|
|
@ -5061,6 +5074,7 @@ cat > autoconf.h.new <<EOF
|
||||||
|
|
||||||
#define ARM_PROFILE_CLASSIC 0 /* Classic ARM cores (<= ARMv6) */
|
#define ARM_PROFILE_CLASSIC 0 /* Classic ARM cores (<= ARMv6) */
|
||||||
#define ARM_PROFILE_MICRO 1 /* ARMv6/ARMv7+ M-profile cores */
|
#define ARM_PROFILE_MICRO 1 /* ARMv6/ARMv7+ M-profile cores */
|
||||||
|
#define ARM_PROFILE_APPLICATION 2
|
||||||
|
|
||||||
/* Define target machine architecture */
|
/* Define target machine architecture */
|
||||||
${Darch}
|
${Darch}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue