]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/ns32k/tm-ns32km3.h
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / config / ns32k / tm-ns32km3.h
1 /* Macro definitions for ns532, Mach 3.0
2 Copyright (C) 1992 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20 /* Include common definitions for Mach3 systems */
21 #include "nm-m3.h"
22
23 /* Define offsets to access CPROC stack when it does not have
24 * a kernel thread.
25 */
26 #define MACHINE_CPROC_SP_OFFSET 20
27 #define MACHINE_CPROC_PC_OFFSET 16
28 #define MACHINE_CPROC_FP_OFFSET 12
29
30 #include <ns532/psl.h>
31 #include <ns532/vmparam.h>
32
33 /* Thread flavors used in re-setting the T bit.
34 * @@ this is also bad for cross debugging.
35 */
36 #define TRACE_FLAVOR NS532_THREAD_STATE
37 #define TRACE_FLAVOR_SIZE NS532_THREAD_STATE_COUNT
38 #define TRACE_SET(x,state) \
39 ((struct ns532_thread_state *)state)->psr |= PSR_T
40 #define TRACE_CLEAR(x,state) \
41 ((((struct ns532_thread_state *)state)->psr &= ~PSR_T), 1)
42
43 /* we can do it */
44 #define ATTACH_DETACH 1
45
46 /* Address of end of stack space.
47 * for MACH, see <ns532/vmparam.h>
48 */
49 #define STACK_END_ADDR USRSTACK
50
51 #include "ns32k/tm-umax.h"
52
53 /* tm-umax.h assumes a 32082 fpu. We have a 32382 fpu. */
54 #undef REGISTER_NAMES
55 #undef NUM_REGS
56 #undef REGISTER_BYTES
57 /* Initializer for an array of names of registers.
58 There should be NUM_REGS strings in this initializer. */
59
60 #define REGISTER_NAMES {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
61 "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", \
62 "sp", "fp", "pc", "ps", \
63 "fsr", \
64 "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7", "xx", \
65 }
66
67 #define NUM_REGS 29
68
69 /* Total amount of space needed to store our copies of the machine's
70 register state, the array `registers'. */
71 #define REGISTER_BYTES \
72 ((NUM_REGS - 4) * REGISTER_RAW_SIZE(R0_REGNUM) \
73 + 8 * REGISTER_RAW_SIZE(LP0_REGNUM))