[OpenBIOS] [PATCH] ppc: force target CPU
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sun Nov 22 12:54:45 CET 2015
On 21/11/15 16:00, Laurent Vivier wrote:
> With gcc-5.2 default target is power7.
> As openbios targets PowerMacs G3/G4/G5, force
> gcc target to be G3 (32bit) or G5 (64bit).
>
> Signed-off-by: Laurent Vivier <laurent at vivier.eu>
> ---
> config/scripts/switch-arch | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/config/scripts/switch-arch b/config/scripts/switch-arch
> index 38d263d..bcf807a 100755
> --- a/config/scripts/switch-arch
> +++ b/config/scripts/switch-arch
> @@ -265,7 +265,7 @@ for ARCH in $arch_list; do
> ppc)
> select_prefix powerpc powerpc64
> if [ "$unix" = "no" ]; then
> - CFLAGS="-m32 -msoft-float -fno-builtin-bcopy -fno-builtin-log2"
> + CFLAGS="-m32 -mcpu=G3 -msoft-float -fno-builtin-bcopy -fno-builtin-log2"
> AS_FLAGS="-m32"
> else
> CFLAGS="-fno-builtin"
> @@ -275,7 +275,7 @@ for ARCH in $arch_list; do
>
> ppc64)
> select_prefix powerpc64
> - CFLAGS="-Wa,-a64 -m64 -msoft-float -fno-builtin"
> + CFLAGS="-Wa,-a64 -m64 -mcpu=G5 -msoft-float -fno-builtin"
> AS_FLAGS="-Wa,-a64"
> ;;
>
Great work! Andreas, I'd be much happier if you could review/commit this
(or at least give a Reviewed-by) as this is a little bit out of my area
of knowledge...
Many thanks,
Mark.
More information about the OpenBIOS
mailing list