7 #ifndef OPENOCD_TARGET_ARMV7A_H
8 #define OPENOCD_TARGET_ARMV7A_H
22 #define ARMV7_COMMON_MAGIC 0x0A450999U
136 #define CPUDBG_DIDR 0x000
139 #define CPUDBG_WFAR 0x018
141 #define CPUDBG_DSCR 0x088
142 #define CPUDBG_DRCR 0x090
143 #define CPUDBG_PRCR 0x310
144 #define CPUDBG_PRSR 0x314
147 #define CPUDBG_DTRRX 0x080
148 #define CPUDBG_ITR 0x084
149 #define CPUDBG_DTRTX 0x08c
152 #define CPUDBG_BVR_BASE 0x100
153 #define CPUDBG_BCR_BASE 0x140
154 #define CPUDBG_WVR_BASE 0x180
155 #define CPUDBG_WCR_BASE 0x1C0
156 #define CPUDBG_VCR 0x01C
159 #define CPUDBG_OSLAR 0x300
160 #define CPUDBG_OSLSR 0x304
161 #define CPUDBG_OSSRR 0x308
162 #define CPUDBG_ECR 0x024
165 #define CPUDBG_DSCCR 0x028
166 #define CPUDBG_DSMCR 0x02C
169 #define CPUDBG_AUTHSTATUS 0xFB8
172 #define CPUDBG_ID_PFR1 0xD24
175 #define DBG_VCR_FIQ_MASK ((1 << 31) | (1 << 7))
176 #define DBG_VCR_IRQ_MASK ((1 << 30) | (1 << 6))
177 #define DBG_VCR_DATA_ABORT_MASK ((1 << 28) | (1 << 4))
178 #define DBG_VCR_PREF_ABORT_MASK ((1 << 27) | (1 << 3))
179 #define DBG_VCR_SVC_MASK ((1 << 26) | (1 << 2))
182 #define MPIDR_MP_EXT (1UL << 31)
Holds the interface to ARM cores.
This defines formats and data structures used to talk to ADIv5 entities.
This is the interface to the Debug Programmers Model for ARMv6 and ARMv7 processors.
int armv7a_handle_cache_info_command(struct command_invocation *cmd, struct armv7a_cache_common *armv7a_cache)
int armv7a_read_ttbcr(struct target *target)
int armv7a_arch_state(struct target *target)
#define ARMV7_COMMON_MAGIC
const struct command_registration armv7a_command_handlers[]
static struct armv7a_common * target_to_armv7a(struct target *target)
int armv7a_init_arch_info(struct target *target, struct armv7a_common *armv7a)
static bool is_armv7a(struct armv7a_common *armv7a)
int armv7a_identify_cache(struct target *target)
size_t size
Size of the control block search area.
This represents an ARM Debug Interface (v5) Access Port (AP).
This wraps an implementation of DPM primitives.
Represents a generic ARM core, with standard application registers.
struct armv7a_cachesize i_size
struct armv7a_cachesize d_u_size
int(* flush_all_data_cache)(struct target *target)
struct armv7a_arch_cache arch[6]
int(* post_debug_entry)(struct target *target)
uint8_t multi_threading_processor
int(* examine_debug_reason)(struct target *target)
uint8_t multi_processor_system
struct armv7a_mmu_common armv7a_mmu
struct adiv5_ap * debug_ap
void(* pre_restore_context)(struct target *target)
struct reg_cache * core_cache
unsigned int common_magic
struct armv7a_cache_common armv7a_cache
int(* read_physical_memory)(struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer)
When run_command is called, a new instance will be created on the stack, filled with the proper value...
#define container_of(ptr, type, member)
Cast a member of a structure out to the containing structure.