qemu-devel
[Top][All Lists]
Advanced

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

Re: AArch64 semihosting?


From: Liviu Ionescu
Subject: Re: AArch64 semihosting?
Date: Thu, 26 May 2022 14:46:10 +0300


> On 26 May 2022, at 14:08, Peter Maydell <peter.maydell@linaro.org> wrote:
> 

I confirm that, started via "-kernel aarch64-boot-libgloss.elf", with a single 
"--semihosting-config", the app ran properly, displayed the printf() output and 
no longer crashed.

```
ilg@wksi ~ % 
/Users/ilg/Library/xPacks/@xpack-dev-tools/qemu-arm/6.2.0-1.1/.content/bin/qemu-system-aarch64
  "--machine" "virt" "--cpu" "cortex-a57" "--kernel" "/Users/ilg/My Files/WKS 
Projects/micro-os-plus.github/work/aarch64-boot-libgloss/Debug/aarch64-boot-libgloss.elf"
 "--nographic" "-d" "unimp,guest_errors" "--semihosting-config" 
"enable=on,target=native,arg=sample-test,arg=one,arg=two"

Hello World 3!
arg 0 = sample-test!
arg 1 = one!
arg 2 = two!
...
```

> ... You want both '-s' and '-S'

Same with '-s -S' and the elf loaded via GDB in Eclipse.


Thank you,

Liviu




reply via email to

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