From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzs0f-000239-0z for qemu-devel@nongnu.org; Thu, 18 Jul 2013 13:28:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uzs0d-0006if-Q1 for qemu-devel@nongnu.org; Thu, 18 Jul 2013 13:28:56 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43532 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzs0d-0006iX-Jj for qemu-devel@nongnu.org; Thu, 18 Jul 2013 13:28:55 -0400 Message-ID: <51E825D3.5030105@suse.de> Date: Thu, 18 Jul 2013 19:28:51 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <20130718184448.25154gvqz7dtibgg@webmail.uni-paderborn.de> <20130718190952.73434o75hby3nasg@webmail.uni-paderborn.de> In-Reply-To: <20130718190952.73434o75hby3nasg@webmail.uni-paderborn.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Watchdog device in Qemu user mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kbastian@mail.uni-paderborn.de Cc: Peter Maydell , qemu-devel@nongnu.org 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 m= ode? > 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 softwa= re. 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 --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg