Hi,

The patch below fixes step <address> on mips_m4k:

diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c
index 8afee9c..78786a5 100644
--- a/src/target/mips_m4k.c
+++ b/src/target/mips_m4k.c
@@ -422,6 +422,8 @@ static int mips_m4k_step(struct target *target, int current,
        /* current = 1: continue on current pc, otherwise continue at
<address> */
        if (!current)

buf_set_u32(mips32->core_cache->reg_list[MIPS32_PC].value, 0, 32,
address);
+               mips32->core_cache->reg_list[MIPS32_PC].dirty = 1;
+               mips32->core_cache->reg_list[MIPS32_PC].valid = 1;

        /* the front-end may request us not to handle breakpoints */
        if (handle_breakpoints) {


With this patch and the ones already posted last week for bigendian
fixes I can now successfully setup sdram, read and write memory, bulk
load memory using fastdata, resume to address, single step, and step
into address, I had previously reported that resume <address> did not
work but I was mistaken, it does work.

Andy
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to