qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 68/74] hw/rx: Handle a kernel file that is ELF


From: Peter Maydell
Subject: Re: [PATCH v2 68/74] hw/rx: Handle a kernel file that is ELF
Date: Fri, 13 May 2022 16:44:43 +0100

On Tue, 3 May 2022 at 21:52, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Attempt to load the kernel with load_elf.  If this fails with
> ELF_LOAD_NOT_ELF, continue to treat the kernel as a raw image.
>
> This will be handy for running semihosting programs.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

I know nothing of the specifics of the rx target, but I'm
always a bit dubious about adding more behaviour to the
-kernel option, which is (a) already a morass of undocumented
target specific behaviours (b) nominally supposed to be
"load a Linux kernel", not "load any random thing".
Can you do what you need with the generic-loader device instead?
That has the benefit of both being documented and also doing
the same thing on all target architectures.


thanks
-- PMM



reply via email to

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