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