gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / mn10300-tdep.h
CommitLineData
e02147b1
MS
1/* Target-dependent interface for Matsushita MN10300 for GDB, the GNU debugger.
2
b811d2c2 3 Copyright (C) 1996-2020 Free Software Foundation, Inc.
e02147b1
MS
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
a9762ec7 9 the Free Software Foundation; either version 3 of the License, or
e02147b1
MS
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
a9762ec7 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
e02147b1 19
1a5c2598
TT
20#ifndef MN10300_TDEP_H
21#define MN10300_TDEP_H
22
aac71672
MS
23enum {
24 E_D0_REGNUM = 0,
25 E_D1_REGNUM = 1,
26 E_D2_REGNUM = 2,
27 E_D3_REGNUM = 3,
28 E_A0_REGNUM = 4,
29 E_A1_REGNUM = 5,
30 E_A2_REGNUM = 6,
31 E_A3_REGNUM = 7,
32 E_SP_REGNUM = 8,
33 E_PC_REGNUM = 9,
34 E_MDR_REGNUM = 10,
35 E_PSW_REGNUM = 11,
36 E_LIR_REGNUM = 12,
37 E_LAR_REGNUM = 13,
38 E_MDRQ_REGNUM = 14,
39 E_E0_REGNUM = 15,
40 E_E1_REGNUM = 16,
41 E_E2_REGNUM = 17,
42 E_E3_REGNUM = 18,
43 E_E4_REGNUM = 19,
44 E_E5_REGNUM = 20,
45 E_E6_REGNUM = 21,
46 E_E7_REGNUM = 22,
611889b1
KB
47 E_E8_REGNUM = 23,
48 E_E9_REGNUM = 24,
49 E_E10_REGNUM = 25,
aac71672
MS
50 E_MCRH_REGNUM = 26,
51 E_MCRL_REGNUM = 27,
52 E_MCVF_REGNUM = 28,
611889b1 53 E_FPCR_REGNUM = 29,
4640dd91 54 E_FS0_REGNUM = 32
aac71672
MS
55};
56
9cacebf5
MS
57enum movm_register_bits {
58 movm_exother_bit = 0x01,
59 movm_exreg1_bit = 0x02,
60 movm_exreg0_bit = 0x04,
61 movm_other_bit = 0x08,
62 movm_a3_bit = 0x10,
63 movm_a2_bit = 0x20,
64 movm_d3_bit = 0x40,
65 movm_d2_bit = 0x80
66};
67
025bb325 68/* Values for frame_info.status. */
9cacebf5
MS
69
70enum frame_kind {
71 MY_FRAME_IN_SP = 0x1,
72 MY_FRAME_IN_FP = 0x2,
73 NO_MORE_FRAMES = 0x4
74};
75
025bb325 76/* mn10300 private data. */
e02147b1
MS
77struct gdbarch_tdep
78{
79 int am33_mode;
e02147b1
MS
80};
81
d15cf01c 82#define AM33_MODE(gdbarch) (gdbarch_tdep (gdbarch)->am33_mode)
1a5c2598
TT
83
84#endif /* MN10300_TDEP_H */
This page took 1.371342 seconds and 4 git commands to generate.