From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114483 invoked by alias); 5 Apr 2015 02:05:56 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 114360 invoked by uid 89); 5 Apr 2015 02:05:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 05 Apr 2015 02:05:53 +0000 Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 5E5DF3408E5; Sun, 5 Apr 2015 02:05:51 +0000 (UTC) Date: Sun, 05 Apr 2015 02:05:00 -0000 From: Mike Frysinger To: Joel Sherrill Cc: "gdb@sourceware.org" Subject: Re: lm32 simulator configuration file question Message-ID: <20150405020551.GB16816@vapier> Mail-Followup-To: Joel Sherrill , "gdb@sourceware.org" References: <20150403014149.GJ22171@vapier> <551EF633.9030309@oarcorp.com> <20150403232113.GO22171@vapier> <551F2996.10003@oarcorp.com> <20150404025706.GP22171@vapier> <551FEBE8.7080801@oarcorp.com> <20150404210848.GQ22171@vapier> <55208159.4090504@oarcorp.com> <20150405011520.GA16816@vapier> <0D043000-66CE-41AE-A66A-6EC12FF8896E@oarcorp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VywGB/WGlW4DM4P8" Content-Disposition: inline In-Reply-To: <0D043000-66CE-41AE-A66A-6EC12FF8896E@oarcorp.com> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00018.txt.bz2 --VywGB/WGlW4DM4P8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1228 On 04 Apr 2015 20:32, Joel Sherrill wrote: > On April 4, 2015 8:20:24 PM CDT, Mike Frysinger wrote: > >On 04 Apr 2015 19:27, Joel Sherrill wrote: > >> Once we get by this one, I noticed that the lm32timer only > >> lets you instance it once. The real board has two timers. > >> Is there an example of a device which can be instanced > >> multiple times? > > > >i glanced at the lm32timer device code and it looks correct to me -- > >there is no=20 > >global state (it's all attached to the instance via HW_ZALLOC (me, > >...), and all=20 > >accesses go through the passed in "me" hw). > > > >why do you think it only lets you instantiate it once ? >=20 > When I configure two timers, it looks like the second address registratio= n=20 > attempt is ignored based on the trace and faulting code. I can have timer= 0 or=20 > 1 but not both. Two interrupt attaches seem to be honored. without seeing the hw file, i can only guess. make sure you: - use unique addresses (the @xxx part) - are routing the output lines to different input lines - interrupt driver actually handles more than one input :) i've def connected multiple Blackfin UARTs using the same model and had the= ir=20 interrupts routed independently ... -mike --VywGB/WGlW4DM4P8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVIJh/AAoJEEFjO5/oN/WBFUEQAIeVOCNumOSGhhEPapxohsxF 6kBi4i3XHXGCSszA4yfHqaRUoK8LpsPLzdl3KxZAhftN6VPjiaXVIRWHWFQPk4yH p2ip045jvSwKUJ8pRzw3bTviK4Uz0g4nOjobcGEu0Sq/iBuOyNbuSz7lQPWt+zZu SaRMyBz5eZoqNCZ6gjiIOvGqsvSPalHyI34M4CwXJzogQDjHW8frlu+q08g4OcVx dIcFkneYBnWjV5q+qeoeYfwrG1kGMOeyAj7l4zhNr9Glrzp2le1QQSCkeUfpdbLL BB1DH9ye8LidCtCwYdcHhTWDJBJ1dvKCa8zYV4znSjJDNZme40OfrtiQfmaiDqPk SvdExCon0oiQnaBWjB5ZR+T1+/e4PPA8lcUDpwpCB37krKqDAn/xvHJUVPdLvw/+ JG+aEWCuKIWs/vtMBjMx6t7MskwuQutKDwlk7mXN75g8vcqQXD0Lk1fSZihRMaig 7d2EiAxJPsK/9NFGWn5eXiqQVz6IIaEVjJYIzK8mq/gneXA4qkwSdJwOfSQmLIPh oU/erQyA8MFPgrD1Z5Gk7KBF4yo+hYo99JYKQQb6ZjLvgpofmtjaIZsstyiYvlbx kV73t4Tn4aQGnXVQ8qKtotKqND08laqLSqif38o+J99mP98BqOO/s92s9Hv6hWeH 1elB0jtlEkwNb4IeBlO/ =CSLv -----END PGP SIGNATURE----- --VywGB/WGlW4DM4P8--