aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Lyon <andrew.lyon@gmail.com>2011-03-28 11:28:13 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-03-29 12:50:54 +0200
commitbe14e8cbb0883a1fbb2a77ce74b7080a5ad323a3 (patch)
tree5d4bb4475738ba8a9c9728e2ad3c11391bfd15b0 /src
parent68bd107c6db941ec7b22f3e491e314041a95224b (diff)
downloadriscv-openocd-be14e8cbb0883a1fbb2a77ce74b7080a5ad323a3.zip
riscv-openocd-be14e8cbb0883a1fbb2a77ce74b7080a5ad323a3.tar.gz
riscv-openocd-be14e8cbb0883a1fbb2a77ce74b7080a5ad323a3.tar.bz2
bugfix for step <address> mips_m4k
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 ?
Diffstat (limited to 'src')
-rw-r--r--src/target/mips_m4k.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c
index 8afee9c..3a79273 100644
--- a/src/target/mips_m4k.c
+++ b/src/target/mips_m4k.c
@@ -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) {