[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 07/11] arm/run: allow aarch64 to start arm binarie
From: |
Andrew Jones |
Subject: |
Re: [Qemu-devel] [RFC 07/11] arm/run: allow aarch64 to start arm binaries |
Date: |
Fri, 26 Feb 2016 15:02:15 +0100 |
User-agent: |
Mutt/1.5.23.1 (2014-03-12) |
On Fri, Feb 26, 2016 at 01:15:29PM +0000, Alex Bennée wrote:
> AArch64 hosts can happily run AArch32 binaries. We just need to ensure
> that we use "cpu host,aarch64=off" when specifying the CPU type.
>
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> arm/run | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/arm/run b/arm/run
> index 0eaf23a..f1a6b7d 100755
> --- a/arm/run
> +++ b/arm/run
> @@ -38,7 +38,15 @@ if [ "$HOST" = "aarch64" ] && [ "$ACCEL" = "kvm" ]; then
> fi
> fi
>
> -qemu="${QEMU:-qemu-system-$ARCH_NAME}"
> +if [ "$ARCH" = "arm" ] && [ "$HOST" = "aarch64" ]; then
> + qemu="${QEMU:-qemu-system-$HOST}"
> + if [ "$ACCEL" = "kvm" ]; then
> + processor="host,aarch64=off"
> + fi
> +else
> + qemu="${QEMU:-qemu-system-$ARCH_NAME}"
> +fi
We've got 3382e7795 "arm/run: allow tests to run in AArch32 mode"
already, so I this patch should no longer be necessary.
Thanks,
drew
> +
> qpath=$(which $qemu 2>/dev/null)
>
> if [ -z "$qpath" ]; then
> --
> 2.7.1
>
- [Qemu-devel] [RFC 04/11] arm/arm64: Add IPI test, (continued)
- [Qemu-devel] [RFC 04/11] arm/arm64: Add IPI test, Alex Bennée, 2016/02/26
- [Qemu-devel] [RFC 01/11] config/config-arm-common: build-up tests-common target, Alex Bennée, 2016/02/26
- [Qemu-devel] [RFC 03/11] arm/arm64: Add initial gic support, Alex Bennée, 2016/02/26
- [Qemu-devel] [RFC 06/11] arm/run: set indentation defaults for emacs, Alex Bennée, 2016/02/26
- [Qemu-devel] [RFC 08/11] arm/tlbflush-test: Add TLB torture test, Alex Bennée, 2016/02/26
- [Qemu-devel] [RFC 10/11] arm/barrier-litmus-tests: add some litmus tests, Alex Bennée, 2016/02/26
- [Qemu-devel] [RFC 05/11] lib: add isaac prng library from CCAN, Alex Bennée, 2016/02/26
- [Qemu-devel] [RFC 07/11] arm/run: allow aarch64 to start arm binaries, Alex Bennée, 2016/02/26
- Re: [Qemu-devel] [RFC 07/11] arm/run: allow aarch64 to start arm binaries,
Andrew Jones <=
- [Qemu-devel] [RFC 09/11] arm/locking-tests: add comprehensive locking test, Alex Bennée, 2016/02/26
- [Qemu-devel] [RFC 11/11] arm/tcg-test: some basic TCG exercising tests, Alex Bennée, 2016/02/26
- Re: [Qemu-devel] [RFC 00/11] Current MTTCG kvm-unit-test patches, Andrew Jones, 2016/02/26