qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: kbastian@mail.uni-paderborn.de
Cc: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Watchdog device in Qemu user mode
Date: Thu, 18 Jul 2013 19:28:51 +0200	[thread overview]
Message-ID: <51E825D3.5030105@suse.de> (raw)
In-Reply-To: <20130718190952.73434o75hby3nasg@webmail.uni-paderborn.de>

Hi Bastian,

Am 18.07.2013 19:09, schrieb kbastian@mail.uni-paderborn.de:
> The processor is usually embedded and
> programs run without operating systems or with custom ones designed for
> hard realtime. Would it be much work to port from user mode to system mode?
> I am using a c-compiler to create testprograms and these programs are
> serving the watchdog. This results in segmentation faults when I try to
> execute loads or stores on addresses from the watchdog.

You need a softmmu a.k.a. system emulation for that. linux-user is only
for emulating programs that would actually run under Linux operating
system. You'd use the -bios command line option to load bare metal software.

Having no link to your code it's hard to judge how much work it might
be, but in general system emulation is easier - you need to write a
simple board file to load your binary, the instruction emulation remains
unchanged, maybe one or two stub functions for interrupts and MMU faults.

Regards,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

  parent reply	other threads:[~2013-07-18 17:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-18 16:44 [Qemu-devel] Watchdog device in Qemu user mode kbastian
2013-07-18 16:52 ` Peter Maydell
2013-07-18 17:09   ` kbastian
2013-07-18 17:26     ` Peter Maydell
2013-07-18 17:28     ` Andreas Färber [this message]
2013-07-18 17:36       ` kbastian

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=51E825D3.5030105@suse.de \
    --to=afaerber@suse.de \
    --cc=kbastian@mail.uni-paderborn.de \
    --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).