1 /* Target-dependent definitions for GDB on NS32000 systems.
2 Copyright 1987, 1989, 1991, 1993, 1994, 1998, 1999, 2000, 2001, 2002, 2003
3 Free Software Foundation, Inc.
5 This file is part of GDB.
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
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
25 /* Register numbers of various important registers.
26 Note that some of these values are "real" register numbers,
27 and correspond to the general registers of the machine,
28 and some are "phony" register numbers which are too large
29 to be actual register numbers as far as the user is concerned
30 but do serve to get the desired values when passed to read_register. */
32 #define NS32K_R0_REGNUM 0 /* General register 0 */
33 #define NS32K_FP0_REGNUM 8 /* Floating point register 0 */
34 #define NS32K_SP_REGNUM 16 /* Contains address of top of stack */
35 #define NS32K_AP_REGNUM NS32K_FP_REGNUM
36 #define NS32K_FP_REGNUM 17 /* Contains address of executing stack frame */
37 #define NS32K_PC_REGNUM 18 /* Contains program counter */
38 #define NS32K_PS_REGNUM 19 /* Contains processor status */
39 #define NS32K_FPS_REGNUM 20 /* Floating point status register */
40 #define NS32K_LP0_REGNUM 21 /* Double register 0 (same as FP0) */
42 #define NS32K_NUM_REGS_32082 25
43 #define NS32K_REGISTER_BYTES_32082 \
44 ((NS32K_NUM_REGS_32082 - 4) * 4 /* size of general purpose regs */ \
45 + 4 * 8 /* size of floating point regs */)
47 #define NS32K_NUM_REGS_32382 29
48 #define NS32K_REGISTER_BYTES_32382 \
49 ((NS32K_NUM_REGS_32382 - 4) * 4 /* size of general purpose regs */ \
50 + 8 * 8 /* size of floating point regs */)
52 #define NS32K_REGISTER_SIZE 4
53 #define NS32K_MAX_REGISTER_RAW_SIZE 8
54 #define NS32K_MAX_REGISTER_VIRTUAL_SIZE 8
56 void ns32k_gdbarch_init_32082 (struct gdbarch
*);
57 void ns32k_gdbarch_init_32382 (struct gdbarch
*);
59 #endif /* NS32K_TDEP_H */
This page took 0.030016 seconds and 4 git commands to generate.