[PATCH] test/tcg/arm: Use -mfloat-abi=soft for test-armv6m-undef

Richard Henderson posted 1 patch 1 year, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220604032713.174976-1-richard.henderson@linaro.org
Maintainers: Peter Maydell <peter.maydell@linaro.org>
tests/tcg/arm/Makefile.softmmu-target | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] test/tcg/arm: Use -mfloat-abi=soft for test-armv6m-undef
Posted by Richard Henderson 1 year, 11 months ago
GCC11 from crossbuild-essential-armhf from ubuntu 22.04 errors:
cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 tests/tcg/arm/Makefile.softmmu-target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/tcg/arm/Makefile.softmmu-target b/tests/tcg/arm/Makefile.softmmu-target
index 3fe237ba39..7df88ddea8 100644
--- a/tests/tcg/arm/Makefile.softmmu-target
+++ b/tests/tcg/arm/Makefile.softmmu-target
@@ -20,7 +20,7 @@ LDFLAGS+=-nostdlib -N -static
 
 # Specific Test Rules
 
-test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0
+test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft
 
 run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
 run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel
-- 
2.34.1


Re: [PATCH] test/tcg/arm: Use -mfloat-abi=soft for test-armv6m-undef
Posted by Alex Bennée 1 year, 10 months ago
Richard Henderson <richard.henderson@linaro.org> writes:

> GCC11 from crossbuild-essential-armhf from ubuntu 22.04 errors:
> cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Queued to testing/next, thanks.

-- 
Alex Bennée
Re: [PATCH] test/tcg/arm: Use -mfloat-abi=soft for test-armv6m-undef
Posted by Philippe Mathieu-Daudé via 1 year, 11 months ago
On 4/6/22 05:27, Richard Henderson wrote:
> GCC11 from crossbuild-essential-armhf from ubuntu 22.04 errors:
> cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   tests/tcg/arm/Makefile.softmmu-target | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


Re: [PATCH] test/tcg/arm: Use -mfloat-abi=soft for test-armv6m-undef
Posted by Thomas Huth 1 year, 11 months ago
On 04/06/2022 05.27, Richard Henderson wrote:
> GCC11 from crossbuild-essential-armhf from ubuntu 22.04 errors:
> cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   tests/tcg/arm/Makefile.softmmu-target | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/tcg/arm/Makefile.softmmu-target b/tests/tcg/arm/Makefile.softmmu-target
> index 3fe237ba39..7df88ddea8 100644
> --- a/tests/tcg/arm/Makefile.softmmu-target
> +++ b/tests/tcg/arm/Makefile.softmmu-target
> @@ -20,7 +20,7 @@ LDFLAGS+=-nostdlib -N -static
>   
>   # Specific Test Rules
>   
> -test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0
> +test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft
>   
>   run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
>   run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel

Reviewed-by: Thomas Huth <thuth@redhat.com>