From a34e4b39c47cd9f67f3f70be36c1b2f25ab23f5f Mon Sep 17 00:00:00 2001 From: mifi Date: Wed, 6 Feb 2008 19:25:42 +0000 Subject: - added patch to solve problem with AT91SAM9260 (dirty register) (thanks to Øyvind Harboe for the patch) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.berlios.de/openocd/trunk@282 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/armv7m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/armv7m.c') diff --git a/src/target/armv7m.c b/src/target/armv7m.c index 22ffb5e7..8b4fd44b 100644 --- a/src/target/armv7m.c +++ b/src/target/armv7m.c @@ -287,7 +287,7 @@ int armv7m_write_core_reg(struct target_s *target, int num) if (retval != ERROR_OK) { ERROR("JTAG failure"); - armv7m->core_cache->reg_list[num].dirty = 1; + armv7m->core_cache->reg_list[num].dirty = armv7m->core_cache->reg_list[num].valid; return ERROR_JTAG_DEVICE_ERROR; } DEBUG("write core reg %i value 0x%x", num , reg_value); -- cgit v1.2.3