From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [WIP] TI msp430 CIO support
Date: Fri, 17 May 2013 23:10:00 -0000 [thread overview]
Message-ID: <20130517161013.558bd131@mesquite.lan> (raw)
In-Reply-To: <201305171744.00275.vapier@gentoo.org>
On Fri, 17 May 2013 17:43:59 -0400
Mike Frysinger <vapier@gentoo.org> wrote:
> you could have the simulator detect the case when it's running standalone
> (i.e. not via gdb) and patch the symbols to run a custom insn. maybe hijack
> an opcode that doesn't map to a valid insn and then when your sim hits that,
> see if it's a known cio point. if it isn't, throw an exception like normal,
> else let the simulator process the cio operation itself.
>
> you could even have this code run when doing a simulation via gdb and it'll
> "just work". but you might want to keep the behavior in that case the same as
> if you were running it on real hardware.
We actually do have minimal support in the simulator that's used
when the sim is not connected to the debugger. Only "write" is
supported. This is just enough to run the tests.
We could probably turn this back on when the sim is used via GDB too.
If you look at the sim patch, search for "msp430_cio".
Kevin
next prev parent reply other threads:[~2013-05-17 23:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-17 4:24 Kevin Buettner
2013-05-17 6:36 ` Joel Brobecker
2013-05-17 8:43 ` Yao Qi
2013-05-17 21:44 ` Mike Frysinger
2013-05-17 23:10 ` Kevin Buettner [this message]
2013-05-20 14:39 ` Tom Tromey
2013-05-21 16:00 ` Kevin Buettner
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=20130517161013.558bd131@mesquite.lan \
--to=kevinb@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