[WIP] TI msp430 CIO support

Kevin Buettner kevinb@redhat.com
Fri May 17 23:10:00 GMT 2013


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



More information about the Gdb-patches mailing list