From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4kzC-0007EL-CH for qemu-devel@nongnu.org; Tue, 18 Dec 2007 17:32:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4kzB-0007DJ-9T for qemu-devel@nongnu.org; Tue, 18 Dec 2007 17:32:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4kzB-0007D4-2y for qemu-devel@nongnu.org; Tue, 18 Dec 2007 17:32:25 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4kz9-000531-UE for qemu-devel@nongnu.org; Tue, 18 Dec 2007 17:32:24 -0500 Subject: Re: [Qemu-devel] [Patch 1/2] switch support v2 From: Laurent Vivier In-Reply-To: <4768142A.3040703@kama-aina.net> References: <47657715.9020402@kama-aina.net> <4766B205.50204@kama-aina.net> <1197915422.17512.3.camel@frecb07144> <4766D0CB.4010903@kama-aina.net> <1197921612.17512.6.camel@frecb07144> <4768142A.3040703@kama-aina.net> Date: Tue, 18 Dec 2007 23:31:55 +0100 Message-Id: <1198017115.1998.10.camel@frecb07144> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-pf4sRvOFFqMpkd0y3vru" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Armin Cc: qemu-devel@nongnu.org --=-pf4sRvOFFqMpkd0y3vru Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le mardi 18 d=C3=A9cembre 2007 =C3=A0 08:40 -1000, Armin a =C3=A9crit : > Laurent Vivier wrote: > > Le lundi 17 d=C3=A9cembre 2007 =C3=A0 09:40 -1000, Armin a =C3=A9crit : > > =20 > >> Laurent Vivier wrote: > >> =20 > >>> Hi, > >>> > >>> if you just want to configure which bank to use with pflash, perhaps = you > >>> can do something like: > >>> > >>> qemu -drive if=3Dpflash,unit=3D0 > >>> > >>> to use the first bank, and > >>> > >>> qemu -drive if=3Dpflash,unit=3D1 > >>> > >>> to use the second bank. > >>> =20 > >>> =20 > >> Yes, that might work for the flash case but does not address other=20 > >> switches settings. In my case, the Mainstone has two rotary switches=20 > >> that define which frequency to boot up in. > >> =20 > > > > But I don't think qemu able to emulate frequency ? > > So it should be useless. > > =20 > I am sure that is true and my example might be very week in the above cas= e. > I think if a board we are trying to emulate has boot time configurations=20 > governed by jumpers or switches for enabling or disabling certain=20 > hardware devices , then having a runtime solution seems more=20 > appropriate. It seems silly to have to rebuild to qemu if one wants to=20 > switch device A to be uart #2 from an IrdA device when using "-switches=20 > 1=3Don" could do the same. Well, my opinion is not really important here, but I think "-switches 1=3Don" is too low level... using the "meaning" could be more user-friendly, something like "-deviceA uart2". Regards, Laurent --=20 ----------------- Laurent.Vivier@bull.net ------------------ "La perfection est atteinte non quand il ne reste rien =C3=A0 ajouter mais quand il ne reste rien =C3=A0 enlever." Saint Exup=C3=A9ry --=-pf4sRvOFFqMpkd0y3vru Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHaEpb9Kffa9pFVzwRAoFIAJsFAA7fVw89BT6rmK0OOww9KoNADgCfUXQ1 AXcmZ32ay0OTwFZ1iAgQov4= =FkLc -----END PGP SIGNATURE----- --=-pf4sRvOFFqMpkd0y3vru--