From: Mike Frysinger <vapier@gentoo.org>
To: DJ Delorie <dj@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [sim] new port: Renesas RL78
Date: Wed, 16 Nov 2011 19:47:00 -0000 [thread overview]
Message-ID: <201111161447.29112.vapier@gentoo.org> (raw)
In-Reply-To: <201111161936.pAGJaKfW006960@greed.delorie.com>
[-- Attachment #1: Type: Text/Plain, Size: 2225 bytes --]
On Wednesday 16 November 2011 14:36:20 DJ Delorie wrote:
> > > + $(ENDLIST)
> >
> > this $(ENDLIST) business looks like dead code ?
>
> I've been brainwashed to end lists like this so that new lines always
> end with a continuation char, which - in ancient and possibly modern
> source control systems - prevents two independent additions from
> becoming dependent on each other. It also allows you to sort or
> otherwise mess with the list, without worrying about which lines have
> continuation characters and which don't.
sounds like it should be a standard in the wider binutils/gdb/etc... tree, or
should be omitted and forgotten about. all these youngsters don't have a clue
what "$(ENDLIST)" is for, and heaven forbid someone has ENDLIST exported in
their env when running `make` ;).
> > > +int
> > > +main (int argc, char **argv)
> > > +{
> > > ...
> > > + setbuf(stdout, NULL);
> >
> > doesn't this hurt performance ? especially when tracing ?
>
> Very important when emulating the target serial port, though. I
> suppose I could rework that logic, but so far I've mostly been worried
> about "runs correctly" and not "runs fast".
hmm, personally i've left that up to the host to run `stty` rather than
mucking about with terminal settings on people. although that covers input
and not output.
for output, i have my uart simulator explicitly flush whenever it has data to
right. that way general things writing to stdout don't take a penalty, but
the serial which wants bytes sent immediately still work.
> > > --- /dev/null 1 Jan 1970 00:00:00 -0000
> > > +++ sim/rl78/mem.c 16 Nov 2011 05:44:54 -0000
> >
> > seems like much of the utility of this file is duplicating the core
> > mapping= s=20
> > logic in like common/sim-core.c :/
>
> It's mostly about emulating memory-mapped hardware and the weird RL78
> mapping rules, though. The common parts are a small part of it.
common/ provides frameworks for emulating memory mapped devices :). the
Blackfin port uses this heavily so that specific devices are cleanly managed in
sep files. see all the fun bfin/dv-* files.
although converting to that is probably non-trivial.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2011-11-16 19:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 6:07 DJ Delorie
2011-11-16 19:09 ` Mike Frysinger
2011-11-16 19:36 ` DJ Delorie
2011-11-16 19:47 ` Mike Frysinger [this message]
2011-11-16 21:45 ` Mike Frysinger
2011-11-17 19:16 ` DJ Delorie
2011-11-17 19:39 ` Mike Frysinger
2011-11-17 19:48 ` DJ Delorie
2011-11-17 19:53 ` Mike Frysinger
2011-11-17 21:34 ` DJ Delorie
2011-11-17 21:44 ` Mike Frysinger
2011-11-28 20:03 ` DJ Delorie
2011-11-28 20:13 ` Mike Frysinger
2011-11-28 21:01 ` Stan Shebs
2011-11-28 21:16 ` DJ Delorie
2011-11-29 3:50 ` DJ Delorie
2011-11-29 4:08 ` Eli Zaretskii
2011-11-29 1:38 ` Mike Frysinger
2012-03-23 4:33 ` Mike Frysinger
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=201111161447.29112.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=dj@redhat.com \
--cc=gdb-patches@sourceware.org \
/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