> This example shows a lack sufficient abstraction, but it has nothing to
> do with function pointers.  It should be calling a higher-level helper
> to provide all but the last pointer itself.  And it uses a lot of
> superfluous braces.  With that changed, it would be <10 lines.
> C can do it just as gracefully.

There's cleanup work to be done here for sure. I see that
as an orthogonal issue to the mcr/mrc issue at hand.

I'm not going to hold mcr/mrc hostage to arm11 C interface
abstraction cleanup or somesuch. With the current changes
committed, it will be a tiny matter to push the mcr/mrc back up
to an arm specific interface once that separate issue has
been resolved.


-- 
Ø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