> > > > The code is in cortex_m3.c. > > The original code used 4 virtual regs to let the user see > each special > > register. > > I didn't see anything to morph the "real" register into four > "virtual" ones though... the code was treating it as having > for unique DCRSR identifiers, which is incorrect. > >
Infact looking at the new implementation it is broken. I have just tried to change CONTROL[0] using reg 20 0x1000000, it fails. The cause is the array issue i mentioned earlier, this is working in the previous code. The read is done in the function cortex_m3_load_core_reg_u32 and num will only ever be 20. Before it would pass either 19, 20, 21 and 22 depending on what byte you wanted to read. I have attached a patch showing some unused code. Cheers Spen
cortex_spec.patch
Description: Binary data
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
