1 |
1181 |
sfurman |
/* Target-dependent definitions for GDB on NS32000 systems.
|
2 |
|
|
Copyright 1987, 1989, 1991, 1993, 1994, 1998, 1999, 2000, 2001, 2002
|
3 |
|
|
Free Software Foundation, Inc.
|
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
|
9 |
|
|
the Free Software Foundation; either version 2 of the License, or
|
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
|
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. */
|
21 |
|
|
|
22 |
|
|
#ifndef NS32K_TDEP_H
|
23 |
|
|
#define NS32K_TDEP_H
|
24 |
|
|
|
25 |
|
|
#include "osabi.h"
|
26 |
|
|
|
27 |
|
|
/* Register numbers of various important registers.
|
28 |
|
|
Note that some of these values are "real" register numbers,
|
29 |
|
|
and correspond to the general registers of the machine,
|
30 |
|
|
and some are "phony" register numbers which are too large
|
31 |
|
|
to be actual register numbers as far as the user is concerned
|
32 |
|
|
but do serve to get the desired values when passed to read_register. */
|
33 |
|
|
|
34 |
|
|
#define NS32K_R0_REGNUM 0 /* General register 0 */
|
35 |
|
|
#define NS32K_FP0_REGNUM 8 /* Floating point register 0 */
|
36 |
|
|
#define NS32K_SP_REGNUM 16 /* Contains address of top of stack */
|
37 |
|
|
#define NS32K_AP_REGNUM NS32K_FP_REGNUM
|
38 |
|
|
#define NS32K_FP_REGNUM 17 /* Contains address of executing stack frame */
|
39 |
|
|
#define NS32K_PC_REGNUM 18 /* Contains program counter */
|
40 |
|
|
#define NS32K_PS_REGNUM 19 /* Contains processor status */
|
41 |
|
|
#define NS32K_FPS_REGNUM 20 /* Floating point status register */
|
42 |
|
|
#define NS32K_LP0_REGNUM 21 /* Double register 0 (same as FP0) */
|
43 |
|
|
|
44 |
|
|
#define NS32K_NUM_REGS_32082 25
|
45 |
|
|
#define NS32K_REGISTER_BYTES_32082 \
|
46 |
|
|
((NS32K_NUM_REGS_32082 - 4) * 4 /* size of general purpose regs */ \
|
47 |
|
|
+ 4 * 8 /* size of floating point regs */)
|
48 |
|
|
|
49 |
|
|
#define NS32K_NUM_REGS_32382 29
|
50 |
|
|
#define NS32K_REGISTER_BYTES_32382 \
|
51 |
|
|
((NS32K_NUM_REGS_32382 - 4) * 4 /* size of general purpose regs */ \
|
52 |
|
|
+ 8 * 8 /* size of floating point regs */)
|
53 |
|
|
|
54 |
|
|
#define NS32K_REGISTER_SIZE 4
|
55 |
|
|
#define NS32K_MAX_REGISTER_RAW_SIZE 8
|
56 |
|
|
#define NS32K_MAX_REGISTER_VIRTUAL_SIZE 8
|
57 |
|
|
|
58 |
|
|
struct gdbarch_tdep
|
59 |
|
|
{
|
60 |
|
|
enum gdb_osabi osabi;
|
61 |
|
|
};
|
62 |
|
|
|
63 |
|
|
void ns32k_gdbarch_init_32082 (struct gdbarch *);
|
64 |
|
|
void ns32k_gdbarch_init_32382 (struct gdbarch *);
|
65 |
|
|
|
66 |
|
|
#endif /* NS32K_TDEP_H */
|