Re: lm32 simulator configuration file question

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <20150405020551.GB16816@vapier>
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 
> >global state (it's all attached to the instance via HW_ZALLOC (me,
> >...), and all 
> >accesses go through the passed in "me" hw).
> >
> >why do you think it only lets you instantiate it once ?
> 
> When I configure two timers, it looks like the second address registration 
> attempt is ignored based on the trace and faulting code. I can have timer 0 or 
> 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 their 
interrupts routed independently ...
-mike
signature.asc (application/pgp-signature, 819 B)
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.