[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 15:07:25 +0100 |
On 25 July 2014 15:01, Christopher Covington <address@hidden> wrote:
> Hi,
>
> I think the AArch64 port has a problem with a self-modifying code sequence
> that appears to run fine on other simulators, but I can't get QEMU to run the
> small bare metal test case I created to try to reproduce the issue. Any help
> would be appreciated.
>
> qemu-system-aarch64 -nodefaults -nographic -monitor none -M virt -semihosting
> -d exec,in_asm /tmp/test-nooverwrite 2>&1 | less
>
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x0000000000000000
>
> qemu-system-aarch64 -nodefaults -nographic -monitor none -M virt -semihosting
> -d exec,in_asm -bios /tmp/test-nooverwrite 2>&1 | less
>
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x0000000000000000
>
> qemu-system-aarch64 -nodefaults -nographic -monitor none -M virt -semihosting
> -d exec,in_asm -kernel /tmp/test-nooverwrite 2>&1 | less
You haven't specified a CPU type, and virt defaults
to cortex-a15. Try "-cpu cortex-a57".
You haven't specified a memory size, and QEMU defaults
to 128MB, which (given the start address of RAM) means
there won't be any RAM at the load address you're trying to
load your test program at. Try "-m 3G", and/or make your
ELF file load at an address closer to the start of RAM.
thanks
-- PMM