From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7221 invoked by alias); 7 Oct 2005 05:26:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7205 invoked by uid 22791); 7 Oct 2005 05:26:07 -0000 Received: from exsmtp1.ntu.edu.sg (HELO exsmtp1.ntu.edu.sg) (155.69.5.207) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 07 Oct 2005 05:26:07 +0000 Received: from mail03.student.main.ntu.edu.sg ([155.69.5.167]) by exsmtp1.ntu.edu.sg with Microsoft SMTPSVC(6.0.3790.1830); Fri, 7 Oct 2005 13:26:03 +0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Subject: Problem on JTAG debug for ARM920T when mmu/cache is turned on Date: Fri, 07 Oct 2005 05:26:00 -0000 Message-ID: <052033A55521254893A4E2041957E1D0013393C3@mail03.student.main.ntu.edu.sg> From: "#HE XUZHOU#" To: X-SW-Source: 2005-10/txt/msg00038.txt.bz2 I am writing a program for JTAG debug. My target board is ARM920T. I found = a single stepping problem when the MMU/CACHE is turn on. If the cache is tu= rn on, single stepping doesn't work. If the cache is turn off, single stepp= ing then works well.I guess this is casued by data/instruction cache. So, I= am wandering what I should handle the MMU/CACHE when ARM920T enters debug = state with mmu/cache is turned on? I have TWO questions and hope I can get = some suggestions here. Thank you! 1. Should I turn off the MMU after ARM920T enter debug state and turn it on= before ARM920T is restarted? 2. Should I turn off the cache after ARM920T enter debug state and turn it = on before ARM920T is restarted? Or just flush the cahce?