2022-06-26 23:24:07 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
|
2006-06-02 10:36:31 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2005 by Dominic Rath *
|
|
|
|
* Dominic.Rath@gmx.de *
|
|
|
|
***************************************************************************/
|
2012-02-05 12:03:04 +00:00
|
|
|
|
2015-09-21 19:07:46 +00:00
|
|
|
#ifndef OPENOCD_TARGET_ARM720T_H
|
|
|
|
#define OPENOCD_TARGET_ARM720T_H
|
2006-06-02 10:36:31 +00:00
|
|
|
|
2009-12-13 20:52:23 +00:00
|
|
|
#include "arm7tdmi.h"
|
|
|
|
#include "armv4_5_mmu.h"
|
2006-06-02 10:36:31 +00:00
|
|
|
|
2022-05-26 08:01:45 +00:00
|
|
|
#define ARM720T_COMMON_MAGIC 0xa720a720U
|
2006-06-02 10:36:31 +00:00
|
|
|
|
2012-02-05 12:03:04 +00:00
|
|
|
struct arm720t_common {
|
2022-05-26 08:01:45 +00:00
|
|
|
unsigned int common_magic;
|
|
|
|
|
2009-11-17 09:09:06 +00:00
|
|
|
struct arm7_9_common arm7_9_common;
|
2009-11-13 16:41:27 +00:00
|
|
|
struct armv4_5_mmu_common armv4_5_mmu;
|
2009-06-18 07:08:52 +00:00
|
|
|
uint32_t cp15_control_reg;
|
|
|
|
uint32_t fsr_reg;
|
|
|
|
uint32_t far_reg;
|
2009-11-13 16:39:57 +00:00
|
|
|
};
|
2006-06-02 10:36:31 +00:00
|
|
|
|
2012-02-05 12:03:04 +00:00
|
|
|
static inline struct arm720t_common *target_to_arm720(struct target *target)
|
2009-11-06 05:59:39 +00:00
|
|
|
{
|
2012-02-05 12:03:04 +00:00
|
|
|
return container_of(target->arch_info, struct arm720t_common, arm7_9_common.arm);
|
2009-11-06 05:59:39 +00:00
|
|
|
}
|
|
|
|
|
2015-09-21 19:07:46 +00:00
|
|
|
#endif /* OPENOCD_TARGET_ARM720T_H */
|