qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] AArch64 ELF File Loading


From: Peter Maydell
Subject: Re: [Qemu-devel] AArch64 ELF File Loading
Date: Fri, 25 Jul 2014 16:17:48 +0100

On 25 July 2014 16:05, Christopher Covington <address@hidden> wrote:
> I have local patches adding semihosting for AArch64. I hope eventually be able
> to share them and other changes, but the approvals will likely take a while
> longer.

That would be good; there is demand from other quarters for
semihosting support.

> wget
> http://releases.linaro.org/14.06/components/toolchain/binaries/gcc-linaro-aarch64-none-elf-4.9-2014.06-02_linux.tar.xz
> tar xf gcc-linaro-aarch64-none-elf-4.9-2014.06-02_linux.tar.xz
> echo '.global _start
> _start:
>   mrs x0, midr_el1
>   b _start' > hello.S
> gcc-linaro-aarch64-none-elf-4.9-2014.06-02_linux/bin/aarch64-none-elf-gcc \
>   -nostdlib -Ttext=0x40000000 hello.S -o hello
> qemu-system-aarch64 -nodefaults -nographic -monitor none -M virt \
>   -cpu cortex-a57 -m 3G -semihosting -kernel hello -d in_asm,exec,int
>
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x0000000000000000

Doh. We never implemented the AArch64 support for
booting plain ELF files in hw/arm/boot.c:do_cpu_reset().
Patch coming up in a second; with that I can see via
the gdbstub that we're going round the loop in the guest code.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]