On Wed, Aug 26, 2009 at 5:58 PM, David Brownell<davi...@pacbell.net> wrote:
> On Wednesday 26 August 2009, Igor Skochinsky wrote:
>> As for ARM, I think arm_simulator.c and arm_disassembler.c should be
>> merged since they share a lot of functionality.
>
> They seem kind of separate to me.  I can disassemble without
> wanting to simulate.  And vice versa.
>
> If anything, they should be *more* separate.
>
> The whole simulator bears some thought though.  Is the whole
> point of it just to enable one type of single stepping?  I
> don't recall seeing comments about when/why the simulator
> would kick in.

Single stepping instructions is done by doing a "dry run"
of the current instruction to see what PC it ends up at. A
breakpoint is then set at that site and the CPU runs
to the next instruction.

some arm11 CPUs can use hardware to perform this
function, but i.MX31 can't.


-- 
Øyvind Harboe
Embedded software and hardware consulting services
http://www.zylin.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to