On Friday 30 October 2009, Øyvind Harboe wrote: > Adding support for mrc/mcr interface in XScale in a sensible fashion > would require updating debug_handler.S. > > Could I define a generic execute mrc/mcr command and rely on > self modifying code?
No. Best if you use the approach outlined in one of the XScale docs referenced in xscale.h ... download the code dynamically into the minicache, using some reserved cache line. In this case the code will be simple ... one MRC (or MCR) instruction and a banch. (More or less.) Most of the work will be invalidating the cacheline then loading it with those two words; and making sure the existing code can properly call that code. (The issue is that you don't want to rely on code that's not in the cache; not all chips have SRAM. And minicache can't be written except via JTAG. You might be able to use some of the normal icache, but that gets tricky.) _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development