build: cleanup src/server directory
[openocd.git] / src / target / cortex_a.h
1 /***************************************************************************
2 * Copyright (C) 2005 by Dominic Rath *
3 * Dominic.Rath@gmx.de *
4 * *
5 * Copyright (C) 2006 by Magnus Lundin *
6 * lundin@mlu.mine.nu *
7 * *
8 * Copyright (C) 2008 by Spencer Oliver *
9 * spen@spen-soft.co.uk *
10 * *
11 * Copyright (C) 2009 by Dirk Behme *
12 * dirk.behme@gmail.com - copy from cortex_m3 *
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program; if not, write to the *
26 * Free Software Foundation, Inc., *
27 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
28 ***************************************************************************/
29 #ifndef CORTEX_A8_H
30 #define CORTEX_A8_H
31
32 #include "armv7a.h"
33
34 #define CORTEX_A8_COMMON_MAGIC 0x411fc082
35
36 #define CPUDBG_CPUID 0xD00
37 #define CPUDBG_CTYPR 0xD04
38 #define CPUDBG_TTYPR 0xD0C
39 #define CPUDBG_LOCKACCESS 0xFB0
40 #define CPUDBG_LOCKSTATUS 0xFB4
41
42 #define BRP_NORMAL 0
43 #define BRP_CONTEXT 1
44
45 #define CORTEX_A8_PADDRDBG_CPU_SHIFT 13
46
47 struct cortex_a8_brp
48 {
49 int used;
50 int type;
51 uint32_t value;
52 uint32_t control;
53 uint8_t BRPn;
54 };
55
56 struct cortex_a8_common
57 {
58 int common_magic;
59 struct arm_jtag jtag_info;
60
61 /* Context information */
62 uint32_t cpudbg_dscr;
63
64 /* Saved cp15 registers */
65 uint32_t cp15_control_reg;
66 /* latest cp15 register value written and cpsr processor mode */
67 uint32_t cp15_control_reg_curr;
68 enum arm_mode curr_mode;
69
70
71 /* Breakpoint register pairs */
72 int brp_num_context;
73 int brp_num;
74 int brp_num_available;
75 struct cortex_a8_brp *brp_list;
76
77 /* Use cortex_a8_read_regs_through_mem for fast register reads */
78 int fast_reg_read;
79
80 struct armv7a_common armv7a_common;
81
82 };
83
84 static inline struct cortex_a8_common *
85 target_to_cortex_a8(struct target *target)
86 {
87 return container_of(target->arch_info, struct cortex_a8_common,
88 armv7a_common.arm);
89 }
90
91 #endif /* CORTEX_A8_H */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)