X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farmv7a.c;h=fab7363105c33c9f19a92d733c80eca87d9da1ae;hb=1dc466f5156741f643c946485cdf280a1054fc7a;hp=ca599eb68ab01abcc4c46cea904d7faa14700ae9;hpb=24fb042a73c3e4c68d1f583062b3b096c92d5f7d;p=openocd.git
diff --git a/src/target/armv7a.c b/src/target/armv7a.c
index ca599eb68a..fab7363105 100644
--- a/src/target/armv7a.c
+++ b/src/target/armv7a.c
@@ -14,9 +14,7 @@
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ * along with this program. If not, see . *
***************************************************************************/
#ifdef HAVE_CONFIG_H
@@ -130,11 +128,14 @@ static int armv7a_read_ttbcr(struct target *target)
{
struct armv7a_common *armv7a = target_to_armv7a(target);
struct arm_dpm *dpm = armv7a->arm.dpm;
- uint32_t ttbcr;
- uint32_t ttbr0, ttbr1;
- int retval = dpm->prepare(dpm);
+ uint32_t ttbcr, ttbcr_n;
+ int ttbidx;
+ int retval;
+
+ retval = dpm->prepare(dpm);
if (retval != ERROR_OK)
goto done;
+
/* MRC p15,0,