Commit | Line | Data |
---|---|---|
ea3c0839 JG |
1 | /* Host-machine dependent parameters for Motorola 88000, for GDB. |
2 | Copyright 1986, 1987, 1988, 1989, 1990, 1991 Free Software Foundation, Inc. | |
dd3b648e RP |
3 | |
4 | This file is part of GDB. | |
5 | ||
99a7de40 | 6 | This program is free software; you can redistribute it and/or modify |
dd3b648e | 7 | it under the terms of the GNU General Public License as published by |
99a7de40 JG |
8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | |
dd3b648e | 10 | |
99a7de40 | 11 | This program is distributed in the hope that it will be useful, |
dd3b648e RP |
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 | |
99a7de40 JG |
17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
dd3b648e RP |
19 | |
20 | /* This is currently for a 88000 running DGUX. If other 88k ports are | |
21 | done, OS-specific stuff should be moved (see tm-68k.h, for example). */ | |
22 | /* g++ support is not yet included. */ | |
23 | ||
24 | #define HOST_BYTE_ORDER BIG_ENDIAN | |
25 | ||
8aa13b87 JK |
26 | #if !defined (USG) |
27 | #define USG 1 | |
28 | #endif | |
dd3b648e RP |
29 | |
30 | #include <sys/param.h> | |
31 | ||
dd3b648e RP |
32 | #ifdef __GNUC__ |
33 | #define memcpy __builtin_memcpy | |
8aa13b87 JK |
34 | /* gcc doesn't have this, at least not gcc 1.92. */ |
35 | /* #define memset __builtin_memset */ | |
dd3b648e RP |
36 | #define strcmp __builtin_strcmp |
37 | #endif | |
38 | ||
39 | #ifdef DGUX | |
40 | #define x_foff _x_x._x_offset | |
41 | #define x_fname _x_name | |
42 | #define USER ptrace_user | |
43 | #define _BSD_WAIT_FLAVOR | |
44 | #endif | |
45 | ||
46 | #define HAVE_TERMIO | |
47 | ||
de94d3da | 48 | #ifndef USIZE |
dd3b648e | 49 | #define USIZE 2048 |
de94d3da | 50 | #endif |
dd3b648e RP |
51 | #define NBPG NBPC |
52 | #define UPAGES USIZE | |
53 | ||
54 | #define HAVE_GETPAGESIZE | |
55 | ||
56 | /* Get rid of any system-imposed stack limit if possible. */ | |
57 | ||
58 | #define SET_STACK_LIMIT_HUGE | |
59 | ||
60 | /* number of traps that happen between exec'ing the shell | |
61 | * to run an inferior, and when we finally get to | |
62 | * the inferior code. This is 2 on most implementations. | |
63 | */ | |
64 | #define START_INFERIOR_TRAPS_EXPECTED 2 | |
65 | ||
66 | /* This is the amount to subtract from u.u_ar0 | |
67 | to get the offset in the core file of the register values. */ | |
68 | ||
69 | /* Since registers r0 through r31 are stored directly in the struct ptrace_user, | |
70 | (for m88k BCS) | |
71 | the ptrace_user offsets are sufficient and KERNEL_U_ADDRESS can be 0 */ | |
72 | ||
73 | #define KERNEL_U_ADDR 0 | |
74 | ||
75 | #define REGISTER_U_ADDR(addr, blockend, regno) \ | |
76 | (addr) = m88k_register_u_addr ((blockend),(regno)); | |
77 | ||
78 | #define HAVE_WAIT_STRUCT | |
79 | ||
80 | #define FETCH_INFERIOR_REGISTERS |