]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/m88k/tm-cxux.h
1 /* Target definitions for m88k running Harris CX/UX.
2 Copyright 1993, 1994 Free Software Foundation, Inc.
4 This file is part of GDB.
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.
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.
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,
19 Boston, MA 02111-1307, USA. */
21 #define HARRIS_TARGET 1
25 /* Type of X registers, as supplied by the OS */
33 #define X_REGISTER_VIRTUAL_TYPE double
35 #include "m88k/tm-m88k.h"
37 #define ADD_SHARED_SYMBOL_FILES(args,have_tty) add_shared_symbol_files ()
39 #define CONVERT_REGISTER_ADDRESS
41 /* Always allocate space for both, but recognize that the m88100 has no
45 #define ARCH_NUM_REGS (target_is_m88110 ? (GP_REGS + FP_REGS) : (GP_REGS))
47 /* Don't need this grotesquerie. */
49 #undef SHIFT_INST_REGS
51 /* Extended registers are treated as 16 bytes by Harris' OS's.
52 We treat them as 16 bytes here for consistency's sake. */
54 #undef REGISTER_RAW_SIZE
55 #define REGISTER_RAW_SIZE(N) ((N) < XFP_REGNUM ? 4 : 16)
58 #define REGISTER_BYTE(N) \
60 ? (((GP_REGS) * REGISTER_RAW_SIZE(0)) + \
61 (((N) - XFP_REGNUM) * REGISTER_RAW_SIZE(XFP_REGNUM))) \
62 : ((N) * REGISTER_RAW_SIZE(0)))