From: "Andreas Färber" <afaerber@suse.de>
To: "Peter A. G. Crosthwaite" <peter.crosthwaite@petalogix.com>,
peter.maydell@linaro.org
Cc: paul@codesourcery.com, qemu-devel@nongnu.org, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH] armv7m: Guard against no -kernel argument
Date: Fri, 10 Aug 2012 10:53:39 +0200 [thread overview]
Message-ID: <5024CC13.90507@suse.de> (raw)
In-Reply-To: <1344562055-7347-1-git-send-email-peter.crosthwaite@petalogix.com>
Am 10.08.2012 03:27, schrieb Peter A. G. Crosthwaite:
> A -kernel argument must be specified for this machine. Gaurd against no -kernel
"Guard"
> argument. Previously gave an unhelpful "bad address" error message.
>
> Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Otherwise looks good - PMM, can you fix?
/-F
> ---
> hw/armv7m.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/hw/armv7m.c b/hw/armv7m.c
> index 8cec78d..9f66667 100644
> --- a/hw/armv7m.c
> +++ b/hw/armv7m.c
> @@ -227,6 +227,11 @@ qemu_irq *armv7m_init(MemoryRegion *address_space_mem,
> big_endian = 0;
> #endif
>
> + if (!kernel_filename) {
> + fprintf(stderr, "Guest image must be specified (using -kernel)\n");
> + exit(1);
> + }
> +
> image_size = load_elf(kernel_filename, NULL, NULL, &entry, &lowaddr,
> NULL, big_endian, ELF_MACHINE, 1);
> if (image_size < 0) {
>
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2012-08-10 8:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 1:27 [Qemu-devel] [PATCH] armv7m: Guard against no -kernel argument Peter A. G. Crosthwaite
2012-08-10 6:06 ` Markus Armbruster
2012-08-10 8:53 ` Andreas Färber [this message]
2012-08-10 10:18 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5024CC13.90507@suse.de \
--to=afaerber@suse.de \
--cc=armbru@redhat.com \
--cc=paul@codesourcery.com \
--cc=peter.crosthwaite@petalogix.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).