qemu-devel
[Top][All Lists]
Advanced

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

Re: AArch64 semihosting?


From: Peter Maydell
Subject: Re: AArch64 semihosting?
Date: Thu, 26 May 2022 09:20:46 +0100

On Thu, 26 May 2022 at 09:14, Liviu Ionescu <ilg@livius.net> wrote:
>
> I'm trying to set-up an environment for running unit-tests on AArch64, and 
> I'm constantly getting crashes:
>
> ```
> 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" "--semihosting-config" 
> "arg=sample-test,arg=one,arg=two" -s
>
> zsh: segmentation fault   "--machine" "virt" "--cpu" "cortex-a57" "--kernel"  
> "--nographic" "-d"
> ilg@wksi ~ %
> ```
>
> The application was built with newlib libgloss and all it does is a series of 
> printfs to display Hello World and the argv array.

I'm not aware of any problems with aarch64 semihosting.
If QEMU crashes that's definitely a bug -- can you provide us with
a reproduce case (eg the binary you used here)?

> Some time ago I reworked the semihosting implementation in OpenOCD, and
> there I used a common semihosting implementation for all Arm and RISC-V
> devices; everything worked fine, so a common approach is realistic.

Yes; QEMU also shares code for those two architectures' semihosting
implementation.

thanks
-- PMM



reply via email to

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