]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/m88k/tm-cxux.h
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / config / m88k / tm-cxux.h
1 /* Target definitions for m88k running Harris CX/UX.
2 Copyright 1993, 1994 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 #define HARRIS_TARGET 1
21
22 #define CXUX_TARGET 1
23
24 /* Type of X registers, as supplied by the OS */
25
26 typedef struct {
27 long w1, w2, w3, w4;
28 } X_REGISTER_RAW_TYPE;
29
30 #define X_REGISTER_VIRTUAL_TYPE double
31
32 #include "m88k/tm-m88k.h"
33
34 #define ADD_SHARED_SYMBOL_FILES(args,have_tty) add_shared_symbol_files ()
35
36 #define CONVERT_REGISTER_ADDRESS
37
38 /* Always allocate space for both, but recognize that the m88100 has no
39 FP_REGS. */
40
41 #undef ARCH_NUM_REGS
42 #define ARCH_NUM_REGS (target_is_m88110 ? (GP_REGS + FP_REGS) : (GP_REGS))
43
44 /* Don't need this grotesquerie. */
45
46 #undef SHIFT_INST_REGS
47
48 /* Extended registers are treated as 16 bytes by Harris' OS's.
49 We treat them as 16 bytes here for consistency's sake. */
50
51 #undef REGISTER_RAW_SIZE
52 #define REGISTER_RAW_SIZE(N) ((N) < XFP_REGNUM ? 4 : 16)
53
54 #undef REGISTER_BYTE
55 #define REGISTER_BYTE(N) \
56 ((N) >= XFP_REGNUM \
57 ? (((GP_REGS) * REGISTER_RAW_SIZE(0)) + \
58 (((N) - XFP_REGNUM) * REGISTER_RAW_SIZE(XFP_REGNUM))) \
59 : ((N) * REGISTER_RAW_SIZE(0)))