Hi,

I wasn't able to apply your patch.

Is the attached patch correct?




-- 
Øyvind Harboe

Can Zylin Consulting help on your project?

US toll free 1-866-980-3434 / International +47 51 87 40 27

http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
From 64984612fe50c6e2c7a1746990873d37d2b7e54d Mon Sep 17 00:00:00 2001
From: Andrew Lyon <andrew.l...@gmail.com>
Date: Mon, 28 Mar 2011 11:28:13 +0100
Subject: [PATCH] bugfix for step <address> mips_m4k

The patch below fixes step <address> on mips_m4k.
---
 src/target/mips_m4k.c |    4 ++++
 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) {
-- 
1.7.0.4

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

Reply via email to