On Tue, Jul 5, 2011 at 6:17 PM, Spencer Oliver <s...@spen-soft.co.uk> wrote: > I think your patch is ok, but would be better if it checks the arch version > and issue a warning about cache writes not supported or something along > those lines.
On the first look, this can be accomplished by reading CP0 PRId register, but Revision field is not quite well explained. I have no idea how to obtain info if the proc is MIPS32/64 Rev2 compliant. Having all this in mind, I think it would be more reasonable to re-implement the procedure using "cache" opcode. But I would have to dynamically figure out size of cache line (I'll have to read it from CP0) in that case, and plus it will be less effective, I think. When I look at this, I think that some additional commands for manipulating copro CP0 directly from OpenOCD would be quite handy, something like we have for ARM's CP15. I'll take a look at this and try to implement it. BR, Drasko _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development