>        /* Read coprocessor - arm specific. Default implementation returns 
> error. */
>        int (*mrc)(struct target_s *target, int cpnum, uint32_t op1, uint32_t
> op2, uint32_t CRn, uint32_t CRm, uint32_t *value);
>
>        /* Write coprocessor. Default implementation returns error.  */
>        int (*mrc)(struct target_s *target, int cpnum, uint32_t op1, uint32_t
> op2, uint32_t CRn, uint32_t CRm, uint32_t value);

As an alternative to the above, perhaps the low level implementation
should be to pass in the entire opcode?

A Tcl Proc on top could then create the higher level mrc/mcr commands...

Look at the arm720t cp15 syntax, here the opcode is passed in rather
than arguments...



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

Reply via email to