From: Mike Frysinger <vapier@gentoo.org>
To: Joel Sherrill <joel.sherrill@oarcorp.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: lm32 simulator configuration file question
Date: Sun, 05 Apr 2015 02:05:00 -0000 [thread overview]
Message-ID: <20150405020551.GB16816@vapier> (raw)
In-Reply-To: <0D043000-66CE-41AE-A66A-6EC12FF8896E@oarcorp.com>
[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]
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
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2015-04-05 2:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 22:19 Joel Sherrill
2015-04-03 1:41 ` Mike Frysinger
2015-04-03 20:21 ` Joel Sherrill
2015-04-03 23:21 ` Mike Frysinger
2015-04-04 0:00 ` Joel Sherrill
2015-04-04 2:57 ` Mike Frysinger
2015-04-04 13:49 ` Joel Sherrill
2015-04-04 21:08 ` Mike Frysinger
2015-04-05 0:27 ` Joel Sherrill
2015-04-05 1:20 ` Mike Frysinger
2015-04-05 1:32 ` Joel Sherrill
2015-04-05 2:05 ` Mike Frysinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150405020551.GB16816@vapier \
--to=vapier@gentoo.org \
--cc=gdb@sourceware.org \
--cc=joel.sherrill@oarcorp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).