From 2cefc67a645ad25c1eba2b6d4e090c4e4583dc03 Mon Sep 17 00:00:00 2001
From: Yauheni Kaliuta <y.kali...@gmail.com>
Date: Sun, 11 Oct 2009 18:27:27 +0300
Subject: [PATCH] Do not replace virt2phys with the default one if it was assigned

Signed-off-by: Yauheni Kaliuta <y.kali...@gmail.com>
---
 src/target/target.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/target/target.c b/src/target/target.c
index ced09e9..2836834 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -665,7 +665,6 @@ int target_init(struct command_context_s *cmd_ctx)
 		{
 			target->type->virt2phys = default_virt2phys;
 		}
-		target->type->virt2phys = default_virt2phys;
 		/* a non-invasive way(in terms of patches) to add some code that
 		 * runs before the type->write/read_memory implementation
 		 */
-- 
1.6.4.3

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

Reply via email to