From be14e8cbb0883a1fbb2a77ce74b7080a5ad323a3 Mon Sep 17 00:00:00 2001 From: Andrew Lyon Date: Mon, 28 Mar 2011 11:28:13 +0100 Subject: [PATCH] bugfix for step
mips_m4k The patch below fixes step
on mips_m4k. Spencer Oliver : The current code is used on all other arch's - is there a underlying issue with those aswell ? --- src/target/mips_m4k.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index 8afee9cd6..3a79273b2 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
*/ 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) {