mem_ap: fix a potential memory leak in mem_ap_target_create()
[fw/openocd] / src / target / cortex_a.h
index 1c63588e2b2913a240c5b67215c1877aa12bae37..197a5992da9b941478f189d7fb8c648d0eabbe5b 100644 (file)
  *   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 <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef CORTEX_A_H
-#define CORTEX_A_H
+#ifndef OPENOCD_TARGET_CORTEX_A_H
+#define OPENOCD_TARGET_CORTEX_A_H
 
 #include "armv7a.h"
 
@@ -95,12 +93,7 @@ struct cortex_a_common {
        int brp_num_available;
        struct cortex_a_brp *brp_list;
 
-       /* Use cortex_a_read_regs_through_mem for fast register reads */
-       int fast_reg_read;
-
        uint32_t cpuid;
-       uint32_t ctypr;
-       uint32_t ttypr;
        uint32_t didr;
 
        enum cortex_a_isrmasking_mode isrmasking_mode;
@@ -116,4 +109,4 @@ target_to_cortex_a(struct target *target)
        return container_of(target->arch_info, struct cortex_a_common, armv7a_common.arm);
 }
 
-#endif /* CORTEX_A_H */
+#endif /* OPENOCD_TARGET_CORTEX_A_H */