]> git.sur5r.net Git - openocd/commitdiff
bugfix for step <address> mips_m4k
authorAndrew Lyon <andrew.lyon@gmail.com>
Mon, 28 Mar 2011 10:28:13 +0000 (11:28 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 29 Mar 2011 10:50:54 +0000 (12:50 +0200)
The patch below fixes step <address> on mips_m4k.

Spencer Oliver <spen@spen-soft.co.uk>:

The current code is used on all other arch's - is
there a underlying issue with those aswell ?

src/target/mips_m4k.c

index 8afee9cd66a7a19aab138a21c27c1052430acd5a..3a79273b28614b2549b5f86d74b2086e71cb92cd 100644 (file)
@@ -421,7 +421,11 @@ 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) {