qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 3/3] arm: semihosting: Wire up A64 HLT 0xf000


From: Christopher Covington
Subject: Re: [Qemu-devel] [PATCH 3/3] arm: semihosting: Wire up A64 HLT 0xf000
Date: Fri, 10 Apr 2015 11:47:30 -0400

Hi Peter,

On Thu, Apr 9, 2015 at 1:57 PM, Peter Maydell <address@hidden> wrote:
> On 9 April 2015 at 18:23, Christopher Covington
> <address@hidden> wrote:
>> On Fri, Mar 27, 2015 at 12:40 PM, Peter Maydell
>> <address@hidden> wrote:
>>> You need to have the semihosting_enabled check here rather
>>> than in the do_interrupt code, because otherwise we won't
>>> behave correctly in the disabled case.
>>
>> Do you have suggestions for getting semihosting_enabled defined in
>> translate-a64.c? I'm likely doing something dumb, but while #include
>> "sysemu/sysemu.h" at first seemed like the obvious approach, and
>> appears to work for -softmmu, I'm getting errors with that when
>> building -linux-user.
>
> sysemu.h is an ugly grab-bag of things that are specific to the
> system emulator config. Semihosting is always enabled for linux-user,
> so it doesn't have an equivalent switch.

Why are Angel semihosting calls supported in arm-linux-user? The use
case isn't obvious to me. Could omitting semihosting support in
aarch64-linux-user simplify development and maintenance?

(I happen to have some binaries that make both Angel and Linux calls,
but I use them on arm-softmmu [after hacking out the curious
restriction on semihosting calls from USR], aarch64-softmmu, and
non-QEMU system emulators. The most frequently used tools are for
passthrough file operations, which I'm replacing with VirtIO-MMIO 9P
mounts, and an exit utility, which I'd like to replace with
(PSCI-backed?) poweroff. There is also a take-a-checkpoint-now tool
and a current-commandline tool that I'm not yet sure how to replace.)

Thanks,
Chris



reply via email to

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