]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/m88k-tdep.h
Fix buffer overrun parsing a corrupt tekhex binary.
[thirdparty/binutils-gdb.git] / gdb / m88k-tdep.h
CommitLineData
bf2ca189
MK
1/* Target-dependent code for the Motorola 88000 series.
2
61baf725 3 Copyright (C) 2004-2017 Free Software Foundation, Inc.
bf2ca189
MK
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
bf2ca189
MK
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/>. */
bf2ca189
MK
19
20#ifndef M88K_TDEP_H
21#define M88K_TDEP_H
22
23/* Register numbers of various important registers. */
24
25enum m88k_regnum
26{
27 M88K_R0_REGNUM,
28 M88K_R1_REGNUM, /* Return address (hardware). */
29 M88K_R2_REGNUM,
30 M88K_R3_REGNUM,
31 M88K_R12_REGNUM = 12,
32 M88K_R30_REGNUM = 30, /* Frame pointer. */
025bb325 33 M88K_R31_REGNUM, /* Stack pointer. */
bf2ca189
MK
34 M88K_EPSR_REGNUM,
35 M88K_FPSR_REGNUM,
36 M88K_FPCR_REGNUM,
37 M88K_SXIP_REGNUM,
38 M88K_SNIP_REGNUM,
39 M88K_SFIP_REGNUM,
40 M88K_NUM_REGS /* Number of machine registers. */
41
42};
43
44/* Instruction size. */
45#define M88K_INSN_SIZE 4
46
47#endif /* m88k-tdep.h */