Received: from [140.186.70.92] (port=58347 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrnvH-0004CN-IJ for qemu-devel@nongnu.org; Tue, 22 Feb 2011 03:48:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrnvG-0005zs-Eo for qemu-devel@nongnu.org; Tue, 22 Feb 2011 03:48:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:26993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrnvG-0005zj-2P for qemu-devel@nongnu.org; Tue, 22 Feb 2011 03:48:42 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] General IO ports in pc386 References: <4D62F5A1.8040304@d3s.mff.cuni.cz> Date: Tue, 22 Feb 2011 09:48:25 +0100 In-Reply-To: <4D62F5A1.8040304@d3s.mff.cuni.cz> (Tomas Bures's message of "Tue, 22 Feb 2011 00:30:41 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tomas Bures Cc: qemu-devel@nongnu.org Tomas Bures writes: > Dear all, > > I'm preparing a class on embedded systems. I would like to make a > client that interfaces with QEMU and the application running inside > it. This client would simulate the physical environment that the > application running inside QEMU should control. To achieve this, I > would like to introduce use general IO ports (in a similar way they > are used e.g. on ARMs). Please is there a simple way to emulate the > general IO ports on pc386? > > If not, what would be the simplest way to create (i.e. develop) a new > device for QEMU? Is there any intro or some simple device, which could > be taken as a stub? If you crusty old ISA is okay for you, the ib700 watchdog device (hw/wdt_ib700.c) is really simple. For PCI, maybe try the i6300esb watchdog (hw/wdt_i6300esb.c).