On Mon, Nov 2, 2009 at 8:33 AM, David Brownell <davi...@pacbell.net> wrote:
> On Sunday 01 November 2009, Øyvind Harboe wrote:
>> > I've got the arm9 and armv7m sections of the type tree
>> > cleaned up and sanity tested with target_to_FOO().  When
>> > more is working, I'll post a branch somewhere.
>> >
>> > Later tasks can be making "arm926 is-a target" work;
>> > and restructuring to get a base class for non-M ARMs.
>>
>> Cleaning up the mess takes priority, but you may want
>> to have a look at the interfac.e I made for disassembly...
>>
>> It works w/arm11 and the other targets which do not
>> share the armv4_5 implementation structure.
>
> It's not in mainline or any of your four branches at
> http://repo.or.cz/w/openocd/oharboe.git so far as I
> can tell...

struct arm_sim_interface is what I had in mind. It's in the master
branch, see arm11.c:

static int arm11_simulate_step(target_t *target, uint32_t *dry_run_pc)
{
        struct arm_sim_interface sim;

        sim.user_data=target->arch_info;
        sim.get_reg=&arm11_sim_get_reg;
        sim.set_reg=&arm11_sim_set_reg;
        sim.get_reg_mode=&arm11_sim_get_reg;
        sim.set_reg_mode=&arm11_sim_set_reg;
        sim.get_cpsr=&arm11_sim_get_cpsr;
        sim.get_mode=&arm11_sim_get_mode;
        sim.get_state=&arm11_sim_get_state;
        sim.set_state=&arm11_sim_set_state;

        return arm_simulate_step_core(target, dry_run_pc, &sim);

}


-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to